K
K
Kirill Kazakov2015-07-24 20:06:43
linux
Kirill Kazakov, 2015-07-24 20:06:43

Video distortion when merging (concat) 2 files into one, what's the problem?

Merge files into 1 using ffmpeg

ffmpeg -f concat -i "$1" -c copy -y -threads 0 "$OUTPUT_FILE"
.
Recently, a problem was discovered that when gluing similar files, there are strong video distortions in the 2nd file.
Differences are only in these parameters ffec764832774454b923d54deb42f213.jpg.
Why is this a problem, what exactly do these parameters mean, how to fix the problem with minimal losses?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
1
1001001, 2015-07-24
@1001001

I think this is due precisely to the GOP, the distance between the key frames on the first and second video is different, ffmpeg takes the parameters of the first (copy key) for gluing (In my opinion)
I would recode both videos with the same keys if I were you and then glued, or data from the first ffmpeg -i and re-encoded the second

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question