ffmpeg: Audio/Video 淡入淡出 in/out
ffmpeg: Audio/Video Fade in/out
我有这个带音频衰减的工作脚本。我怎样才能输入和输出视频的淡入淡出。它总是给我一个错误:
"Option filter:v (set stream filtergraph) cannot be applied to input url ./mp3/conv/1.m4a -- you are trying to apply an input option to an output file or vice versa. Move this option before the file it belongs to."
这适用于音频衰减:
ffmpeg -ss 00:00:00 -t 90 -i "concat:intermediate0.ts|concat:intermediate1.ts"
-i "./mp3/conv/1.m4a" -af "afade=t=out:st=84:d=6" -map 0:v:0 -map 1:a:0
video/out515.mp4 -y
这不适用于音频+视频淡入淡出:
ffmpeg -ss 00:00:00 -t 90-i "concat:intermediate0.ts|intermediate1.ts"
-filter:v 'fade=in:0:30,fade=out:250:30' -i "./mp3/conv/1.m4a"
-af "afade=t=out:st=84:d=6" -map 0:v:0 -map 1:a:0 video/out515.mp4 -y
视频过滤器是输出选项,因此,在所有输入之后:
ffmpeg -ss 00:00:00 -t 90-i "concat:intermediate0.ts|intermediate1.ts" -i "./mp3/conv/1.m4a"
-af "afade=t=out:st=84:d=6" -vf 'fade=in:0:30,fade=out:250:30'
-map 0:v:0 -map 1:a:0 video/out515.mp4 -y
这是有效的最终结果
ffmpeg -ss 00:00:00 -t 90 -i "concat:intermediate0.ts"
-ss 00:00:00 -t 90 -i ".\mp3\conv.m4a" -af "afade=t=out:st=84:d=6"
-vf "fade=in:0:25,fade=out:2225:25" -map 0:v:0 -map 1:a:0 video/out515.mp4 -y
我有这个带音频衰减的工作脚本。我怎样才能输入和输出视频的淡入淡出。它总是给我一个错误:
"Option filter:v (set stream filtergraph) cannot be applied to input url ./mp3/conv/1.m4a -- you are trying to apply an input option to an output file or vice versa. Move this option before the file it belongs to."
这适用于音频衰减:
ffmpeg -ss 00:00:00 -t 90 -i "concat:intermediate0.ts|concat:intermediate1.ts"
-i "./mp3/conv/1.m4a" -af "afade=t=out:st=84:d=6" -map 0:v:0 -map 1:a:0
video/out515.mp4 -y
这不适用于音频+视频淡入淡出:
ffmpeg -ss 00:00:00 -t 90-i "concat:intermediate0.ts|intermediate1.ts"
-filter:v 'fade=in:0:30,fade=out:250:30' -i "./mp3/conv/1.m4a"
-af "afade=t=out:st=84:d=6" -map 0:v:0 -map 1:a:0 video/out515.mp4 -y
视频过滤器是输出选项,因此,在所有输入之后:
ffmpeg -ss 00:00:00 -t 90-i "concat:intermediate0.ts|intermediate1.ts" -i "./mp3/conv/1.m4a"
-af "afade=t=out:st=84:d=6" -vf 'fade=in:0:30,fade=out:250:30'
-map 0:v:0 -map 1:a:0 video/out515.mp4 -y
这是有效的最终结果
ffmpeg -ss 00:00:00 -t 90 -i "concat:intermediate0.ts"
-ss 00:00:00 -t 90 -i ".\mp3\conv.m4a" -af "afade=t=out:st=84:d=6"
-vf "fade=in:0:25,fade=out:2225:25" -map 0:v:0 -map 1:a:0 video/out515.mp4 -y