如何在ffmpeg"amovie"中使用https输入筛选? [英] How to use https input with ffmpeg "amovie" filter?
本文介绍了如何在ffmpeg"amovie"中使用https输入筛选?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在对音频文件应用过滤器,然后再将其添加到视频中.这是我使用的命令:
I'm applying a filter on my audio file before adding it to the video. This is the command I use:
ffmpeg -y -i video-input.mp4 -f lavfi -i "amovie=audio.mp3:loop=0,asetpts=N/SR/TB,afade=in:st=0:d=1,afade=out:st=92:d=2" -shortest -c:v copy -c:a aac -strict -2 video-output.mp4
我想使用https输入:
I would like to use a https input:
ffmpeg -y -i video-input.mp4 -f lavfi -i "amovie=https://www.xxxx.com/audio.mp3:loop=0,asetpts=N/SR/TB,afade=in:st=0:d=1,afade=out:st=92:d=2" -shortest -c:v copy -c:a aac -strict -2 video-output.mp4
但这是我得到的错误:
[Parsed_amovie_0 @ 0x55da3a414a40] Failed to avformat_open_input 'https'
[lavfi @ 0x55da3a436660] Error initializing filter 'amovie' with args 'https://www.xxxx.com/audio.mp3:loop=0'
amovie=https://www.xxxx.com/audio.mp3:loop=0,asetpts=N/SR/TB: No such file or directory
来自ffmpeg上的"amovie"文档:
From the "amovie" documentation on ffmpeg:
filename: The name of the resource to read (not necessarily a file; it can also be a device or a stream accessed through some protocol).
如何在音频过滤器中使用https输入?
How can I use a https input in my audio filter ?
推荐答案
URL必须转义为:
是一个特殊字符,/
也是如此.因此,对于bash,请使用
The URL has to be escaped as :
is a special character, as is /
. So, for bash, use
amovie=https\\\:\/\/www.xxxx.com\/audio.mp3
这篇关于如何在ffmpeg"amovie"中使用https输入筛选?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文