[HELP] HD3300 & VC-1 bluray

Discussion in 'Videocards - AMD Radeon Drivers Section' started by Pissa, Feb 4, 2015.

  1. Pissa

    Pissa New Member

    Messages:
    7
    Likes Received:
    0
    GPU:
    nVidia GTX 260
    Hi guys, I'm new here and I desperately need your help! :cheers:

    My HTPC is built with an Asrock 939A790GMH, CPU is an X2 4400+, GPU is the integrated HD3300 (using last 13.9 legacy) and OS is Windows 7 x64.

    I usually use Kodi to watch movies and listen music, and PowerDVD 14 to watch blurays. Never had a problem before.

    Recently a friend of mine gave me The Matrix Trilogy blurays. When I tried to watch the first one, it was quite impossible. The video flicks more or less every 5/10 seconds, resulting very annoying. I have no pixellation and no corruption, simply the video has quickly "flash" (sorry guys I'm not english and I don't know how describe it) like frames distortions, they last some milliseconds, than video returns normal, and after some seconds again the problem.

    I was surprised, because I never had that problem. Using BD Info, I saw that it was a VC-1 bluray, while all my other blurays are AVC. To be sure, I played that bluray on another system with an nVidia card and it played perfectly, so not a defective disc. I borrowed another VC-1 movie from my friend, same problem. So it's defenitely a bug with VC-1 codec.

    In PowerDVD, changing hardware/software acceleration didn't change anything. I installed the trial of WinDVD Pro 11, and I got the same behaviour. So, not a PowerDVD related problem.

    I installed the trial of AnyDVD and tried to play the movie within Kodi, and I discovered that with DXVA2 enabled I have the same bug, while with DXVA2 disabled the problem disappear, but the system has great difficulty to play it without hardware acceleration. Tried also with MPC-HC enabling/disabling DXVA2 acceleration, same behaviour.

    So, it's for sure a problem with DXVA2 acceleration and AMD drivers.
    So, I tried differents drivers: 9.4, 11.12, those in motherboard CD, 13.1, Dellon modded, 14.12 modded with Flem. No succes at all!
    Rather, with oldest drivers I got also green pixellation.

    So guys, someone can help me to fix this really annoying problem?!
    I'm scared there will be no fix for this, I think I tried everything....
    Sorry for the long post, but I wanted to share all my tests.

    Thanks in advance! :)
     
  2. alexrose1uk

    alexrose1uk Active Member

    Messages:
    79
    Likes Received:
    1
    GPU:
    R9 290 PCS+ 4GB@1150/1500
    The hardware decoding back in the 3 series-era was partial and a bit flaky. I know its not what you want to hear but I'd honestly suggest trying to find a 4/5/6 series card which will fit in your system for cheap and use that. Newer the better as the uvd compatibility was upgraded between generations.
     
  3. Espionage724

    Espionage724 Guest

    A bit of a stretch, but might be worthwhile to try it out on Linux. The 3300 should be mature-enough to have VDPAU (hardware-accelerated video decode) with the open-source driver.

    I'd suggest using oibaf's PPA for an up-to-date graphic stack + mpv for video playback. Could provide a pretty detailed installation guide if you'd be interested in trying it.
     
  4. Pissa

    Pissa New Member

    Messages:
    7
    Likes Received:
    0
    GPU:
    nVidia GTX 260
    Thanks guys for your feedback! :)

    Yes I know HD3300 is really old, but it plays AVC bluray without any problem, my consideration is that it should be simply a driver related problem, but I was unable to find a solution. Buying a new GPU only for 4/5 VC-1 blyrays sounds stupid to me, even if I know it's only 30 bucks more or less....

    For the Linux possibility, I'm totally noob about it, so I'm a bit scared about it....
     

  5. spectatorx

    spectatorx Master Guru

    Messages:
    858
    Likes Received:
    169
    GPU:
    Radeon RX580 8GB
    If i would be in your situation i would give a try to linux, you can create bootable usb stick with for example lubuntu or xubuntu (the lightest and simplest distros for beginners, imo) and try on it in live session (possibility to run linux without installing it on hard drive/ssd) things which Espionage724 mentioned. If all will work as you expect you can install the os on your hard drive.
     
  6. Espionage724

    Espionage724 Guest

    Here's a quick guide if you want to give Ubuntu a try (this will be from a LiveCD/USB enviroment; so nothing will be changed on your system):

    1a. Download Ubuntu
    - Direct-link to ubuntu-14.10-desktop-amd64.iso

    1b. If you want Xubuntu (distro I use currently; a bit lighter on resources), here's a link to that (x64).
    - I might recommend Xubuntu a bit more considering you can also disable the desktop compositor for a bit more GPU resources (and apparently more accurate timings in the video player mpv)

    1c. If you want a daily image of Ubuntu (has a more up-to-date kernel and graphics stack), can use this direct link.

    2. Copy it to a DVD or Flash Drive
    - If using DVD, just burn it with some ISO burner; if you want to test blu-ray playback with a physical disc; you'll need to use a drive that isn't the blu-ray drive (the Ubuntu disc can't be ejected until you reboot), or a flash drive
    - If using Flash Drive, you could either write it directly to the drive via something like PassMark ImageWrite, or for something a little less-hassle to undo later and more user-friendly; Universal USB Installer.

    3. Boot from it
    - Can use either UEFI or Legacy boot; whichever is less of a hassle
    - Using the Universal USB Installer method might restrict the ability to use UEFI boot, but could always just test it to be sure

    4. Open Terminal
    - Can use either the Dash, or press Ctrl + Alt + T

    5. Add the PPA for mpv
    Code:
    sudo add-apt-repository ppa:mc3man/mpv-tests
    - Copy/paste the entire command into Terminal, press Enter, and press Enter again

    6a. Update software sources
    Code:
    sudo apt-get update
    - This updates the sources so Ubuntu knows it can grab mpv from the new repo

    6b. If updating software sources fails, then go to Software & Updates (from either Dash on Ubuntu, or on Xubuntu it's [​IMG] > [​IMG] > Software & Updates) and check the first 4 boxes > Close > Reload > Then go to Step 7

    7. Install mpv
    Code:
    sudo apt-get install mpv mesa-vdpau-drivers
    - This installs mpv and the VDPAU drivers

    8. Find a video
    - Preferably a video file; but mpv can also playback DVD discs, although I'm unfamiliar with the command to do so
    - You can access your HDD from the LiveCD and use a local video file if you have one

    9a. Go back into Terminal and playback the video
    Code:
    mpv --hwdec=vdpau --vo=vdpau DRAG-VIDEO-FILE-HERE
    - You'd type (or copy/paste) "mpv --hwdec=vdpau --vo=vdpau " (with the space at the end), and then drag the video file you want into the Terminal window

    9b. Try this command for Blu-ray disc playback
    Code:
    mpv --hwdec=vdpau --vo=vdpau bd:// --bluray-device=/dev/sr0
    - If /dev/sr0 doesn't work; type lsblk and see if you can identify your blu-ray drive

    10. The video should start playing
    - There may be a lack-of audio depending on some scenarios, but it can (likely) be easily fixed later, and isn't really an issue for just testing playback performance currently
    - If no video playback appears; refer to Step 11

    11. Look in Terminal for something along the lines of:
    Code:
    VO: [vdpau] 1280x720 vdpau
    - This signifies that the video is being played back through VDPAU, and is being hardware-accelerated
    - If Terminal states that HW acceleration failed/fallback to Software, then VDPAU either can't be used due to hardware/driver incompatibilities, or the media itself is in a format incompatible to be accelerated; could try other media with different formats to be sure it's just not the latter

    12. Verify playback performance/appearance
    - If it plays back without issue, wonderful :)
    - If performance is less-than ideal (stuttery); you may be able to improve it by using a bleeding-edge graphics stack, but this will require Ubuntu to be installed

    Should look something like this (I'm using Xubuntu; it'll look slightly different on Ubuntu; only had Toradora! around lol):
    [​IMG]
     
    Last edited by a moderator: Feb 23, 2015
  7. Pissa

    Pissa New Member

    Messages:
    7
    Likes Received:
    0
    GPU:
    nVidia GTX 260
    wow man that's a superb tutorial! :eek:

    I downloaded both lubuntu and xubuntu, this afternoon I'm gonna make a try and report to you!

    Many many thanks for your hard work! :rock:
     
  8. Pissa

    Pissa New Member

    Messages:
    7
    Likes Received:
    0
    GPU:
    nVidia GTX 260
    Hi Espionage,
    I follow your guide and everything went perfectly, thanks! :)

    I'm trying to play that damned VC-1 bluray, but I'm having problems due to AACS keys.
    I'm trying to follow this guide but my zero Linux knowledge is blocking me.... :dead:

    Any tips how to do it?
    Many thanks!


    EDIT: I can't post link because I have < than 5 posts. The guide I refer is Bluray - ArchWiki on archlinux.org
     
  9. spectatorx

    spectatorx Master Guru

    Messages:
    858
    Likes Received:
    169
    GPU:
    Radeon RX580 8GB
    You should look for some ubuntu/*ubuntu or mint guides. Arch linux is much more different from ubuntu, that's how to safely and the easiest way i can call differences between arch and ubuntu to linux newbie :D

    That's one of results of my quick search in google:
    http://ubuntuforums.org/showthread.php?t=2038933
     
  10. Espionage724

    Espionage724 Guest

    Hmm, I never really looked into blu-ray playback in-depth before, but it actually looks a bit complicated in some scenarios.

    Perhaps try these commands out (taken from here; I don't have a blu-ray disc nor drive to test):

    Code:
    sudo add-apt-repository ppa:heyarje/makemkv-beta
    sudo apt-get update
    sudo apt-get install makemkv-bin makemkv-oss
    sudo apt-get remove libaacs0
    cd /usr/lib
    sudo ln -s libmmbd.so.0 libaacs.so.0
    sudo ln -s libmmbd.so.0 libbdplus.so.0
    Those commands adds a MakeMKV repository, installs it, removes the limited pre-installed AACS (keys?), and symlinks MakeMKV's libraries to another file that other media players expect to exist, and uses them (so MakeMKV's libraries replaces the old AACS stuff).

    From there, you should be able to fire up mpv again and try the command out to play the bd disk again.

    From my understanding, if it's a relatively newer BD (maybe late 2013, 2014, or 2015), the keys needed to playback that BD might not exist publicly yet. A common solution seems to be to just rip the BD as a Matroska-format video with that MakeMKV program mentioned above (not sure if it follows the same date-decryption thing or if it's just capable of decoding all BDs on it's own).

    If you rebooted out of the LiveCD and/or didn't install Ubuntu to a drive; you'll have to repeat some steps above to get mpv and VDPAU drivers back (steps 4-7; settings/files don't persist on reboots, so it'll be a clean start each time until it's installed to a drive). Universal USB Installer may have a persistence option though.
     
    Last edited by a moderator: Feb 9, 2015

  11. Pissa

    Pissa New Member

    Messages:
    7
    Likes Received:
    0
    GPU:
    nVidia GTX 260
    Your bluray settings were good, I could play it! :)

    But I'm scared I have bad news, this is MPV log when playing a 1920x1080 mkv:

    Code:
    Trying to use hardware decoding.
    [COLOR="Red"][vdpau] Codec or profile not supported by hardware.
    [vdpau] Codec or profile not supported by hardware.
    [ffmpeg/video] h264: decode slice header error
    [ffmpeg/video] h264: no frame![/COLOR]
    [COLOR="DarkOrange"]Error while decoding frame![/COLOR]
    [COLOR="Red"]Error using hardware decoding, falling back to software decoding.[/COLOR]
    VO: [vdpau] 1920x1080 yuv420p
    
    this is MPV log for original bluray:

    Code:
    Trying to use hardware decoding.
    [COLOR="Red"][vdpau] Codec or profile not supported by hardware.
    [vdpau] Codec or profile not supported by hardware.
    [ffmpeg/video] vc1: decoding to AV PIX FMT NONE is not supported.
    Could not open codec.
    Error using hardware decoding, falling back to software decoding.[/COLOR]
    VO: [vdpau] 1920x1080 yuv420p
    
     
  12. Espionage724

    Espionage724 Guest

    Hmm, not entirely sure what is needed for VC1 acceleration; I tried a random test video on my computer and it also fell-back to software decoding :/

    As for h264; perhaps you could try another video? Here's a pretty small video file. I tried it on my computer which has the bleeding-edge graphics stack stuff and it was accelerated through VDPAU without problem, but I could also try it from a LiveUSB at some point to see if that'll affect it or not.
     
  13. Pissa

    Pissa New Member

    Messages:
    7
    Likes Received:
    0
    GPU:
    nVidia GTX 260
    Hi Espionage, I tried that little video:

    Code:
    Trying to use hardware decoding.
    AO: [pulse] 44100Hz stereo 2h float
    [COLOR="Red"][vdpau] Codec or profile not supported by hardware.
    [ffmpeg/video] h264: decode slice header error
    [ffmpeg/video] h264: no frame![/COLOR]
    [COLOR="DarkOrange"]Error while decoding frame![/COLOR]
    [COLOR="Red"]Error using hardware decoding, falling back to software decoding.[/COLOR]
    VO: [vdpau] 854x480 yuv420p
    
    :mad:
     
  14. Espionage724

    Espionage724 Guest

    Hmm, that seems a bit troubling.

    Try installing vdpauinfo (and mesa-vdpau-drivers), running it, and reporting what it says:
    Code:
    sudo apt-get install vdpauinfo mesa-vdpau-drivers
    Code:
    vdpauinfo
    Should get output like:
    Code:
    display: :0.0   screen: 0
    API version: 1
    Information string: G3DVL VDPAU Driver Shared Library version 1.0
    
    Video surface:
    
    name   width height types
    -------------------------------------------
    420    16384 16384  NV12 YV12 
    422    16384 16384  UYVY YUYV 
    444    16384 16384  Y8U8V8A8 V8U8Y8A8 
    
    Decoder capabilities:
    
    name               level macbs width height
    -------------------------------------------
    MPEG1                 0  9216  2048  1152
    MPEG2_SIMPLE          3  9216  2048  1152
    MPEG2_MAIN            3  9216  2048  1152
    H264_BASELINE        41  9216  2048  1152
    H264_MAIN            41  9216  2048  1152
    H264_HIGH            41  9216  2048  1152
    VC1_ADVANCED          4  9216  2048  1152
    MPEG4_PART2_SP        3  9216  2048  1152
    MPEG4_PART2_ASP       5  9216  2048  1152
    
    Output surface:
    
    name              width height nat types
    ----------------------------------------------------
    B8G8R8A8         16384 16384    y  NV12 YV12 UYVY YUYV Y8U8V8A8 V8U8Y8A8 
    R8G8B8A8         16384 16384    y  NV12 YV12 UYVY YUYV Y8U8V8A8 V8U8Y8A8 
    R10G10B10A2      16384 16384    y  NV12 YV12 UYVY YUYV Y8U8V8A8 V8U8Y8A8 
    B10G10R10A2      16384 16384    y  NV12 YV12 UYVY YUYV Y8U8V8A8 V8U8Y8A8 
    
    Bitmap surface:
    
    name              width height
    ------------------------------
    B8G8R8A8         16384 16384
    R8G8B8A8         16384 16384
    R10G10B10A2      16384 16384
    B10G10R10A2      16384 16384
    A8               16384 16384
    
    Video mixer:
    
    feature name                    sup
    ------------------------------------
    DEINTERLACE_TEMPORAL             y
    DEINTERLACE_TEMPORAL_SPATIAL     -
    INVERSE_TELECINE                 -
    NOISE_REDUCTION                  y
    SHARPNESS                        y
    LUMA_KEY                         -
    HIGH QUALITY SCALING - L1        -
    HIGH QUALITY SCALING - L2        -
    HIGH QUALITY SCALING - L3        -
    HIGH QUALITY SCALING - L4        -
    HIGH QUALITY SCALING - L5        -
    HIGH QUALITY SCALING - L6        -
    HIGH QUALITY SCALING - L7        -
    HIGH QUALITY SCALING - L8        -
    HIGH QUALITY SCALING - L9        -
    
    parameter name                  sup      min      max
    -----------------------------------------------------
    VIDEO_SURFACE_WIDTH              y        48     2048
    VIDEO_SURFACE_HEIGHT             y        48     1152
    CHROMA_TYPE                      y  
    LAYERS                           y         0        4
    
    attribute name                  sup      min      max
    -----------------------------------------------------
    BACKGROUND_COLOR                 y  
    CSC_MATRIX                       y  
    NOISE_REDUCTION_LEVEL            y      0.00     1.00
    SHARPNESS_LEVEL                  y     -1.00     1.00
    LUMA_KEY_MIN_LUMA                y  
    LUMA_KEY_MAX_LUMA                y 
     
    Last edited by a moderator: Feb 12, 2015
  15. Pissa

    Pissa New Member

    Messages:
    7
    Likes Received:
    0
    GPU:
    nVidia GTX 260
    Code:
    display: :0.0   screen: 0
    API version: 1
    Information string: G3DVL VDPAU Driver Shared Library version 1.0
    
    Video surface:
    
    name   width height types
    -------------------------------------------
    420     8192  8192  NV12 YV12 
    422     8192  8192  UYVY YUYV 
    444     8192  8192  Y8U8V8A8 V8U8Y8A8 
    
    Decoder capabilities:
    
    name               level macbs width height
    -------------------------------------------
    MPEG1                 0 262144  8192  8192
    MPEG2_SIMPLE          3 262144  8192  8192
    MPEG2_MAIN            3 262144  8192  8192
    
    Output surface:
    
    name              width height nat types
    ----------------------------------------------------
    B8G8R8A8          8192  8192    y  NV12 YV12 UYVY YUYV Y8U8V8A8 V8U8Y8A8 
    R8G8B8A8          8192  8192    y  NV12 YV12 UYVY YUYV Y8U8V8A8 V8U8Y8A8 
    R10G10B10A2       8192  8192    y  NV12 YV12 UYVY YUYV Y8U8V8A8 V8U8Y8A8 
    B10G10R10A2       8192  8192    y  NV12 YV12 UYVY YUYV Y8U8V8A8 V8U8Y8A8 
    
    Bitmap surface:
    
    name              width height
    ------------------------------
    B8G8R8A8          8192  8192
    R8G8B8A8          8192  8192
    R10G10B10A2       8192  8192
    B10G10R10A2       8192  8192
    A8                8192  8192
    
    Video mixer:
    
    feature name                    sup
    ------------------------------------
    DEINTERLACE_TEMPORAL             y
    DEINTERLACE_TEMPORAL_SPATIAL     -
    INVERSE_TELECINE                 -
    NOISE_REDUCTION                  y
    SHARPNESS                        y
    LUMA_KEY                         -
    HIGH QUALITY SCALING - L1        -
    HIGH QUALITY SCALING - L2        -
    HIGH QUALITY SCALING - L3        -
    HIGH QUALITY SCALING - L4        -
    HIGH QUALITY SCALING - L5        -
    HIGH QUALITY SCALING - L6        -
    HIGH QUALITY SCALING - L7        -
    HIGH QUALITY SCALING - L8        -
    HIGH QUALITY SCALING - L9        -
    
    parameter name                  sup      min      max
    -----------------------------------------------------
    VIDEO_SURFACE_WIDTH              y        48     8192
    VIDEO_SURFACE_HEIGHT             y        48     8192
    CHROMA_TYPE                      y  
    LAYERS                           y         0        4
    
    attribute name                  sup      min      max
    -----------------------------------------------------
    BACKGROUND_COLOR                 y  
    CSC_MATRIX                       y  
    NOISE_REDUCTION_LEVEL            y      0.00     1.00
    SHARPNESS_LEVEL                  y     -1.00     1.00
    LUMA_KEY_MIN_LUMA                y  
    LUMA_KEY_MAX_LUMA      
     

  16. Espionage724

    Espionage724 Guest

    Ah, sorry for the lack-of response. Someone mentioned that you might have to run a newer kernel for that GPU to use VDPAU, so another option is to try a daily image of Ubuntu. 15.04 currently comes with the 3.18 kernel (I think).

    Can grab the latest daily image for Ubuntu here.

    Or Xubuntu.

    The same steps should apply for getting mpv up and running, but skip step 5 (mpv comes in the default repos for Vivid; don't need the 3rd-party repo for it).
     

Share This Page