mpv icon indicating copy to clipboard operation
mpv copied to clipboard

youtube video playback, vdpau fail

Open badluckyman opened this issue 13 years ago • 16 comments

If video format is flv, vdpau is OK. If video format is mp4, mpv shows: [vdpau] Failed creating VDPAU decoder: An invalid/unsupported VdpDecoderProfile value was supplied. [ffmpeg/h264] get_buffer() failed [ffmpeg/h264] thread_get_buffer() failed [ffmpeg/h264] decode_slice_header error [ffmpeg/h264] no frame! Error while decoding frame! Error using hardware decoding, falling back to software decoding.

badluckyman avatar Aug 29 '13 14:08 badluckyman

Sorry, It's my fault. I just compiled new version, this problem solved.

badluckyman avatar Aug 29 '13 14:08 badluckyman

Comes again.

Trying to use hardware decoding.
Selected video codec: H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 [lavc:h264]
Selected audio codec: AAC (Advanced Audio Coding) [lavc:aac]
AO: [alsa] 48000Hz stereo 2ch float
[vdpau] Codec or profile not supported by hardware.
[ffmpeg/h264] get_buffer() failed
[ffmpeg/h264] thread_get_buffer() failed
[ffmpeg/h264] decode_slice_header error
[ffmpeg/h264] no frame!
Error while decoding frame!
Error using hardware decoding, falling back to software decoding.

Only MP4, FLV Works.

badluckyman avatar Nov 12 '13 03:11 badluckyman

Needs a sample. Reopen if you have one; it works here. It's probably format specific. Also, what's your hardware, and what drivers are you using? (E.g. mesa or something else.)

ghost avatar Nov 13 '13 19:11 ghost

Sample is in youtube, Ex. http://www.youtube.com/watch?v=FHFf7NIwOHQ Please choose MP4 format, Ex. fmt18_240p I'm sure it works before version git-39fc006, mpv_works

NOT work after version git-84dcb76 mpv_not_work

what's your hardware

Graphic Card model? MSI N430GT

what drivers are you using?

Sorry, I don't know what you mean. mesa? I'm using vdpau. anyway, These packages are installed on my machine ( Debian Testing ):

glx-alternative-mesa      0.3.0
glx-alternative-nvidia    0.3.0
libegl1-mesa              9.1.6-2
libgl1-mesa-glx           9.1.6-2
libgl1-nvidia-glx         304.88-6
libglapi-mesa             9.1.6-2
libvdpau1                 0.7-1
nvidia-kernel-dkms        304.88-6
nvidia-vdpau-driver       304.88-6
xserver-xorg-video-nvidia 304.88-6

badluckyman avatar Nov 14 '13 00:11 badluckyman

Works before, Not work since commit 24897eb94ccdc4c7a4b9b201ec733b4d8f445f53 video: check profiles with hardware decoding

badluckyman avatar Nov 14 '13 05:11 badluckyman

OK, that was a regression. Should be fixed now. Thanks for reporting.

ghost avatar Nov 14 '13 18:11 ghost

Works, Thank you. P.S. I found no 'Reopen' button at this page after you close.

badluckyman avatar Nov 15 '13 01:11 badluckyman

Found not work video. http://www.youtube.com/watch?v=o8gF6EAJ2go http://www.youtube.com/watch?v=e6AH9_OWzig

Error message same as above. Also, not work since commit 24897eb94ccdc4c7a4b9b201ec733b4d8f445f53

badluckyman avatar Nov 19 '13 09:11 badluckyman

A youtube video can be served in multiple formats, so without knowing the exact format I can't do anything. Post a youtube-dl command line.

ghost avatar Nov 19 '13 09:11 ghost

I'm using quvi. quvi "http://www.youtube.com/watch?v=o8gF6EAJ2go" -f fmt18_360p --exec="mpv %u" quvi "http://www.youtube.com/watch?v=e6AH9_OWzig" -f fmt18_240p --exec="mpv %u"

badluckyman avatar Nov 19 '13 10:11 badluckyman

These videos report "h264 baseline" as profile, which is not compatible with "h264 main" and "h264 high" (which are usually the hardware supported profiles). The profiles are probably not what the creator of the files intended, but this is why we reject these files for hw decoding. You can use --vd-lavc-check-hw-profile=no to force decoding with the highest profile.

Why do you need hardware decoding for 240p videos?

ghost avatar Nov 19 '13 11:11 ghost

You can use --vd-lavc-check-hw-profile=no to force decoding with the highest profile.

OK. It works. Thank you

Why do you need hardware decoding for 240p videos?

Just want lower CPU usage.

badluckyman avatar Nov 19 '13 11:11 badluckyman

CPU usage should be very low. Does it really have a big advantage on your system? (Just curious.)

ghost avatar Nov 19 '13 11:11 ghost

Does it really have a big advantage on your system?

No.

I'm not expert. Seems "h264 baseline" is only for low quality video? The message makes me misconstrued it's a bug

badluckyman avatar Nov 19 '13 12:11 badluckyman

Seems "h264 baseline" is only for low quality video?

"Baseline" has a misleading name, and has some features that aren't in the other profiles. This means if a decoder supports only "main" and "high", it can't decode all of baseline in theory. Here's a nice overview: http://en.wikipedia.org/wiki/H264#Profiles

ghost avatar Nov 19 '13 13:11 ghost

OK. Thank you for your reply, and sorry for waste your time.

badluckyman avatar Nov 19 '13 13:11 badluckyman