Page 1 of 1

Info required-get images from RTSP streaming

Posted: 06 Jun 2011 12:40
by san_vlc
Hi all,

I am using libvlc into my application , i have been able to achieve , get the rtsp stream and display it and also save as avi file on harddisk

m_smedia = libvlc_media_new_location(m_pVLCInstance,"rtsp://192.60.104.137/live.sdp");
libvlc_media_add_option(m_smedia,":sout=#transcode{vcodec=h264,vb=800,acodec=none,fps=15}");
libvlc_media_add_option(m_smedia,":sout=#duplicate{dst=display,dst=std{access=file,mux=ps,dst=d:\\Test.avi}}");
libvlc_media_player_set_media(m_pMediaPlayer,m_smedia);

I want to get the jpg files (save them on harddisk)and not the avi file , tried but there is not much information on this , need help.

Thanks,
san_vlc

Re: Info required-get images from RTSP streaming

Posted: 07 Jun 2011 16:50
by myrkertu
Hello san_vlc,
this post isn't actually an answer to your problem.
1) Thank You Very Much
I spent an entire day trying to find a way to record: have tried all possible combination of the magic ":sout .." at no result. 5 minutes ago ran into your posting and wow: it works.
2) Have you found a way to stop recording other than taking down the media etc
Once again thanks in advance

Re: Info required-get images from RTSP streaming

Posted: 07 Jun 2011 20:14
by RĂ©mi Denis-Courmont
The scene filter saves pictures on the hard drive, but it probably won't work at 1/1 frame capture ratio, because it will run at nominal playback speed.