Page 1 of 1

Sporadic appearance of window when calling VLC command line

Posted: 18 Jul 2013 09:32
by rohuezo
Hello,

I have a problem with a sporadic appearance of a VLC window when I try to record the screen. The title of the window is (always) "VLC (software RGB DirectX output)".

Image

This is the command I use from within a C# console program to record my primary screen:

screen:// -I rc --rc-quiet --rc-host=127.0.0.1:81 --reset-config --reset-plugins-cache --nommx --no3dn --nommxext --nosse :screen-fps=5.000000 --screen-left=0 --screen-top=0 --screen-width=1920 --screen-height=1080 :screen-mouse-image=File:///C:/Tmp/mouse.png :sout=#transcode{vcodec=h264,vb=384,fps=5,scale=,acodec=none}:file{dst=C:\Temp\Program_CPU_300_17-07-2013_1359.mp4}

To stop it I use a TcpClient class on a C# console application which connects to 127.0.0.1 on port 81 and send the "quit" command. This approach and implementation works very nicely, but as I mentioned above, sometimes the VLC DirectX window shows and the recording is bad.

My dll is used in as a plugin for NUnit in a Virtual Machine (Virtual Machine is Windows 7 with VLC 2.07). When a test starts I start the VLC command line, and when the test ends I stop it with the TcpClient class.

Basically my question is:

How can I avoid that this windows shows up? Is this a bug or a problem of DirectX (or driver)?

Thank you in advance,

Re: Sporadic appearance of window when calling VLC command l

Posted: 21 Jul 2013 18:24
by Jean-Baptiste Kempf
Use -Vdummy

Re: Sporadic appearance of window when calling VLC command l

Posted: 22 Jul 2013 09:04
by rohuezo
Use -Vdummy
Hi Jean-Baptiste,

thank you very much for the tip! I tried substituting "rc" with "-Vdummy" on my command line, but there were a few command line parsing errors:

1. I couldn't use -Vdummy but -dummy worked
2. I couldn't use -dummy-host=127.0.0.1:81, but left it -rc-host=127.0.0.1:81. I couldn't stop recording with telnet client!
3. I also tried to use --telnet-host=127.0.0.1 --telnet-port=81, but it didn't work. I couldn't stop recording with telnet client!

So my latest command line looks like this:

SET VLC=C:\Program Files (x86)\VideoLAN\VLC\vlc.exe
"%VLC%" screen:// -I -dummy --dummy-quiet --telnet-host=127.0.0.1 --telnet-port=81 --nommx --no3dn --nommxext --nosse :screen-fps=5.000000 --screen-left=0 --screen-top=0 --screen-width=1920 --screen-height=1080 :screen-mouse-image=File:///C:/temp/mouse.png :sout=#transcode{vcodec=h264,vb=384,fps=5,acodec=none}:file{dst=C:\\Temp\\out.mp4}


But it only works partially, the recording begins, but I cannot stop it like before with a telnet client.... Is there a "--dummy-host" parameter like in rc? If none, do you know of a work around to stop the recording?

My command run unattended overnight on our test virtual machines. That is why I need --<interface>-quiet, but I also need --<interface>-host to be able to stop it programmically.

Thank you in advance for your prompt response.

Re: Sporadic appearance of window when calling VLC command l

Posted: 22 Jul 2013 10:40
by rohuezo
Hi Jean-Baptiste,

Ok, I found the -V<Text> --vout=<Text> parameter on the help file. I tried again with -I rc --rc-quiet --rc-host=127.0.0.1:81 -Vdummy ...
It works like before, I only have to test on our Virtual Machines whether -Vdummy helps. Thank you again!

Regards,