Announcement

Collapse
No announcement yet.

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

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

  • Originally posted by Filipek View Post
    ALMOST THERE I tend to say... Everything went smoothly, I heard even one sec of sound initialized but then:

    Code:
    MPlayer SVN-r29834-4.4.1 (C) 2000-2009 MPlayer Team
    Hmm, your fglrxinfo and vainfo are identical to mine.

    The mplayer output is different, though. I get a slightly different version number and less verbose output about the ts (if I use -v it's way more verbose).

    Maybe you/distro has more in ~/.mplayer/config - mine is empty.

    I do get a crash (not the same one) if I try when compiz is running - so maybe you should make sure compositing/effects are off.

    Just to make sure we are using the same mplayer/stream -

    Code:
     md5sum BBCHD-P-40.ts
    7772799eec67cec4905771708f07ecf6  BBCHD-P-40.ts
    
    md5sum mplayer-vaapi-20091106-FULL.tar.bz2 
    8824425cb514a6ee801900246393726f  mplayer-vaapi-20091106-FULL.tar.bz2
    Here's what I get - I suppose mine is going to be built against different headers/libs so that could account for the difference.

    I also only run an old metacity without any desktop installed.

    Maybe you could also check that it doesn't crash using just -vo gl or -vo xv

    Code:
    ./mplayer -vo vaapi:gl -va vaapi ~/BBCHD-P-40.ts 
    MPlayer SVN-r29834-4.2.3 (C) 2000-2009 MPlayer Team
    
    Playing /home/andy/BBCHD-P-40.ts.
    TS file format detected.
    VIDEO H264(pid=2318) AUDIO A52(pid=2319) NO SUBS (yet)!  PROGRAM N. 6940
    FPS seems to be: 25.000000
    [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)
    ==========================================================================
    ==========================================================================
    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)
    Selected audio codec: [a52] afm: liba52 (AC3-liba52)
    ==========================================================================
    AO: [oss] 48000Hz 2ch s16le (2 bytes per sample)
    Starting playback...
    [VD_FFMPEG] XVMC-accelerated MPEG-2.
    Movie-Aspect is 1.82:1 - prescaling to correct movie aspect.
    VO: [vaapi] 1440x1080 => 1964x1080 H.264 VA API Acceleration 
    [h264 @ 0x89215e0]number of reference frames exceeds max (probably corrupt input), discarding one
    A:59645.5 V:59645.5 A-V:  0.020 ct: -0.689 322/322  4%  3%  1.5% 6 0 
    Exiting... (Quit)

    Comment


    • I have exactly the same issue as Filipek

      Here is what my log looks like on an AMD Phonem II (32 bit) running ATI Radeon 4850, with compiz disabled
      Code:
      ./mplayer -vo vaapi:gl -va vaapi /home/abhi/downloads/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/abhi/downloads/BBCHD-P-40.ts.
      TS file format detected.
      VIDEO H264(pid=2318) AUDIO A52(pid=2319) NO SUBS (yet)!  PROGRAM N. 6940
      FPS seems to be: 25.000000
      [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)
      ==========================================================================
      ==========================================================================
      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)
      Selected audio codec: [a52] afm: liba52 (AC3-liba52)
      ==========================================================================
      AO: [oss] 48000Hz 2ch s16le (2 bytes per sample)
      Starting playback...
      [VD_FFMPEG] XVMC-accelerated MPEG-2.
      Movie-Aspect is 1.82:1 - prescaling to correct movie aspect.
      VO: [vaapi] 1440x1080 => 1964x1080 H.264 VA API Acceleration 
      [h264 @ 0x89e6460]number of reference frames exceeds max (probably corrupt input), discarding one
      
      
      MPlayer interrupted by signal 11 in module: flip_page
      - 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.
      I can't see any difference between your log and mine until the point that mplayer crashes. So I am not sure what is going on here. Not an AMD vs Intel issue hopefully.

      Another interesting thing I have noticed is that the first time I run the file, I get the error

      MPlayer interrupted by signal 11 in module: vo_check_events
      All subsequent errors are
      MPlayer interrupted by signal 11 in module: flip_page



      Running the hwdecode demos also results in VAAPI functions not working
      Code:
      hwdecode-demos-0.7.5/src$ ./vaapi_vc1
      Display type 'x11'
      Hardware accelerator 'vaapi'
      [hwdecode_demos] VA display 0x84b9cc8
      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
      [hwdecode_demos] VA API version 0.31
      [hwdecode_demos] 1 display attributes available
      [hwdecode_demos]   VADisplayAttribDirectSurface     (get/---) min 0 max 0 value 0x0
      [hwdecode_demos] 4 profiles available
      [hwdecode_demos]   VAProfileMPEG2Simple
      [hwdecode_demos]   VAProfileMPEG2Main
      [hwdecode_demos]   VAProfileH264High
      [hwdecode_demos]   VAProfileVC1Advanced
      [hwdecode_demos] 1 entrypoints available for VAProfileVC1Advanced
      [hwdecode_demos]   VAEntrypointVLD
      [hwdecode_demos] vaPutSurface(): the requested function is not implemented
      ERROR: display failed
      
      ./vaapi_h264
      Display type 'x11'
      Hardware accelerator 'vaapi'
      [hwdecode_demos] VA display 0x8889cc8
      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
      [hwdecode_demos] VA API version 0.31
      [hwdecode_demos] 1 display attributes available
      [hwdecode_demos]   VADisplayAttribDirectSurface     (get/---) min 0 max 0 value 0x0
      [hwdecode_demos] 4 profiles available
      [hwdecode_demos]   VAProfileMPEG2Simple
      [hwdecode_demos]   VAProfileMPEG2Main
      [hwdecode_demos]   VAProfileH264High
      [hwdecode_demos]   VAProfileVC1Advanced
      [hwdecode_demos] 1 entrypoints available for VAProfileH264High
      [hwdecode_demos]   VAEntrypointVLD
      [hwdecode_demos] vaPutSurface(): the requested function is not implemented
      ERROR: display failed
      Though FFMPEG seems to work
      Code:
      ./ffmpeg_
      ffmpeg_h264   ffmpeg_mpeg2  ffmpeg_mpeg4  ffmpeg_vc1    
      abhi@ubuntu:~/test/hwdecode-demos-0.7.5/src$ ./ffmpeg_h264 
      Display type 'x11'
      Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '':
        Duration: 00:00:00.08, start: 0.000000, bitrate: N/A
          Stream #0.0(und): Video: h264, yuv420p, 320x240 [PAR 1:1 DAR 4:3], 1159 kb/s, 12 tbr, 12 tbn, 24 tbc
        Metadata
          major_brand     : isom
          minor_version   : 512
          compatible_brands: isomiso2avc1mp41
          encoder         : Lavf52.32.0
      [hwdecode_demos] convert YV12:320x240 to RGB :640x480
      press any key to exit
      Last edited by arbitrabbit; 25 November 2009, 09:28 AM.

      Comment


      • I guess you don't use 9-10 final, maybe 9-10 beta or 9-11 final. Did you use the ati-installer directly?

        Comment


        • Originally posted by Kano View Post
          I guess you don't use 9-10 final, maybe 9-10 beta or 9-11 final. Did you use the ati-installer directly?
          I used the ATI installer directly, but used the old 9.10
          The version number of my drivers are
          OpenGL version string: 2.1.9016
          2D driver version: 8.66.10

          Comment


          • That installer only works for 32 bit. Otherwise my script is prefered with -v 9-10.

            Comment


            • Originally posted by Kano View Post
              That installer only works for 32 bit. Otherwise my script is prefered with -v 9-10.
              I am using 32bit. Also, ATI has updated its site so your script now downloads 9.11

              Comment


              • Okay, got it sorted. Had installed 9.11 earlier, so when I downgraded to 9.10, didn't downgrade libamdxvba1. So once I did that it started working.

                Comment


                • That's why -v 9-10 will install the driver correctly. -v is the option that allows to specify a specific driver.

                  Comment


                  • Originally posted by Kano View Post
                    That's why -v 9-10 will install the driver correctly. -v is the option that allows to specify a specific driver.
                    Ah alright...didn't realise you meant that invoke the script with arguments -v 9-10. My bad.

                    Just to confirm, the current implementation doesn't support MPEG4 files, right? Is there any plan to support that?

                    Also, is there any way to make flash work with vaapi as well? I know there is a patch out to get Gnash working with VAAPI but that doesn't seem to work for me (gnash doesn't compile due to some errors in Renderer_ogl.cpp)

                    Comment


                    • Originally posted by arbitrabbit View Post
                      Ah alright...didn't realise you meant that invoke the script with arguments -v 9-10. My bad.

                      Just to confirm, the current implementation doesn't support MPEG4 files, right? Is there any plan to support that?

                      Also, is there any way to make flash work with vaapi as well? I know there is a patch out to get Gnash working with VAAPI but that doesn't seem to work for me (gnash doesn't compile due to some errors in Renderer_ogl.cpp)
                      It does support mp4 files, depending on the codec.

                      Comment

                      Working...
                      X