[Live-devel] openRTSP: Empty output file

Ross Finlayson finlayson at live555.com
Tue May 16 09:39:51 PDT 2017


> I'm attempting to use testH264VideoStreamer to stream the output of my RPi's camera to a LAN, and to receive/open the stream with openRTSP. I've done this successfully using a raw h264 file as the source for testH264VideoStreamer, however when I attempt to use the output of the Pi's camera as the source (By modifying testH264VideoStreamer to read from /dev/video0 or stdin, as suggested in the FAQ), openRTSP connects to the stream successfully and appears to be playing the stream, but the output file is always empty. 
> 
> I read the FAQ and saw that the usual culprit for this is a firewall blocking UDP packets.

Julian,

If you are able to run “testH264VideoStreamer” streaming from a raw H.264 source file, and successfully receive the data using “openRTSP”, then a firewall would not be the problem causing to you to not receive data when you switch to running “testH264VideoStreamer” streaming from stdin.

(Note that “testH264VideoStreamer” streams using IP multicast, which means that it usually does not stream beyond a single LAN.  However, because you already received the data (when streaming from a raw H.264 source file), that is not an issue.)

If the only thing that you changed was the input source for your H.264 data, then the problem must be that input source.  You can test this by running
	cat /dev/video0 > test.264
for a few seconds, then typing <control>-c
Do you get a valid (non-empty) H.264 video file?  Are you able to successfully use *this* file as a source for streaming from “testH264VideoStreamer” (as you did before)?


Ross Finlayson
Live Networks, Inc.
http://www.live555.com/




More information about the live-devel mailing list