[RESOLVED] HEVC/H.265 support?

Support forum for DGDecNV
Post Reply
DAE avatar
jsj
Posts: 9
Joined: Sun Nov 21, 2010 10:41 am

[RESOLVED] HEVC/H.265 support?

Post by jsj »

I just noticed a dgdecnv2051test.zip on your download site and it looks like you have started looking into supporting HEVC/H.265, right?

I tested it with a .ts file recorded from a SES test channel, but I get a couple of error messages. First I get a "Audio Detection Mismatch" with options Yes, No and Cancel. Either one gives the error "MAIN10 profile not supported yet".

I guess that means it won't be able to read my .ts at least not yet?

Let me know you you want a sample to test with, or if I can help in any way.

Here's MediaInfo for the .ts

General
ID : 36 (0x24)
Complete name : SES Ultra HD Demo noevent 20151116_160607 #1.ts
Format : MPEG-TS
File size : 72.9 MiB
Duration : 24s 440ms
Overall bit rate : 25.0 Mbps

Video
ID : 2892 (0xB4C)
Menu ID : 2890 (0xB4A)
Format : HEVC
Format/Info : High Efficiency Video Coding
Format profile : Main 10@L5.1@Main
Codec ID : 36
Duration : 24s 440ms
Bit rate : 23.3 Mbps
Width : 3 840 pixels
Height : 2 160 pixels
Display aspect ratio : 16:9
Frame rate : 50.000 fps
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 10 bits
Bits/(Pixel*Frame) : 0.056
Stream size : 68.0 MiB (93%)
Color range : Limited

Audio
ID : 2891 (0xB4B)
Menu ID : 2890 (0xB4A)
Format : E-AC-3
Format/Info : Audio Coding 3
Format settings, Endianness : Big
Codec ID : 6
Duration : 23s 872ms
Bit rate mode : Constant
Bit rate : 448 Kbps
Channel(s) : 6 channels
Channel positions : Front: L C R, Side: L R, LFE
Sampling rate : 48.0 KHz
Compression mode : Lossy
Delay relative to video : -949ms
Stream size : 1.27 MiB (2%)
Language : English
Nvidia GTX 950. Enigma2 based satellite receiver. Old'ish i7 CPU.
User avatar
admin
Posts: 4551
Joined: Thu Sep 09, 2010 3:08 pm

Re: HEVC/H.265 support?

Post by admin »

Did you read the Notes.txt file? It says that 10-bit encodes are not yet supported. nVidia is working on supporting it in preparation for UHD bluray.

I can comment on the audio mismatch if you provide a sample.
DAE avatar
jsj
Posts: 9
Joined: Sun Nov 21, 2010 10:41 am

Re: HEVC/H.265 support?

Post by jsj »

Yea I read it and saw HEVC and got all jumpy and exited. :)

I didn't figure that the error message was related to 10. bit, my bad, sorry.

I'll upload the .ts somewhere and PM you a url.
Nvidia GTX 950. Enigma2 based satellite receiver. Old'ish i7 CPU.
User avatar
admin
Posts: 4551
Joined: Thu Sep 09, 2010 3:08 pm

Re: HEVC/H.265 support?

Post by admin »

Thanks, jsj. I'll see if I can determine the cause of the mismatch detection.
DAE avatar
rack04
Posts: 36
Joined: Tue Sep 21, 2010 6:45 am

Re: HEVC/H.265 support?

Post by rack04 »

Sorry to jump on this thread but I'm getting the error message consistent with this quote from the release notes:
* HEVC requires an nVidia device that supports HEVC, such as the
GTX 750/950 etc. If your device does not support HEVC and you attempt
to open an HEVC stream, a popup error message will appear.
Does the GTX970 not support HEVC?
User avatar
admin
Posts: 4551
Joined: Thu Sep 09, 2010 3:08 pm

Re: HEVC/H.265 support?

Post by admin »

Well, what is the error message?

I was under the impression that 970 should support hybrid decoding. Is it supported through CUVID? I don't know.

Does it work with LAV filters, etc.? I will ask nVidia about it and post again.
DAE avatar
rack04
Posts: 36
Joined: Tue Sep 21, 2010 6:45 am

Re: HEVC/H.265 support?

Post by rack04 »

Here is the error message and yes it does work with LAV Filters.

Image

Image
User avatar
admin
Posts: 4551
Joined: Thu Sep 09, 2010 3:08 pm

Re: HEVC/H.265 support?

Post by admin »

I've sent a query off to nVidia. Can you please provide a sample that I can use to test with? Thanks.

I see it is MP4 and I rolled my own parser for the HEVC atom. Can you please try with an elementary stream?

Also please tell me your nVidia driver version.
DAE avatar
rack04
Posts: 36
Joined: Tue Sep 21, 2010 6:45 am

Re: HEVC/H.265 support?

Post by rack04 »

Here is link to download the file.

http://www.demo-uhd3d.com/files/uhd4k/L ... eeling.mp4

I exported the elementary HEVC stream using ffmpeg and it gives the same error. I am using driver version 359.00
User avatar
admin
Posts: 4551
Joined: Thu Sep 09, 2010 3:08 pm

Re: HEVC/H.265 support?

Post by admin »

Thank you. I'll post again when I get some useful info about it.
User avatar
admin
Posts: 4551
Joined: Thu Sep 09, 2010 3:08 pm

Re: HEVC/H.265 support?

Post by admin »

nVidia has kindly provided the following information. Hybrid support on 750/970 requires CUVID to be initialized on a D3D9 device with DXVA support. D3D9 is naturally being deprecated and will disappear going forward for platform independence and because it is anyway something of a mess. The 950/960/etc. have full HW support and do not require D3D9 mode. LAV is apparently opening on a D3D9 device in DXVA mode on your system.

You can try DXVA mode with DGDecNV on win 7/8/8.1. To test it set UseD3D = 1 and Decode_Modes=2,2,2,2 in the INI file. However, I believe it may not be supported on Win 10 (could be wrong about that). What OS are you running?

I too would love to remove D3D9 support.
:agree:
DAE avatar
rack04
Posts: 36
Joined: Tue Sep 21, 2010 6:45 am

Re: HEVC/H.265 support?

Post by rack04 »

I am running Windows 7 64bit and it appears to work adding UseD3D=1 and Decode_Modes=2,2,2,2 in the INI file.

Apparently I also need to add use_D3D=true to the avs file to encode.
User avatar
admin
Posts: 4551
Joined: Thu Sep 09, 2010 3:08 pm

Re: HEVC/H.265 support?

Post by admin »

That's correct, and it's good to hear that you have a workaround. The downside of D3D9 mode is that you can't instantiate multiple DGSource() filters in a single script.

I'll fix DGSource() to use the D3D setting from the INI file. You shouldn't have to set it twice. Thanks for pointing that out.
DAE avatar
rack04
Posts: 36
Joined: Tue Sep 21, 2010 6:45 am

Re: HEVC/H.265 support?

Post by rack04 »

admin wrote:That's correct, and it's good to hear that you have a workaround. The downside of D3D9 mode is that you can't instantiate multiple DGSource() filters in a single script.

I'll fix DGSource() to use the D3D setting from the INI file. You shouldn't have to set it twice. Thanks for pointing that out.
Should I reset the ini settings when I'm doing decoding/encoding of h264 sources?
User avatar
admin
Posts: 4551
Joined: Thu Sep 09, 2010 3:08 pm

Re: HEVC/H.265 support?

Post by admin »

You can just leave it that way for everything. Then it would behave like LAV filters.
DAE avatar
Aleron Ives
Posts: 126
Joined: Fri May 31, 2013 8:36 pm

Re: HEVC/H.265 support?

Post by Aleron Ives »

Out of curiosity, what does D3D have to do with video decoding? Why would a 3D graphics API be related to decompressing static 2D video frames? :scratch:
User avatar
admin
Posts: 4551
Joined: Thu Sep 09, 2010 3:08 pm

Re: HEVC/H.265 support?

Post by admin »

I don't know much about the underlying architecture but I believe it just refers to the entire infrastructure for supporting DXVA. Maybe someone that knows more about it can tell us. See first link here?

https://www.google.com/search?q=d3d9+ar ... 8&oe=utf-8

BTW, the 2051 test version is broken for MPEG2 DGSource(). I'll upload a fix shortly. It also will remove the use_D3D option from DGSource and read it from the DGI file.
DAE avatar
rack04
Posts: 36
Joined: Tue Sep 21, 2010 6:45 am

Re: HEVC/H.265 support?

Post by rack04 »

dgdecnv2051 works without adding use_D3D=true to the script. Thanks.
Post Reply