Saving a stream
Posted: 23 Jun 2009 14:37
I'm at a stage where I can display a live RTSP stream. I now need to save/record it.
After searching a bit, I tried using using ":sout=#duplicate{dst=std{access=file,mux=ps,dst=d:\\CWrecTest.avi}}"
This works, but has a small problem.
My sequence of steps is like:
I need to have the stream displayed continuously, & recording happen as well.
Is there some option I'm missing out on, or the order of options? Or is there an API for the same?
Thanks!
After searching a bit, I tried using using ":sout=#duplicate{dst=std{access=file,mux=ps,dst=d:\\CWrecTest.avi}}"
This works, but has a small problem.
My sequence of steps is like:
Code: Select all
libvlc_media_player_set_drawable()
libvlc_media_new()
libvlc_media_add_option() /* myOpts */
libvlc_media_add_option() /* ":sout=#duplicate{dst=std{access=file,mux=ps,dst=d:\\CWrecTest.avi}}" */
/* without this additional option, the stream is displayed. When I add this, nothing is displayed, but recording happens */
libvlc_media_player_set_media()
libvlc_media_release()
libvlc_media_player_play()
Is there some option I'm missing out on, or the order of options? Or is there an API for the same?
Thanks!