Unable to decode stream

Support forum for DGDecNV
Post Reply
DAE avatar
zhenya_hacker
Posts: 1
Joined: Thu Jul 09, 2020 5:48 pm

Unable to decode stream

Post by zhenya_hacker »

I`m unable to decode stream from my local 10-bit h265 DVB-T2 record. It is detected as 0x0 dimensions, etc. Shoud it be decoded?
Sample: https://pixeldrain.com/u/5GY7JfNG

Code: Select all

Video
ID                             : 4061 (0xFDD)
Menu ID                        : 4060 (0xFDC)
Format                         : HEVC
Format/Info                    : High Efficiency Video Coding
Format profile                 : Main 10@L4.1@Main
Codec ID                       : 36
Duration                       : 1 h 58 min
Bit rate                       : 2 096 kb/s
Width                          : 1 920 pixels
Height                         : 540 pixels
Display aspect ratio           : 3.556
Frame rate                     : 50.000 FPS
Standard                       : Component
Color space                    : YUV
Chroma subsampling             : 4:2:0 (Type 0)
Bit depth                      : 10 bits
Bits/(Pixel*Frame)             : 0.040
Stream size                    : 1.74 GiB (87%)
Color range                    : Limited
Color primaries                : BT.709
Transfer characteristics       : BT.709
Matrix coefficients            : BT.709
User avatar
Rocky
Posts: 3623
Joined: Fri Sep 06, 2019 12:57 pm

Unable to decode stream

Post by Rocky »

Welcome to the forum!

Yes, it should decode. Probably my HEVC parser. Downloading...
User avatar
Rocky
Posts: 3623
Joined: Fri Sep 06, 2019 12:57 pm

Unable to decode stream

Post by Rocky »

Nope, my parser is fine.

The stream does not contain IDR pictures and instead is using I slices in a TRAIL picture for a starting point. However, I rely on IDR pictures to get the place to start decoding. Fortunately, the stream has AUD_NUT NALUs that can be used as starting points.

I tried treating AUD_NUT as IDR for use as a place to start decoding and your stream did decode in DGIndexNV without artifacts, confirming the use of TRAIL pictures with I slices. There are more places where I have to treat AUD_NUT as IDR, e.g., GOP stepping, indexing and DGI file, demuxing, etc. Also need to modify DGDecodeNV in the same way. Finally, it all needs to be done for both AVC and HEVC video. I will implement this but it will take some time.
User avatar
Rocky
Posts: 3623
Joined: Fri Sep 06, 2019 12:57 pm

Unable to decode stream

Post by Rocky »

Bump for revision of my previous post. This approach is common for broadcast and streaming video so it is important that we support it.
Post Reply