Kodi Community Forum
Initial native support for DXVA2 in SVN - Time to say goodbye to your firstborns - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111)
+---- Forum: Windows (https://forum.kodi.tv/forumdisplay.php?fid=59)
+---- Thread: Initial native support for DXVA2 in SVN - Time to say goodbye to your firstborns (/showthread.php?tid=69306)



- thrasherx - 2010-02-08

Bier_Koerier Wrote:For ATI users: I did have a green screen issue with mpc-hc(using DXVA2/win7 x84) a while back. Clean uninstal of the drivers (use driver sweeper to get everything) Installed the latest drivers and the problem was gone.

Thanks for the input. I tried it, and no longer have a green screen, but it's still using ff-h264 to decode.


- Bier_Koerier - 2010-02-08

thrasherx Wrote:Thanks for the input. I tried it, and no longer have a green screen, but it's still using ff-h264 to decode.

You can also try mpc-hc (http://mpc-hc.sourceforge.net/) to check if your system can use DXVA. Also ati can only acceleratie video profile 4.1 and not 5.1(like nvidia) if I'm correct.


- lestat1977uk - 2010-02-08

Getting green screen but am using it on second display and only get the green screen when i take focus onto pc and then back again, that said 11% CPU usage is impressive.

Server 2008, ATI 4670


- Buckster - 2010-02-08

with MPC-HC no problems at all with DXVA

with XBMC - for some content I get same as gorgone - the pixellated/corrupt bottom 1/3

Nvidia 9400 integrated, with latest Nvidia drivers


- thrasherx - 2010-02-08

Bier_Koerier Wrote:You can also try mpc-hc (http://mpc-hc.sourceforge.net/) to check if your system can use DXVA. Also ati can only acceleratie video profile 4.1 and not 5.1(like nvidia) if I'm correct.

Yeah, I get dxva in mpc-hc, just not xbmc. Thanks anyways!


- gorgone - 2010-02-08

@elupus

"splitdecode" also on mkv remux (up clean, bottom only motion diff)
is there a decoding detection error possible?

http://pastebin.de/3817

Image


- -czuki- - 2010-02-08

Buckster Wrote:with MPC-HC no problems at all with DXVA

with XBMC - for some content I get same as gorgone - the pixellated/corrupt bottom 1/3

Nvidia 9400 integrated, with latest Nvidia drivers

Same here. These are the file information:

mkv container, codec: h.264 avc1, 1280x720, framerate: 23.976215

my system: asrock ion 330, windows 7 32bit, latest nvidia drivers


Pixallation issue - dssnobie - 2010-02-08

It is my first post on this forum and first of all I would like to thank you everyone who is/was working on the XBMC. In my opinion it is the best HTPC platform with excellent support for users.

I noticed pixellation/corrupt bottom problem only when I played VC1 encoded file, everything was fine with the H.264 files. The pixels are not green, but black on the LCD monitor connected via VGA cable.

I noticed that pixellation will go away if I disable "Sync playback to display" or change sync option to "Video Clock (Drop audio)" or "Video Clock (Resample Audio). But with the "Video Clock (Resample Audio) option I start seeing playback stuttering.

I wonder if the pixellation is VC1 decoding specific issue.

HTPC is based on the Zotac Atom 330 m/b with ION.


- dssnobie - 2010-02-09

dssnobie Wrote:It is my first post on this forum and first of all I would like to thank you everyone who is/was working on the XBMC. In my opinion it is the best HTPC platform with excellent support for users.

I noticed pixellation/corrupt bottom problem only when I played VC1 encoded file, everything was fine with the H.264 files. The pixels are not green, but black on the LCD monitor connected via VGA cable.

I noticed that pixellation will go away if I disable "Sync playback to display" or change sync option to "Video Clock (Drop audio)" or "Video Clock (Resample Audio). But with the "Video Clock (Resample Audio) option I start seeing playback stuttering.

I wonder if the pixellation is VC1 decoding specific issue.

HTPC is based on the Zotac Atom 330 m/b with ION.

Here is video file info:
[SIZE="2"]General
Complete name : E:\Movie\file.mp4
Format : MPEG-4
Format profile : Base Media
Codec ID : isom
File size : 1.45 GiB
Duration : 1h 32mn
Overall bit rate : 2 251 Kbps
Encoded date : UTC 2010-01-22 12:42:05
Tagged date : UTC 2010-01-22 12:42:05

Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : [email protected]
Format settings, CABAC : Yes
Format settings, ReFrames : 8 frames
Codec ID : avc1
Codec ID/Info : Advanced Video Coding
Duration : 1h 32mn
Bit rate mode : Variable
Bit rate : 1 975 Kbps
Maximum bit rate : 10.3 Mbps
Width : 1 280 pixels
Height : 688 pixels
Display aspect ratio : 1.860
Frame rate mode : Constant
Frame rate : 23.976 fps
Resolution : 8 bits
Colorimetry : 4:2:0
Scan type : Progressive
Bits/(Pixel*Frame) : 0.094
Stream size : 1.27 GiB (88%)
Writing library : x264 core 84 r1400M 20fa784
Encoding settings : cabac=1 / ref=8 / deblock=1:-1:-1 / analyse=0x3:0x113 / me=umh / subme=9 / psy=1 / psy_rd=1.0:1.0 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=2 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-4 / threads=3 / sliced_threads=0 / slices=4 / nr=0 / decimate=1 / mbaff=0 / constrained_intra=0 / bframes=4 / b_pyramid=0 / b_adapt=2 / b_bias=0 / direct=1 / wpredb=1 / wpredp=2 / keyint=24 / keyint_min=2 / scenecut=40 / intra_refresh=0 / rc_lookahead=24 / rc=2pass / mbtree=1 / bitrate=1975 / ratetol=1.0 / qcomp=0.60 / qpmin=10 / qpmax=51 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / vbv_maxrate=40000 / vbv_bufsize=30000 / ip_ratio=1.40 / aq=1:1.00 / pulldown=0 / nal_hrd=1
Encoded date : UTC 2010-01-22 05:06:28
Tagged date : UTC 2010-01-22 12:42:57

Audio
ID : 2
Format : AAC
Format/Info : Advanced Audio Codec
Format version : Version 4
Format profile : LC
Format settings, SBR : No
Codec ID : 40
Duration : 1h 32mn
Bit rate mode : Variable
Bit rate : 273 Kbps
Maximum bit rate : 356 Kbps
Channel(s) : 6 channels
Channel positions : Front: L C R, Rear: L R, LFE
Sampling rate : 48.0 KHz
Stream size : 180 MiB (12%)
Language : English
Encoded date : UTC 2010-01-22 12:42:51
Tagged date : UTC 2010-01-22 12:42:57



[/SIZE]



- nekrosoft13 - 2010-02-09

elupus

what ever was done in 27563, is a step in right direction!!

still need to to a lot more testing but, I can finally use XBMC without the advancedsettings.xml file.

DXVA seems to work with most files great, 4-12% cpu usage while playing 1080p h264 content.

some files still have the green screen bug (full green screen).
NOTE: Green Screen on ATI hardware only, fine on Nvidia

example
Code:
ID                               : 1
Complete name                    : \\NEKROSERV\Share\G Drive\Video Share 3 (G)\13 Posterunek\Season 1\13 Posterunek - S01E01 - Nowy komendant.ts
Format                           : MPEG-TS
File size                        : 352 MiB
Duration                         : 25mn 7s
Overall bit rate                 : 1 960 Kbps
Maximum Overall bit rate         : 35.5 Mbps

Video
ID                               : 4113 (0x1011)
Menu ID                          : 1 (0x1)
Format                           : AVC
Format/Info                      : Advanced Video Codec
Format profile                   : [email protected]
Format settings, CABAC           : Yes
Format settings, ReFrames        : 3 frames
Duration                         : 25mn 7s
Bit rate                         : 1 635 Kbps
Width                            : 720 pixels
Height                           : 576 pixels
Display aspect ratio             : 4:3
Frame rate                       : 25.000 fps
Standard                         : PAL
Resolution                       : 8 bits
Colorimetry                      : 4:2:0
Scan type                        : Progressive
Bits/(Pixel*Frame)               : 0.158
Stream size                      : 293 MiB (83%)
Writing library                  : x264 core 80 r1376kGIT 3feaec2
Encoding settings                : cabac=1 / ref=3 / deblock=1:0:0 / analyse=0x1:0x131 / me=umh / subme=7 / psy=1 / psy_rd=1.0:0.0 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=0 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / threads=12 / sliced_threads=0 / nr=0 / decimate=1 / mbaff=0 / constrained_intra=0 / bframes=3 / b_pyramid=0 / b_adapt=1 / b_bias=0 / direct=1 / wpredb=1 / wpredp=2 / keyint=250 / keyint_min=25 / scenecut=40 / rc_lookahead=40 / rc=2pass / mbtree=1 / bitrate=1635 / ratetol=1.0 / qcomp=0.60 / qpmin=10 / qpmax=51 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / vbv_maxrate=10000 / vbv_bufsize=10000 / ip_ratio=1.40 / aq=1:1.00

Audio
ID                               : 4352 (0x1100)
Menu ID                          : 1 (0x1)
Format                           : AC-3
Format/Info                      : Audio Coding 3
Duration                         : 25mn 7s
Bit rate mode                    : Constant
Bit rate                         : 192 Kbps
Channel(s)                       : 2 channels
Channel positions                : L R
Sampling rate                    : 48.0 KHz
Stream size                      : 34.5 MiB (10%)
Language                         : Polish

some files seem to play in slow motion, but FPS is correct
example
Code:
General
Complete name                    : \\NEKROSERV\Share\E Drive\Video Share 1 (E)\Wiedźmin\Wiedźmin - S01E01 - Dzieciństwo.avi
Format                           : AVI
Format/Info                      : Audio Video Interleave
File size                        : 404 MiB
Duration                         : 52mn 51s
Overall bit rate                 : 1 068 Kbps
Writing application              : Nandub v1.0rc2
Writing library                  : Nandub build 1852/release

Video
ID                               : 0
Format                           : MPEG-4 Visual
Format settings, BVOP            : Yes
Format settings, QPel            : No
Format settings, GMC             : No warppoints
Format settings, Matrix          : Default (H.263)
Codec ID                         : XVID
Codec ID/Hint                    : XviD
Duration                         : 52mn 51s
Bit rate                         : 874 Kbps
Width                            : 512 pixels
Height                           : 352 pixels
Display aspect ratio             : 1.455
Frame rate                       : 25.000 fps
Resolution                       : 8 bits
Scan type                        : Progressive
Bits/(Pixel*Frame)               : 0.194
Stream size                      : 330 MiB (82%)

Audio
ID                               : 1
Format                           : MPEG Audio
Format version                   : Version 1
Format profile                   : Layer 3
Format_Settings_Mode             : Joint stereo / MS Stereo
Codec ID                         : 55
Codec ID/Hint                    : MP3
Duration                         : 52mn 51s
Bit rate mode                    : Variable
Bit rate                         : 182 Kbps
Channel(s)                       : 2 channels
Sampling rate                    : 44.1 KHz
Stream size                      : 68.7 MiB (17%)
Alignment                        : Aligned on interleaves
Interleave, duration             : 26 ms (0.65 video frame)
Interleave, preload duration     : 459 ms



- steelman1991 - 2010-02-09

lestat1977uk Wrote:Getting green screen but am using it on second display and only get the green screen when i take focus onto pc and then back again, that said 11% CPU usage is impressive.

Server 2008, ATI 4670

I guess the new svn worked and you found the 'Video Renderer' Big Grin


- my2sense - 2010-02-09

I just wanted to thank elupus and all the other developers for all their hard work on XBMC.

Is anyone else having video problems with the view mode set to "zoom"? I get ghosting and discoloration but only in the "zoom". All other view modes (16:9, custom, 4:3) work fine. This only occurs with dxva enabled under the video setting for both mkv and avi, HD and SD videos. If I turn set the rendering mode back to standard then zoom works fine.

I'm running win7 32bit and NVidia G210 GPU and self-compiled 27587 from SVN.


- nekrosoft13 - 2010-02-09

ok, a bit more info

some videos have half bottom green screen
update:
on ATI based system with Radeon 3200, 70-80% of screen is green
on Nvdidia based system with Geforce8600, 20-40% of screen is green


Code:
General
ID                               : 1
Complete name                    : \\NEKROSERV\Share\G Drive\Video Share 3 (G)\Stargåte SG-1\Season 10\Stargåte SG-1 - S10E01 - Flesh and Blood.ts
Format                           : MPEG-TS
File size                        : 1.42 GiB
Duration                         : 43mn 34s
Overall bit rate                 : 4 659 Kbps
Maximum Overall bit rate         : 35.5 Mbps

Video
ID                               : 4113 (0x1011)
Menu ID                          : 1 (0x1)
Format                           : AVC
Format/Info                      : Advanced Video Codec
Format profile                   : [email protected]
Format settings, CABAC           : No
Format settings, ReFrames        : 2 frames
Duration                         : 43mn 34s
Bit rate                         : 3 888 Kbps
Width                            : 1 280 pixels
Height                           : 720 pixels
Display aspect ratio             : 16/9
Resolution                       : 24 bits
Colorimetry                      : 4:2:0
Scan type                        : Progressive
Stream size                      : 1.18 GiB (83%)

Audio
ID                               : 4352 (0x1100)
Menu ID                          : 1 (0x1)
Format                           : AC-3
Format/Info                      : Audio Coding 3
Duration                         : 43mn 34s
Bit rate mode                    : Constant
Bit rate                         : 448 Kbps
Channel(s)                       : 6 channels
Channel positions                : Front: L C R, Surround: L R, LFE
Sampling rate                    : 48.0 KHz
Stream size                      : 140 MiB (10%)
Language                         : English

it appears that files that have half green screen are missng FPS info/field in the video stream
to verify, you have to demux the container (seperate video from audio), and then check video properties.


Image

I can provide a small sample if needed


- nekrosoft13 - 2010-02-09

de-interlacing and video scaling support

I noticed that AVi files have de-interlacing support and video scaling support, much better then in a while ago.

will the more advance options be available for other file types?

AVI with xvid

Image

Code:
General
Complete name                    : \\NEKROSERV\Share\H Drive\Video Share 6 (H)\Supernatural\Season 1\Supernatural - S01E01 - Pilot.avi
Format                           : AVI
Format/Info                      : Audio Video Interleave
File size                        : 701 MiB
Duration                         : 45mn 25s
Overall bit rate                 : 2 158 Kbps
Writing application              : VirtualDubMod 1.5.4.1 (build 2178/release)
Writing library                  : VirtualDubMod build 2178/release

Video
ID                               : 0
Format                           : MPEG-4 Visual
Format profile                   : Streaming Video@L1
Format settings, BVOP            : Yes
Format settings, QPel            : No
Format settings, GMC             : No warppoints
Format settings, Matrix          : Custom
Codec ID                         : XVID
Codec ID/Hint                    : XviD
Duration                         : 45mn 25s
Bit rate                         : 1 765 Kbps
Width                            : 960 pixels
Height                           : 544 pixels
Display aspect ratio             : 16/9
Frame rate                       : 23.976 fps
Resolution                       : 24 bits
Colorimetry                      : 4:2:0
Scan type                        : Progressive
Bits/(Pixel*Frame)               : 0.141
Stream size                      : 573 MiB (82%)
Writing library                  : XviD 1.0.3 (UTC 2004-12-20)

Audio
ID                               : 1
Format                           : AC-3
Format/Info                      : Audio Coding 3
Codec ID                         : 2000
Duration                         : 45mn 24s
Bit rate mode                    : Constant
Bit rate                         : 384 Kbps
Channel(s)                       : 6 channels
Channel positions                : Front: L C R, Surround: L R, LFE
Sampling rate                    : 48.0 KHz
Video delay                      : 5ms
Stream size                      : 125 MiB (18%)
Alignment                        : Split accross interleaves
Interleave, duration             : 42 ms (1.00 video frame)
Interleave, preload duration     : 500 ms


TS file with h264

Image

Code:
General
ID                               : 1
Complete name                    : \\NEKROSERV\Share\H Drive\Video Share 6 (H)\Supernatural\Season 5\Supernatural - S05E01 - Sympathy for the Devil.ts
Format                           : MPEG-TS
File size                        : 1.14 GiB
Duration                         : 41mn 42s
Overall bit rate                 : 3 916 Kbps
Maximum Overall bit rate         : 35.5 Mbps

Video
ID                               : 4113 (0x1011)
Menu ID                          : 1 (0x1)
Format                           : AVC
Format/Info                      : Advanced Video Codec
Format profile                   : [email protected]
Format settings, CABAC           : Yes
Format settings, ReFrames        : 3 frames
Duration                         : 41mn 42s
Bit rate                         : 3 260 Kbps
Nominal bit rate                 : 3 363 Kbps
Width                            : 1 280 pixels
Height                           : 720 pixels
Display aspect ratio             : 16/9
Frame rate                       : 23.976 fps
Resolution                       : 24 bits
Colorimetry                      : 4:2:0
Scan type                        : Progressive
Bits/(Pixel*Frame)               : 0.148
Stream size                      : 972 MiB (83%)
Writing library                  : x264 core 67 r1153M 7b6ce6a
Encoding settings                : cabac=1 / ref=3 / deblock=1:0:0 / analyse=0x3:0x113 / me=hex / subme=6 / psy_rd=1.0:0.0 / mixed_ref=0 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=1 / cqm=0 / deadzone=21,11 / chroma_qp_offset=-2 / threads=12 / nr=0 / decimate=1 / mbaff=0 / bframes=3 / b_pyramid=1 / b_adapt=1 / b_bias=0 / direct=1 / wpredb=1 / keyint=240 / keyint_min=24 / scenecut=40 / rc=2pass / bitrate=3363 / ratetol=1.0 / qcomp=0.60 / qpmin=10 / qpmax=51 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / ip_ratio=1.40 / pb_ratio=1.30 / aq=1:1.0
Language                         : English

Audio
ID                               : 4352 (0x1100)
Menu ID                          : 1 (0x1)
Format                           : AC-3
Format/Info                      : Audio Coding 3
Duration                         : 41mn 42s
Bit rate mode                    : Constant
Bit rate                         : 384 Kbps
Channel(s)                       : 6 channels
Channel positions                : Front: L C R, Surround: L R, LFE
Sampling rate                    : 48.0 KHz
Stream size                      : 115 MiB (10%)
Language                         : English



Cannot play Divx - Frederic - 2010-02-09

I haven't been ableto play Divx (tried a few of the nightlies up to 27527) and I get a black screen when trying to play Divx content (.avi with Div3 codec and .divx with DV50 codec).

I tried to set the decoder to standard, auto, DXVA and also installed the Divx codec. But I still get the same black screen (with audio). H264 play fine.

what I am doing wrong?