<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On 23 September 2016 at 09:27, Simon Brown <span dir="ltr"><<a href="mailto:simon.k.brown@gmail.com" target="_blank">simon.k.brown@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi,<div>I'm trying to serve a transport stream generated by hardware out on as an RTP stream.  Is there an example I can use to help me do this?  I've been looking through ffserver.c but that is much more complicated than I need, and seems to be largely aimed at serving files out.</div><div><br></div><div>Cheers,</div><div>Simon</div></div></blockquote><div> </div></div>Ok, I've taken a step back.<div>If I type:</div><div>ffplay -i tcp://localhost:60010?listen</div><div>in one window, and</div><div>ffmpeg -i INPUT -f mpegts tcp://localhost:60010</div><div><br></div><div>my video plays.</div><div><br></div><div>For my use though, I don't want to wade through ffmpeg.c to find what it's doing, and wanted a much simpler example that isn't transcoding, but just transmitting a ready made transport stream.  I found in the examples directory "http_multiclient.c" and thought this would do for me, at least as a starting point.</div><div>My problem is that if I start ffplay with "?listen" first, then http_multiclient won't connect, yet if I start http_multiclient first it says "Client not accepted" and aborts.</div><div>My http_multiclient command line is:</div><div>./http_multiclient ts_file tcp://localhost:60010</div><div><br></div><div>It seems that http_multiclient is trying to listen on the server socket, but not avio_accept is returning immediately with a "client not accepted".  How can I make this work?</div><div><br></div><div>Regards,</div><div>Simon</div></div></div>