I've donwloaded some youtube videos that I want to join. I joined them with mkvmerge, but in the joined video, there are ~5 seconds skips (in VLC the second counter stops and then jumps 5 seconds) at the start of each video I joined (even at the start). Is there another way to join them so I won't have this problem?
- Anybody can ask a question
- Anybody can answer
- The best answers are voted up and rise to the top
Try a video editor like Lightworks to join them into one video, there you can cut any black frames and won't have to deal with possible glitches introduced by muxing different videos into one stream.
If your videos are indeed webm and not h264 you might need transcode them into another codec (f.e. with ffmpeg), a production codec like MJPEG or any lossless codec might be suitable as an intermediate codec so you don't loose much visual quality after exporting your finished video.
Maybe try a different tool for muxing your files all into one? Like ffmpeg's
Probably your pauses in the concatenated video are from a timestamp glitch in the merged file. The
You could check the frame pts values in your merged file with
Using a different tool to concat (like ffmpeg) might solve it. Or you can do what Prof. Sparkles suggested, but without actually encoding to lossy mjpeg, and then back to lossy h.264. Tell ffmpeg that the input frames should be considered 24000/1001 fps CFR, and that it should generate new PTS values, ignoring the input timestamps. (old question, so not digging up the details on how to do it. check the ffmpeg manual.)