[Live-devel] Fwd: Recording rtsp over tcp, file is corrupt.

Ross Finlayson finlayson at live555.com
Thu Aug 11 02:12:49 PDT 2016


> $ openRTSP -K -b 1000000 -4 -P 15
> -c -t -v -F ./test rtsp://192.168.0.7/live/ch00_0
> Warning: The -q, -4 or -i option was used, but not -w.  Assuming a video
> width of 240 pixels
> Warning: The -q, -4 or -i option was used, but not -h.  Assuming a video
> height of 180 pixels
> Warning: The -q, -4 or -i option was used, but not -f.  Assuming a video
> frame rate of 15 frames-per-second

So, is your video really 240x180 pixels, with a frame rate of 15 fps?  If not, then you should really include the "-w <width>", "-h <height>" and "-f <frame-rate>” options.  As I noted in the “openRTSP” online documentation: "These values are important; if they are not correct, your file might not play at all!”


> If you open in Firefox, then error message "Video can't be played
> because the file is corrupt". If you open in Chromium, then not playing.

I suggest trying VLC.  It tends to be more forgiving than most other media players.


> But if you record over UDP, then all is well.

That’s odd.  If anything, I would have expected the reverse.  Sorry, but right now I don’t know what could be wrong.

But if you’re still seeing problems, then I suggest putting one of these bad “.mp4” files online (along with one of the good “.mp4” files that you received via UDP), and send us the URLs, so we can download and check them ourself.


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





More information about the live-devel mailing list