After "--sout",how to reset to normal?

Microsoft Windows specific usage questions
Forum rules
Please post only Windows specific questions in this forum category. If you don't know where to post, please read the different forums' rules. Thanks.
Koalar
Blank Cone
Blank Cone
Posts: 14
Joined: 12 Sep 2008 03:32

After "--sout",how to reset to normal?

Postby Koalar » 11 Oct 2008 10:08

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!!

Koalar
Blank Cone
Blank Cone
Posts: 14
Joined: 12 Sep 2008 03:32

Re: After "--sout",how to reset to normal?

Postby Koalar » 14 Oct 2008 11:37

Problem solved.Use "--reset-config" and don't use "--ignore-config".Thanks.


Return to “VLC media player for Windows Troubleshooting”

Who is online

Users browsing this forum: No registered users and 19 guests