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 > General > Audio encoding
Register FAQ Calendar Today's Posts Search

Closed Thread
 
Thread Tools Search this Thread Display Modes
Old 18th January 2015, 14:39   #12941  |  Link
r0lZ
PgcEdit daemon
 
r0lZ's Avatar
 
Join Date: Jul 2003
Posts: 7,469
Yes. If you use that syntax, the error message is still printed in the command prompt window, and the log file contains only backspace and space characters.

The syntax I've described above eac3to test.dts test.ac3 1>log.txt 2>&1 is the way recommended by M$ to redirect stderr and stdout to the same file, and it works somewhat better: nothing is printed to the command prompt window. But the content of the log file is exactly identical than with your syntax. The message is lost in the two cases, and only the control characters are kept in the log.
__________________
r0lZ
PgcEdit homepage (hosted by VideoHelp)
BD3D2MK3D A tool to convert 3D blu-rays to SBS, T&B or FS MKV
r0lZ is offline  
Old 18th January 2015, 16:44   #12942  |  Link
AYColumbia
Registered User
 
AYColumbia's Avatar
 
Join Date: Jun 2013
Posts: 57
Why don't you just use the -log switch?
AYColumbia is offline  
Old 18th January 2015, 17:59   #12943  |  Link
r0lZ
PgcEdit daemon
 
r0lZ's Avatar
 
Join Date: Jul 2003
Posts: 7,469
Quote:
Originally Posted by AYColumbia View Post
Why don't you just use the -log switch?
Code:
E:\>eac3to test.dts test.ac3 -log
Command line parameter "log" is unknown.
__________________
r0lZ
PgcEdit homepage (hosted by VideoHelp)
BD3D2MK3D A tool to convert 3D blu-rays to SBS, T&B or FS MKV
r0lZ is offline  
Old 18th January 2015, 19:58   #12944  |  Link
LigH
German doom9/Gleitz SuMo
 
LigH's Avatar
 
Join Date: Oct 2001
Location: Germany, rural Altmark
Posts: 6,784
Maybe try LoRd_MuldeR's Logging Utility, it can log both stdout and stderr to the same file (and also does *not* confuse text editors with a bunch of "delete" characters = ^H, like the normal eac3to help output does).
__________________

New German Gleitz board
MediaFire: x264 | x265 | VPx | AOM | Xvid

Last edited by LigH; 18th January 2015 at 20:05.
LigH is offline  
Old 18th January 2015, 20:39   #12945  |  Link
r0lZ
PgcEdit daemon
 
r0lZ's Avatar
 
Join Date: Jul 2003
Posts: 7,469
Thanks for the suggestion, but that doesn't work. Again, the error message is not in the output of LoggingUtil.exe, regardless of the syntax and parameters used.

It seems that eac3to "knows" that its output is captured, and it modifies its formatting accordingly. I guess it suppress the error message by mistake (bug).
__________________
r0lZ
PgcEdit homepage (hosted by VideoHelp)
BD3D2MK3D A tool to convert 3D blu-rays to SBS, T&B or FS MKV
r0lZ is offline  
Old 18th January 2015, 20:46   #12946  |  Link
LigH
German doom9/Gleitz SuMo
 
LigH's Avatar
 
Join Date: Oct 2001
Location: Germany, rural Altmark
Posts: 6,784
So, for example, which command line did you use with the logger?

There is a third method to output text: Manipulating the console output in the "graphic memory". Whatever that is in Windows NT... But that's quite unusual if a programmer once decides to use file output methods.
__________________

New German Gleitz board
MediaFire: x264 | x265 | VPx | AOM | Xvid
LigH is offline  
Old 18th January 2015, 21:01   #12947  |  Link
heerschop
Registered User
 
Join Date: Dec 2008
Posts: 23
Quote:
Originally Posted by r0lZ View Post
Code:
E:\>eac3to test.dts test.ac3 -log
Command line parameter "log" is unknown.
Try this command line:

e:\>eac3to test.dts test.ac3 -log="test.txt"

This writes the error in the log file:

eac3to v3.27
command line: C:\Tools\eac3to\eac3to.exe test.dts test.ac3 -log="test.txt"
------------------------------------------------------------------------------
Source file "test.dts" not found. <ERROR>

greetz
heerschop is offline  
Old 19th January 2015, 01:13   #12948  |  Link
r0lZ
PgcEdit daemon
 
r0lZ's Avatar
 
Join Date: Jul 2003
Posts: 7,469
Yeah, -log works with the syntax above. Thanks heerschop.
Why that option and -progressnumbers are not documented is a mystery. But at least they exist.
Now, I would like to redirect the log to STDOUT instead of to a physical file, so that I can parse the output while eac3to is running. How can I do that with the -log option? I've tried -log=STDOUT and -log=-, but each time, a file is written to disc.
__________________
r0lZ
PgcEdit homepage (hosted by VideoHelp)
BD3D2MK3D A tool to convert 3D blu-rays to SBS, T&B or FS MKV
r0lZ is offline  
Old 19th January 2015, 06:21   #12949  |  Link
LigH
German doom9/Gleitz SuMo
 
LigH's Avatar
 
Join Date: Oct 2001
Location: Germany, rural Altmark
Posts: 6,784
I wonder if -log="CON:" (with or without colon) may work. The "CON"sole was the combined device for stdin and stdout in good old MS-DOS times.
__________________

New German Gleitz board
MediaFire: x264 | x265 | VPx | AOM | Xvid
LigH is offline  
Old 19th January 2015, 12:00   #12950  |  Link
r0lZ
PgcEdit daemon
 
r0lZ's Avatar
 
Join Date: Jul 2003
Posts: 7,469
Well, indeed, you are right. Using CON: (with and without the quotes, and with and without the colon) seems to work. Indeed, no file is written to disc, and the message appears on screen. But... the original behaviour is back! The error message appears again with a red background, there are again a lot of BS and Space characters printed to STDOUT. More importantly, the error message disappears again if STDERR is redirected. In fact, it seems that the -log argument is totally ignored when CON: is used.

I think now that there is absolutely NO WAY to grab the error messages when eac3to is launched from another program. It's a very serious bug, and I suppose that we have to live with it. Pity!

@LigH: I'm sure that the error message is not simply hidden because a text editor is confused by the BS characters. I have used an hex editor to examine the outputs. Also, I can already parse the output of eac3to when it prints the stream information, for example. It is theoretically sufficient to remove all BS and tailing spaces to get a "normal" output. It's only the STDERR output that is wrong and cannot be processed properly.

Thanks to all of you.
__________________
r0lZ
PgcEdit homepage (hosted by VideoHelp)
BD3D2MK3D A tool to convert 3D blu-rays to SBS, T&B or FS MKV

Last edited by r0lZ; 19th January 2015 at 12:20.
r0lZ is offline  
Old 19th January 2015, 12:17   #12951  |  Link
Kurtnoise
Swallowed in the Sea
 
Kurtnoise's Avatar
 
Join Date: Oct 2002
Location: Aix-en-Provence, France
Posts: 5,191
Quote:
Originally Posted by r0lZ View Post
Anyway, using -log has a serious drawback. I have no way to distinguish the error message (if any) from the other messages. There is no leading string such as "ERROR:" to identify the line containing the error in the log.
This is not true...as soon as an error occurs, you have the <ERROR> string that appears.
Kurtnoise is offline  
Old 19th January 2015, 12:27   #12952  |  Link
r0lZ
PgcEdit daemon
 
r0lZ's Avatar
 
Join Date: Jul 2003
Posts: 7,469
OK, I think I have a working solution.
In fact, if you use the -log option, the log file is written to disc only at the end of the process (or when the process is aborted due to an error). But STDOUT still contains the normal messages (including the progress numbers when --progressnumbers is specified, as well as all that nasty BS and Spaces, that can be stripped out). Therefore, it is still possible to display the messages and update a progress bar while eac3to is working. Only the error messages are missing. But if the process returns a non-zero return code, you can then open the log file that has been written to disc, and search for the lines ending with "<ERROR>". They are the lines that are theoretically printed to stdout, but that are unavailable when STDOUT is redirected. It's a somewhat convoluted method, but it works.
Thanks again to everybody.

[EDIT] Kurtnoise has posted his message when I was writing mine and I was editing my previous message. Yes, <ERROR> is printed in the log at the end of the lines containing the error messages. I haven't noticed that when I did my first tests.
__________________
r0lZ
PgcEdit homepage (hosted by VideoHelp)
BD3D2MK3D A tool to convert 3D blu-rays to SBS, T&B or FS MKV

Last edited by r0lZ; 19th January 2015 at 12:30.
r0lZ is offline  
Old 21st January 2015, 23:16   #12953  |  Link
stax76
Registered User
 
stax76's Avatar
 
Join Date: Jun 2002
Location: On thin ice
Posts: 6,837
This and hoping for a fix is all we can do, I could read from a simple colored test app so it's possible.
stax76 is offline  
Old 24th January 2015, 19:32   #12954  |  Link
frenshprince
Registered User
 
Join Date: May 2009
Posts: 27
Hello,

Coule you tell mi if its possible to use eac3to to convert a bluray playlist (mpls) with multiple m2ts to one m2ts ?

Of course I could use tsmuxer to do that, but I don't know why, it doen't work well' and the length of the m2ts is doubled.

Thanks
frenshprince is offline  
Old 24th January 2015, 22:35   #12955  |  Link
Music Fan
Registered User
 
Join Date: May 2009
Location: Belgium
Posts: 1,744
Quote:
Originally Posted by frenshprince View Post
Coule you tell mi if its possible to use eac3to to convert a bluray playlist (mpls) with multiple m2ts to one m2ts ?
Previous page ;
http://forum.doom9.org/showthread.ph...11#post1704811
Music Fan is offline  
Old 25th January 2015, 00:40   #12956  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
Join Date: Feb 2005
Location: Spain
Posts: 6,915
eac3to can extract the video to one mkv (or one video stream .h264/.vc1), can extract/recode the audio streams and extract subs.

But can't mux the streams to m2ts.
__________________
BeHappy, AviSynth audio transcoder.
tebasuna51 is offline  
Old 25th January 2015, 02:50   #12957  |  Link
frenshprince
Registered User
 
Join Date: May 2009
Posts: 27
That's what I thought.

Thank you for your help.
frenshprince is offline  
Old 25th January 2015, 04:27   #12958  |  Link
stinman
Registered User
 
Join Date: Jul 2007
Posts: 54
Wil this program ever be able to decode TrueHD with Atmos or at least still decode TrueHD and disregard the atmos data like Lav Filters do? Or is there any way to get eac3to use the Lav Filters kind of like it will use the ArcSoft Decoders? I tried to put the Lav Filters in the folder with eac3to 3.27 and the HDDVD Bluray Stream Extracter to see if it would work. The only way to to extract a TrueHD atmos stream now is to run a MKV thru MakeMKV and out put the TrueHD atmos to flac, then the flac can be converted to wavs. I can't code like you guys can, if I could I would try and make eac3to use the new lav filters.
stinman is offline  
Old 25th January 2015, 12:09   #12959  |  Link
Music Fan
Registered User
 
Join Date: May 2009
Location: Belgium
Posts: 1,744
Quote:
Originally Posted by frenshprince View Post
That's what I thought.
You can use eac3to anyway to demux streams then use TSMuxer to remux in ts (or m2ts).
Music Fan is offline  
Old 25th January 2015, 12:36   #12960  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
Join Date: Feb 2005
Location: Spain
Posts: 6,915
Quote:
Originally Posted by stinman View Post
The only way to to extract a TrueHD atmos stream now is to run a MKV thru MakeMKV...
You can use also ffmpeg, search in this thread. Or better in ffmpeg syntax thread.

The problem was already reported to madshi.
__________________
BeHappy, AviSynth audio transcoder.

Last edited by tebasuna51; 26th January 2015 at 14:05. Reason: add ffmpeg thread
tebasuna51 is offline  
Closed Thread

Tags
eac3to


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 02:01.


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