<div dir="ltr"><p style="margin:3px 0px 10px;padding:0px;border:0px;clear:both;box-sizing:border-box">I am trying to stream over TCP encoded video into a EC2 Instance. Using "x264enc" encoder, all works correctly. I get the frames and generate the video correctly.</p><p style="margin:3px 0px 10px;padding:0px;border:0px;clear:both;box-sizing:border-box">The issue comes when I try to use the "openh264enc" encoder.<br></p><p style="margin:3px 0px 10px;padding:0px;border:0px;clear:both;box-sizing:border-box">If I put in the server "nc -l -p 5555" I can check that data is arriving into the port but when I put the pipeline goes to PREROLLING state and nothing more happens. If I cut the process in the sender, this message appears in the server:<br></p><p style="margin:3px 0px 10px;padding:0px;border:0px;clear:both;box-sizing:border-box"><span class="gmail-Apple-tab-span" style="white-space:pre">     </span>ubuntu@ip-172-31-87-56:~$ gst-launch-1.0 -e -v tcpserversrc host=<a href="http://ec2-52-29-128-23.eu-central-1.compute.amazonaws.com">ec2-52-29-128-23.eu-central-1.compute.amazonaws.com</a> port=5555 ! h264parse ! mpegtsmux ! filesink location=file.ts<br></p><p style="margin:3px 0px 10px;padding:0px;border:0px;clear:both;box-sizing:border-box"><span class="gmail-Apple-tab-span" style="white-space:pre">  </span>Setting pipeline to PAUSED ...</p><p style="margin:3px 0px 10px;padding:0px;border:0px;clear:both;box-sizing:border-box"><span class="gmail-Apple-tab-span" style="white-space:pre">       </span>/GstPipeline:pipeline0/GstTCPServerSrc:tcpserversrc0: current-port = 5555</p><p style="margin:3px 0px 10px;padding:0px;border:0px;clear:both;box-sizing:border-box"><span class="gmail-Apple-tab-span" style="white-space:pre">    </span>Pipeline is PREROLLING ...</p><p style="margin:3px 0px 10px;padding:0px;border:0px;clear:both;box-sizing:border-box"><span class="gmail-Apple-tab-span" style="white-space:pre">   </span>ERROR: from element /GstPipeline:pipeline0/GstH264Parse:h264parse0: No valid frames found before end of stream</p><p style="margin:3px 0px 10px;padding:0px;border:0px;clear:both;box-sizing:border-box"><span class="gmail-Apple-tab-span" style="white-space:pre">       </span>Additional debug info:</p><p style="margin:3px 0px 10px;padding:0px;border:0px;clear:both;box-sizing:border-box"><span class="gmail-Apple-tab-span" style="white-space:pre">       </span>gstbaseparse.c(1281): gst_base_parse_sink_event_default (): /GstPipeline:pipeline0/GstH264Parse:h264parse0<span class="gmail-Apple-tab-span" style="white-space:pre">    </span></p><p style="margin:3px 0px 10px;padding:0px;border:0px;clear:both;box-sizing:border-box"><span class="gmail-Apple-tab-span" style="white-space:pre">     </span>ERROR: pipeline doesn't want to preroll.</p><p style="margin:3px 0px 10px;padding:0px;border:0px;clear:both;box-sizing:border-box"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>Setting pipeline to NULL ...</p><p style="margin:3px 0px 10px;padding:0px;border:0px;clear:both;box-sizing:border-box"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span>/GstPipeline:pipeline0/GstTCPServerSrc:tcpserversrc0: current-port = 0</p><p style="margin:3px 0px 10px;padding:0px;border:0px;clear:both;box-sizing:border-box"><span class="gmail-Apple-tab-span" style="white-space:pre">       </span>Freeing pipeline ...</p><p style="margin:3px 0px 10px;padding:0px;border:0px;clear:both;box-sizing:border-box"><br></p><p style="margin:3px 0px 10px;padding:0px;border:0px;clear:both;box-sizing:border-box">Pipeline used in the EC2 Instance, the server:<br></p><p style="margin:3px 0px 10px;padding:0px;border:0px;clear:both;box-sizing:border-box">    gst-launch-1.0 -e -v tcpserversrc host=<a href="http://ec2-52-29-128-23.eu-central-1.compute.amazonaws.com">ec2-52-29-128-23.eu-central-1.compute.amazonaws.com</a> port=5555 ! h264parse ! mpegtsmux ! filesink location=file.ts<br></p><p style="margin:3px 0px 10px;padding:0px;border:0px;clear:both;box-sizing:border-box">Sender pipeline with x264enc:<br></p><p style="margin:3px 0px 10px;padding:0px;border:0px;clear:both;box-sizing:border-box">    gst-launch-1.0 -e videotestsrc horizontal-speed=5 ! x264enc ! tcpclientsink port=5555 host=52.29.128.23<br></p><p style="margin:3px 0px 10px;padding:0px;border:0px;clear:both;box-sizing:border-box">Sender pipeline with openh264enc:<br></p><p style="margin:3px 0px 10px;padding:0px;border:0px;clear:both;box-sizing:border-box">    gst-launch-1.0 -e videotestsrc horizontal-speed=5 ! openh264enc ! tcpclientsink port=5555 host=52.29.128.23<br></p><p style="margin:3px 0px 10px;padding:0px;border:0px;clear:both;box-sizing:border-box"><br></p><p style="margin:3px 0px 10px;padding:0px;border:0px;clear:both;box-sizing:border-box">Why is this happening? how can I solve it?<br></p><p style="margin:3px 0px 10px;padding:0px;border:0px;font-size:15px;clear:both;box-sizing:border-box;color:rgb(36,39,41);font-family:arial,'helvetica neue',helvetica,sans-serif;line-height:19.5px"><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;line-height:normal"><br></span></p><p style="margin:3px 0px 10px;padding:0px;border:0px;font-size:15px;clear:both;box-sizing:border-box;color:rgb(36,39,41);font-family:arial,'helvetica neue',helvetica,sans-serif;line-height:19.5px"><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;line-height:normal">Andoni Galdos.</span><br></p>
</div>