Announcement

Collapse
No announcement yet.

AMD's UVD2-based XvBA Finally Does Something On Linux

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • You should report those problems to irc://irc.freenode.net/#videolan

    Thats not caused by my script.

    Comment


    • Originally posted by jbrandmeyer View Post
      The upgrade did address the color issue. I managed to address the shaking as well. I set the cpufreq kernel governor to performance instead of ondemand, and that addressed the problem.
      jbrandmeyer, what distro do you primarily use?
      The reason why I ask is because I'm having the same issue as you had, but would rather not set my governor to performance because I'm using Squeeze on my notebook.

      Comment


      • Originally posted by Kano View Post
        Thats not caused by my script.
        Of course, I worked around it with "--disable-skins2 --disable-taglib" at the configure line, there's sth messed up with vlc-git right now

        This is how I was able to build it and run the hw_decode_demos:

        vaapi_vc1 - runs fine
        vaapi_h264 - runs fine
        vaapi_mpeg2 - gives me "ERROR: decode failed"
        vaapi_mpeg4 - gives me "ERROR: decode failed"

        strangely enough ARD HD material still fails with green dispay and "xvba_video: XVBA_GetSurface(): status 2" errors you mentioned a few months ago. I assumed they are fixed since you confirmed so here

        Is it broken again with ati cards? vaapi runs fine on mplayer

        vainfo:
        libva: libva version 0.31.0-sds6
        vainfo: VA API version: 0.31
        vainfo: Driver version: Splitted-Desktop Systems XvBA backend for VA API - 0.6.11

        fglrx 10.2, karmic 32bit, 785G chipset

        Comment


        • You need to upgrade to 10-5.

          Comment


          • thanks Kano, the fglrx update went fine

            Now I rebuilt mplayer with mplayer-vaapi-latest from June 1

            Then I run vlc-vaapi-local and noticed some rejects in vlc-extra-profiles.diff:

            Code:
            cat dist/src/vlc/modules/gui/qt4/components/sout/profiles.hpp.rej 
            ***************                                                                
            *** 2,8 ****                                                                   
                  (sizeof(video_profile_value_list)/sizeof(video_profile_value_list[0]))
            
              static const char video_profile_name_list[][32] = {
                  "Video - H.264 + AAC (TS)",
                  "Video - Dirac + AAC (TS)",
                  "Video - Theora + Vorbis (OGG)",
                  "Video - Theora + Flac (OGG)",
            --- 2,11 ----
                  (sizeof(video_profile_value_list)/sizeof(video_profile_value_list[0]))
            
              static const char video_profile_name_list[][32] = {
            +     "Video - H.264 + AAC (MP4)",
                  "Video - H.264 + AAC (TS)",
            +     "Video - H.264 + AAC HQ (MP4)",
            +     "Video - H.264 + AAC HQ (TS)",
                  "Video - Dirac + AAC (TS)",
                  "Video - Theora + Vorbis (OGG)",
                  "Video - Theora + Flac (OGG)",
            *************** static const char video_profile_name_list[][32] = {
            *** 17,29 ****
                  "Audio - CD",
              };
            
            - static const char video_profile_value_list[][48] = {
                  /* Container(string), transcode video(bool), transcode audio(bool), */
                  /* use subtitles(bool), video codec(string), video bitrate(integer), */
                  /* scale(float), fps(float), width(integer, height(integer), */
                  /* audio codec(string), audio bitrate(integer), channels(integer), */
                  /* samplerate(integer), subtitle codec(string), subtitle overlay(bool) */
                  "ts;1;1;0;h264;800;1;0;0;0;mp4a;128;2;44100;0;0",
                  "ts;1;1;0;drac;800;1;0;0;0;mp4a;128;2;44100;0;0",
                  "ogg;1;1;0;theo;800;1;0;0;0;vorb;128;2;44100;0;0",
                  "ogg;1;1;0;theo;800;1;0;0;0;flac;128;2;44100;0;0",
            --- 20,35 ----
                  "Audio - CD",
              };
            
            + static const char video_profile_value_list[][49] = {
                  /* Container(string), transcode video(bool), transcode audio(bool), */
                  /* use subtitles(bool), video codec(string), video bitrate(integer), */
                  /* scale(float), fps(float), width(integer, height(integer), */
                  /* audio codec(string), audio bitrate(integer), channels(integer), */
                  /* samplerate(integer), subtitle codec(string), subtitle overlay(bool) */
            +     "mp4;1;1;0;h264;800;1;0;0;0;mp4a;128;2;44100;0;0",
                  "ts;1;1;0;h264;800;1;0;0;0;mp4a;128;2;44100;0;0",
            +     "mp4;1;1;0;h264;3600;1;0;0;0;mp4a;128;2;44100;0;0",
            +     "ts;1;1;0;h264;3600;1;0;0;0;mp4a;128;2;44100;0;0",
                  "ts;1;1;0;drac;800;1;0;0;0;mp4a;128;2;44100;0;0",
                  "ogg;1;1;0;theo;800;1;0;0;0;vorb;128;2;44100;0;0",
                  "ogg;1;1;0;theo;800;1;0;0;0;flac;128;2;44100;0;0",
            h264 is still green, I noticed mpeg2 works fine, vlc does crash at EOF as you mentioned in earlier posts.

            How should this profile patch look like?

            Comment


            • ok, will removed my patch. was just a test to add custom profiles.

              Comment


              • c'mon, don't abbandon this!

                Oke, here is my plea.

                Please ATI, don't drop out of XvBA now, please do support the 5xxx series as well! I (as an ATI and AMD costomer) think deserve the right to at the very least ask this from you!

                So, ATI, when will the 5xxx series be supported?

                Don't quit with this now while it seemed to be going in the right direction.

                Comment


                • Today i got a 5670 card, but as metioned before this does not work with xvba - only stupid rendering errors. I tested Unigine Heaven, opengl (linux + win) was slower than directx11 (win), but at least tessellation worked - but if you want to use it with 10 fps for full hd is another question. Without it was still too slow for full hd, but about twice as fast.

                  Comment


                  • Right now testing va-api on a Wall-E trailer: http://www.aaronwt.net/downloads/Mov...Trlr2_1080.mov and i do also get "nice" artifacts when switching to fullscreen. I "fixed" that by simply starting mplayeri n fullscreen mode "-fs".

                    mplayer -vo vaapi WallE_Trlr2_1080.mov -fs
                    However how can i see if this XvBA is really being used?
                    This is what mplayer shows:
                    MPlayer SVN-r31303-4.5.0 (C) 2000-2010 MPlayer Team
                    154 audio & 334 video codecs
                    mplayer: could not connect to socket
                    mplayer: No such file or directory
                    Failed to open LIRC support. You will not be able to use your remote control.

                    Playing WallE_Trlr2_1080.mov.
                    libavformat file format detected.
                    [mov,mp4,m4a,3gp,3g2,mj2 @ 0x2fcdb50]max_analyze_duration reached
                    [lavf] stream 0: video (h264), -vid 0
                    [lavf] stream 2: audio (aac), -aid 0, -alang eng
                    VIDEO: [H264] 1920x796 24bpp 23.976 fps 10035.7 kbps (1225.1 kbyte/s)
                    Clip info:
                    major_brand: qt
                    minor_version: 537199360
                    compatible_brands: qt
                    libva: libva version 0.31.0-sds6
                    Xlib: extension "XFree86-DRI" missing on display ":0.0".
                    libva: va_getDriverName() returns 0
                    libva: Trying to open /usr/lib/va/drivers/fglrx_drv_video.so
                    libva: va_openDriver() returns 0
                    ================================================== ========================
                    Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
                    Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
                    ================================================== ========================
                    ================================================== ========================
                    Opening audio decoder: [faad] AAC (MPEG2/4 Advanced Audio Coding)
                    AUDIO: 48000 Hz, 2 ch, s16le, 192.0 kbit/12.50% (ratio: 23999->192000)
                    Selected audio codec: [faad] afm: faad (FAAD AAC (MPEG-2/MPEG-4 Audio))
                    ================================================== ========================
                    [AO OSS] audio_setup: Can't open audio device /dev/dsp: Device or resource busy
                    AO: [alsa] 48000Hz 2ch s16le (2 bytes per sample)
                    Starting playback...
                    Movie-Aspect is undefined - no prescaling applied.
                    VO: [vaapi] 1920x796 => 1920x796 Planar YV12 [fs]
                    [ASPECT] Warning: No suitable new res found!
                    [ASPECT] Warning: No suitable new res found!
                    A: 1.6 V: 1.6 A-V: 0.000 ct: 0.024 0/ 0 23% 26% 0.6% 7 0
                    Exiting... (Quit)
                    And another issue. When i play with GL:
                    mplayer -vo gl WallE_Trlr2_1080.mov -fs
                    I get LOWER CPU usage then with "-vo vaapi".. how is that possible?

                    GL : ~15% CPU usage
                    VAAPI : ~25% CPU usage

                    Also i get some tearing with VAAPI which i don't get with GL...

                    What i was expecting was nearly no CPU usage increase with VAAPI over the "idle" usage which is always a few percent. And i wasn't expecting tearing..

                    Comment


                    • Small correction on VSYNC.
                      If i set it to "On, unless application specifies" then i simply have vsync and no tearing at all on vaapi and gl (i do still have tearing on xv, but who uses that anyway ^_-)

                      As for the artifacts, that is all still the same. When starting a video windowed and going to fullscreen will give ugly artifacts. Starting from fullscreen to begin with will solve it (as long as you stay in fullscreen).

                      GIVE ME AN EDIT FUNCTION PLEASE!

                      Comment

                      Working...
                      X