View Full Version : eac3to - audio conversion tool
samepaul
2nd December 2009, 10:33
I think I found bug.
eac3to 00001.m2ts 1: chapters.txt 3: audio1.m4a -no2ndpass 6: audio2.m4a -quality=0.6 -no2ndpass 9: english.sup
It starts, spawns 2 nero encoders, processes whole input and then one Nero finishes, but 2nd does not and stays idle. I mean really idle - 0% CPU and no byte read or written.
As result 1st m4a file is ok and 2nd is unreadable, although is not empty.
No problem occurs if only one track is recoded at a time.
Foofaraw
7th December 2009, 16:09
So, any plans to support wmv/a? I need to get some wma10 out of a wmv and down to something sensible, like say ac3 :)
tebasuna51
8th December 2009, 03:04
To convert wma audio, in wmv container, to ac3 you can try several methods:
- Foobar and Aften
- dshow2wav (http://forum.doom9.org/showthread.php?t=141441) and pipe the output to Aften.
- AviSynth methods (Soundout, BeHappy, bepipe, wavi) with DirectshowSource decoder.
For more detailed explanation please open a new thread.
b66pak
8th December 2009, 20:10
off topic
@tebasuna51 it is not so simple...most of the time you will get an audio oos...
_
Midzuki
9th December 2009, 01:22
b66pak wrote:
off topic
it is not so simple...most of the time you will get an audio oos...
That's true. To whom this may interest, here goes my "method":
1) copy the Windows Media Audio stream to a standalone ASF file (*.wma) with AsfBin ;
2a) convert to a .WAV file via Avisynth + BassAudioSource() ;
2b) OR... playback the intermediate WMA file with Winamp's Disk Writer plugin.
So far, it's worked fine for stereo Windows Media Audio,
I still haven't found problematic multichannel WMAs on which I should test this workaround.
:helpful:
hoju3508
9th December 2009, 09:51
Is there a way to preserve the HD audio when slowing it from 25fps to 23.976fps? Once it's slowed down through eac3to, the HD streams are gone. It only uses the core of the track.
:thanks:
tebasuna51
9th December 2009, 11:31
Use flac output, is also lossless, or buy a TrueHD/DTS-HD encoder. But change the samplerate isn't a lossless operation.
Mark_A_W
9th December 2009, 12:36
I would use FLAC, but leave the file alone and change the speed on the during playback with Reclock.
You don't lose anything permanently that way.
hoju3508
9th December 2009, 21:16
Thanks for the feedback.
Use flac output, is also lossless, or buy a TrueHD/DTS-HD encoder. But change the samplerate isn't a lossless operation.
I would use FLAC, but leave the file alone and change the speed on the during playback with Reclock.
You don't lose anything permanently that way.
sucker
11th December 2009, 02:26
suppose i have a 1h30min track and i want to cut it, so that i only have a 1h25min track, what would be the commandline to achieve this?
tia
jmone
13th December 2009, 02:05
Given we are seeing advances in Filters supporting HD codec playback (eg FFDSHOW can now decode most and is working at bitstreaming)....is it worth transcoding the Audio or just Remux the Original Audio when using MKV containers?
jmone
13th December 2009, 08:31
wrong thread - sorry
Blue_MiSfit
13th December 2009, 10:19
IMO, most stuff can safely be transcoded to AAC with perfect transparency. I do this most of the time.
If AC3 is the best quality audio source on a given movie, then I just keep it. Why reinvent the wheel?
If a movie has an incredibly good audio track, or is a musical performance, then I either keep it as-is (if it's TrueHD), or just transcode to FLAC.
Of course, I don't have a fancy receiver, or even a 5.1ch system, so I don't mind terribly :) Headphones suit me just fine!
~MiSfit
MrVideo
14th December 2009, 08:06
There is a situation, which I've hit a few times, that causes eac3to to hang in a loop of some sort, forever.
It hits a bad section of the video, and if it is bad enough, it will not get through it, nor will it error out. This is what is on the screen when it happens:
a03 0:43:17 The source file seems to be damaged (transport error indicated).
v01 0:43:17 The source file seems to be damaged (transport error indicated).
a05 0:43:17 The source file seems to be damaged (transport error indicated).
a04 0:43:17 The source file seems to be damaged (transport error indicated).
a03 0:43:17 The source file seems to be damaged (discontinuity).
v01 0:43:17 The source file seems to be damaged (discontinuity).
a05 0:43:17 The source file seems to be damaged (discontinuity).
a04 0:43:17 The source file seems to be damaged (discontinuity).
a03 0:43:17 The source file seems to be damaged (discontinuity).
v01 0:43:17 The source file seems to be damaged (discontinuity).
a05 0:43:17 The source file seems to be damaged (discontinuity).
a04 0:43:17 The source file seems to be damaged (discontinuity).
v01 0:43:17 The source file seems to be damaged (discontinuity).
a05 This track is not clean.
a03 This track is not clean.
a04 This track is not clean.
I run via the command line (Zshell script within cygwin).
An update: I was able to take what was completed and finish the job. I then looked at the output and the real nasty damage is at 58:00 minutes. There was no error output placed onto the screen, eac3to just went into a loop and hung at that point in the file.
Carpo
16th December 2009, 17:36
I have a little issue whereby the encode i have done is just a little bit (i would say 100meg or so) big to fit on a dvd9 disc, i know i could use 2 dvd5s but was thinking it would be easier to just drop the rate of the ac3, i have the ac3 on the drive (used tsmuxer to remove true-hd part) so its sitting as a 640kbps ac3 file.
To use eac3to i would just do
eac3to gran.torino.640.ac3 gran.torino.448.ac3 -448
is that correct? or would people suggest i copy the true-hd file from the bluray disc and use ac3 to do the lot manually skipping tsmuxer down converting to ac3?
Snowknight26
16th December 2009, 18:12
To get the best quality, use the TrueHD track and go straight to the 448kbps AC3.
Carpo
16th December 2009, 18:35
Thought as much, so its just the line above i need? or do i need to add the frame rate as well?
Does this program still require external decoders to do its thing or is it all done by eac3to?
Snowknight26
16th December 2009, 22:19
The line above would work. For TrueHD, replace the source file name with the TrueHD track. You don't have to worry about any kind of 'rates' unless you're changing the video.
eac3to can decode TrueHD and it can encode AC3 without any additional extras.
Carpo
16th December 2009, 22:36
thanks :) - i have to change the rate on the ac3 otherwise i cant get the backup i made to fit on a dvd9 - its slightly oversized, if i drop the rate from 640 to 448 it should fit nicely :)
Snowknight26
16th December 2009, 22:58
Bitrate, not rate.
Carpo
16th December 2009, 23:37
same thing for me, im a lazy typist ;)
Abradoks
17th December 2009, 05:08
I have tested Nero for AC3 decoding and it seems that DRC isn't removed correctly. Here is source (http://rghost.ru/716070), AC3 (DRC: None) (http://rghost.ru/716075), AC3 (DRC: Speech) (http://rghost.ru/716076). When comparing SNR of decoded files (I use CompAudio) Nero gets same SNR as libav on file encoded without DRC, but on second file Nero gets much worse SNR, while libav has nearly same numbers.
I'm not the only one who gets this issue, it was previously reported on another forum.
samepaul
17th December 2009, 13:54
I'm sorry if I overlooked - I tried to find answer, but with no luck so far... I wonder where sources of eac3to available? As long as I understand this project uses some LGPL code/libraries and thus fall under LGPL and would have it's sources published. I wanted actually contribute in further eac3to development.
kypec
18th December 2009, 07:08
I wonder where sources of eac3to available? As long as I understand this project uses some LGPL code/libraries and thus fall under LGPL and would have it's sources published. I wanted actually contribute in further eac3to development.
You have it misunderstood I guess. Quoting the wikipedia info on LGPL (http://en.wikipedia.org/wiki/LGPL):The main difference between the GPL and the LGPL is that the latter can be linked to (in the case of a library, 'used by') a non-(L)GPLed program, and regardless of whether it is free software or proprietary software.
eac3to is free yet proprietary software (until now) and its sources are not publicly available. It uses a lot of LGPL libraries though which are bundled in the download package.
samepaul
18th December 2009, 16:20
hm.. i rather misunderstood the "linked library" concept. But yes, even so it's not "derivative work" as it's defined in the LGPL.
Anyway, I'm not pursuing any legal issues anyway. I just wanted to contribute and help with bugfixes, since I consider this project an excellent multimedia integration effort. Actually the best among all I ever seen on Doom9.
madshi
18th December 2009, 17:34
The whole point of LGPL is that closed source projects like eac3to can use LGPL libraries without having to go open source. That's the key difference between LGPL and GPL.
Thanks for the offer to help with development, and for the nice feedback, I appreciate that. I'd rather keep eac3to closed source, though, and do the bug fixing myself. I'm not aware of any major bugs (except maybe the Nero DRC bug, if that report is actually correct). So I'm not in a hurry to release a new version. Too busy with other stuff right now...
If you have some specific "big" new features you want to add to eac3to, you could either:
(1) Write some Delphi (!!) code and send it to me for integration into eac3to.
(2) Or you could create a little standard win32 dll, which eac3to would then link to.
Carpo
19th December 2009, 14:31
will you be adding support for nero 9 - or are you going to leave it with 7.x - a version you know works :p
brasch
19th December 2009, 14:53
On both Leaving Las Vegas and 3 days of the condor I can't choose any subtitles, even though they are there. Anyone know a fix for the problem?
mikelebron
19th December 2009, 15:06
Question... I noticed in some movies (so far only trueHD) once in a while at the same spot in a movie I get a little bit of static... What is that? How can i prevent it?
UPDATE: I tried redoing the file.. this time putting -keepDialNorm bu this did not help.... in the EXACT spot where the crackling was had the exact same issue... any other ideas? BTW: Its star trek first contact.. the scene is at the end where the vulcans are landing on earth for the first time... The crackle happens when the vulcan ship touches down..
Carpo
20th December 2009, 01:23
could this be an issue with the actual disc? or does this happen only after you have copied it to the drive?
mikelebron
20th December 2009, 02:27
Played right from the disc using all the same player (MPC-HC), codecs (FFDSHOW video and audio) and renderer (reclock) NO ISSUES....
what I did notice was the volume (level) was MUCH MUCH higher from the eac3to ripped version... Is this normal? I suspect in the audio chain (renderer, driver, windows mixer, etc.) is being over modulated... is there a way to have the volume level unmolested? (I know I can reduce it by -3db but I prefer it to just be like whats on the disc..)
could this be an issue with the actual disc? or does this happen only after you have copied it to the drive?
Blue_MiSfit
20th December 2009, 03:29
It's obviously not an issue with the disc.
Do you hear the crackling from the TrueHD file, simply extracted with eac3to, or is this in a transcoded file from a TrueHD source?
I'd try demuxing the TrueHD with TSMuxeR, and comparing the results (though I can't imagine there will be any).
Curious problem..
~MiSfit
tebasuna51
20th December 2009, 12:35
Played right from the disc using all the same player (MPC-HC),...
what I did notice was the volume (level) was MUCH MUCH higher from the eac3to ripped version... Is this normal? I suspect in the audio chain (renderer, driver, windows mixer, etc.) is being over modulated...
Maybe is a problem with TrueHD libav decoder, please put the log file at conversion.
If you can extract (in the source) the problematic fragment and upload to analyze ...
umaximus
20th December 2009, 18:59
Right, I have bunch of trueHD soundtracks that were demuxed in past with eac3to. Since I got a capable HD receiver I want to mux HD audio back. Doing this with TsMuxeR I have no problems with DTS-HD MA, but TsMuxer wont accept trueHD streams and is giving an error of 'Unsupported format' (cant detect stream type) on every single trueHD stream that I have (+100). Im sure there is difference in header info of how eac3to is demuxing trueHD but I have no clue how to 'repair' it.
mikelebron
20th December 2009, 21:44
Whats the best way for me to cut that one scene out to upload it?
Maybe is a problem with TrueHD libav decoder, please put the log file at conversion.
If you can extract (in the source) the problematic fragment and upload to analyze ...
mikelebron
20th December 2009, 23:23
Ok.. I used Tsmuxer to see if I had the same issue and it was there... same static while I hear the audio(not crackle)... that lead me to try again in MPC-HC and play the movie right from the disc. Low and behold... it was there from the disc. Sorry about that guys.. I dont know how I missed it. It must be something then with ffdshow decoder
stax76
21st December 2009, 03:17
I have a problem capturing console output, maybe somebody can explain me what's going on and how to fix it, the screen shot shows the problem:
http://i.imagehost.org/t/0466/aaa.jpg (http://i.imagehost.org/view/0466/aaa)
honai
21st December 2009, 03:48
Your console runs in ANSI mode, but eac3to probably assumes a Unicode codetable (which is the default for most Windows installations).
Yraen
21st December 2009, 03:54
I have a problem capturing console output, maybe somebody can explain me what's going on and how to fix it, the screen shot shows the problem:
Just a thought, are you trying to read the STDERR? Try just STDOUT if you are.
stax76
21st December 2009, 04:20
I'm using simple .NET code which works for all other applications, .NET and WinAPI are both pretty much unicode if you don't count the legacy stuff, the .NET lib is pretty powerful so maybe there is a simple solution, if not interfacing with native code would be no problem for me. I assume it has something to do with the colors eac3to outputs which is pretty cool if you just use the command shell. Both console and text encoding are not areas I have much experience. I've tried stderr first since it uses the same code running BeSweet and that use stderr, eac3to did however not write anything to stderr if I didn't miss something, I'm reading eac3to output from stdout.
stax76
21st December 2009, 04:36
It's some control chars appearing right in front of colored output, happens also when you make a bat file and redirect the output to a text file using: eac3to.exe test.wav test.ac3 > test.txt
Is there a switch to disable the colors? Otherwise I need to try trimming these control chars.
Yraen
21st December 2009, 04:43
I need to get around to trying to learn .Net. I know from autoit, when trying to read the stderr along with stdout I got the exact same result as you. When I went to stdout only I got the results I was looking for.
Edit: I'm not aware of any switches to turn off the colors.
stax76
21st December 2009, 05:00
I tried both and it only wrote something to stdout. I've checked the WinAPI console documentation and the eac3to documentation, seems I don't have luck here so I have to try to trim the 'garbage'. Thanks for the help.
stax76
21st December 2009, 05:16
If you look at the screenshot I've posted you can see BS BS BS BS etc., it means Backspace! I've checked it with a hex editor, where it was 08 08 08 so I went to ASCII at wikipedia and it said 08 is Backspace. I'm such a noob when it comes to binary data and console. :)
Abradoks
21st December 2009, 05:42
I have a problem capturing console output, maybe somebody can explain me what's going on and how to fix it, the screen shot shows the problem:
http://i.imagehost.org/t/0466/aaa.jpg (http://i.imagehost.org/view/0466/aaa)
It was already discussed a few times (1 (http://forum.doom9.org/showthread.php?p=1333829#post1333829), 2 (http://forum.doom9.org/showthread.php?p=1348250#post1348250)).
Adding -simpleoutput switch into eac3to looks like the best solution.
mrr19121970
21st December 2009, 09:18
It's really OT, but quite straightforward. See here (http://msdn.microsoft.com/en-us/library/ms682073%28VS.85%29.aspx). AttachConsole, CreateFile, GetConsoleScreenBufferInfo, ReadConsoleOutputCharacter & FreeConsole when you're done.
stax76
21st December 2009, 09:50
You receive lines from a callback using .NET, this lines can be cleaned with simple string processing.
honai
21st December 2009, 17:40
Your screenshot shows that your console assumes ANSI (in the lower right corner), not Unicode. ;)
stax76
21st December 2009, 19:23
From a text file you cannot make a relation to a console, this text file was a .NET string object which is UTF16 converted to ANSI when saving to file. I should save it better as UTF8. For the backspace (0x08) control char issue text encoding isn't relevant. eac3to is the only console application I know writing backspace to the console, other applications probably mostly write/read lines but since I never did a console application I cannot tell sure. I can handle it, it took me a while but I've learned something.
Roscoe62
22nd December 2009, 08:19
I just bought the Clone Wars Season one box set.
After ripping with AnyDVD HD, I use eac3to to select one of the episodes and rip out the video, audio & chapter data and process further from there.
However, eac3to is only showing 1 "episode" (for lack of a better term) which I don't believe is actually an episode, and there's only video - duration 15:02. No audio, no chapters.
I know there are 7 separate episodes on this disc but, for some reason, eac3to is not finding them.
Anyone else struck this yet and, if so, found a way around it?
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.