i am having issue, to concat video, it looses the audio sync and audio started from previous video.
here is the code i am trying:
1: re-encode file a (1):
2: re-encode file b (2):Code:ffmpeg.exe -i "f:\1.avi" -af apad -vf scale=1280:720 -crf 15.0 -vcodec libx264 -acodec aac -ar 48000 -b:a 192k -coder 1 -rc_lookahead 60 -threads 0 -shortest -avoid_negative_ts make_zero -fflags +genpts 01.mp4
3: Now contact using following command:Code:ffmpeg.exe -i "f:\2.mp4" -af apad -vf scale=1280:720 -crf 15.0 -vcodec libx264 -acodec aac -ar 48000 -b:a 192k -coder 1 -rc_lookahead 60 -threads 0 -shortest -avoid_negative_ts make_zero -fflags +genpts 02.mp4
but audio is not synced with video ;(Code:ffmpeg.exe -f concat -safe 0 -i "f:\files.txt" -c copy test.mp4
i also uploaded both video (and also the output) on dropbox:
Video Sync Issue Source And Result Files
so, any help, how to make audio perfectly sync with video would be great![]()
+ Reply to Thread
Results 1 to 3 of 3
-
-
You need to match the framerate of the 1st file (e.g. add -r 25 as an output option)
Code:ffmpeg.exe -i "f:\1.avi" -r 25 -af apad -vf scale=1280:720 -crf 15.0 -vcodec libx264 -acodec aac -ar 48000 -b:a 192k -coder 1 -rc_lookahead 60 -threads 0 -shortest -avoid_negative_ts make_zero -fflags +genpts 01.mp4
-
Similar Threads
-
ffmpeg trim + concat = Non-monotonous DTS errors
By TorBru in forum Video ConversionReplies: 9Last Post: 27th Dec 2015, 05:33 -
ffmpeg "concat" question
By wallywalters in forum Video ConversionReplies: 3Last Post: 11th Jul 2015, 20:10 -
urgent help needed(audio video sync issue)
By pappubeta in forum Video ConversionReplies: 11Last Post: 7th Apr 2014, 08:11 -
Video/Audio sync issue
By Khyinn in forum Video ConversionReplies: 4Last Post: 26th Nov 2013, 13:55 -
Odd audio/video sync issue with mkv
By agni451 in forum EditingReplies: 0Last Post: 5th Jul 2012, 22:18