Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. |
![]() |
#21 | Link |
Software Developer
![]() Join Date: Jun 2005
Location: Last House on Slunk Street
Posts: 13,244
|
That did the trick
![]() So with the latest update, we can use logger like this as well: Code:
x264.exe --output output.mkv foreman_cif.352x288.avi 2>&1 | logger.exe -filter "x264 [info]" -invert : -
__________________
Go to https://standforukraine.com/ to find legitimate Ukrainian Charities 🇺🇦✊ Last edited by LoRd_MuldeR; 29th July 2010 at 19:50. |
![]() |
![]() |
![]() |
#24 | Link |
Registered User
Join Date: Aug 2008
Location: The Land Of Dracula (Romania - EU)
Posts: 934
|
this tool can be used with any program...
_
__________________
if you ask a question and somebody give you the correct answer don't forget to leave a "thank you" note... Visit The Land Of Dracula (Romania - EU)! |
![]() |
![]() |
![]() |
#25 | Link |
Software Developer
![]() Join Date: Jun 2005
Location: Last House on Slunk Street
Posts: 13,244
|
Minor update. The input and output encoding (codepage) can be configured by user now. Default for both is UTF-8, which is the same that was used in previous versions.
__________________
Go to https://standforukraine.com/ to find legitimate Ukrainian Charities 🇺🇦✊ |
![]() |
![]() |
![]() |
#28 | Link |
Software Developer
![]() Join Date: Jun 2005
Location: Last House on Slunk Street
Posts: 13,244
|
Problems with the server
![]() In the meantime find the download on my Google Code mirror: http://code.google.com/p/mulder/downloads/
__________________
Go to https://standforukraine.com/ to find legitimate Ukrainian Charities 🇺🇦✊ Last edited by LoRd_MuldeR; 24th March 2013 at 22:03. |
![]() |
![]() |
![]() |
#29 | Link |
User of free A/V tools
Join Date: Jul 2006
Location: SK
Posts: 826
|
Logging example for x264 2-pass batch encoding
There was an updated version released in Sep 2011.
Download link @ Google Code: Logger 2011-09-09 Here's an example of batch command encode.bat that I use for logging a bunch of 2-pass x264 encodes running on arbitrary set of input files: Code:
@echo off set tool="%PROGRAMFILES%\AVTools\Simple x264 Launcher\x264.exe" set options=--preset veryslow --tune film --bitrate 1000 --sar 16:11 rem Evaluate input parameters and supply default values if missing set filemask=%1 if "%filemask%" == "" set filemask=*.avs set logfile=%2 if "%logfile%" == "" set logfile=x264_log.txt for %%a in (%filemask%) do ( rem First pass needs only the minimum information to be logged logger.exe -format raw -filter "encoded" -invert -log "%logfile%" -append : %tool% %options% --pass 1 --output NUL %%a rem Second pass log will be complete logger.exe -format raw -filter "%%]" -log "%logfile%" -append : %tool% %options% --pass 2 --output %%~na.264 %%a ) Code:
encode.bat xyz???.avs mylogfile.txt Last edited by LoRd_MuldeR; 24th March 2013 at 22:03. Reason: Added batch example |
![]() |
![]() |
![]() |
#30 | Link |
Registered User
Join Date: Feb 2005
Posts: 585
|
I love this utility and am wondering if there's any chance to update it so the -filter allows the use of regular expressions? So e.g.,
Code:
logger.exe -filter "^Progress:.*%$" ...
__________________
Chumbo Last edited by LoRd_MuldeR; 24th March 2013 at 22:02. |
![]() |
![]() |
![]() |
#31 | Link |
Software Developer
![]() Join Date: Jun 2005
Location: Last House on Slunk Street
Posts: 13,244
|
Support for RegExp would certainly be desirable.
But as this tool was written in Delphi 7, I cannot use QRegExp from Qt framework, which normally would be my choice. I will probably re-write this tool in proper C++ with some Qt stuff in a not too distant future ![]()
__________________
Go to https://standforukraine.com/ to find legitimate Ukrainian Charities 🇺🇦✊ |
![]() |
![]() |
![]() |
#33 | Link |
Software Developer
![]() Join Date: Jun 2005
Location: Last House on Slunk Street
Posts: 13,244
|
Okay, here is a new version (still very incomplete) that is implemented in C++/Qt and that can do filtering with regular expressions!
We should now be able to do something like: Code:
LoggingUtil.exe --regexp-skip "(indexing|\d+/\d+ frames)" : x264.exe -o Output.mkv Input.avs For details, please check: http://qt-project.org/doc/qt-4.8/qregexp.html#details
__________________
Go to https://standforukraine.com/ to find legitimate Ukrainian Charities 🇺🇦✊ Last edited by LoRd_MuldeR; 24th March 2013 at 22:02. |
![]() |
![]() |
![]() |
#35 | Link |
Software Developer
![]() Join Date: Jun 2005
Location: Last House on Slunk Street
Posts: 13,244
|
Okay, here is a more feature complete version
![]() http://code.google.com/p/mulder/down...5.zip&can=2&q= Code:
Logging Utility v2.03, built Mar 25 2013 23:25:26 (using Qt v4.8.4) Copyright (c) 2010-2013 LoRd_MuldeR <mulder2@gmx.de>. Some rights reserved. Please visit http://www.muldersoft.com/ for news and updates! This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License <http://www.gnu.org/>. Note that this program is distributed with ABSOLUTELY NO WARRANTY. Usage Mode #1: LoggingUtil.exe SomeProgram.exe [program parameters] LoggingUtil.exe [logging options] : SomeProgram.exe [program parameters] Usage Mode #2: SomeProgram.exe [parameters] | LoggingUtil.exe [options] : #STDIN# SomeProgram.exe [parameters] 2>&1 | LoggingUtil.exe [options] : #STDIN# Logging Options: --logfile <logfile> Specifies the output log file (appends if file exists) --only-stdout Capture only output from STDOUT, ignores STDERR --only-stderr Capture only output from STDERR, ignores STDOUT --no-simplify Do NOT simplify/trimm the logged strings (default: on) --no-append Do NOT append, i.e. any existing log content is lost --plain-output Create less verbose logging output --html-output Create HTML logging output, implies NO append --regexp-keep <exp> Keep ONLY strings that match the given RegExp --regexp-skip <exp> Skip all the strings that match the given RegExp --codec-in <name> Setup the input text encoding (default: "UTF-8") --codec-out <name> Setup the output text encoding (default: "UTF-8") Examples: LoggingUtil.exe --logfile x264_log.txt : x264.exe -o output.mkv input.avs x264.exe -o output.mkv input.avs 2>&1 | LoggingUtil.exe : #STDIN# Code:
LoggingUtil.exe --regexp-skip "(indexing|\d+/\d+ frames)" : x264.exe -o Output.mkv Input.avs
__________________
Go to https://standforukraine.com/ to find legitimate Ukrainian Charities 🇺🇦✊ Last edited by LoRd_MuldeR; 25th March 2013 at 23:37. |
![]() |
![]() |
![]() |
#37 | Link |
Software Developer
![]() Join Date: Jun 2005
Location: Last House on Slunk Street
Posts: 13,244
|
Another small update: Added HTML output option.
Also new version is now compiled with the static Qt library, so we don't need QtCore4.dll and MSVCRT libraries. (Updated post above)
__________________
Go to https://standforukraine.com/ to find legitimate Ukrainian Charities 🇺🇦✊ |
![]() |
![]() |
![]() |
#38 | Link |
Registered User
Join Date: Jun 2013
Posts: 57
|
Thanks for this great tool. I use it all the time with x264 and x265 now. I ran into a bit of a snag though as I need to use a regex with regex characters, i.e., I need to filter "[E]" for example but the brackets are regex characters. I tried to escape them, e.g., "(^\[E\].*%\].*$)" but that didn't work. Would appreciate your guidance here. Thank you.
[EDIT] I thought a bit more detail may help. Here's the regex for skipping what I want and some examples of the lines below it that I want skipped/not logged: --regexp-skip "(^.*%.*\sframes\s.*\sfps\s.*\seta.*$)" Code:
[E] [2015-09-19] [11:50:33] [0.1%] 1/1443 frames, 0.74 fps, 328.81 kb/s, eta 0:32:31 [E] [2015-09-19] [11:50:33] [0.4%] 6/1443 frames, 3.74 fps, 80.47 kb/s, eta 0:06:23 [E] [2015-09-19] [11:50:33] [0.6%] 9/1443 frames, 4.78 fps, 64.01 kb/s, eta 0:04:59 [E] [2015-09-19] [11:50:33] [1.0%] 14/1443 frames, 5.91 fps, 52.28 kb/s, eta 0:04:01 [E] [2015-09-19] [11:50:34] [1.3%] 19/1443 frames, 6.56 fps, 46.77 kb/s, eta 0:03:37 [E] [2015-09-19] [11:50:34] [1.4%] 20/1443 frames, 6.20 fps, 46.00 kb/s, eta 0:03:49 [E] [2015-09-19] [11:50:35] [1.6%] 23/1443 frames, 6.56 fps, 120.50 kb/s, eta 0:03:36 BTW, your simplified example works fine, i.e., --regexp-skip "(\d+/\d+ frames)" so I'm using that for now. ![]() Last edited by AYColumbia; 19th September 2015 at 18:01. Reason: added a bit more detail |
![]() |
![]() |
![]() |
#39 | Link |
Software Developer
![]() Join Date: Jun 2005
Location: Last House on Slunk Street
Posts: 13,244
|
First of all I think a construct like "^.*Foo" is pretty pointless. With the ^ prefix you are saying that the expression has to match at the beginning of the string. But then the .* allows any possible character sequence (even empty one) between the beginning of the string and the Foo. In other words, you allow Foo to match anywhere in the string. So your whole Regex could be simplified to just "Foo". Or am I missing something?
Secondly, the "--regexp-skip" options skips all input lines, i.e. lines produced by the source application, where the given Regex matches. It does not have to match the entire line! If it matches anywhere in the line, then this line is skipped. Of course, if you only want lines to be skipped that completely match the given Regex, then you will need to write a Regex that starts with "^" and ends with "$". This forces the Regex to match on the entire string - or not match at all. Finally, in the log file, the "[?] [yyyy-MM-dd] [hh:mm:ss]" prefix is added by the LoggingUtil - to all input lines that have not been skipped. If you don't like that prefix to be included, just add the "--plain-output" switch to LoggingUtil command.
__________________
Go to https://standforukraine.com/ to find legitimate Ukrainian Charities 🇺🇦✊ Last edited by LoRd_MuldeR; 20th September 2015 at 13:19. |
![]() |
![]() |
![]() |
#40 | Link | |
Registered User
Join Date: Jun 2013
Posts: 57
|
Quote:
![]() ![]() |
|
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
Display Modes | |
|
|