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!