Discussion
[Bananian] Script to install and configure hw-accelerated mplayer on bananian
30
24275
|
[Discussion]
[Bananian] Script to install and configure hw-accelerated mplayer on bananian
[Copy link]
|
|
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 |
|
|
|
|
|
|
|
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 ! |
|
|
|
|
|
|
|
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:
- root@bananek ~ # mplayer /media/downloads/Homeland.S04E01E02.720p.HDTV.X264-DIMENSION.mkv
- MPlayer2 UNKNOWN (C) 2000-2012 MPlayer Team
- Playing /media/downloads/Homeland.S04E01E02.720p.HDTV.X264-DIMENSION.mkv.
- [mkv] Track ID 1: video (V_MPEG4/ISO/AVC), -vid 0
- [mkv] Track ID 2: audio (A_AC3), -aid 0, -alang und
- [mkv] Will play video track 1.
- Detected file format: Matroska
- Load subtitles in /media/downloads/
- [VO_XV] It seems there is no Xvideo support for your video card available.
- [VO_XV] Run 'xvinfo' to verify its Xv support and read
- [VO_XV] DOCS/HTML/en/video.html#xv!
- [VO_XV] See 'mplayer -vo help' for other (non-xv) video out drivers.
- [VO_XV] Try -vo x11.
- [ass] auto-open
- Selected video codec: H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 [libavcodec]
- Selected audio codec: ATSC A/52A (AC-3) [libavcodec]
- AUDIO: 48000 Hz, 2 ch, s16le, 384.0 kbit/25.00% (ratio: 48000->192000)
- AO: [pulse] 48000Hz 2ch s16le (2 bytes per sample)
- Starting playback...
- VIDEO: 1280x720 23.976 fps 0.0 kbps ( 0.0 kB/s)
- VO: [x11] 1280x720 => 1280x720 Planar YV12
- [swscaler @ 0x6abfb0]No accelerated colorspace conversion found from yuv420p to bgra.
- [swscaler @ 0x6abfb0]using unscaled yuv420p -> bgra special converter
- Colorspace details not fully supported by selected vo.
- A: 4.1 V: 2.3 A-V: 1.796 ct: 0.011 0/ 0 50% 115% 9.4% 50 0
- ************************************************
- **** Your system is too SLOW to play this! ****
- ************************************************
Copy the Code Explicity video output:
- root@bananek ~ # mplayer -vo vdpau -vc ffmpeg12vdpau,ffh264vdpau /media/downloads/Homeland.S04E01E02.720p.HDTV.X264-DIMENSION.mkv
- MPlayer2 UNKNOWN (C) 2000-2012 MPlayer Team
- Playing /media/downloads/Homeland.S04E01E02.720p.HDTV.X264-DIMENSION.mkv.
- [mkv] Track ID 1: video (V_MPEG4/ISO/AVC), -vid 0
- [mkv] Track ID 2: audio (A_AC3), -aid 0, -alang und
- [mkv] Will play video track 1.
- Detected file format: Matroska
- Load subtitles in /media/downloads/
- Error opening/initializing the selected video_out (-vo) device.
- Selected audio codec: ATSC A/52A (AC-3) [libavcodec]
- AUDIO: 48000 Hz, 2 ch, s16le, 384.0 kbit/25.00% (ratio: 48000->192000)
- AO: [pulse] 48000Hz 2ch s16le (2 bytes per sample)
- Video: no video
- Starting playback...
- A: 2.3 (02.2) of 5847.8 ( 1:37:27.7) 4.9%
Copy the Code Available outputs:
- root@bananek ~ # mplayer -vo help
- MPlayer2 UNKNOWN (C) 2000-2012 MPlayer Team
- Available video output drivers:
- xv X11/Xv
- gl_nosw OpenGL no software rendering
- x11 X11 ( XImage/Shm )
- xover General X11 driver for overlay capable video output drivers
- sdl SDL YUV/RGB/BGR renderer (SDL v1.1.7+ only!)
- gl OpenGL
- gl_sdl OpenGL with SDL
- dga DGA ( Direct Graphic Access V2.0 )
- fbdev Framebuffer Device
- fbdev2 Framebuffer Device
- aa AAlib
- caca libcaca
- v4l2 V4L2 MPEG Video Decoder Output
- dfbmga DirectFB / Matrox G200/G400/G450/G550
- null Null video output
- directfb Direct Framebuffer Device
- mpegpes MPEG-PES to DVB card
- yuv4mpeg yuv4mpeg output for mjpegtools
- png PNG file
- jpeg JPEG file
- gif89a animated GIF output
- tga Targa output
- pnm PPM/PGM/PGMYUV file
- md5sum md5sum of each frame
Copy the Code Loaded modules
- 1 root@bananek ~ # lsmod :(
- Module Size Used by
- cpufreq_powersave 1242 0
- cpufreq_conservative 5712 0
- cpufreq_userspace 3524 0
- cpufreq_stats 3623 0
- sunxi_cedar_mod 10332 0
- mali_drm 2638 0
- mali 113887 0
- drm 213190 1 mali_drm
- ump 57103 1 mali
- 8188eu 508213 0
Copy the Code What I do wrong? |
|
|
|
|
|
|
|
anyone else getting this?- The following packages have unmet dependencies:
- build-essential : Depends: libc6-dev but it is not going to be installed or
- libc-dev
- Depends: g++ (>= 4:4.4.3) but it is not going to be installed
- E: Unable to correct problems, you have held broken packages.
Copy the Code |
|
|
|
|
|
|
|
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? |
|
|
|
|
|
|
|
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 |
|
|
|
|
|
|
|
tomek replied at Sat Oct 11, 2014 02:14 
Ok, found few important things:
1. Must be mlpayer2
Thank you, your post enlighten me. |
|
|
|
|
|
|