Discussion

[Bananian] Script to install and configure hw-accelerated mplayer on bananian

30 23285
Great idea! Hope you fixed the problems and uploaded a newer version! I am looking forward for a good mediaplayer using hardware acceleration!

regards Balou

olee  
I was able to fix all issues and uploaded a new version.

https://dl.dropboxusercontent.com/u/26603849/setup-hw-video.zip

It now also supports playback of videos.
Together with some self-written tools and rtorrent + lirc I'm currently using my Pi as a video station that automatically downloads new released (anime-) episodes and I can select one with remote and play it

BPi is GREAT !

tomek  
Reply 12# olee

Hi,

I did everything according to your script (manualy, line by line) without errors, but mplayer still doesn't work with HW acceleration.
Some outputs under X session:

  1. root@bananek ~ # mplayer /media/downloads/Homeland.S04E01E02.720p.HDTV.X264-DIMENSION.mkv
  2. MPlayer2 UNKNOWN (C) 2000-2012 MPlayer Team

  3. Playing /media/downloads/Homeland.S04E01E02.720p.HDTV.X264-DIMENSION.mkv.
  4. [mkv] Track ID 1: video (V_MPEG4/ISO/AVC), -vid 0
  5. [mkv] Track ID 2: audio (A_AC3), -aid 0, -alang und
  6. [mkv] Will play video track 1.
  7. Detected file format: Matroska
  8. Load subtitles in /media/downloads/
  9. [VO_XV] It seems there is no Xvideo support for your video card available.
  10. [VO_XV] Run 'xvinfo' to verify its Xv support and read
  11. [VO_XV] DOCS/HTML/en/video.html#xv!
  12. [VO_XV] See 'mplayer -vo help' for other (non-xv) video out drivers.
  13. [VO_XV] Try -vo x11.
  14. [ass] auto-open
  15. Selected video codec: H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 [libavcodec]
  16. Selected audio codec: ATSC A/52A (AC-3) [libavcodec]
  17. AUDIO: 48000 Hz, 2 ch, s16le, 384.0 kbit/25.00% (ratio: 48000->192000)
  18. AO: [pulse] 48000Hz 2ch s16le (2 bytes per sample)
  19. Starting playback...
  20. VIDEO:  1280x720  23.976 fps    0.0 kbps ( 0.0 kB/s)
  21. VO: [x11] 1280x720 => 1280x720 Planar YV12
  22. [swscaler @ 0x6abfb0]No accelerated colorspace conversion found from yuv420p to bgra.
  23. [swscaler @ 0x6abfb0]using unscaled yuv420p -> bgra special converter
  24. Colorspace details not fully supported by selected vo.
  25. A:   4.1 V:   2.3 A-V:  1.796 ct:  0.011   0/  0 50% 115%  9.4% 50 0


  26.            ************************************************
  27.            **** Your system is too SLOW to play this!  ****
  28.            ************************************************
Copy the Code
Explicity video output:

  1. root@bananek ~ # mplayer -vo vdpau -vc ffmpeg12vdpau,ffh264vdpau /media/downloads/Homeland.S04E01E02.720p.HDTV.X264-DIMENSION.mkv
  2. MPlayer2 UNKNOWN (C) 2000-2012 MPlayer Team

  3. Playing /media/downloads/Homeland.S04E01E02.720p.HDTV.X264-DIMENSION.mkv.
  4. [mkv] Track ID 1: video (V_MPEG4/ISO/AVC), -vid 0
  5. [mkv] Track ID 2: audio (A_AC3), -aid 0, -alang und
  6. [mkv] Will play video track 1.
  7. Detected file format: Matroska
  8. Load subtitles in /media/downloads/
  9. Error opening/initializing the selected video_out (-vo) device.
  10. Selected audio codec: ATSC A/52A (AC-3) [libavcodec]
  11. AUDIO: 48000 Hz, 2 ch, s16le, 384.0 kbit/25.00% (ratio: 48000->192000)
  12. AO: [pulse] 48000Hz 2ch s16le (2 bytes per sample)
  13. Video: no video
  14. Starting playback...
  15. A:   2.3 (02.2) of 5847.8 ( 1:37:27.7)  4.9%
Copy the Code
Available outputs:

  1. root@bananek ~ # mplayer -vo help                                                        
  2. MPlayer2 UNKNOWN (C) 2000-2012 MPlayer Team
  3. Available video output drivers:
  4.         xv        X11/Xv
  5.         gl_nosw        OpenGL no software rendering
  6.         x11        X11 ( XImage/Shm )
  7.         xover        General X11 driver for overlay capable video output drivers
  8.         sdl        SDL YUV/RGB/BGR renderer (SDL v1.1.7+ only!)
  9.         gl        OpenGL
  10.         gl_sdl        OpenGL with SDL
  11.         dga        DGA ( Direct Graphic Access V2.0 )
  12.         fbdev        Framebuffer Device
  13.         fbdev2        Framebuffer Device
  14.         aa        AAlib
  15.         caca        libcaca
  16.         v4l2        V4L2 MPEG Video Decoder Output
  17.         dfbmga        DirectFB / Matrox G200/G400/G450/G550
  18.         null        Null video output
  19.         directfb        Direct Framebuffer Device
  20.         mpegpes        MPEG-PES to DVB card
  21.         yuv4mpeg        yuv4mpeg output for mjpegtools
  22.         png        PNG file
  23.         jpeg        JPEG file
  24.         gif89a        animated GIF output
  25.         tga        Targa output
  26.         pnm        PPM/PGM/PGMYUV file
  27.         md5sum        md5sum of each frame
Copy the Code
Loaded modules

  1. 1 root@bananek ~ # lsmod                                                                                   :(
  2. Module                  Size  Used by
  3. cpufreq_powersave       1242  0
  4. cpufreq_conservative     5712  0
  5. cpufreq_userspace       3524  0
  6. cpufreq_stats           3623  0
  7. sunxi_cedar_mod        10332  0
  8. mali_drm                2638  0
  9. mali                  113887  0
  10. drm                   213190  1 mali_drm
  11. ump                    57103  1 mali
  12. 8188eu                508213  0
Copy the Code
What I do wrong?

anyone else getting this?
  1. The following packages have unmet dependencies:
  2. build-essential : Depends: libc6-dev but it is not going to be installed or
  3.                             libc-dev
  4.                    Depends: g++ (>= 4:4.4.3) but it is not going to be installed
  5. E: Unable to correct problems, you have held broken packages.
Copy the Code

tomek  
Ok, found few important things:

1. Must be mlpayer2
2. libavcodec-extra-53 must be installed
3. don't use deb-multimedia repository

i fixed the problem with build-essential, video now plays but only in a small window. -fs ad -scale has no effect - except for centering the window with movie. any idea?

asterix  
jose1711 replied at Sun Oct 12, 2014 15:44
i fixed the problem with build-essential, video now plays but only in a small window. -fs ad -scale  ...

Same problem...

Any chance you could upload all the source files required to compile the script.bin that you ship?

With just a script.bin file, it is impossible to know if it was just a malicious file possibly infesting my system.

The rest, configuration, so on, is pretty easily accessible through the shell script, but the script.bin kind of just locks you out.

olee replied at Thu Oct 9, 2014 05:20
I was able to fix all issues and uploaded a new version.

https://dl.dropboxusercontent.com/u/266038 ...

You gave a link to the same file, which was the first

atjr  
tomek replied at Sat Oct 11, 2014 02:14
Ok, found few important things:

1. Must be mlpayer2

Thank you,  your post enlighten me.

You have to log in before you can reply Login | Sign Up

Points Rules