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 24th November 2010, 01:13   #10781  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
Join Date: Feb 2005
Location: Spain
Posts: 6,915
Quote:
Originally Posted by sreemv View Post
...
libav ERROR: block code look-up failed
...
Applying -12.53dB gain...
...
Your extracted dts seems damaged.
Try fix it with DelayCut.
Put here the log if there are errors.

Quote:
Encoding DTS <1536kbps> with Surcode...
Found Surcode DTS Encoder version 1.0.29.0.
Pressing the Surcode "Encode" button didn't seem to work...
Closing Surcode...

Is there a way to save the frame converted "wavs" and use the "surcode" independently? eac3to keeps deleting them after the above failure.
Yes, use:
eac3to input.dts output.wavs -23.976 -changeTo24.000

Quote:
eac3to "original.mkv"
MKV, 1 video track, 1 subtitle track, 2:11:21, 24p /1.001
1: h264/AVC, 1920x818 24p /1.001 (960:409)
2: Subtitle (SRT)
Your mkv is 23.976, in theory you don't need change the audio duration.
__________________
BeHappy, AviSynth audio transcoder.
tebasuna51 is offline  
Old 24th November 2010, 07:54   #10782  |  Link
sreemv
Registered User
 
Join Date: Feb 2003
Posts: 81
Quote:
Originally Posted by tebasuna51 View Post
Your extracted dts seems damaged.
Try fix it with DelayCut.
Put here the log if there are errors.
I dont see any option in "delaycut" [v1.2.12.] for verifying/fixing - the "crc errors" section is grayed out once I load the "dts" as the "input file" - I must be missing something?

Quote:
Yes, use:
eac3to input.dts output.wavs -23.976 -changeTo24.000
Doh! I should have guessed that - very similar to what I was doing with LPCM-to-DTS - thanks

Quote:
Your mkv is 23.976, in theory you don't need change the audio duration.
Hmmm....this is frustrating - at the beginning of the movie, audio appears lagging and then few minutes in the audio goes ahead without me changing anything...*scratch-head*

Thanks again for all your help!
sreemv is offline  
Old 24th November 2010, 08:00   #10783  |  Link
sreemv
Registered User
 
Join Date: Feb 2003
Posts: 81
Quote:
Originally Posted by tebasuna51 View Post
Your extracted dts seems damaged.
Try fix it with DelayCut.
Put here the log if there are errors.
Doh! Looks like delaycut appears to by default run a fixer algorithm? Didnt see any errors:

====== INPUT FILE INFO ========================
File is dts
Bitrate (kbit/s) 1536
Act rate (kbit/s) 1509.750
File size (bytes) 1427019726
Channels mode C+L+R+SL+SR
Sampling Frec 48000
Low Frec Effects LFE: Present
Duration 02:06:01.621
Frame length (ms) 10.666667
Frames/second 93.750000
Num of frames 708902
Bytes per Frame 2013.0000
Size % Framesize 0
CRC present: NO
=============================================
====== TARGET FILE INFO ======================
Start Frame 0
End Frame 708901
Num of Frames 708902
Duration 02:06:01.621
NotFixedDelay 0.0000
=============================================
====== PROCESSING LOG ======================
Number of written frames = 708902
Number of Errors= 0

Last edited by sreemv; 24th November 2010 at 08:03.
sreemv is offline  
Old 24th November 2010, 11:12   #10784  |  Link
acki
Registered User
 
acki's Avatar
 
Join Date: Jan 2003
Location: Spain
Posts: 27
Quick question. If you want to convert audio from a 25fps sample to a 23.976 sample... does it make any difference if you use:

Code:
-slowdown          convert 25.000 and 24.000 content to 23.976 fps
or either

Code:
-23.976/...        define source fps to be "23.976", "24.000", "25.000", ...
-changeTo24.000    change source fps to "23.976", "24.000", "25.000", ...
Being in this last case -25.000 -changeTo23.976 ?

Which one should be more apropriate ?

acki is offline  
Old 24th November 2010, 12:21   #10785  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
Join Date: Feb 2005
Location: Spain
Posts: 6,915
Quote:
Originally Posted by sreemv View Post
...
Hmmm....this is frustrating - at the beginning of the movie, audio appears lagging and then few minutes in the audio goes ahead without me changing anything...*scratch-head*
You have:
Code:
MKV, 1 video track, 1 subtitle track, 2:11:21, 24p /1.001
DTS, 5.1 channels, 2:06:02, 24 bits, 1510kbps, 48kHz
If you are sure than mkv and dvd movie is the same version (can be normal, extended, director's cut, ...), with same title credits also, the duration suggest you need a a more strong conversion like 25 -> 23.976 :

MKV: 7881 seconds
DTS: 7562 seconds
7562 x 25 / (24/1.001) = 7884
__________________
BeHappy, AviSynth audio transcoder.
tebasuna51 is offline  
Old 24th November 2010, 12:25   #10786  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
Join Date: Feb 2005
Location: Spain
Posts: 6,915
Quote:
Originally Posted by acki View Post
...
-slowdown convert 25.000 and 24.000 content to 23.976 fps
...
Being in this last case -25.000 -changeTo23.976 ?
Absolutely equivalent.
__________________
BeHappy, AviSynth audio transcoder.
tebasuna51 is offline  
Old 24th November 2010, 14:52   #10787  |  Link
acki
Registered User
 
acki's Avatar
 
Join Date: Jan 2003
Location: Spain
Posts: 27
Quote:
Originally Posted by tebasuna51 View Post
Absolutely equivalent.
OK, Gracias Thanks for the info.
acki is offline  
Old 25th November 2010, 01:42   #10788  |  Link
sreemv
Registered User
 
Join Date: Feb 2003
Posts: 81
Quote:
Originally Posted by tebasuna51 View Post
You have:
Code:
MKV, 1 video track, 1 subtitle track, 2:11:21, 24p /1.001
DTS, 5.1 channels, 2:06:02, 24 bits, 1510kbps, 48kHz
If you are sure than mkv and dvd movie is the same version (can be normal, extended, director's cut, ...), with same title credits also, the duration suggest you need a a more strong conversion like 25 -> 23.976 :

MKV: 7881 seconds
DTS: 7562 seconds
7562 x 25 / (24/1.001) = 7884
Absolutely positvely same movie - no special director cut or extended - just that they are sloppy during credits at the beginnig and end of the movies, there is no audio for few seconds.

Can you suggest a way to find the exact timecodes for where the audio starts and end on the dvd?
sreemv is offline  
Old 25th November 2010, 03:35   #10789  |  Link
sreemv
Registered User
 
Join Date: Feb 2003
Posts: 81
I may have found the root of my problem - notice below different vob files appear to have different audio lags? Also - whats the duration printed at the end of the first line for each vob? what does that represent - please help! THANKS for all the expert advice!

N:\RipBot264v1.16.3\Tools\eac3to>eac3to N:\Original\VIDEO_TS\VTS_01_1.VOB
VOB, 1 video track, 1 audio track, 0:02:55
1: MPEG2, 480i60 /1.001 (16:9)
2: DTS, 5.1 channels, 24 bits, 1510kbps, 48kHz

N:\RipBot264v1.16.3\Tools\eac3to>eac3to N:\Original\VIDEO_TS\VTS_01_2.VOB
MPG, 1 video track, 1 audio track, 0:00:33
1: MPEG2, 480i60 /1.001 (16:9)
2: DTS, 5.1 channels, 24 bits, 1510kbps, 48kHz, -343ms

N:\RipBot264v1.16.3\Tools\eac3to>eac3to N:\Original\VIDEO_TS\VTS_01_3.VOB
MPG, 1 video track, 1 audio track, 0:01:55
1: MPEG2, 480i60 /1.001 (16:9)
2: DTS, 5.1 channels, 24 bits, 1510kbps, 48kHz, -376ms

N:\RipBot264v1.16.3\Tools\eac3to>eac3to N:\Original\VIDEO_TS\VTS_01_4.VOB
MPG, 1 video track, 1 audio track, 13:14:56
1: MPEG2, 480i60 /1.001 (16:9)
2: DTS, 5.1 channels, 24 bits, 1510kbps, 48kHz, -378ms

N:\RipBot264v1.16.3\Tools\eac3to>eac3to N:\Original\VIDEO_TS\VTS_01_5.VOB
MPG, 1 video track, 1 audio track, 13:13:51
1: MPEG2, 480i60 /1.001 (16:9)
2: DTS, 5.1 channels, 24 bits, 1510kbps, 48kHz, -482ms

N:\RipBot264v1.16.3\Tools\eac3to>eac3to N:\Original\VIDEO_TS\VTS_01_6.VOB
MPG, 1 video track, 1 audio track, 0:07:43
1: MPEG2, 480i60 /1.001 (16:9)
2: DTS, 5.1 channels, 24 bits, 1510kbps, 48kHz, -327ms

N:\RipBot264v1.16.3\Tools\eac3to>eac3to N:\Original\VIDEO_TS\VTS_01_7.VOB
MPG, 1 video track, 1 audio track, 13:13:10
1: MPEG2, 480i60 /1.001 (16:9)
2: DTS, 5.1 channels, 24 bits, 1510kbps, 48kHz, -236ms

N:\RipBot264v1.16.3\Tools\eac3to>

Do I need to account for different delays for different vobs? Or am I barking up the wrong tree?
sreemv is offline  
Old 25th November 2010, 03:41   #10790  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
Join Date: Feb 2005
Location: Spain
Posts: 6,915
Use:
eac3to N:\Original\VIDEO_TS\VTS_01_1.VOB+...+N:\Original\VIDEO_TS\VTS_01_7.VOB
__________________
BeHappy, AviSynth audio transcoder.

Last edited by tebasuna51; 25th November 2010 at 03:43.
tebasuna51 is offline  
Old 25th November 2010, 03:58   #10791  |  Link
Inspector.Gadget
Registered User
 
Join Date: May 2008
Posts: 1,618
If things are still out of sync: Try demuxing the entire title with DGIndex to see if eac3to gives you the same output (e.g., load the VOBs 1-7 in order into DGIndex, make sure "demux all streams" is selected for audio, and run it. It'll print a delay value to the file name of the outputted DTS file.

There is another potential problem with audio from a DVD:

So far as I know, neither DGIndex nor eac3to can automatically correct a series of VOBs that either contains more than one title (a trailer at the beginning, etc.) or a blank cell in VOB 1 which consists of a few seconds of black screen and no audio. Either one will wreck delay values for the whole movie. The thing to do if you have a video-only cell near the beginning is to set DGIndex's first marker to the first frame of actual content (first frame that isn't totally black) and demux from there; that will correct the audio delay so it starts where that frame does, except for limitations built into the audio codec which may leave you with a remaining value of some milliseconds (again printed to the file name of the output audio).

The way to handle a multi-title VOB set is to run PGCDemux against a complete decrypted copy of the original DVD and make sure it runs in the PGC and Title domain (two select boxes). Your output will be only the movie, and you can pass that to DGIndex or eac3to without further problems.
Inspector.Gadget is offline  
Old 25th November 2010, 11:49   #10792  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
Join Date: Feb 2005
Location: Spain
Posts: 6,915
Quote:
Originally Posted by Inspector.Gadget View Post
...
There is another potential problem with audio from a DVD:

So far as I know, neither DGIndex nor eac3to can automatically correct a series of VOBs that either contains more than one title (a trailer at the beginning, etc.)
I agree. Of course you need extract from DVD only the Title for main movie with DVDDecrypter or PGCDemux or other tool.

Quote:
or a blank cell in VOB 1 which consists of a few seconds of black screen and no audio...
About this problem I always have a doubt.
The workaround explained for DGIndex is clear: the delay printed in audio extracted file is related to the .d2v video index created.
But I'm not sure how eac3to manage this problem.

Anyway you can't know if you need a different initial delay to match BD video and must be verified always.

But the problem with delays between VOB files (overlap) is managed correctly (I think) by both tools.
__________________
BeHappy, AviSynth audio transcoder.
tebasuna51 is offline  
Old 26th November 2010, 12:39   #10793  |  Link
alex_t
Registered User
 
Join Date: Nov 2010
Posts: 1
Hi everybody and madshi.

First, BIG THANKS madshi for this software !

I would like to report here a bug (I think it is but I'm not sure). Revision is 3.24.

I wanted to convert a Blu-ray 23.976 in 25.000 FPS. The command was as below:

eact3to blu-ray_directory 1) 2: k:\movie.mkv 3: k:\audio.flac 13: k:\subtitle.sup -speedup

Conversion for audio was : DTS HD MA to FLAC with dts arcsoft decoder

During the 1st pass, clipping has been detected by eac3to and a 2nd pass has been done.

During the 1st pass: a message said 'convert 23.976 to 25.000'

But at the end of 2nd pass, a message said 'fps at 23.976 has been added in MKV header' (something like this)

Result was that the FPS remained at 23.976. I use MPC HC as player.

I would like to change 23.976 FPS into 25.000 FPS with eac3to. May be I did not use the good -option (I used -speedup)

What is the difference between -speedup and -changeTo25.000 ?

Thanks

Regards
(sorry for my english)

Last edited by alex_t; 26th November 2010 at 12:42.
alex_t is offline  
Old 26th November 2010, 15:21   #10794  |  Link
nurbs
Registered User
 
Join Date: Dec 2005
Posts: 1,460
I haven't used speedup myself, but normally you have to put the options next to the track you want to use them on, e.g.
eac3to blu-ray_directory 1) 2: k:\movie.mkv -speedup 3: k:\audio.flac -speedup 13: k:\subtitle.sup -speedup (I don't know if this actually works for subtitles)

May I ask why you want to convert the framerate?
It's usually more trouble than it's worth and converting from 23.976 to 25 is almost never necessary.
nurbs is offline  
Old 26th November 2010, 16:17   #10795  |  Link
TinTime
Registered User
 
Join Date: Jan 2009
Location: UK
Posts: 403
Quote:
Originally Posted by tebasuna51 View Post
But the problem with delays between VOB files (overlap) is managed correctly (I think) by both tools.
I've had occasional problems with eac3to and DVDs ("A Good Year" was one) so I always use DGIndex for demuxing DVDs.
TinTime is offline  
Old 26th November 2010, 18:11   #10796  |  Link
Inspector.Gadget
Registered User
 
Join Date: May 2008
Posts: 1,618
Quote:
Originally Posted by alex_t View Post
Hi everybody and madshi.

First, BIG THANKS madshi for this software !

I would like to report here a bug (I think it is but I'm not sure). Revision is 3.24.

...
You have to do audio and video speed-up separately, because eac3to doesn't speed up video or subtitles. One way to accomplish this is to use eac3to as usual for audio speed-up.

For video, you have two methods: If you're re-encoding anyway, just add AssumeFPS(25, 1, false) to your Avisynth script. If you're not going to re-encode, mux your final MKV (original video + sped-up audio) with MKVMergeGUI, and make sure to set the video framerate to be 25.

For subtitles, you can OCR Blu-ray SUP to SRT with Suprip and then convert the framerate of the output SRT from 23.976 to 25.00fps using Subrip.

Last edited by Inspector.Gadget; 26th November 2010 at 18:13.
Inspector.Gadget is offline  
Old 26th November 2010, 20:53   #10797  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
Join Date: Feb 2005
Location: Spain
Posts: 6,915
Quote:
Originally Posted by Inspector.Gadget View Post
You have to do audio and video speed-up separately, because eac3to doesn't speed up video ...

For video,... mux your final MKV (original video + sped-up audio) with MKVMergeGUI, and make sure to set the video framerate to be 25.
This work also:
eac3to blu-ray_directory 1) 2: k:\movie.mkv -speedup 3: k:\audio.flac -speedup

The movie.mkv is already 25 fps
__________________
BeHappy, AviSynth audio transcoder.
tebasuna51 is offline  
Old 29th November 2010, 06:02   #10798  |  Link
Mtz
Registered User
 
Mtz's Avatar
 
Join Date: Sep 2003
Location: On The Beach
Posts: 714
I know 3 modes for PAL > NTSC (25>23.976) audio conversion (slowdown) used in 2 programs. Can you recommend some audio conversion for AC3 > AC3?

1. eac3to > slowdown (or another setting?)

2. behappy > Timestretch with which options of these:
- Rate, tempo, and no pitch correction
- Pitch changed preserving tempo
- Tempo changed, pitch correction

3. behappy > Resample SSRC - Slowdown 25 -> 23.976
?

enjoy,
Mtz
Mtz is offline  
Old 29th November 2010, 09:04   #10799  |  Link
sreemv
Registered User
 
Join Date: Feb 2003
Posts: 81
Quote:
Originally Posted by Inspector.Gadget View Post
The way to handle a multi-title VOB set is to run PGCDemux against a complete decrypted copy of the original DVD and make sure it runs in the PGC and Title domain (two select boxes). Your output will be only the movie, and you can pass that to DGIndex or eac3to without further problems.
I did exactly what you suggested - used PGCDemux [by PGC and Titles domain] and got a clean DTS - tried it as is [23.976] and a sped up version [24fps] - still no sync. scratching head.

But, shouldnt I be setting the source to "29.970" for NTSC? Thats what it shows in mediainfo as frame reate for the video.

On an another note, any advice on how I might compare 2 audio [ac3, DTS] tracks side-by-side with timecodes?

Last edited by sreemv; 29th November 2010 at 10:21.
sreemv is offline  
Old 29th November 2010, 12:56   #10800  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
Join Date: Feb 2005
Location: Spain
Posts: 6,915
Quote:
Originally Posted by Mtz View Post
I know 3 modes for PAL > NTSC (25>23.976) audio conversion (slowdown) used in 2 programs. Can you recommend some audio conversion for AC3 > AC3?
A conversion implies 3 steps:

a) Decode audio:

a.1) eac3to can use Nero 7 decoder (certified but there are some issues reported about cancel DialNorm) or sonic (applies DRC always, not recommended) or free decoder libav.

a.2) BeHappy can use NicAudio or DirectShow decoder. I can't know your DirectShow decoder and how is configured.

After my test I prefer NicAudio but maybe is conditioned by parental love.

There are also other commercial certified Dolby Digital audio decoders, take care with DN and DRC.

b) Tempo conversion.

b.1) eac3to can use SSRC routines, by default, but also r8brain.

b.2) BeHappy can use SSRC routines or SoundTouch (TimeStretch).

SSRC, r8brain and TimeStretch-rate change the tempo and the pitch. If your audio is from a PAL-DVD maybe the original pitch is recovered, then for this source SSRC is recommended (maybe the SSRC routines in eac3to are more updated than included in AviSynth).

For other sources with correct pitch (PAL cameras for instance) maybe you want preserve the pitch and use TimeStrech-tempo.

There are also many Audio Editors (Audacity, Audition, SoundForge, ...) that can do the job with many options.
Maybe Prosoniq TimeFactory is a good option between the commercial soft.

c) Encode audio:
Both, eac3to and BeHappy, use Aften to encode AC3. The only difference can be the versión used. Maybe the best quality using Aften is with the parameters:
-b 640 -readtoeof 1 -exps 32 -s 1
You can use the last Aften.exe version with BeHappy and with eac3to with something like:

eac3to input stdout.wav -slowdown | Aften -b 640 -readtoeof 1 -exps 32 -s 1 - output.ac3

Of course you can use any commercial certified Dolby Digital audio encoder.

Make your choice.
__________________
BeHappy, AviSynth audio transcoder.
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 14:19.


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