Formatting code for LinuxMultiMedia
{{parent page="Linux"}}
===Nvidia VDPAU (PureVideo2)===
Get latest mplayer source either from export tgz or from subversion. Ensure you have the headers in place. I installed nvidia's 185 driver which comes with that. But I also have the 180 driver from ubuntu restricted driver repo. So I'll fetch that header as well.
%%
aptitude install nvidia-180-libvdpau-dev
aptitude build-dep mplayer
cd mplayer-src
./configure --enable-vdpau --prefix=/opt/mplayer
make -j2
make install
%%
I use smplayer as frontend, so I configured smplayer to use the new mplayer binary, change video output to User defined... and put in vdpau. Wala, that worked! I haven't figured out how to configure smplayer to use the vdpau codecs just yet, maybe that's why I didn't notice any performance or quality difference with the default xv video output, nor is my 8600 gpu getting hotter on a 720p mkv file. But ah I can use mplayer cli with vdpau codec
%%
/opt/mplayer/bin/mplayer -vo vdpau -vc ffh264vdpau Bourne_Ultimatum_hddvd.mkv
%%
Some say add "-vc ffmpeg12vdpau,ffwmv3vdpau,ffvc1vdpau,ffh264vdpau," to smplayer advanced mplayer option. The trailing comma is important. But that didn't quite work. I can select the codec at runtime by going to view file info tho.
===USB cameras===
I got a camera which does PTP (PictureBridge?) only. To get photos off the camera, use gphoto2 http://www.gphoto.org/
%%
# copies everything to the current directory
gphoto2 --auto-detect -P
%%
===Nvidia VDPAU (PureVideo2)===
Get latest mplayer source either from export tgz or from subversion. Ensure you have the headers in place. I installed nvidia's 185 driver which comes with that. But I also have the 180 driver from ubuntu restricted driver repo. So I'll fetch that header as well.
%%
aptitude install nvidia-180-libvdpau-dev
aptitude build-dep mplayer
cd mplayer-src
./configure --enable-vdpau --prefix=/opt/mplayer
make -j2
make install
%%
I use smplayer as frontend, so I configured smplayer to use the new mplayer binary, change video output to User defined... and put in vdpau. Wala, that worked! I haven't figured out how to configure smplayer to use the vdpau codecs just yet, maybe that's why I didn't notice any performance or quality difference with the default xv video output, nor is my 8600 gpu getting hotter on a 720p mkv file. But ah I can use mplayer cli with vdpau codec
%%
/opt/mplayer/bin/mplayer -vo vdpau -vc ffh264vdpau Bourne_Ultimatum_hddvd.mkv
%%
Some say add "-vc ffmpeg12vdpau,ffwmv3vdpau,ffvc1vdpau,ffh264vdpau," to smplayer advanced mplayer option. The trailing comma is important. But that didn't quite work. I can select the codec at runtime by going to view file info tho.
===USB cameras===
I got a camera which does PTP (PictureBridge?) only. To get photos off the camera, use gphoto2 http://www.gphoto.org/
%%
# copies everything to the current directory
gphoto2 --auto-detect -P
%%