Page 1 of 1

VLC and RTSP (a imperfect marriage??? :) )

Posted: 04 Dec 2009 01:06
by r_ruivo
Hello,
Can anyone explain why I get this error when trying to run a transcode from a RTSP stream obtained from an IP camera?

vlc -vvv --color --noaudio rtsp://192.168.0.101/live2.sdp --sout '#duplicate{dst="transcode{vcodec=DIV3,vb=256,scale=0.66}:standard{access=mmsh,mux=asfh,dst=:8004/CAM}"}'

[00000444] stream_out_transcode stream out debug: late picture skipped (1173982)
[00000444] stream_out_transcode stream out debug: late picture skipped (1178688)
[00000444] stream_out_transcode stream out debug: late picture skipped (123913)
[00000444] stream_out_transcode stream out debug: late picture skipped (1131757)
[00000444] stream_out_transcode stream out debug: late picture skipped (1147197)
[00000444] stream_out_transcode stream out debug: late picture skipped (94366)
[00000444] stream_out_transcode stream out debug: late picture skipped (1099627)
[00000444] stream_out_transcode stream out debug: late picture skipped (1109187)
[00000444] stream_out_transcode stream out debug: late picture skipped (63453)
[00000444] stream_out_transcode stream out debug: late picture skipped (1075883)
[00000444] stream_out_transcode stream out debug: late picture skipped (1087900)
[00000444] stream_out_transcode stream out debug: late picture skipped (44593)
[00000444] stream_out_transcode stream out debug: late picture skipped (1058242)
[00000444] stream_out_transcode stream out debug: late picture skipped (1075047)
[00000444] stream_out_transcode stream out debug: late picture skipped (33932)
[00000444] stream_out_transcode stream out debug: late picture skipped (1046506)
[00000444] stream_out_transcode stream out debug: late picture skipped (1060192)
[00000444] stream_out_transcode stream out debug: late picture skipped (20706)

Re: VLC and RTSP (a imperfect marriage??? :) )

Posted: 05 Dec 2009 09:29
by RĂ©mi Denis-Courmont
Your CPU is too slow at least in some spikes. You can try to increase caching, but that will increase latency, to smoothen transcoding.

Re: VLC and RTSP (a imperfect marriage??? :) )

Posted: 07 Dec 2009 23:23
by r_ruivo
Hello, first of all my thanks for the quick response.

I've tried the following:

vlc -vvv --color --noaudio rtsp://192.168.0.101/live2.sdp --rtsp-caching=3500 --sout '#duplicate{dst="transcode{vcodec=DIV3,vb=256,scale=0.66}:standard{access=mmsh,mux=asfh,dst=:8004/CAM}"}'

Although no longer get the previous error, still unable to open the MMS stream. VLC (client on Windows XP) gives the following error message: Unable to fill the buffer

Best regard
Ricardo Ruivo

Re: VLC and RTSP (a imperfect marriage??? :) )

Posted: 08 Dec 2009 19:52
by r_ruivo
Hello I just experience the same configuration of VLC on a machine much more powerful (Core 2 Duo T8300 2.4GHz) but the error message and behavior persist

(...)
[00000444] stream_out_transcode stream out debug: late picture skipped (1173982)
(...)

I'm using version 0.9.9 of VLC.

Best regard
Ricardo Ruivo

Re: VLC and RTSP (a imperfect marriage??? :) )

Posted: 11 Dec 2009 00:25
by r_ruivo
Dear all,
I finally managed to solve my problem, with only minor changes.
Added "fps=1" to the configuration of transcode

vlc -vvv --color --noaudio rtsp://192.168.0.101/live2.sdp --sout '#duplicate{dst="transcode{vcodec=DIV3,vb=256,scale=0.66,fps=1}:standard{access=mmsh,mux=asfh,dst=:8004/CAM}"}'

Also changed the RTSP configuration of the camera for

Frame Size: 320x240
Maximum frame rate: 10 fps
Intra frame period: 4 s
Fixed quality: Good

Now everything works perfectly well. However I can not understand what these changes can be induced in solving the problem.

Ricardo Ruivo