Note that there are some explanatory texts on larger screens.

plurals
  1. POUsing udpsink to stream h264 with gstreamer ( c++ )
    primarykey
    data
    text
    <p>I'm trying to stream h264 video over the network using gstreamer ( in windows ) over UDP. First if I use a pipeline like this, everything appears to be ok, and I see the test pattern:</p> <p>videotestsrc, ffmpegcolorspace, x264enc, rtph264pay, rtph264depay, ffdec_h264, ffmpegcolorspace, autovideosink</p> <p>Now I decided to divide this pipeline in client and server parts, transmitting the stream over udp using udpsink and udpsrc.</p> <pre><code>Server: videotestsrc, ffmpegcolorspace, x264enc, rtph264pay, udpsink Client: udpsrc, rtph264depay, ffdec_h264, ffmpegcolorspace, autovideosink </code></pre> <p>On server I use something like that:</p> <pre><code>source = gst_element_factory_make ("videotestsrc", "source"); ffmpegcolortoYUV = gst_element_factory_make ("ffmpegcolorspace", "ffmpegcolortoYUV"); encoder = gst_element_factory_make ("x264enc", "encoder"); rtppay = gst_element_factory_make ("rtph264pay", "rtppay"); udpsink = gst_element_factory_make ("udpsink", "sink"); g_object_set (source, "pattern", 0, NULL); g_object_set( udpsink, "host", "127.0.0.1", NULL ); g_object_set( udpsink, "port", 5555, NULL ); </code></pre> <p>Then I add the elements to the pipeline and run, there are no errors anywhere. Now if I look for UDP port 5555, it's not listening!!!!</p> <p>The client part also runs but if there is no UDP port listening on server side it won't work.</p> <p>EDIT: In fact I was very close to the solution... If I start the client it works, but with some problems on the visualization... I think the problem is the x264enc configuration. Anybody knows how to change x264enc parameters like speed-preset or tune??? I tried to instantiate GstX264EncPreset or GstX264EncTune but I have no the declarations of these strcutures. Anybody knows any way to setup x264enc in other way, like parsing a string or something like that?</p>
    singulars
    1. This table or related slice is empty.
    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. 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