Page 1 of 1

Log files when VLC is running as a server

Posted: 14 Jul 2020 14:55
by sTeamTraen
I am running VLC as a Windows service, streaming a public webcam from rtsp port 554 to the Internet on port 8888. So the following 1-line batch file is running with Administrator privileges:

"C:\Program Files\VideoLAN\VLC\vlc.exe" -R rtsp://IPetc --intf dummy --sout "#transcode{vcodec=mjpg,vb=2500,scale=1.0,fps=1,acodec=none}:standard{access=http{mime=multipart/x-mixed-replace; boundary=hexetc},mux=mpjpeg,dst=:8888"

(IPetc and hexetc represent censoring on my part for the purposes of this post.)

I would like to collect log data, for example which IP addresses connect to my service. After reading this thread, I added -vv and -logfile= to my command line, which now reads

"C:\Program Files\VideoLAN\VLC\vlc.exe" -R rtsp://IPetc -vv --logfile="C:\Webcam\vlc-log.txt" --intf dummy --sout "#transcode{vcodec=mjpg,vb=2500,scale=1.0,fps=1,acodec=none}:standard{access=http{mime=multipart/x-mixed-replace; boundary=hexetc},mux=mpjpeg,dst=:8888"

But no log file is being created. What am I missing? Is there some restriction on log files when VLC runs as a service?

Thanks for any help!

Re: Log files when VLC is running as a server

Posted: 15 Jul 2020 09:53
by Jean-Baptiste Kempf
--extraintf logger?

Re: Log files when VLC is running as a server

Posted: 15 Jul 2020 13:25
by sTeamTraen
--extraintf logger?
That didn't work. I also found this thread https://forum.videolan.org/viewtopic.php?t=88914 and added various combinations of

Code: Select all

-I http --log-verbose=2 --verbose-objects=+all -vvv --extraintf logger
but I still have no log file, either in the directory I specified in "--logfile=" or in the VLC program directory.

Re: Log files when VLC is running as a server

Posted: 15 Jul 2020 18:31
by Jean-Baptiste Kempf
Run this from MSys or WSL terminals?

Re: Log files when VLC is running as a server

Posted: 15 Jul 2020 19:57
by sTeamTraen
Run this from MSys or WSL terminals?
I don't know what either of those are. The command is in a .BAT file. I am running it from a service using NSSM (https://nssm.cc/) or from a Windows 10 command prompt (with "Run as Administrator"). In both cases I get no log file.

Re: Log files when VLC is running as a server

Posted: 19 Jul 2020 18:26
by Jean-Baptiste Kempf
I don't know then, sorry.