HOWTO: HTTP Live Streaming with VLC-Shares

Home Forums Third Party Enhancements VLC Shares HOWTO: HTTP Live Streaming with VLC-Shares

  • This topic is empty.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #23586
    spidey616
    Participant

    I managed to get HTTP Live Streaming working to my Asus eee Transformer using VLC-Shares and I wanted to share the process.

    Step One: Install and configure VLC-Shares 5.4 according to instructions.

    Step Two: Install a VLC nightly build that supports HTTP Live Streaming. I used vlc-1.2.0-git-20110429-0243-win32.exe.

    Step Three: Configure Apache to support the necessary MIME-Types. Add the following lines to the section of your httpd.conf:

    AddType application/x-mpegURL .m3u8
    AddType video/MP2T .ts


    Step Four: Add an appropriate Transcoding Profile to VLC-Shares. Mine is listed below:

    Label: Android Tablet (Live HTTP)
    VLC Params:

    transcode{vcodec=h264,venc=x264{aud,profile=baseline,level=31,keyint=30,bframes=3,ref=3,no-cabac},width=640,vb=800,acodec=mp4a,ab=64,channels=2}


    Step Five: Create a folder named segments under your WWW root.

    Step Six: Add a new Output to VLC-Shares. Mine is listed below:
    (Replacing c:\www root with the path to the root of your web site.

    Label: HTTP Live Streaming
    Stream Source: http://{%SERVER_NAME%}/stream.m3u8
    VLC Argument:

    std{access=livehttp{seglen=10,delsegs=false,numsegs=0,index=c:\www root\stream.m3u8,index-url=segments/segment-########.ts},mux=ts{use-key-frames},dst=c:\www root\segments\segment-########.ts}

    This solution isn’t perfect as it doesn’t clean up after itself (segment-######.ts files remain) and you can’t run multiple streams at the same time (stream.m3u8 file and segment-######.ts files would be overwritten by subsequent streams). It does, however, work and I am able to stream high quality video to the native movie app in my Android 3.0 (Honeycomb) Asus eee Transformer. Additionally, using an app called Mirage Beta I have even been able to use this same technique to get HLS working on my Android 2.2 (Froyo) HTC EVO.

    #29032
    zany130
    Participant

    Well done!

    #29033
    spidey616
    Participant

    Thanks ximarx! Maybe HLS could be a built-in feature of an upcoming release of VLC-Shares.

    On a side note, I have run into what I think is a bug in Android 3.0 (or possibly my Asus eee Transformer) that is harshing my HLS buzz. If anyone else could confirm this bug on another Android 3.0 device that would be helpful.

    #29034
    zany130
    Participant

    @iolaus wrote:

    Thanks ximarx! Maybe HLS could be a built-in feature of an upcoming release of VLC-Shares.

    On a side note, I have run into what I think is a bug in Android 3.0 (or possibly my Asus eee Transformer) that is harshing my HLS buzz. If anyone else could confirm this bug on another Android 3.0 device that would be helpful.

    When a stable version of VLC with support for HTTP live streaming comes out, I will add it. Now, only git version of 1.2 has it, right?

    #29035
    jesusuckdmeoff
    Participant

    Great write up iolaus! I started looking for a streaming video server after I bought a Transformer last week and just installed VLC-Share the other day. Your instruction were exactly what I needed to get it working and your Transcoding and Transmission profiles are great. I would have stumbled along for a long time had you not taken the time to write that up so thanks.

    My only problem is routing from the internet. I have another server using port 80 so had to change the VLC port. I can navigate all the way to ‘Go to Stream’ and then I get a Webpage not available message. I’m guessing it has to do with my custom port interferring with the streaming port. It works great inside my network so I’ve got some more searching to do.

    Anyway, thanks again for writing that up for the noobs in the crowd!

    #29036
    spidey616
    Participant

    @ximarx wrote:

    @iolaus wrote:

    Thanks ximarx! Maybe HLS could be a built-in feature of an upcoming release of VLC-Shares.

    On a side note, I have run into what I think is a bug in Android 3.0 (or possibly my Asus eee Transformer) that is harshing my HLS buzz. If anyone else could confirm this bug on another Android 3.0 device that would be helpful.

    When a stable version of VLC with support for HTTP live streaming comes out, I will add it. Now, only git version of 1.2 has it, right?

    I believe you’re right that HLS is only available in recent git builds at the moment. I look forward to it being released and incorporated into VLC-shares.

    #29037
    spidey616
    Participant

    @whiskeycoke wrote:

    Great write up iolaus! I started looking for a streaming video server after I bought a Transformer last week and just installed VLC-Share the other day. Your instruction were exactly what I needed to get it working and your Transcoding and Transmission profiles are great. I would have stumbled along for a long time had you not taken the time to write that up so thanks.

    My only problem is routing from the internet. I have another server using port 80 so had to change the VLC port. I can navigate all the way to ‘Go to Stream’ and then I get a Webpage not available message. I’m guessing it has to do with my custom port interferring with the streaming port. It works great inside my network so I’ve got some more searching to do.

    Anyway, thanks again for writing that up for the noobs in the crowd!

    whiskeycoke, I’m very happy to hear that you were able to get streaming working using the tutorial. If you get the chance, please check out the Android bug link I posted above and let me know if you experience the same issue.

Viewing 7 posts - 1 through 7 (of 7 total)
  • The forum ‘VLC Shares’ is closed to new topics and replies.

Login

Lost Password