Sporadic appearance of window when calling VLC command line

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.
rohuezo
Blank Cone
Blank Cone
Posts: 29
Joined: 18 Jul 2013 08:50
VLC version: 2.0.8 Win/2.2.2 Mac
Operating System: Windows / Mac OS X
Location: Fürth, Germany

Sporadic appearance of window when calling VLC command line

Postby rohuezo » 18 Jul 2013 09:32

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,
--
Roberto Huezo, M.A.
Computational Linguist
Software Developer

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Sporadic appearance of window when calling VLC command l

Postby Jean-Baptiste Kempf » 21 Jul 2013 18:24

Use -Vdummy
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

rohuezo
Blank Cone
Blank Cone
Posts: 29
Joined: 18 Jul 2013 08:50
VLC version: 2.0.8 Win/2.2.2 Mac
Operating System: Windows / Mac OS X
Location: Fürth, Germany

Re: Sporadic appearance of window when calling VLC command l

Postby rohuezo » 22 Jul 2013 09:04

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.
--
Roberto Huezo, M.A.
Computational Linguist
Software Developer

rohuezo
Blank Cone
Blank Cone
Posts: 29
Joined: 18 Jul 2013 08:50
VLC version: 2.0.8 Win/2.2.2 Mac
Operating System: Windows / Mac OS X
Location: Fürth, Germany

Re: Sporadic appearance of window when calling VLC command l

Postby rohuezo » 22 Jul 2013 10:40

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,
--
Roberto Huezo, M.A.
Computational Linguist
Software Developer


Return to “VLC media player for Windows Troubleshooting”

Who is online

Users browsing this forum: No registered users and 62 guests