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

Unsupported VVC/H.266 Format Decryption in Shaka Packager #1453

Open
dfvips opened this issue Nov 29, 2024 · 0 comments
Open

Unsupported VVC/H.266 Format Decryption in Shaka Packager #1453

dfvips opened this issue Nov 29, 2024 · 0 comments

Comments

@dfvips
Copy link

dfvips commented Nov 29, 2024

System Info

Operating System: Windows 10 x64
Shaka Packager Version: Latest release

Issue and Steps to Reproduce the Problem

Packager Command:
packager-win-x64 --quiet --enable_raw_key_decryption input="vvc1.mp4",stream=0,output="vvc1.dec.mp4" --keys key_id=b130cf2734fa9725fe8f0fb83bee2e4a:key=8e8680e327573152942a6517a9a5d5ee

Steps to Reproduce

  1. Download the test video file from the provided link:vvc1.mp4
  2. Run the above command with a VVC1-encoded video file encrypted with Widevine keys.
  3. Observe the error in the logs.

Expected Result

Successful decryption and output of the decrypted vvc1.dec.mp4 file.

Actual Result

The decryption process fails, and the following errors are logged:

E1129 14:42:51.715521   23536 box_definitions.cc:1698] vvc1 is not supported.
E1129 14:42:51.720075   23536 box_reader.h:171] Failure while processing: child.Parse(&child_reader)
E1129 14:42:51.725786   23536 box_definitions.cc:658] Failure while processing: reader->ReadAllChildren(&video_entries)
E1129 14:42:51.733012   23536 box_reader.cc:99] Failure while processing: child->Parse(itr->second.get())
E1129 14:42:51.737830   23536 box_definitions.cc:1168] Failure while processing: ReadWriteHeaderInternal(buffer) && buffer->PrepareChildren() && buffer->ReadWriteChild(&description) && buffer->ReadWriteChild(&decoding_time_to_sample) && buffer->TryReadWriteChild(&composition_time_to_sample) && buffer->ReadWriteChild(&sample_to_chunk)
E1129 14:42:51.752956   23536 box_reader.cc:99] Failure while processing: child->Parse(itr->second.get())
E1129 14:42:51.758450   23536 box_definitions.cc:2357] Failure while processing: ReadWriteHeaderInternal(buffer) && buffer->PrepareChildren() && buffer->ReadWriteChild(&dinf) && buffer->ReadWriteChild(&sample_table)
E1129 14:42:51.770258   23536 box_reader.cc:99] Failure while processing: child->Parse(itr->second.get())
E1129 14:42:51.775854   23536 box_definitions.cc:2426] Failure while processing: buffer->ReadWriteChild(&information)
E1129 14:42:51.781026   23536 box_reader.cc:99] Failure while processing: child->Parse(itr->second.get())
E1129 14:42:51.785508   23536 box_definitions.cc:2448] Failure while processing: ReadWriteHeaderInternal(buffer) && buffer->PrepareChildren() && buffer->ReadWriteChild(&header) && buffer->ReadWriteChild(&media) && buffer->TryReadWriteChild(&edit) && buffer->TryReadWriteChild(&sample_encryption)
E1129 14:42:51.800805   23536 box_reader.h:149] Failure while processing: child_itr->Parse(itr->second.get())
E1129 14:42:51.806388   23536 box_reader.h:132] Failure while processing: TryReadChildren(children) && !children->empty()
E1129 14:42:51.811576   23536 box_definitions.cc:2547] Failure while processing: reader->ReadChildren(&tracks) && reader->TryReadChild(&extends) && reader->TryReadChildren(&pssh)
E1129 14:42:51.818793   23536 mp4_media_parser.cc:447] Failure while processing: moov_->Parse(reader)
E1129 14:42:51.824302   22096 packager_main.cc:629] Packaging Error: 8 (PARSER_FAILURE): Cannot parse media file vvc1.mp4

image

Test File

You can use the following test file to reproduce the issue:
vvc1.mp4

Additional Information

  1. The error log indicates that the vvc1 format is not supported in the current version of Shaka Packager.
  2. The test file and Widevine keys work successfully with FFmpeg and mp4decrypt, indicating that both tools currently support VVC1 decoding and decryption.
  3. This issue occurs specifically with VVC1 encoded media and Widevine decryption keys.

Request

Please advise if there are plans to add support for the vvc1 format in Shaka Packager or provide a workaround for this issue.

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

1 participant