Thanks again. Using the commandline
Code: Select all
./vlc.exe --loop --sout-transcode-sfilter="logo,marq" --logo-file="c:\programme\videolan\vlc\vlc-0.8.1\logo150.png" --freetype-font="c:\windows\fonts\adlibn.ttf" --marq-marquee="Test Text" --marq-x="10" --marq-y="10" --sout='#transcode{vcodec=DIV3,vb=240,scale=1,acodec=mp3,ab=192,channels=2}:duplicate{dst=std{access=mmsh,mux=asfh,url=:8080}}' "c:\movie.avi"
on vlc 0.8.1 Windows I get my logo and the text working. Both are streamed correctly and can be seen in the Windows Media Player.
But now once again my question: Is there a way to change the text during the playback? I just have access to the marq-sfilter from the commandline which I cannot change once the streaming started.
The only way to do something like that was to have two instances of vlc. The first one grabs the video from the webcame and encodes the marq-text. This video is then delivered to the second instance of vlc which is running a playlist. In this playlist a video just showing a blank screen is a defined in addition to the stream of the first instance. In order to switch the text I need to switch to the blank screen in the second instance of vlc. Then stopp the first instance of vlc and restart it with a different marq-text. Then in the second instance of vlc I need to switch back to the stream of the first instance of vlc.
Is there an easier way to do it? I don't like to have this blank dummy-video during switching. And I cannot use three instances of vlc (one for grabbing from the webcam and encoding marq-text 1, one for grabbing from the webcam and encoding marq-text 2, one for recieving the streams and switching to the appropriate one) as the webcam can only be addressed by one instance of vlc at the same time.
My idea as stated in the first post would be to switch between different logos or have vlc reread the logofile every second or so. Thus I could put my text into different logofiles and change the text by renaming the files to the filename specified on the command-line.