How to play encrypted contents?

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
thekashyap
New Cone
New Cone
Posts: 2
Joined: 17 Feb 2016 16:56

How to play encrypted contents?

Postby thekashyap » 17 Feb 2016 17:44

I had an mp4 file, which I packaged and encrypted for Fairplay HLS using mp4split (from Unified Streaming) as described here: http://docs.unified-streaming.com/docum ... e-fairplay. I have the encryption key and iv used and I have the .ts segment files produced. Is there a way I can ask vlc to play this .ts file?

Original mp4 source:

Code: Select all

$ ffprobe 1_mezzanine.mp4 ffprobe version 2.8.4 Copyright (c) 2007-2015 the FFmpeg developers --- snip --- Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '1_mezzanine.mp4': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2avc1mp41 encoder : Lavf55.12.100 Duration: 00:00:47.36, start: 0.025057, bitrate: 1499 kb/s Stream #0:0(eng): Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p, 640x360 [SAR 1:1 DAR 16:9], 1239 kb/s, 29.97 fps, 29.97 tbr, 11988 tbn, 59.94 tbc (default) Metadata: handler_name : VideoHandler Stream #0:1(eng): Audio: mp3 (mp4a / 0x6134706D), 44100 Hz, stereo, s16p, 256 kb/s (default) Metadata: handler_name : SoundHandler $
Output produced by mp4split (there are 5 segments ("xxx_output_[0-4].ts"), in case you're wondering why the durations are different):

Code: Select all

$ ffprobe 365871954900004579_output_0.ts ffprobe version 2.8.4 Copyright (c) 2007-2015 the FFmpeg developers --- snip --- [h264 @ 0x7fdee2010c00] top block unavailable for requested intra mode at 23 0 [h264 @ 0x7fdee2010c00] error while decoding MB 23 0 [h264 @ 0x7fdee2010c00] concealing 920 DC, 920 AC, 920 MV errors in I frame [h264 @ 0x7fdee2010c00] ref 6 overflow [h264 @ 0x7fdee2010c00] error while decoding MB 18 0 [h264 @ 0x7fdee2010c00] concealing 920 DC, 920 AC, 920 MV errors in P frame [h264 @ 0x7fdee2010c00] ref 12 overflow [h264 @ 0x7fdee2010c00] error while decoding MB 13 1 [h264 @ 0x7fdee2010c00] concealing 916 DC, 916 AC, 916 MV errors in P frame [h264 @ 0x7fdee2010c00] ref 11 overflow [h264 @ 0x7fdee2010c00] error while decoding MB 34 5 [h264 @ 0x7fdee2010c00] concealing 735 DC, 735 AC, 735 MV errors in P frame [h264 @ 0x7fdee2010c00] out of range intra chroma pred mode at 25 0 [h264 @ 0x7fdee2010c00] error while decoding MB 25 0 [h264 @ 0x7fdee2010c00] concealing 920 DC, 920 AC, 920 MV errors in P frame Input #0, mpegts, from '365871954900004579_output_0.ts': Duration: 00:00:10.01, start: 10.000000, bitrate: 723 kb/s Program 16727 Stream #0:0[0x21]: Video: h264 (Constrained Baseline) ([219][0][0][0] / 0x00DB), yuv420p, 640x360 [SAR 1:1 DAR 16:9], 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc $
PS: Somehow the audio stream is missing from output .ts files. I'm trying to debug this.

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: How to play encrypted contents?

Postby Jean-Baptiste Kempf » 18 Feb 2016 14:47

It's a bit too vague, tbh. but HLS IV need to be played as streams, not as mono-TS files.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

thekashyap
New Cone
New Cone
Posts: 2
Joined: 17 Feb 2016 16:56

Re: How to play encrypted contents?

Postby thekashyap » 18 Feb 2016 15:34

Well, I do have the m3u8 manifest (and iframe only m3u8 manifest) generated along with the .ts segments.
Would that help?

I'm happy to DIY if you could point me to some documentation on "how to play my content as stream?" or "how to stream my content?"

Thanks !


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: No registered users and 146 guests