ffplay RTSP listen mode with UDP

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

ffplay RTSP listen mode with UDP

Roee Kashi
Hi,

i'm trying to use RTSP to push video from client to server.
it works on TCP, but fails on UDP.

server side:
> ffplay.exe -rtsp_flags listen rtsp://0.0.0.0:14000/test

client side (TCP mode):
> ffmpeg.exe -re -i <file> -rtsp_flags prefer_tcp -f rtsp
rtsp://SERVER_IP:14000/test

cliend side (UDP mode):
> ffmpeg.exe -re -i <file> -f rtsp rtsp://SERVER_IP:14000/test


when I open the ffmpeg in the client side in TCP mode, everything works,
and i see the video stream in the server.
But when i open the ffmpeg in the client side in UDP mode, the server
writes an error:
"bind failed error number -10048" (already in use)

to try and investigate this problem a little bit, i set RTSP min port in
the server to 6001.
the result was the same, yet i could see (using netstat) ffplay listening
on 6001 in UDP (and still writes the same binding error).

seems like something in the RTSP reverse mode is not fully compatible with
UDP mode, and it tries to bind the same port twice.

is there a workaround to this matter?

tested with Zeranoe build 20180307-5ab0ecf

Roee.
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: ffplay RTSP listen mode with UDP

Roee Kashi
any lead on this issue?

2018-03-08 12:10 GMT+02:00 Roee Kashi <[hidden email]>:

> Hi,
>
> i'm trying to use RTSP to push video from client to server.
> it works on TCP, but fails on UDP.
>
> server side:
> > ffplay.exe -rtsp_flags listen rtsp://0.0.0.0:14000/test
>
> client side (TCP mode):
> > ffmpeg.exe -re -i <file> -rtsp_flags prefer_tcp -f rtsp
> rtsp://SERVER_IP:14000/test
>
> cliend side (UDP mode):
> > ffmpeg.exe -re -i <file> -f rtsp rtsp://SERVER_IP:14000/test
>
>
> when I open the ffmpeg in the client side in TCP mode, everything works,
> and i see the video stream in the server.
> But when i open the ffmpeg in the client side in UDP mode, the server
> writes an error:
> "bind failed error number -10048" (already in use)
>
> to try and investigate this problem a little bit, i set RTSP min port in
> the server to 6001.
> the result was the same, yet i could see (using netstat) ffplay listening
> on 6001 in UDP (and still writes the same binding error).
>
> seems like something in the RTSP reverse mode is not fully compatible with
> UDP mode, and it tries to bind the same port twice.
>
> is there a workaround to this matter?
>
> tested with Zeranoe build 20180307-5ab0ecf
>
> Roee.
>
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".