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.

 

Go Back   Doom9's Forum > Video Encoding > MPEG-4 AVC / H.264

Reply
 
Thread Tools Search this Thread Display Modes
Old 29th July 2010, 19:39   #21  |  Link
LoRd_MuldeR
Software Developer
 
LoRd_MuldeR's Avatar
 
Join Date: Jun 2005
Location: Last House on Slunk Street
Posts: 13,248
Quote:
Originally Posted by MasterNobody View Post
Try program1.exe 2>&1 | program2.exe
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.
LoRd_MuldeR is offline   Reply With Quote
Old 29th July 2010, 22:51   #22  |  Link
kypec
User of free A/V tools
 
kypec's Avatar
 
Join Date: Jul 2006
Location: SK
Posts: 826
I suggest to make this thread sticky and perhaps change the title at that occasion...
kypec is offline   Reply With Quote
Old 30th July 2010, 20:19   #23  |  Link
Motenai Yoda
Registered User
 
Motenai Yoda's Avatar
 
Join Date: Jan 2010
Posts: 709
there isn't a x264_logger patch?
Motenai Yoda is offline   Reply With Quote
Old 30th July 2010, 20:25   #24  |  Link
b66pak
Registered User
 
b66pak's Avatar
 
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)!
b66pak is offline   Reply With Quote
Old 5th August 2010, 21:35   #25  |  Link
LoRd_MuldeR
Software Developer
 
LoRd_MuldeR's Avatar
 
Join Date: Jun 2005
Location: Last House on Slunk Street
Posts: 13,248
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 🇺🇦✊
LoRd_MuldeR is offline   Reply With Quote
Old 6th August 2010, 22:03   #26  |  Link
asarian
Registered User
 
Join Date: May 2005
Posts: 1,462
Quote:
Originally Posted by LoRd_MuldeR View Post
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.
Thanks for your continued efforts to further x264. :) This is yet another useful support program you wrote for x264. It's much appreciated.
__________________
Gorgeous, delicious, deculture!
asarian is offline   Reply With Quote
Old 19th December 2010, 23:09   #27  |  Link
telmoMRC
Registered User
 
Join Date: Jan 2008
Posts: 11
Quote:
Originally Posted by LoRd_MuldeR View Post

the link is dead can someone post a new link ????

telmoMRC is offline   Reply With Quote
Old 19th December 2010, 23:50   #28  |  Link
LoRd_MuldeR
Software Developer
 
LoRd_MuldeR's Avatar
 
Join Date: Jun 2005
Location: Last House on Slunk Street
Posts: 13,248
Quote:
Originally Posted by telmoMRC View Post
the link is dead can someone post a new link ????

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.
LoRd_MuldeR is offline   Reply With Quote
Old 8th December 2011, 10:00   #29  |  Link
kypec
User of free A/V tools
 
kypec's Avatar
 
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
)
Usage example - put the batch file to same directory where your input files reside and run it like this (logger executable must be placed somewhere in your PATH or change path to it accordingly if needed):
Code:
encode.bat xyz???.avs mylogfile.txt

Last edited by LoRd_MuldeR; 24th March 2013 at 22:03. Reason: Added batch example
kypec is offline   Reply With Quote
Old 17th March 2013, 19:20   #30  |  Link
Chumbo
Registered User
 
Chumbo's Avatar
 
Join Date: Feb 2005
Posts: 585
Quote:
Originally Posted by LoRd_MuldeR View Post
Yet another small update:

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:.*%$" ...
The above would filter out where the line starts with "Progress:" followed by any characters until a "%" is hit at the end ($) of the line. Thanks for considering it.
__________________
Chumbo

Last edited by LoRd_MuldeR; 24th March 2013 at 22:02.
Chumbo is offline   Reply With Quote
Old 18th March 2013, 15:28   #31  |  Link
LoRd_MuldeR
Software Developer
 
LoRd_MuldeR's Avatar
 
Join Date: Jun 2005
Location: Last House on Slunk Street
Posts: 13,248
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 🇺🇦✊
LoRd_MuldeR is offline   Reply With Quote
Old 18th March 2013, 19:42   #32  |  Link
Chumbo
Registered User
 
Chumbo's Avatar
 
Join Date: Feb 2005
Posts: 585
That would be fantastic. Thank you.
__________________
Chumbo
Chumbo is offline   Reply With Quote
Old 24th March 2013, 00:49   #33  |  Link
LoRd_MuldeR
Software Developer
 
LoRd_MuldeR's Avatar
 
Join Date: Jun 2005
Location: Last House on Slunk Street
Posts: 13,248
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
Note that the string will be skipped/kept if any sub-string of it matches the given regular expression. To match the complete string, you need to use "^foobar$".

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.
LoRd_MuldeR is offline   Reply With Quote
Old 24th March 2013, 03:00   #34  |  Link
Chumbo
Registered User
 
Chumbo's Avatar
 
Join Date: Feb 2005
Posts: 585
You're a freakin' machine! Will try it first chance I get. Thank you.
__________________
Chumbo
Chumbo is offline   Reply With Quote
Old 24th March 2013, 21:58   #35  |  Link
LoRd_MuldeR
Software Developer
 
LoRd_MuldeR's Avatar
 
Join Date: Jun 2005
Location: Last House on Slunk Street
Posts: 13,248
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#
RegExp example for x264:
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.
LoRd_MuldeR is offline   Reply With Quote
Old 25th March 2013, 03:48   #36  |  Link
Chumbo
Registered User
 
Chumbo's Avatar
 
Join Date: Feb 2005
Posts: 585
You've been a busy, busy, bee. The earlier version worked great by the way. Thank you for the latest improvements. The new features look great.
__________________
Chumbo
Chumbo is offline   Reply With Quote
Old 25th March 2013, 23:40   #37  |  Link
LoRd_MuldeR
Software Developer
 
LoRd_MuldeR's Avatar
 
Join Date: Jun 2005
Location: Last House on Slunk Street
Posts: 13,248
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 🇺🇦✊
LoRd_MuldeR is offline   Reply With Quote
Old 19th September 2015, 17:46   #38  |  Link
AYColumbia
Registered User
 
AYColumbia's Avatar
 
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
I'd like to include the "[E]" at the beginning too if at all possible. Right now even what I'm using above isn't working.

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
AYColumbia is offline   Reply With Quote
Old 20th September 2015, 13:05   #39  |  Link
LoRd_MuldeR
Software Developer
 
LoRd_MuldeR's Avatar
 
Join Date: Jun 2005
Location: Last House on Slunk Street
Posts: 13,248
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.
LoRd_MuldeR is offline   Reply With Quote
Old 20th September 2015, 20:07   #40  |  Link
AYColumbia
Registered User
 
AYColumbia's Avatar
 
Join Date: Jun 2013
Posts: 57
Quote:
Originally Posted by LoRd_MuldeR View Post
...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.
Well duh on my part. Been using the utility for so long that I forgot that info was added by it. Thank you for the reminder.
AYColumbia is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 12:08.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.