ern2150 / FVCR

Creative Commons Zero v1.0 Universal
7 stars 1 forks source link

concat video woes #36

Open ern2150 opened 5 months ago

ern2150 commented 5 months ago

using mkvtoolnix:

concatenating two videos with the same codecs, but different resolutions and frame rates (same audio rate).

Error: The width of the two tracks is different: 1024 and 480

ern2150 commented 5 months ago

Used header editor to declare width and height of smaller video to match larger video.

Warning: The codec's private data does not match (lengths: 46 and 39).

ern2150 commented 3 months ago

in1.mkv has the lower resolution in2.mkv has the higher resolution


ffmpeg -i in1.mkv -map 0 -vf "scale=WIDTHOFIN2:HEIGHTOFIN2" -bsf:v h264_mp4toannexb,dump_extra=keyframe in1-W2H2-metakeyframes.mkv

ffmpeg -i in2.mkv -map 0 -c copy -bsf:v h264_mp4toannexb,dump_extra=keyframe in2-metakeyframes.mkv