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

Belitskiy Gennadiy Aleksandrovich bgal at tehnologia.com
Tue Aug 16 01:30:02 PDT 2016


>> $ openRTSP -K -b 1000000 -4 -P 15
>> >-c -t -v -F ./testrtsp://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!”
>
exposure of these parameters does not affect the result

>> >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.

Mplaer playing these files, but you can see the error console, so I gave 
an example. I need it in a webbrowser. I had not had a problem since 
firefox gstreamer used,but the default is now used ffmpeg and I stopped 
working video in the web application.

>
>
>> >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.

openRTSP -K -b 1000000 -4 -w 1920 -h 1080 -f 15 -P 15 -c -v  -F ./test_udp rtsp://10.0.1.249/11
https://cloud.mail.ru/public/Ei7k/xLzoT8Z4W

openRTSP -K -b 1000000 -4 -w 1920 -h 1080 -f 15 -P 15 -c -t -v  -F ./test_tcp rtsp://10.0.1.249/11
https://cloud.mail.ru/public/9QbE/Tn4sEFnHP




More information about the live-devel mailing list