Skip to content
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

HW decoding does not work, encrypted H.264 #73

Open
Oober opened this issue Feb 28, 2020 · 5 comments
Open

HW decoding does not work, encrypted H.264 #73

Oober opened this issue Feb 28, 2020 · 5 comments

Comments

@Oober
Copy link

Oober commented Feb 28, 2020

Media-internals:

`audio_buffering_state "BUFFERING_HAVE_ENOUGH"
debug "(Log limit reached. Further similar entries may be suppressed): ISO-BMFF container metadata for video frame indicates that the frame is not a keyframe, but the video frame contents indicate the opposite."
duration 9223372036854.775
event "PLAY"
for_suspended_start false
height 720
info "video decoder config changed midstream, new config: codec: h264, profile: h264 high, level: not available, alpha_mode: is_opaque, coded size: [1280,720], visible rect: [0,0,1280,720], natural size: [1280,720], has extra data: false, encryption scheme: CENC, rotation: 0°, flipped: 0, color space: {primaries:BT709, transfer:BT709, matrix:BT709, range:LIMITED}"
kAudioDecoderName "FFmpegAudioDecoder"
kAudioTracks [{"bytes per channel":2,"bytes per frame":4,"channel layout":"STEREO","channels":2,"codec":"aac","codec delay":0,"discard decoder delay":false,"encryption scheme":"CENC","has extra data":false,"sample format":"Signed 16-bit","samples per second":48000,"seek preroll":"0us"}]
kFrameTitle "Telia TV"
kFrameUrl "https://tv.telia.fi/?player=fullscreen"
kIsAudioDecryptingDemuxerStream true
kIsPlatformAudioDecoder false
kIsPlatformVideoDecoder false
kIsVideoDecryptingDemuxerStream false
kIsVideoEncrypted true
kResolution "1280x720"
kVideoDecoderName "DecryptingVideoDecoder"
kVideoTracks [{"alpha mode":"is_opaque","codec":"h264","coded size":"640x360","color space":"{primaries:BT709, transfer:BT709, matrix:BT709, range:LIMITED}","encryption scheme":"CENC","has extra data":false,"hdr metadata":"unset","natural size":"640x360","orientation":"0°","profile":"h264 main","visible rect":"0,0 640x360"}]
origin_url "https://tv.telia.fi/"
pipeline_buffering_state "BUFFERING_HAVE_ENOUGH"
pipeline_state "kPlaying"
player_id 0
render_id 9
seek_target 25488954
url "blob:https://tv.telia.fi/c05a38ad-2fd0-4538-8e58-1fb18afe8163"
video_buffering_state "BUFFERING_HAVE_ENOUGH"
width 1280`

HW decoding is not working, although it works with other H.264 sites, like YouTube with a proper extension.

@Oober
Copy link
Author

Oober commented Mar 1, 2020

Same behavior here in a site, which can be tested by any user, without any subscriptions:

https://bitmovin.com/demos/drm

It seems that HW acceleration does not work with encrypted videos.

A beer for a solution. ;)

@qnixsynapse
Copy link

See : intel/libva#241

@Oober
Copy link
Author

Oober commented Mar 1, 2020

See : intel/libva#241

Does the linked bug mean that this is a common problem; graphics drivers do not support encrypted video encoding?

BTW, I am using VDPAU.

@qnixsynapse
Copy link

Yes.

@Oober
Copy link
Author

Oober commented Nov 21, 2020

Have to say, that HW-acceleration works with encrypted videos with recent Firefox and amdgpu/va-api.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants