fraunhoferhhi / vvdec

VVdeC, the Fraunhofer Versatile Video Decoder
https://www.hhi.fraunhofer.de/en/departments/vca/technologies-and-solutions/h266-vvc.html
BSD 3-Clause Clear License
453 stars 91 forks source link

Decoding vvc files despite corruption #83

Closed elhachi closed 1 year ago

elhachi commented 2 years ago

Hello,

I have a corrupted VVC binary file and I want to decode it using the vvdec application, but it gave me the following error: vvdecapp [error]: decoding failed: (decoder requires restart) detail: caught unknown exception ERROR: In function "void vvdec::DecSlice::parseSlice(vvdec::Slice, vvdec::InputBitstream, int)" in /home/labiod/vvdec/source/Lib/DecoderLib/DecSlice.cpp:172: Expecting a terminating bit ERROR CONDITION: !binVal I tried to decode it using VTM also, but it gave me: ERROR: In function "decompressSlice" in /home/XXXX/VVCSoftware_VTM/source/Lib/DecoderLib/DecSlice.cpp:250: Expecting a terminating bit

Please let me know if there is a way to decode VVC files despite the corruption.

adamjw24 commented 2 years ago

Error resilience is still on the roadmap, we'll look into that. Technically you could just keep feeding the decoder the frames, and starting at the next random access point it should restart providing correct decoded frames (please mind that the way vvdecapp talks to the library does not support that use case, and we'll have to check if the lib would even behave correctly).

I'll leave this open until we implemented some error resilience.