Hi, everybody!
I'm programing with VC2005,using the "libvlc.dll".I call libvlc_new() to set command line parameters:
-I
dummy
--ignore-config
--no-video-title
--sout
#transcode{vcodec=mp4v,vb=512,scale=1}:duplicate{dst=std{access=file,mux=ts,dst=d:/test.avi}}
And then after calling some necessary functions,I call libvlc_media_player_play() to record the received stream to file successfully.But after this,I call libvlc_new() again to set other command line parameters and want to play an avi file normally:
-I
dummy
--ignore-config
--no-video-title
But I failed.When I call libvlc_media_player_play() again,it didn't play the file but still recorded the stream...VLC had saved the "--sout..." config.If I just set the command line parameters to the second type above and played the file first,the file is played normally.So, how can I play a file normally after recording a stream?Is there a way to cancel the "--sout" config?
If I add these command line parameters to play a file after recording:
--sout
#display
VLC can play the file,but it can't play it fast forward.VLC considered it as a stream now.If I don't add the "--sout","#display" parameters but play the file before recording,it can play fast forward.So how to play a file normally after "--sout..." setting?Can I disable the "--sout" and play the file in a normal way?
Any help would be greatly appreciated.Thank you!!