I'm trying to make a stream from my application to an other application. I'm using ffmpeg with libx264, output: rtp://<myserver>:6970/ . I connect with ffmpeg to rtsp://<myserver>:1935/live/ms.sdp . I've done the instruction:
The streaming is working, but sometimes it stick for a while. I think this is a network problem. I need all of the frames lossless.
My first idea was a bigger buffer, but maybe the frame vanish before it arrives to the server.
Can I do somehow to work all of the communication over TCP, and not UDP?
Use of ?tcp should force the FFmpeg RTSP code to use TCP. I use this switch with FFmpeg all the time. Make sure that '?' does not have any special meaning in the shell environment you are using. If it does then wrap your URL in quotes.