<div dir="ltr"><div><div><div><div>Hi Dimitri.<br><br></div>You can't select an arbitrary low bitrate and expect a good result.<br><br></div>First you remove ALL your x264enc settings and just add the following: "tune=zerolatency bitrate=3000". Then you verify your result visibly with both GStreamer and VLC. If you have a poor result there, then something is wrong. If you have good result, then test it with flashplayer or whatever your target is. Now if you still have a good result, then you can start tuning ONE parameter at a time. Start lowering the bitrate until the result deteriorates. Then enable/disables parameters that will allowx264enc to do better. It is assumed you know what the parameters do. Try also to think about which profiles (main, high etc) the player supports. Then also think about which levels the player supports. Look at the wikipedia entry for H.264 for profiles and levels for a starter. Hopefully your player supports both High Profile and B-frames.<br>
<br></div>Best regards<br></div>Peter<br><div><div><br><br></div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Aug 1, 2014 at 4:02 PM, dmitrijs2005 <span dir="ltr"><<a href="mailto:dmitrijs2005@gmail.com" target="_blank">dmitrijs2005@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Peter, thanks for your suggestion, I'll record a file a bit later.<br>
<br>
Now, we got new issues:<br>
1. When we specify the bitrate in option-string only, looks like gstreamer<br>
just ignores this setting and bitrate grows up to a value over 2Mbps<br>
2. Picture "freezes" sometimes for couple of seconds (slideshow)<br>
3. When watching vdeo from our website using Flash Player, the sound always<br>
starts first, then, after some seconds (sometimes even about 10 seconds),<br>
video begins<br>
<br>
The command now looks like that:<br>
<div class=""><br>
gst-launch-1.0 -e \<br>
mpegtsmux alignment=7 name=mux ! \<br>
rndbuffersize max=1316 min=1316 ! \<br>
udpsink host=127.0.0.1 port=5000 sync=false \<br>
decklinksrc mode=10 name=src \<br>
src. ! audio/x-raw ! queue !  audioconvert ! \<br>
voaacenc bitrate=128 ! aacparse ! mux. \<br>
src. -v ! deinterlace ! videoconvert ! videorate ! videoconvert ! videoscale<br>
! videoconvert ! video/x-raw, format=\(string\)I420, framerate=25/1,<br>
</div>width=656, height=368 ! aspectratiocrop aspect-ratio=16/9 ! queue !<br>
videoconvert ! \<br>
x264enc bitrate=872 tune=zerolatency<br>
option-string="me=umh:direct=auto:keyint=25:scenecut=0:bitrate=872:vbv-maxrate=872"<br>
! h264parse ! mux.<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://gstreamer-devel.966125.n4.nabble.com/Encoding-and-streaming-video-audio-to-UDP-tp4668052p4668140.html" target="_blank">http://gstreamer-devel.966125.n4.nabble.com/Encoding-and-streaming-video-audio-to-UDP-tp4668052p4668140.html</a><br>

<div class="HOEnZb"><div class="h5">Sent from the GStreamer-devel mailing list archive at Nabble.com.<br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
</div></div></blockquote></div><br></div>