mkvmerge freezes and/or remuxes an empty (0 b/s) h264 video
I have one Bluray that apparently works fine. The video has no issues (at least while playing). But when I try to remux it with mkvmerge it freezes at 0% while taking the whole available RAM (I have 8GB, it takes a little above 5GB, usage shows 95%) and the CPU between 30-50%. After a long while it "unfreezes" and starts muxing. The audio tracks mux fine but the video is empty, with no warnings and no errors. Like this:
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Codec ID : V_MPEG4/ISO/AVC
Bit rate : 0 b/s
Width : 1 920 pixels
Height : 1 080 pixels
Display aspect ratio : 16:9
Frame rate mode : Constant
Stream size : 0.00 Byte (0%)
Default : Yes
Forced : No
I tried extracting the video from the Bluray with eac3to (eac3to has no issues extracting). I tried remuxing the video with TSmuxer, it remuxes fine and the video has no issues. But if I try the bare .h264 file or TSmuxer's m2ts with mkvmerge it produces the same result as above. I tried with MKVToolNix v42 and v49.
Here is the first 100MB of the m2ts produced by TSmuxer (I don't know how can I split h264 without a container of some kind). Try this with mkvmerge and you'll get that 0 b/s AVC track. It won't freeze with this small sample though.
Had to upload it elsewhere as it went over Gitlab's filesize limit
Never had this happen and I have hundreds of BDs remuxed with mkvmerge. Weird.