Page 2 of 2 FirstFirst 12
Results 11 to 12 of 12

Thread: Hardware video acceleration with vdpau not working

  1. #11
    Join Date
    Nov 2008
    Location
    Metro Boston
    Beans
    13,366
    Distro
    Kubuntu 18.04 Bionic Beaver

    Re: Hardware video acceleration with vdpau not working

    Yeah, that's a 10bit (yuv420p10le) but you're not getting hwdec as somewhat expected
    For the first output I posted, I forgot to force VDPAU so it used OpenGL instead. But here I forced hardware decoding, and it still worked.

    Code:
    $ mpv -vo=vdpau Kazemakase\ Tsukikage\ Ran\ -\ Episode\ 01\ \[OnDeed\]\ \[E269EA03\].mkv 
    Playing: Kazemakase Tsukikage Ran - Episode 01 [OnDeed] [E269EA03].mkv
    File uses ordered chapters, will build edit timeline.
    This file references data from other sources.
    Will scan other files in the same directory to find referenced sources.
    Match for source 1: ./Kazemakase Tsukikage Ran - Opening [OnDeed] [09EAC8F9].mkv
     (+) Video --vid=1 (*) (h264 718x480 23.976fps)
     (+) Audio --aid=1 --alang=jpn (*) 'Japanese Audio (stereo)' (ac3 2ch 48000Hz)
     (+) Subs  --sid=1 --slang=eng (*) 'English Subtitles (R1 DVD script)' (ass)
    File tags:
     Title: Kazemakase Tsukikage Ran (2000) [OnDeed]
    AO: [pulse] 48000Hz stereo 2ch float
    Using conversion filter.
    VO: [vdpau] 718x480 => 718x527 yuv420p
    [vo/vdpau] Compositing window manager detected. Assuming timing info is inaccurate.
    It certainly appears to be using the VDPAU driver and plays the video.
    Last edited by SeijiSensei; September 14th, 2017 at 04:42 PM.
    If you ask for help, do not abandon your request. Please have the courtesy to check for responses and thank the people who helped you.

    Blog · Linode System Administration Guides · Android Apps for Ubuntu Users

  2. #12
    Join Date
    Jun 2007
    Beans
    16,814

    Re: Hardware video acceleration with vdpau not working

    Quote Originally Posted by SeijiSensei View Post
    For the first output I posted, I forgot to force VDPAU so it used OpenGL instead. But here I forced hardware decoding, and it still worked.
    ....
    VO: [vdpau] 718x480 => 718x527 yuv420p
    That's not 10bit output & you're not doing hwdec. -vo=vdpau has nothing to do with hwdec
    The command should be --hwdec=vdpau or --hwdec= or hwdec=yes
    (- here in mpv.conf I just use this
    hwdec=

    As example of successful vdpau hwdec ( I generally just use opengl as the vo
    Code:
    mpv --hwdec=  /home/doug/Videos/amostviolentyear-nowplaying_h1080p.mkv
    Playing: /home/doug/Videos/amostviolentyear-nowplaying_h1080p.mkv
     (+) Video --vid=1 (*) (h264 1920x816 23.000fps)
     (+) Audio --aid=1 (*) (mp3 2ch 44100Hz)
    AO: [pulse] 44100Hz stereo 2ch s16
    Using hardware decoding (vdpau).
    VO: [opengl] 1920x816 vdpau[yuv420p]
    AV: 00:00:02 / 00:00:31 (8%) A-V:  0.000
    Or lets say I wanted to use cuda, it must be specified or vdpau will be used. cuda only works with opengl
    Code:
     mpv --hwdec=cuda /home/doug/Videos/amostviolentyear-nowplaying_h1080p.mkv
    Playing: /home/doug/Videos/amostviolentyear-nowplaying_h1080p.mkv
     (+) Video --vid=1 (*) (h264 1920x816 23.000fps)
     (+) Audio --aid=1 (*) (mp3 2ch 44100Hz)
    AO: [pulse] 44100Hz stereo 2ch s16
    Using hardware decoding (cuda).
    VO: [opengl] 1920x816 cuda[nv12]
    AV: 00:00:01 / 00:00:31 (5%) A-V:  0.000
    or for wmv I think a --vo of vdpau is better, that's set in my mpv.conf under [extension.wmv] & hwdec is also enabled in the .conf's general section so -
    Code:
    $ mpv  /home/doug/Videos/Amazon_720.wmv
    Auto-loading profile 'extension.wmv'
    Playing: /home/doug/Videos/Amazon_720.wmv
     (+) Video --vid=1 (wmv3 1280x720 23.976fps)
     (+) Audio --aid=1 --alang=eng (wmapro 6ch 48000Hz)
    AO: [pulse] 48000Hz 5.1 6ch float
    Using hardware decoding (vdpau).
    VO: [vdpau] 1280x720 vdpau[yuv420p]
    [vo/vdpau] Compositing window manager detected. Assuming timing info is inaccurate
    AV: 00:00:14 / 00:01:42 (13%) A-V:  0.000.


    What you could also do is check vdpauinfo for what your card supports

    Also what's quite useful is to add this to ~/.config/mpv/mpv.conf
    Code:
    log-file=mpv.log
    Then everytime mpv is run, (either standalone or thru a front-end) it will create a log in home folder, it's just an over-write so the log is just showing last time used. Read thru that for greater detail.
    Last edited by mc4man; September 14th, 2017 at 10:07 PM.

Page 2 of 2 FirstFirst 12

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
  •