Opened 9 years ago
Closed 9 years ago
#4769 closed defect (fixed)
Concatenate: Audio and Video out of sync after a couple of rounds
Reported by: | Timster | Owned by: | |
---|---|---|---|
Priority: | important | Component: | undetermined |
Version: | git-master | Keywords: | concat regression |
Cc: | ecronik@gmail.com | Blocked By: | |
Blocking: | Reproduced by developer: | no | |
Analyzed by developer: | no |
Description
Hello!
Summary of the bug:
There is an issue with concatenating video files. After several rounds of concatenation, the audio and video desync. The issue also occurs when just concatenating one video file with itself several times so it can't be due to video/audio settings being incompatible with each other. Different containers/settings as well don't change anything.
This is the command I am using:
ffmpeg -f concat -i <(for i in seq 5
; do printf "file %s\n" /path/to/*.mkv; done) -c:v h264 -preset slow -b:v 1500k -minrate 1500k -maxrate 1500k -bufsize 1500k -g 80 -c:a copy out1.mkv
It is a regression - I've have tested it with the static build ffmpeg.static.64bit.2014-07-16 - it is working there. With my ppa build or the git build it doesn't. The output is attached - produced with the ppa build.
Best,
Tim
Attachments (2)
Change History (9)
by , 9 years ago
Attachment: | ffmpeg.txt added |
---|
comment:1 by , 9 years ago
Priority: | normal → important |
---|
comment:2 by , 9 years ago
P.S.: It doesn't work without a wildcard as well.
ffmpeg -f concat -i <(for i in seq 5; do printf "file %s\n" /path/to/out.mkv; done) -c:v h264 -preset slow -b:v 1500k -minrate 1500k -maxrate 1500k -bufsize 1500k -g 80 -c:a copy out1.mkv
comment:3 by , 9 years ago
Component: | ffmpeg → undetermined |
---|---|
Keywords: | concat added; ffmpeg concatenate desync audio video removed |
Priority: | important → normal |
Is the issue only reproducible with x264 or also with an internal encoder like mpeg4?
Please provide your input sample.
comment:4 by , 9 years ago
The issue is still there when using mpeg4. The sample can be found on your ftp in /incoming/
comment:5 by , 9 years ago
Keywords: | regression added |
---|---|
Priority: | normal → important |
I concatenated the file you uploaded 12 times with the command line you provided and the output file plays in sync here with FFplay. What kind of desync do you see with your output file?
Perhaps you can cut the input file with mkvmergem that would make testing easier.
And since you report a regression that I cannot reproduce: Please run git bisect to find the change introducing the issue.
comment:7 by , 9 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
I have tested it with a static git build from 08/11/2015 and it seems to be fixed now. Thanks for your efforts!
ffmpeg output