Announcement

Collapse
No announcement yet.

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

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

  • Using the latest xvba package and I'm pretty sure I got all the command parameters in there. Been trying since the 9.10 betas with no luck.

    Comment


    • You can only use 9-10 FINAL not the beta from U. I hope you did NOT use the ati-installer on a 64 bit system as the 64 bit libs are not installed in that case.

      Comment


      • No. 9.10 final. I always build packages too, since that's the only way I can even get a positive feedback with vainfo.

        Comment


        • That's my tiny mplayer-vaapi wrapper - works for me...

          Code:
          #!/bin/sh
          mplayer -va vaapi -vo vaapi:gl "$@"
          Be sure your ~/.mplayer/config is empty or at least has got no va/vo/vc overrides.

          Comment


          • Well I finaly got round to trying this and to my suprise it actually works.

            Suprise because my card isn't listed as UVD2. It's an rv670 Sapphire radeon HD3850 AGP which according to wikipedia is UVD+, though I thought I'd give it a try as someone else in the thread mentioned success with a 2xxx.

            Not all streams work, but broadcast BBC does, it even manages to de-interlace in the MBAFF case which is more that ffmpeg does. It doesn't de-int "normal" interlaced, though.

            Comment


            • @Kano: thanks for the script! At one point I had to resolve a conflict in the files you where patching:
              Code:
              Conflict discovered in 'fmt-conversion.c'
              I chose mine-conflict to resolve this, assuming it would choose the lines from your code in case of doubt. It ran through smoothly afterwards and vaapi works. I posted the conflicting diff-full + display-conflict @ pastebin

              DRIVER/OS: fglrx 9-10 on kubuntu/carmic/32bit

              Now I need some 1080i material to really test it

              Comment


              • Originally posted by legume View Post
                Well I finaly got round to trying this and to my suprise it actually works.

                Suprise because my card isn't listed as UVD2. It's an rv670 Sapphire radeon HD3850 AGP which according to wikipedia is UVD+, though I thought I'd give it a try as someone else in the thread mentioned success with a 2xxx.

                Not all streams work, but broadcast BBC does, it even manages to de-interlace in the MBAFF case which is more that ffmpeg does. It doesn't de-int "normal" interlaced, though.
                Since I also have ATI 3850 in possesion, would you please mind describing step by step what everything you had to do in order to make it running? I would be very grateful.

                Comment


                • @Tuxoholic

                  Use the script witho-1 in the name, that works more easy until mplayer vaapi is updated. I don't get why this takes so long.

                  Comment


                  • Originally posted by Filipek View Post
                    Since I also have ATI 3850 in possesion, would you please mind describing step by step what everything you had to do in order to make it running? I would be very grateful.
                    Sure, with a little help from ~/.bash_history :-)

                    I use LFS so may have dev/build type dependencies all ready present that you may or may not need to install from your distro.

                    You will need to be running the 9-10 version of fglrx.

                    download -

                    splitted-desktop.com is your first and best source for all of the information you’re looking for. From general topics to more of what you would expect to find here, splitted-desktop.com has it all. We hope you find what you are searching for!


                    splitted-desktop.com is your first and best source for all of the information you’re looking for. From general topics to more of what you would expect to find here, splitted-desktop.com has it all. We hope you find what you are searching for!


                    splitted-desktop.com is your first and best source for all of the information you’re looking for. From general topics to more of what you would expect to find here, splitted-desktop.com has it all. We hope you find what you are searching for!


                    untar and cd into xvba-video-0.5.1.i686 then as root/sudo

                    Code:
                    cp -a usr/lib/va/ /usr/lib/
                    cd ../ untar and cd into libva-0.31.0/

                    Code:
                    for p in debian/patches/*.patch; do patch -p1 < $p; done
                    autoreconf
                    ./configure --prefix=/usr
                    make
                    as root/sudo

                    Code:
                    make install
                    At this point if you run
                    vainfo
                    hopefully it will say something other than error.

                    cd ../ untar and cd into mplayer-vaapi-20091106

                    to build it -
                    Code:
                    ./checkout-patch-build.sh
                    I then just ran it from the tree so

                    Code:
                    cd mplayer-vaapi
                    ./mplayer -vo vaapi:gl -va vaapi /path/to/some/vid.xyz
                    Don't forget the ./ before mplayer or you'll be running your old system version if you all ready have it.

                    This vid (40 meg) worked well for me. Mpeg2 didn't work and some other h264 had some artifacts.

                    Comment


                    • ALMOST THERE I tend to say... Everything went smoothly, I heard even one sec of sound initialized but then:

                      Code:
                      ./mplayer -vo vaapi:gl -va vaapi /home/filipek/Download/BBCHD-P-40.ts 
                      MPlayer SVN-r29834-4.4.1 (C) 2000-2009 MPlayer Team
                      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 /home/filipek/Download/BBCHD-P-40.ts.
                      TS file format detected.
                      PROGRAM_ID=0 (0x00), PMT_PID: 16(0x10)
                      PROGRAM_ID=6903 (0x1AF7), PMT_PID: 261(0x105)
                      PROGRAM_ID=6904 (0x1AF8), PMT_PID: 262(0x106)
                      PROGRAM_ID=6940 (0x1B1C), PMT_PID: 256(0x100)
                      PROGRAM_ID=6945 (0x1B21), PMT_PID: 257(0x101)
                      PROGRAM_ID=0 (0x00), PMT_PID: 16(0x10)
                      PROGRAM_ID=6903 (0x1AF7), PMT_PID: 261(0x105)
                      PROGRAM_ID=6904 (0x1AF8), PMT_PID: 262(0x106)
                      PROGRAM_ID=6940 (0x1B1C), PMT_PID: 256(0x100)
                      PROGRAM_ID=6945 (0x1B21), PMT_PID: 257(0x101)
                      PROGRAM_ID=0 (0x00), PMT_PID: 16(0x10)
                      PROGRAM_ID=6903 (0x1AF7), PMT_PID: 261(0x105)
                      PROGRAM_ID=6904 (0x1AF8), PMT_PID: 262(0x106)
                      PROGRAM_ID=6940 (0x1B1C), PMT_PID: 256(0x100)
                      PROGRAM_ID=6945 (0x1B21), PMT_PID: 257(0x101)
                      PROGRAM_ID=0 (0x00), PMT_PID: 16(0x10)
                      PROGRAM_ID=6903 (0x1AF7), PMT_PID: 261(0x105)
                      PROGRAM_ID=6904 (0x1AF8), PMT_PID: 262(0x106)
                      PROGRAM_ID=6940 (0x1B1C), PMT_PID: 256(0x100)
                      PROGRAM_ID=6945 (0x1B21), PMT_PID: 257(0x101)
                      PROGRAM_ID=0 (0x00), PMT_PID: 16(0x10)
                      PROGRAM_ID=6903 (0x1AF7), PMT_PID: 261(0x105)
                      PROGRAM_ID=6904 (0x1AF8), PMT_PID: 262(0x106)
                      PROGRAM_ID=6940 (0x1B1C), PMT_PID: 256(0x100)
                      PROGRAM_ID=6945 (0x1B21), PMT_PID: 257(0x101)
                      PROGRAM_ID=0 (0x00), PMT_PID: 16(0x10)
                      PROGRAM_ID=6903 (0x1AF7), PMT_PID: 261(0x105)
                      PROGRAM_ID=6904 (0x1AF8), PMT_PID: 262(0x106)
                      PROGRAM_ID=6940 (0x1B1C), PMT_PID: 256(0x100)
                      PROGRAM_ID=6945 (0x1B21), PMT_PID: 257(0x101)
                      PROGRAM_ID=0 (0x00), PMT_PID: 16(0x10)
                      PROGRAM_ID=6903 (0x1AF7), PMT_PID: 261(0x105)
                      PROGRAM_ID=6904 (0x1AF8), PMT_PID: 262(0x106)
                      PROGRAM_ID=6940 (0x1B1C), PMT_PID: 256(0x100)
                      PROGRAM_ID=6945 (0x1B21), PMT_PID: 257(0x101)
                      PROGRAM_ID=0 (0x00), PMT_PID: 16(0x10)
                      PROGRAM_ID=6903 (0x1AF7), PMT_PID: 261(0x105)
                      PROGRAM_ID=6904 (0x1AF8), PMT_PID: 262(0x106)
                      PROGRAM_ID=6940 (0x1B1C), PMT_PID: 256(0x100)
                      PROGRAM_ID=6945 (0x1B21), PMT_PID: 257(0x101)
                      VIDEO H264(pid=2318) AUDIO A52(pid=2319) NO SUBS (yet)!  PROGRAM N. 6940
                      ID_VIDEO_ID=2318
                      ID_AUDIO_ID=2319
                      ID_AID_2319_LANG=eng
                      PROGRAM_ID=0 (0x00), PMT_PID: 16(0x10)
                      PROGRAM_ID=6903 (0x1AF7), PMT_PID: 261(0x105)
                      PROGRAM_ID=6904 (0x1AF8), PMT_PID: 262(0x106)
                      PROGRAM_ID=6940 (0x1B1C), PMT_PID: 256(0x100)
                      PROGRAM_ID=6945 (0x1B21), PMT_PID: 257(0x101)
                      PROGRAM_ID=0 (0x00), PMT_PID: 16(0x10)
                      PROGRAM_ID=6903 (0x1AF7), PMT_PID: 261(0x105)
                      PROGRAM_ID=6904 (0x1AF8), PMT_PID: 262(0x106)
                      PROGRAM_ID=6940 (0x1B1C), PMT_PID: 256(0x100)
                      PROGRAM_ID=6945 (0x1B21), PMT_PID: 257(0x101)
                      PROGRAM_ID=0 (0x00), PMT_PID: 16(0x10)
                      PROGRAM_ID=6903 (0x1AF7), PMT_PID: 261(0x105)
                      PROGRAM_ID=6904 (0x1AF8), PMT_PID: 262(0x106)
                      PROGRAM_ID=6940 (0x1B1C), PMT_PID: 256(0x100)
                      PROGRAM_ID=6945 (0x1B21), PMT_PID: 257(0x101)
                      FPS seems to be: 25.000000
                      ID_FILENAME=/home/filipek/Download/BBCHD-P-40.ts
                      ID_DEMUXER=mpegts
                      ID_VIDEO_FORMAT=0x10000005
                      ID_VIDEO_BITRATE=0
                      ID_VIDEO_WIDTH=0
                      ID_VIDEO_HEIGHT=0
                      ID_VIDEO_FPS=25.000
                      ID_VIDEO_ASPECT=0.0000
                      ID_AUDIO_FORMAT=8192
                      ID_AUDIO_BITRATE=0
                      ID_AUDIO_RATE=0
                      ID_AUDIO_NCH=0
                      ID_LENGTH=0.00
                      ID_SEEKABLE=1
                      ID_CHAPTERS=0
                      [vo_vaapi] Using OpenGL rendering
                      libva: libva version 0.31.0-sds3
                      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
                      [VD_FFMPEG] VA API accelerated codec.
                      [VD_FFMPEG] Trying pixfmt=0.
                      Unsupported PixelFormat -1
                      Movie-Aspect is undefined - no prescaling applied.
                      VO: [vaapi] 64x64 => 64x64 H.264 VA API Acceleration 
                      [vo_vaapi] Using 1:1 VA surface mapping
                      [VD_FFMPEG] XVMC-accelerated MPEG-2.
                      [VD_FFMPEG] XVMC-accelerated MPEG-2.
                      Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
                      ==========================================================================
                      ID_VIDEO_CODEC=ffh264
                      ==========================================================================
                      Opening audio decoder: [liba52] AC3 decoding with liba52
                      Using SSE optimized IMDCT transform
                      Using MMX optimized resampler
                      AUDIO: 48000 Hz, 2 ch, s16le, 384.0 kbit/25.00% (ratio: 48000->192000)
                      ID_AUDIO_BITRATE=384000
                      ID_AUDIO_RATE=48000
                      ID_AUDIO_NCH=2
                      Selected audio codec: [a52] afm: liba52 (AC3-liba52)
                      ==========================================================================
                      AO: [oss] 48000Hz 2ch s16le (2 bytes per sample)
                      ID_AUDIO_CODEC=a52
                      Starting playback...
                      PROGRAM_ID=0 (0x00), PMT_PID: 16(0x10)
                      PROGRAM_ID=6903 (0x1AF7), PMT_PID: 261(0x105)
                      PROGRAM_ID=6904 (0x1AF8), PMT_PID: 262(0x106)
                      PROGRAM_ID=6940 (0x1B1C), PMT_PID: 256(0x100)
                      PROGRAM_ID=6945 (0x1B21), PMT_PID: 257(0x101)
                      [VD_FFMPEG] XVMC-accelerated MPEG-2.
                      Movie-Aspect is 1.82:1 - prescaling to correct movie aspect.
                      ID_VIDEO_ASPECT=1.8182
                      VO: [vaapi] 1440x1080 => 1964x1080 H.264 VA API Acceleration 
                      [h264 @ 0x89d0a80]number of reference frames exceeds max (probably corrupt input), discarding one
                      
                      
                      MPlayer interrupted by signal 11 in module: flip_page
                      ID_SIGNAL=11
                      - MPlayer crashed by bad usage of CPU/FPU/RAM.
                        Recompile MPlayer with --enable-debug and make a 'gdb' backtrace and
                        disassembly. Details in DOCS/HTML/en/bugreports_what.html#bugreports_crash.
                      - MPlayer crashed. This shouldn't happen.
                        It can be a bug in the MPlayer code _or_ in your drivers _or_ in your
                        gcc version. If you think it's MPlayer's fault, please read
                        DOCS/HTML/en/bugreports.html and follow the instructions there. We can't and
                        won't help unless you provide this information when reporting a possible bug.
                      mplayer crashed. When I try to do it again, ubuntu hangs (!!!) and PC has to be plugged out in order to reboot

                      Does the log ring any bells? We are close!!!

                      Just for the info to be complete. My current status:

                      Code:
                      fglrxinfo
                      display: :0.0  screen: 0
                      OpenGL vendor string: ATI Technologies Inc.
                      OpenGL renderer string: ATI Radeon HD 3850
                      OpenGL version string: 2.1.9026
                      Code:
                      vainfo
                      libva: libva version 0.31.0-sds3
                      libva: va_getDriverName() returns 0
                      libva: Trying to open /usr/lib/va/drivers/fglrx_drv_video.so
                      libva: va_openDriver() returns 0
                      vainfo: VA API version: 0.31
                      vainfo: Driver version: Splitted-Desktop Systems XvBA backend for VA API - 0.5.1
                      vainfo: Supported profile and entrypoints
                            VAProfileMPEG2Simple            :	VAEntrypointIDCT
                            VAProfileMPEG2Main              :	VAEntrypointIDCT
                            VAProfileH264High               :	VAEntrypointVLD
                            VAProfileVC1Advanced            :	VAEntrypointVLD
                      Last edited by Filipek; 24 November 2009, 05:35 PM.

                      Comment

                      Working...
                      X