Note that there are some explanatory texts on larger screens.

plurals
  1. POUsing Gstreamer to serve RTSP stream, working example sought
    primarykey
    data
    text
    <p>We are trying to get Gstreamer working on a DM368 Leopardboard*, we've successfully persuaded it to create a test video (videotestsrc), encode it, and dump it into a file.</p> <p>The pipe that worked is:</p> <pre><code>gst-launch -v videotestsrc num-buffers=100 ! queue ! ffenc_mpeg4 bitrate=800000 ! ffmux_mp4 ! filesink location=video_test.mp4 </code></pre> <p>The next step is to modify the pipe to stream the testcard over the network, to be viewed on a PC with VLC using something like <strong>rtsp://ip_addr:port/streamname</strong> but the documentation on how to do this seems quite thin on the ground (and often outdated), and the examples seem to blur source code and command line ways of doing it.</p> <p>I'll freely admit that >50% of the problem is our lack of familiarity with Gstreamer &amp; its various parts, I've always found that if I have a working example to start from I can poke it with sticks and work out the rest from there.</p> <p>I've got this far:</p> <pre><code>gst-launch -v videotestsrc ! queue ! ffenc_mpeg4 bitrate=800000 ! rtpmp4vpay ! tcpserversink host=&lt;PC_ip&gt; port=5000 </code></pre> <p>Which seems to make <em>something</em> happen in VLC (using <strong>tcp://board_ip:port</strong>)- it seems to think there's something going on (doesn't throw an error) but doesn't play/show anything. When I break (^C) the gst process, VLC notices.</p> <p>So, basically - any guidance/feedback would be great, a working one-liner would be fantastic.</p> <p><em>Edited to add:</em> Yes I see the test_video.c example, but that's compiling a special program to do something which looks like it should be possible to just invoke from the command line to prove the concept.</p> <pre><code>* = Linux version 2.6.32-17-ridgerun /CPU: ARM926EJ-S </code></pre>
    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.
 

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