Page 1 of 1

--file-logging doesn't work (WinXP)

Posted: 12 Jan 2009 19:59
by pps
Hi, guys.
I am unable to make VLC output logs to a file. I have tried all options outlined in VLC help:

vlc -vvv --file-logging --logfile=foo.log --logmode=text creation.mpg

vlc -vvv --file-logging --logfile=foo.log --logmode=html creation.mpg

vlc -vvv --file-logging --rrd-file=foo.log creation.mpg

Log file is never even created. The only relevant output of VLC seems to be this:

main error: option syslog does not exist

I have tested this on Linux(Ubuntu) and Mac OS X and it works fine, but on XP no such luck.

edit: VLC 0.9.8a

Re: --file-logging doesn't work (WinXP)

Posted: 13 Jan 2009 19:50
by VLC_help
I can replicate this.

Re: --file-logging doesn't work (WinXP)

Posted: 13 Jan 2009 20:32
by jvdstoel1
Perhaps this topic viewtopic.php?f=14&t=52885 helps you further?

Johan

Re: --file-logging doesn't work (WinXP)

Posted: 14 Jan 2009 03:51
by Steerpike
I'm having similar difficulties, but I did find something of a workaround.

First of all, the linked post above suggests:
"vlc INPUT --file-logging --logfile file_log.txt"
but aren't the rules on Windows that you must use the "--option=value" syntax, not "--option value" ?

Anyway, I tried all variations and the only way I can get a log file is to use the following combo:

""C:\Program Files\VideoLAN\VLC\vlc" P1000098.mov --extraintf=logger --verbose=2 ..."

This causes a log file named vlc-log.txt to be written in the current directory, as well as a log screen to be displayed during the processing. I have not found a way to give it a different name (not that I care).

What is more interesting/concerning, though, is that this file (vlc-log-txt) does not contain ALL the info shown on the screen. Even with --verbose=2 (or 3), I get a lot of 'main debug: ...' lines, etc, but what I DON'T get, and what is relevant to my current troubleshooting exercise, are entries such as this:

Code: Select all

[00000477] avcodec encoder debug: libavcodec already initialized [00000477] avcodec encoder warning: libfaac doesn't support this output format! (libfaac@0187EDA0) [00000477] avcodec encoder error: cannot open encoder [00000477] main encoder debug: TIMER module_Need() : 70.000 ms - Total 70.000 ms / 1 intvls (Avg 70.000 ms) [00000403] stream_out_transcode stream out error: cannot find audio encoder (mod ule:any fourcc:mp4a)
(I copied these from the screen log)

Re: --file-logging doesn't work (WinXP)

Posted: 14 Jan 2009 07:04
by Khenatram
Hi,

I am using following options

string[] initOptions = { NativeLibVlc.vlcInstallDirectory,
":no-one-instance",
":no-loop",
":no-drop-late-frames",
":disable-screensaver",
":vout=vout_directx",
"vlc INPUT --file-logging --logfile=" + NativeLibVlc.vlcInstallDirectory
+ "LogFile" + vlcHandle.ToString() + ".txt",
"--plugin-path=" + NativeLibVlc.vlcInstallDirectory
+ @"\plugins" };


but I cannot see the log file at vlc installation directory.

Regards,

Ram.

Re: --file-logging doesn't work (WinXP)

Posted: 02 Apr 2009 10:29
by Khenatram

Code: Select all

string[] initOptions = { NativeLibVlc.vlcInstallDirectory, ":no-one-instance", ":no-loop", ":no-drop-late-frames", ":disable-screensaver", ":vout=vout_directx", "--extraintf=logger", " --verbose=3", "--logfile=" + "D:\\VLC Log\\" + vlcHandle.ToString() + ".txt", "--plugin-path=" + NativeLibVlc.vlcInstallDirectory + @"\plugins", };

worked for me