ffmpeg.exe -i capture.avi -ss 5.0 -to 1:43:57.520 -i capture2.avi -ss 1:44:07.800 -to 3:55:32.840 -filter_complex "[0:v:0][0:a:0][1:v:0][1:a:0]concat=n=2:v=1:a=1[outv][outa]" -map "[outv]" -map "[outa]" -c:v libx264 -crf 19 -pix_fmt yuvj420p -c:a aac -b:a 192k -ar 48000 "out.mp4"
The above filter is supposed to combine two identical clips into one.
Can someone tell me how to insert the following filter -vf into each source file?
-vf "setsar=sar=16/15,scale=in_range=full:out_range=full,,curves=mast er='0.0625/0 0.125/0.07 0.5/0.51 0.8/0.85 1/1'"
+ Reply to Thread
Results 1 to 4 of 4
-
-
Use semicolon to divide filter chain . If [outv] is the current video output, use that as input into the -vf arguments and map to some other output node such as [outv2] . use -map [outv2] to call that video node
Code:-filter_complex "[0:v:0][0:a:0][1:v:0][1:a:0]concat=n=2:v=1:a=1[outv][outa]; [outv]setsar=sar=16/15,scale=in_range=full:out_range=full,curves=master='0.0625/0 0.125/0.07 0.5/0.51 0.8/0.85 1/1'[outv2]" -map "[outv2]" -map "[outa]"
-
Thanks. It works, although it takes ages to start coding.
But I see that I can't really use -ss and -to with two files -- the output file starts at the beginning of capture2.avi and is only 1:45:32.361. -
The seeking is the main reason why takes so long . You can use vdub2 in direct stream copy mode to edit the AVI's , or use avisynth to splice without requiring an intermediate
Similar Threads
-
How do you merge videos with different resolutions?
By Guernsey in forum Newbie / General discussionsReplies: 7Last Post: 21st Jan 2022, 19:13 -
Merge it's files
By mkitchin in forum EditingReplies: 14Last Post: 25th Aug 2020, 22:54 -
MKV merge
By ghazalo in forum Newbie / General discussionsReplies: 20Last Post: 9th Dec 2019, 14:34 -
Lossless m2ts merge?
By Fabulist in forum Newbie / General discussionsReplies: 20Last Post: 6th Apr 2019, 03:51 -
Merge never starts
By wfavero in forum Newbie / General discussionsReplies: 0Last Post: 4th Nov 2018, 11:35