FFMPEG - Filter volume has an unconnected output -


i have following ffmpeg command:

 ffmpeg -i ./master_video.mp4 -i ./temp/temp1.mp4 -i ./temp/temp2.mp4 -y -filter_complex [0:v]setpts=pts-startpts[v0];[1:a]asetpts=pts-startpts,volume=0.1[aud1];[1:v]setpts=pts-startpts+5/tb,fade=t=in:st=5:d=1:alpha=1,fade=t=out:st=14:d=1:alpha=1[v1];[2:a]asetpts=pts-startpts,volume=0.1[aud2];[2:v]setpts=pts-startpts+10/tb,fade=t=in:st=10:d=1:alpha=1,fade=t=out:st=19:d=1:alpha=1[v2];[v0][v1]overlay=eof_action=pass[out1];[out1][v2]overlay=eof_action=pass[out2] -map [out2] -map [aud1][aud2] temp.mp4 

but when run it, received following error:

error: ffmpeg exited code 1: filter volume has unconnected output

any ideas why error occurring?

if wish mix audio outputs, needs done within filtergraph.

use

ffmpeg -y -i ./master_video.mp4 -i ./temp/temp1.mp4 -i ./temp/temp2.mp4 -filter_complex "[0:v]setpts=pts-startpts[v0];  [1:a]asetpts=pts-startpts,volume=0.1[aud1];  [1:v]setpts=pts-startpts+5/tb,fade=t=in:st=5:d=1:alpha=1,fade=t=out:st=14:d=1:alpha=1[v1];  [2:a]asetpts=pts-startpts,volume=0.1[aud2];  [2:v]setpts=pts-startpts+10/tb,fade=t=in:st=10:d=1:alpha=1,fade=t=out:st=19:d=1:alpha=1[v2];  [v0][v1]overlay=eof_action=pass[out1];  [out1][v2]overlay=eof_action=pass[vout];  [aud1][aud2]amix[aout]"    -map [vout] -map [aout] temp.mp4 

note audio master video ignored, have been if original command had worked. also, audio , video temp videos no longer synchronized since setpts expressions different.


Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -