-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to enable hardware decoding and check whether it works #372
Comments
On OS X you need to use |
Although I tried '--hwdec=vda --vo=corevideo', but I found that mpv isn't using hardware decoding, because I got a message "Using software decoding." This is the whole log I got: Detected file format: QuickTime / MOV (libavformat) |
can you make sure FFmpeg version is new enough: 2.0 or head? (warning: homebrew installs 1.2 by default). |
Oh, I didn't notice that. My ffmpeg version was 1.2.4. Sorry. |
I updated ffmpeg to version N-57964-g48f3766. However, I still get the log "Using software decoding". |
did you compile ffmpeg with |
I had compiled ffmpeg without |
Yes. You need to rerun ./configure, not just recompile. |
Thank you. I succeeded in using hardware decoding. What I've done is: |
We should maybe put a notice about |
What option do I have to put after "mpv" on ubuntu? |
Also a combination of --hwdec and --vo, but probably different values. RTFM. |
I'm sorry not to have read the manual.
I noticed that opengl doesn't support hardware decoding, so I tried these video outputs:
However, I couldn't play the video with hardware decoding. [Note]: The os of my pc is ubuntu 13.10. |
You need to install vdpau. |
I wanted to install vdpau with command "sudo aptitude install vdpau", but package 'vdpau' wasn't found. Alternatively, I found libvdpau-dev, but it was already installed. |
We have a pkg-config check for 'vdpau >= 0.2'. I think that is provided by 'libvdpau-dev'. Maybe post your |
My |
When I run
What does this error mean? Does this mean that my pc isn't supported hardware decoding? |
You need to use VAAPI with Intel, not VDPAU. VDPAU is only available for nVidia and AMD afaik. |
Oh, I didn't know that.
So, I can't select VAAPI as vo. |
I tried |
I think |
VDA is an OS X only API, of course it will not work on Ubuntu. |
Thank you! Summarizing the above, OS X (with Intel Graphics) Debian or Ubuntu (with Intel Graphics) Debian or Ubuntu (with NVIDIA or AMD) *I don't know how to install and play on OS X with NVIDIA or AMD. |
on OSX you should prefer |
What is the difference between corevideo and opengl? *Updated my previous comment. |
|
When I use
What was wrong? My config file is clean. |
This should usually happen only if there was a video filter inserted (doesn't seem to be the case), or because the VO doesn't support hardware decoding (doesn't seem to be the case), so I'm unable to guess what's your problem. |
you need the git master to use hardware decoding with |
How can I get the git master? |
brew install --HEAD mpv |
How can I do it without Homebrew? |
Updated version of the way to use hardware acceleration: |
Failed to hwaccel even with --hwdec=vda [ffmpeg/video] h264: Cannot initialize VDA -12473 |
This is not a mpv issue. Either the file you are watching is not supported by VDA, or VDA is being used by another application on your system. |
How can I detect Application using VDA? |
Reboot your machine, and the problem will disappear. |
Problem was not disappeared after Reboot |
Then, what's the codec of the video file? |
It is h264 I written |
I think this line in the log is associated with this problem: My log is following: You probably should clean your config file. |
You don't need to speculate. This error:
is pretty clear on what's going on. VDA won't work, and we can't do anything about it. There's (AFAIK) not even a way to see what other applications might use VDA, or any other details about what's wrong. |
Debug log informed Pixel could be decoded by vda_vld vda yuv420p
|
I'm sorry, but I don't know how to enable hardware decoding while playing videos at all.
By default, does mpv play videos with hardware decoding?
Because I don't know whether mpv is now using hardware decoding, I added an option '--hwdec=vdpau'. However, I think this makes no difference from before.
In addition, please tell me how to check whether hardware decoding is used.
Hardware...MacBook Air (Late 2010)
OS...OS X Mavericks (10.9)
The text was updated successfully, but these errors were encountered: