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. |
18th September 2017, 08:11 | #1 | Link |
defkunt
Join Date: Dec 2004
Location: New Zealand
Posts: 58
|
Seeking Workflow/Tools for AAC Transcode
Hello video enthusiasts. Wondering if somebody can help fast-track me into a workflow/toolset to extract LC-AAC 5.1 Audio from an MKV, downmix this to Dolby ProLogic II stereo, then re-encode as HE-AAC to be re-muxed with the original video.
It's been a while. Back in the (DVD Backup) day I'd use DGIndex to demux a vob, indicating any delay in the filenames, then use HeadAC3he to do the delay cut and DPL downmix. Finally I'd encode with Apple's AAC encoder. I'd still like to use Apple's encoder (via qaac) but I'm scratching my head a little on up-to-date methods to; - Extract the 5.1 AAC (from MKV) while correctly handling any start offset defined in the container. - Downmix the extracted multi-channel audio to a DPL II stereo wav ready for encoding. If you can help, or just indicate some tools I should be looking at, I'd be most grateful. Thanks! |
18th September 2017, 09:14 | #2 | Link |
Life's clearer in 4K UHD
Join Date: Jun 2003
Location: Notts, UK
Posts: 12,219
|
Given that you have extracted the 6 channel AAC-LC audio stream you could use an audio encoding application such as LameXP to directly re-encode to a 2 channel HE-AAC stream...
__________________
| I've been testing hardware media playback devices and software A/V encoders and decoders since 2001 | My Network Layout & A/V Gear |
|
18th September 2017, 09:51 | #3 | Link |
defkunt
Join Date: Dec 2004
Location: New Zealand
Posts: 58
|
Hi. Actually I haven't yet settled on a method to extract the AAC. Obviously simple to use mkvextract to write the stream but I'm wary of just assuming that the track doesn't have a start offset. I gather this is unusual in Matroska but still possible?
|
18th September 2017, 13:21 | #4 | Link |
Moderator
Join Date: Feb 2005
Location: Spain
Posts: 6,890
|
You can use eac3to to extract the AAC from MKV, if there are any initial delay is compensated by eac3to adding silent audio frames.
Even with Nero 7 + plugins instaled you can decode the AAC track, compensate delay, downmix to DPL II and recode to AAC with qaac with a unique command line like (if AAC 5.1 is track 2 for instance): eac3to input.mkv 2: stdout.wav -downDpl | qaac -v 80 --he --adts --no-delay -o output.aac - You can use also BeHappy (AviSynth needed) I think than LameXP don't support downmix to Dolby ProLogic II, only plain stereo.
__________________
BeHappy, AviSynth audio transcoder. |
19th September 2017, 09:53 | #5 | Link |
defkunt
Join Date: Dec 2004
Location: New Zealand
Posts: 58
|
Thank you (both) for taking the time to reply.
While I have Nero 7 I unfortunately don't have the plug-in required for AAC decoding. I have however discovered that mkvextract timecodes_v2 will apparently give me the track start offset. If BeHappy doesn't meet my needs I'll try to roll a solution using FAAD or Nero's command line decoder then muxing the transcoded stream back into the container with the same offset. Thanks again. Last edited by defunkt; 19th September 2017 at 09:55. |
19th September 2017, 10:22 | #6 | Link |
Registered User
Join Date: Jun 2002
Location: On thin ice
Posts: 6,837
|
@defunkt
MediaInfo can show you all kind of delays, search here: https://pastebin.com/imKNnxXC The one relevant for you is Video_Delay.
__________________
https://github.com/stax76/software-list https://www.youtube.com/@stax76/playlists |
19th September 2017, 12:07 | #7 | Link | ||||
Moderator
Join Date: Feb 2005
Location: Spain
Posts: 6,890
|
Quote:
Quote:
Quote:
Quote:
NeroAacDec need a input .m4a, then need a extra step to mux aac in mp4 container.
__________________
BeHappy, AviSynth audio transcoder. Last edited by tebasuna51; 19th September 2017 at 12:11. |
||||
Thread Tools | Search this Thread |
Display Modes | |
|
|