[Solved]how to avoid sout file be overwritten?

About encoding, codec settings, muxers and filter usage
zplzk2
New Cone
New Cone
Posts: 9
Joined: 28 Nov 2011 09:26

[Solved]how to avoid sout file be overwritten?

Postby zplzk2 » 08 Dec 2011 06:26

hi guys,
right now I'm doing a project with C# and VLC, here is my problem:

my program would transcode some live signals with vlc and save them to local files, also, my program should be able to play various kinds of local files.
these two functions work fine separately, but when I dynamically change from one to another, I met some problem.
1) if I record live signal first, the file it transcoded and saved (lets name it as record_2011-12-8.ts), would be overwritten when I turned to play any other local files
2) I add "--sout=#display" in the agruments passed to vlc and solved problem 1, but I can no longer play some kinds of files including MP4
3) I add "--no-sout-keep" according to official document but nothing helps
4) I found a thread in vlc email list http://git.videolan.org/gitweb.cgi/vlc. ... fe8c237860, but nothing more

so, could anybody help me with this? thanks a lot~~

-------------------------------------

solved by using add_option function

Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 13 guests