justdan96 / tsMuxer

tsMuxer is a transport stream muxer for remuxing/muxing elementary streams, EVO/VOB/MPG, MKV/MKA, MP4/MOV, TS, M2TS to TS to M2TS. Supported video codecs H.264/AVC, H.265/HEVC, VC-1, MPEG2. Supported audio codecs AAC, AC3 / E-AC3(DD+), DTS/ DTS-HD.
Apache License 2.0
853 stars 144 forks source link

Bitstream exception std::exception Error #572

Closed FilipeAmadeuO closed 1 year ago

FilipeAmadeuO commented 2 years ago

When opening the 00504.m2ts from the UHD movie Knives Out i get the following error

image

When demuxing at 87,5% i get the error:

Bitstream exception std::exception. It does not have to be! Please contact application support team for more information.

What can be the problem ? Thanks

justdan96 commented 2 years ago

Would it be possible to extract the original video from 85% to 90% duration? Just so we can try to test that section in isolation.

FilipeAmadeuO commented 2 years ago

Maybe it´s better to check

justdan96 commented 2 years ago

Can you also please paste everything from the "meta file" pane?

FilipeAmadeuO commented 2 years ago

Can you also please paste everything from the "meta file" pane?

CLPINF and MPLS files ? Included here: https://www.dropbox.com/s/1wx3qql5pygwwf5/00504.zip?dl=0

jcdr428 commented 2 years ago

Hi @FilipeAmadeuO , when demuxing the second hevc stream with ffmepg ffmpeg.exe -i 00504.m2ts -map 0:1 -c:v copy output.hevc, ffmepg reports:

Invalid delta in scaling list data: -1
missing picture in access unit with size 532

so basically the dv hevc stream is corrupt, which creates the bitstream exception due to bad parsing of the hevc stream.

Edit: note that I didn't get the 'unsupported format' message with the provided sample.

justdan96 commented 2 years ago

Is this still reproducible?

ghost commented 2 years ago

I just got it out of nowhere while batch-transcoding / modifying a bunch of bluray extras to HDR10 + DoVi 8.1. I'm investigating since it didn't happen to the next file in the batch which was transcoded and modified by dovi_tool in exactly the same way and the same framerate and resolution (those are the only oddities over what I normally do, it's 480i deinterlaced to 60000/1001 fps 480p).

jcdr428 commented 2 years ago

@justdan96 there is still work to be done, tsMuxer should show a message "Bad frame detected - skipping frame" rather than aborting due to bitstream exception.