On this video clip I stream reside Tv set from a SiliconDust HDHomeRun Delay to a web browser utilizing ffmpeg. The film is served using nginx web browser established up on Ubuntu linux.

SiliconDust HDHomeRun Prolong: https://amzn.to/2WmlDgo (amazon affiliate)

hls.js website online:
https://github.com/movie-dev/hls.js/blob/grasp/docs/API.md

stream.sh script:
#!/bin/bash
VIDSOURCE=”http://ip-tackle-of-hdhomerun:5004/car/v11.1?transcode=web240″
AUDIO_OPTS=”-c:a aac -b:a 160000 -ac 2″
Movie_OPTS=”-vcodec copy”
OUTPUT_HLS=”-hls_time 10 -hls_listing_dimensions 10 -start off_amount 1″
ffmpeg -i “$VIDSOURCE” -y $AUDIO_OPTS $Video clip_OPTS $OUTPUT_HLS mystream.m3u8

It is best to adjust to me!
https://twitter.com/rickmakes
https://www.instagram.com/rickmakes/

Pay a go to to my Amazon Storefront!
http://www.amazon.com/shop/rickmakes

#ffmpeg

resource

3 thoughts on “Streaming Reside Television from a HDHomerun to a Web Browser using FFmpeg”

  1. <!DOCTYPE html>
    <html><head><title>Live Cam</title></head>

    <script src="https://cdn.jsdelivr.net/npm/[email protected]"></script&gt;

    <body>
    <!– Use this if you only support Safari!!
    <div id="player">
    <video id="video" autoplay="true" controls="controls">
    <source src="http://ip-address-of-web-server/live/mystream.m3u8&quot; />
    Your browser does not support HTML5 streaming!
    </video>
    </div>
    –>
    <video id="video" autoplay="true" controls="controls"></video>
    <script>
    if (Hls.isSupported()) {
    var video = document.getElementById('video');
    var hls = new Hls();
    // bind them together
    hls.attachMedia(video);
    hls.on(Hls.Events.MEDIA_ATTACHED, function () {
    console.log("video and hls.js are now bound together !");
    hls.loadSource("http://<ip-address-of-web-server>/live/mystream.m3u8&quot;);
    hls.on(Hls.Events.MANIFEST_PARSED, function (event, data) {
    console.log("manifest loaded, found " + data.levels.length + " quality level");
    });
    });
    }
    </script>

    </body>
    </html>

  2. Hey thanks for the video. I subscribed. Question. Do you have any videos about tunneling rtsp over http with ffmpeg? i have a similar system to what to you just showe running… but i have to use port forwarding… i need to tunnel over http so i can get it outside without port forwarding. Any info? Thanks again.

  3. Hu, thx for you video. It's got me very interested in getting one of those box. My question is, if you can view it in your web browser, can you only view it on your network or could you also view it from anywhere outside your network?

Leave a Reply

Your email address will not be published. Required fields are marked *