Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: H264 and VC-1 with VDPAU in MPlayer, but not what everyone else asks

  1. #1
    Join Date
    Jul 2009
    Beans
    255
    Distro
    Ubuntu 11.10 Oneiric Ocelot

    H264 and VC-1 with VDPAU in MPlayer, but not what everyone else asks

    I can successfully play h264 and vc1 encoded HD videos with vdpau acceleration using Gnome MPlayer or SMplayer, but in order to accomplish this, I have to provide -vc ffh264vdpau/ffvc1vdpau as an extra argument for MPlayer. Now this totally sucks as I have to manually type this in for HD videos and remove for all others every single time... What's worse is that I have to know what the video is in advance so I first need to analyze it before playing.
    So, I figured that if there's a way to tell MPlayer to aways use ffh264vdpau codec for h264 and ffvc1vdpau for vc1 videos, I'd be free to just click and watch. Is there any way to accomplish this?

    Thanks for any ideas...

  2. #2
    Join Date
    Nov 2009
    Beans
    1,879
    Distro
    Ubuntu Studio 9.10 Karmic Koala

    Re: H264 and VC-1 with VDPAU in MPlayer, but not what everyone else asks

    Install smplayer, then put your options here: Preferences>Advanced>Options for Mplayer>Options.

  3. #3
    Join Date
    Jul 2009
    Beans
    255
    Distro
    Ubuntu 11.10 Oneiric Ocelot

    Re: H264 and VC-1 with VDPAU in MPlayer, but not what everyone else asks

    I don't think you read my question right... I know I can do that, but then I have to type in the extra parameters every time I'm playing a h264 or vc1 video and remove them when playing other videos... It makes no sense that I am the one who has to first analyzie the video and then manually force the codes, so I figured I can tell MPlayer to always use e.g ffh264vdpau for playing h264 and be done with it once and for all.
    If I leave the -vc ffh264vdpau option on all the time, non-h264 videos won't work...

  4. #4
    Join Date
    Sep 2009
    Beans
    2,330

    Re: H264 and VC-1 with VDPAU in MPlayer, but not what everyone else asks

    not sure if installing vlc would help or not
    but it installs some codes with its install

  5. #5
    Join Date
    Jul 2009
    Beans
    255
    Distro
    Ubuntu 11.10 Oneiric Ocelot

    Re: H264 and VC-1 with VDPAU in MPlayer, but not what everyone else asks

    Thanks everyone for responses.
    I think I got it figured out. SMPlayer seems to be using vdpau codecs by default if vdpau is selected as the output renderer (which is smart indeed). Gnome MPlayer (which I use) seems to be less smart as I can't see any effect from just setting vdpau as the output renderer. One needs to add this:
    Code:
    -vc ffmpeg12vdpau,ffh264vdpau,ffwmv3vdpau,ffvc1vdpau,
    as an extra MPlayer parameter to get the same effect (the trailing comma is important).
    I found most of the info in this thread. The rest I uncovered by testing it myself.
    Last edited by veggen; January 9th, 2011 at 09:44 PM.

  6. #6
    Join Date
    Mar 2006
    Beans
    Hidden!

    Re: H264 and VC-1 with VDPAU in MPlayer, but not what everyone else asks

    You can set up an mplayer config file for specific file types.

    For normal mplayer this goes in ~/.mplayer/config

    for example to play all mkv files using vdpau you would put something like this in your config file:

    Code:
    [extension.mkv]
    profile-desc="Profile for Matroska files"
    profile=lang
    vo=vdpau
    vc=ffh264vdpau
    in the default section you could put:

    Code:
    vo=vdpau,gl2,xv
    then mplayer tries in that order to play the file
    Last edited by Jose Catre-Vandis; January 10th, 2011 at 01:02 AM.
    No longer participating......

  7. #7
    Join Date
    Nov 2009
    Beans
    1,879
    Distro
    Ubuntu Studio 9.10 Karmic Koala

    Re: H264 and VC-1 with VDPAU in MPlayer, but not what everyone else asks

    So set smplayer as the default for mkv and mp4 files (which are typicaly used for h264), then set VLC to open all other video formats like AVI.

  8. #8
    Join Date
    Mar 2006
    Beans
    Hidden!

    Re: H264 and VC-1 with VDPAU in MPlayer, but not what everyone else asks

    Quote Originally Posted by cchhrriiss121212 View Post
    So set smplayer as the default for mkv and mp4 files (which are typicaly used for h264), then set VLC to open all other video formats like AVI.
    ....but you can have a different profile in mplayer for avi files, so you can use mplayer as default for both. The one I use is as follows:

    Code:
    [extension.avi]
    profile-desc="Profile for deinterlacing avi files"
    vo=gl2
    vfm=ffmpeg
    vf=pp=lb/hb/vb/dr
    No longer participating......

  9. #9
    Join Date
    Jul 2009
    Beans
    255
    Distro
    Ubuntu 11.10 Oneiric Ocelot

    Re: H264 and VC-1 with VDPAU in MPlayer, but not what everyone else asks

    @Jose Catre-Vandis
    Great tips, thanks!

    I have just noticed something wierd. When playing with ffh264vdpau, if I load an external subtitle (.srt in my case), memory usage jumps to 700MB and the video starts lagging severly. CPU usage is still very low.

    Can someone please confirm?

  10. #10
    Join Date
    Jul 2009
    Beans
    255
    Distro
    Ubuntu 11.10 Oneiric Ocelot

    Re: H264 and VC-1 with VDPAU in MPlayer, but not what everyone else asks

    Anyone?
    Just a confirmation... You can play any h264 encoded file with any external subtitle loaded.

Page 1 of 2 12 LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •