Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>To answer your question if this is possible... YES it is BUT it's tricky. I can't answer all your points, only the part with streaming in VLC and displaying it in HTML5</p> <p>You'll need a certain environment setup for this to work (Segmenter and correct MIME Type on server). I assume you are all on linux; which I am not (Mac OS / unix) but the principles behind it stay the same concerning the workflow of getting this to work. I'll try to explain - hope this helps in any way.</p> <p>The setup I've had success with works the following way: </p> <p>(1) STREAMING &amp; RECORDING</p> <p>local vlc streaming instance streaming audio and video -> producing a mpegts stream. Try changing your command to something like</p> <pre><code>vlc v4l2:// :v4l2-dev=/dev/video0 :v4l2-width=640 :v4l2-height=480 --sout "#transcode{vcodec=mpeg4,acodec=mpga,vb=800,ab=128}:standard{access=udp, mux=ts, sap, name=live-video, dst=224.0.0.1, port=1234}" </code></pre> <p>or</p> <pre><code>vlc v4l2:// :v4l2-dev=/dev/video0 :v4l2-width=640 :v4l2-height=480 --sout "#transcode{vcodec=mpeg4,acodec=mpga,vb=800,ab=128}:udp{dst=224.0.0.1,port=1234,mux=ts}" </code></pre> <p>I'm just giving you ported commands here which work on Mac. I don't know if they work on linux. Now you should be able to play the live stream with VLC by accessing the SAP announcement or directly with</p> <pre><code>vlc -vvv udp://@224.0.0.1:1234 </code></pre> <p>You could then use another vlc instance to record the stream</p> <pre><code>vlc udp://@224.0.0.1:1234 --sout "#transcode{vcodec=mpeg4,acodec=mpga,vb=800,ab=128}:standard{access=file,dst=capture_4.avi}" </code></pre> <p>There is a duplicate command in VLC which I have been playing around with but without success. This way you could stream and record with one instance. Maybe this works on linux.</p> <p>(2) SEGMENTING</p> <p>mediastreamsegmenter to segment your mpegts stream into deliverable segments. I'm using Apple Server Software. Apple provides you with a mediastreamsegemnter which can take a live mpegts stream and convert it into segments which are added to a playlist. I don't know of a live segmenter in linux. Maybe someone else does.</p> <p>(3) DELIVERY</p> <p>html 5 page linking to the video playlist containing the segments. The mediastreamsegmenter will produce a playlist playlist.m3u8, which then can be accessed with HTML 5</p> <pre><code>&lt;video width="640" height="480"&gt; &lt;source src="YOUR_PATH/playlist.m3u8" /&gt; &lt;/video&gt; </code></pre> <hr> <p>Some helpful tutorials concerning this topic are:</p> <p><a href="http://blog.niamu.com/1080p-video-on-the-ipad-sort-of/" rel="noreferrer">Info on the setup and basic commands</a></p> <p><a href="http://www.unmht.org/memo/en_ipod_stream.html" rel="noreferrer">VLC examples in order to stream</a></p> <p>I know this is not a complete solution to your problem, but this will maybe give you some nice starting points to look into. </p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload