It's been a while since I've posted in the blog, but while I'm still to release any new versions of Qt5Box, there's still some exploring to be done with hardware accelerated video on Cubieboard. Using X11 and libvdpau-sunxi, it's possible to have hardware accelerated video on Cubieboard, and confirm it with mplayer - just check the sunxi wiki steps for that. But what about GStreamer? Read on... Step 1: libvdpau-sunxi and mplayer - based on Cubian images for Cubieboard - add sunxi_cedar_mod to /etc/modules sudo apt-get install libvdpau-dev vdpauinfo libvdpau-sunxi http:///Cedrus - set permissions in udev rules - reserve memory for the VPU - add VDPAU_DRIVER=sunxi to /etc/environment sudo apt-get install mplayer2 wget sintel mp4 trailers DISPLAY=:0 mplayer -ao alsa:device=hw=1.0 -vo vdpau -vc ffmpeg12vdpau,ffh264vdpau, sintel_trailer-480p.mp4 (at this point, 480p, 720p, 1080p should work properly with mplayer) Step 2: libvdpau-sunxi and GStreamer sudo apt-get install libasound2-dev libgstreamer0.10-dev libgstreamer-plugins-base0.10-dev libgstreamer-plugins-bad0.10* gstreamer0.10-plugins-ugly gstreamer0.10-alsa gstreamer0.10-plugins-good gstreamer0.10-tools gtk-doc-tools DISPLAY=:0 gst-launch-0.10 playbin2 uri=file:///home/cubie/sintel_trailer-480p.mp4 video-sink="autovideosink" audio-sink="faad ! audioconvert ! alsasink device=hw:1,0" (no vdpau yet - video is distorted, audio is working over HDMI) sudo apt-get autoremove sudo apt-get install faad libfaad-dev libfaad2 sudo apt-get clean wget http://gstreamer./src/gst-plugins-bad/gst-plugins-bad-0.10.23.tar.xz ./autogen.sh && make -j 3 && sudo make install sudo ln -s /usr/local/lib/gstreamer-0.10/libgstvdpau.so /usr/lib/arm-linux-gnueabihf/gstreamer-0.10/ sudo ln -s /usr/local/lib/libgstvdp-0.10.so.23 /usr/lib/libgstvdp-0.10.so.23 sudo ln -s /usr/local/lib/libgstvdp-0.10.so.23.0.0 /usr/lib/libgstvdp-0.10.so.23.0.0 rm -rf ~/.gstreamer-0.10/ && gst-inspect-0.10 | grep vdpau vdpau: vdpausink: VDPAU Sink vdpau: vdpauvideopostprocess: VdpauVideoPostProcess vdpau: vdpaumpeg4dec: VDPAU Mpeg4 Decoder vdpau: vdpauh264dec: VDPAU H264 Decoder vdpau: vdpaumpegdec: VDPAU Mpeg Decoder DISPLAY=:0 gst-launch-0.10 playbin2 uri=file:///home/cubie/sintel_trailer-480p.mp4 video-sink="vdpauh264dec ! vdpauvideopostprocess ! vdpausink" audio-sink="faad ! audioconvert ! alsasink device=hw:1,0" Failed to open VDPAU backend libvdpau_sunxi.so: cannot open shared object file: No such file or directory sudo ln -s /usr/lib/arm-linux-gnueabihf/vdpau/libvdpau_sunxi.so.1 /usr/lib/libvdpau_sunxi.so Failed to open VDPAU backend /usr/lib/libvdpau_sunxi.so: undefined symbol: XTranslateCoordinates (the mplayer line works OK with vdpau video support and alsa audio through HDMI) sudo apt-get purge libvdpau-sunxi (leave libvdpau-dev installed) git clone https://github.com/linux-sunxi/libvdpau-sunxi.git cd libvdpau-sunxi make sudo make install (mplayer and GStreamer working now) reboot - mplayer cmdline working - gstreamer cmdline working |
|
来自: dwlinux_gs > 《qt5 box》