Results 1 to 3 of 3

Thread: m3u8 dynamic url

  1. #1
    Join Date
    Jun 2012

    Default m3u8 dynamic url

    I followed
    Now i can see the m3u8 is encrypted
    I pasted into video.php the sample php code
    Now the question is how do i play the video in vlc or some player to test it
    I tried http://ip/video.php?keyid="key" but it doesnt play .
    I am sure i am doing it wrong . How do i pass the http://ip:1395/vid/video/playlist.m3u8 as a parameter to be played.
    Without keys and encryption this format is working fine.
    If i run the php file and open the m3u8 it is showing some ascii code...
    I saw how to test encrypted feed which only asks us to view content of m3u8 file. I want to play it .
    I pasted the gen key in the key folder and in the php also.It is a live feed and i need in m3u8 format
    Last edited by cochin007; 04-18-2013 at 02:52 PM.

  2. #2
    Join Date
    Dec 2007


    HLS support in VLC is fairly new. It might not support AES encryption, from your report it sounds like it doesn't


  3. #3
    Join Date
    Jun 2012


    any thing like ffmpeg or any tool to check it ?
    Am i doing it correctly rich?
    what is the url for playing the file in any player eg Apple once it is encrypted?
    How do i create the code.. Pasting the php is enough or it is just part



    function hex2bin($h)
    if (!is_string($h))
    return null;
    $r = '';
    for ($a=0;$a<strlen($h);$a+=2)
    $r .= chr(hexdec($h{$a}.$h{($a+1)}));
    return $r;

    $isValid = true;
    if (! $isValid)
    header('HTTP/1.0 403 Forbidden');
    header('Content-Type: binary/octet-stream');
    header('Pragma: no-cache');

    echo hex2bin('52FBBFB8916D7E1247B45A968F1DE62A');

    exit(); // this is needed to ensure cr/lf is not added to output


    how does the php know what to play. I am not getting the gist out of this?
    Last edited by cochin007; 04-19-2013 at 05:10 AM.

Similar Threads

  1. How to get proper M3U8 URL for live RTSP stream
    By corwin in forum Live Streaming and Encoder Discussion
    Replies: 6
    Last Post: 11-17-2013, 09:30 AM
  2. Wrong url in playlist.m3u8 wowza 2
    By RomanV in forum General Forum
    Replies: 1
    Last Post: 09-10-2012, 04:25 AM
  3. URL missing - playlst.m3u8 - VLC
    By tharanga in forum General Forum
    Replies: 6
    Last Post: 04-01-2012, 07:16 PM
  4. M3U8 filename in HLS URL
    By IrwanBD in forum Tutorials Discussion
    Replies: 2
    Last Post: 01-30-2012, 08:45 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts