gpac / gpac

GPAC Ultramedia OSS for Video Streaming & Next-Gen Multimedia Transcoding, Packaging & Delivery
https://gpac.io
GNU Lesser General Public License v2.1
2.76k stars 532 forks source link

Problem with encoding audio with mp4Box #583

Closed mohitYogi closed 8 years ago

mohitYogi commented 8 years ago

I was trying to encrypt this video named "oggy.mp4". For this purpose,

rbouqueau commented 8 years ago

This procedure is known to work: https://html5.cablelabs.com/mse-eme/doc/creation.html

Does it allow you to cover your use-case? Can you reproduce with it?

mohitYogi commented 8 years ago

@rbouqueau I have followed the procedure, created the the dashinit files, but there is an error in encoding audio. Kindly re-read the information I stated previously.

rbouqueau commented 8 years ago

The procedure is clear, but what are you trying to achieve? Which command-lines did you execute, with which tools, which versions, on which platform? At this point I don't know how I can help you.

If you have an issue with Chrome for playback or the CableLabs encoding, you might also consider creating issues on these tools bugtrackers.

mohitYogi commented 8 years ago

@rbouqueau I have used mp4box, in command line mode, on win7-32bit. I am trying to create a Shaka Player compatible encrypted video, in which audio is unencrypted, and video is encrypted using this file attached.But the audio is not properly encoded.

command lines I used is: MP4Box -raw 1 oggy.mp4 MP4Box -raw 2 oggy.mp4 MP4Box -add oggy_track1.h264 -new oggy_video.mp4 mp4box -add oggy_track2.aac -new oggy_audio.mp4 MP4Box -crypt oggy-encoder.xml oggy_video.mp4 -out oggy_encrypt_video.mp4 MP4Box -dash 5000 -out manifestOggy.mpd oggy_audio.mp4 oggy_encrypt_video.mp4

encodingFile.txt

rbouqueau commented 8 years ago

What encrytion does Shaka support? What did you test in that perspective (i.e. how did you generate your GPAC xml)?

mohitYogi commented 8 years ago

It supports clearkey. But it not an issue of shaka player. I have tested the generated audio_dshinit.mp4 file in OSMO4 player provided with package of mp4box, it is also not able to play it.

mohitYogi commented 8 years ago

Firstly I thought that it is an error of Shaka player, for that I created an issue at, https://github.com/google/shaka-player/issues/417. you can check the discussion.

rbouqueau commented 8 years ago

W3C Clearkey is not implemented in GPAC: https://github.com/gpac/gpac/issues/239

rbouqueau commented 8 years ago

A link to see what DRM scheme is supported by your browser: http://www.radiantmedialyzer.net/

fastfading commented 3 years ago

the same here oggy_video.mp4 contain both audio and video MP4Box -crypt oggy-encoder.xml oggy_video.mp4 -out oggy_encrypt_video.mp4 MP4Box -dash 5000 -out manifestOggy.mpd oggy_encrypt_video.mp4 only video encrypted, audio not