--sout-rtp-port-video and other port assignments not working
Posted: 11 May 2014 18:14
I'm trying to control the ports used by rtsp and rtp, but cannot. I use this command:
What I really want is port 8554 tcp for rtsp control, and port 8554 udp for rtp video, every time, for all connections. I tried setting different port variables to different ports in cvlc, and checking the port usage with 'netstat -nap', but clvc keeps assigning pairs of ports (audio + video) for each client connection, in the range of 30,000 to 60,000, rather than the ones I specified. clvc ignores all of the ports I specify except the first one.
I'm also having problems with video streams at 5 fps instead of 30 fps. I see 'ES_OUT_SET... is called too late', and 'ES_OUT_RESET_PCR_CALLED' messages. It's as if there are two slightly different time bases, one for video and one for clvc, that cause buffering problems. But why isn't clvc just wrapping the H264 video stream in RTP as the data is fed to cvlc from raspivid ?
What command string should I use to fix these problems ?
Thank you.
Code: Select all
raspivid -o - -t 0 -w 640 -h 480 -p 0,0,640,480 -b 0 -fps 5 | cvlc -vvv stream:///dev/stdin --noaudio --sout '#rtp{sdp=rtsp://:8554}' --sout-rtp-port=8555 --sout-rtp-port-video=8556 --sout-rtp-port-audio=0 --sout-rtp-rtcp-mux --rtcp-port=8557 --h264-fps=5.0 :demux=h264
I'm also having problems with video streams at 5 fps instead of 30 fps. I see 'ES_OUT_SET... is called too late', and 'ES_OUT_RESET_PCR_CALLED' messages. It's as if there are two slightly different time bases, one for video and one for clvc, that cause buffering problems. But why isn't clvc just wrapping the H264 video stream in RTP as the data is fed to cvlc from raspivid ?
What command string should I use to fix these problems ?
Thank you.