[Libav-user] RTSP stream only received on port 554 via UDP

Andy Shaules bowljoman at gmail.com
Wed Oct 15 07:44:39 CEST 2014


On 10/14/2014 6:59 AM, Ben Morris wrote:
>
> Hello,
>
> I am running an RTSP server using Live555 and receiving the stream 
> using ffmpeg. The exact ffmpeg version is the Zeranoe build from 
> September 13^th 2014.
>
> Everything runs as expected on localhost but when connecting to the 
> server from a remote machine, the connection will fail when using UDP. 
> The only port that it will work on is 554, which is the default RTSP 
> port. Any other port will timeout. This has also been tested in ffplay 
> where it will move over to a TCP connection and successfully establish 
> the connection. However, I do not wish to use TCP for my video stream 
> as it is a live feed.
>
> The necessary ports have been forwarded on my router (554-564) and 
> UPnP is enabled. Futhermore, when using the Live555 test RTSP clients, 
> the connection is established instantly when using any port, although 
> I cannot find out if the connection is over UDP or TCP.
>
> Is there a known issue with only being able to use certain ports for 
> RTSP? The timeout is happening in avformat_open_input() where I am 
> passing in a pre-allocated context set up with a callback to handle 
> the timeout and the format information is being guessed from the url. 
> The call is as so:
>
> AVDictionary* opts = NULL;
>
> if(avformat_open_input(&m_formatCtx, url, NULL, &opts) != 0)
>
> returnfalse;
>
> The RTSP stream url is in the form:
>
> rtsp://79.108.232.252:560/h264_Stream
>
> Any information or advice would be greatly appreciated.
>
> Thanks,
>
> Ben Morris
>
> *Jet Stone Studios*
>
>
>
> _______________________________________________
> Libav-user mailing list
> Libav-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/libav-user
We use rtsp over port 8554, so I dont think so.

If you are behind a firewall or NAT, then the UDP packets must be forwarded.

We use TCP with great success for low latency live streaming.

Andy



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://ffmpeg.org/pipermail/libav-user/attachments/20141014/98b4cc03/attachment.html>


More information about the Libav-user mailing list