View unanswered posts | View active topics It is currently Tue May 21, 2013 8:19 am



Reply to topic  [ 2 posts ] 
 [HOW-TO] CONVERT AUDIO and CONTAINER 
Author Message

Joined: Thu Jul 22, 2010 7:03 pm
Posts: 13
Post [HOW-TO] CONVERT AUDIO and CONTAINER
Currently our players have trouble playing 5.1 AAC and MP4 files so here is a quick "fix" from me
NOTE: keep the original files if you are uncertain if the new is OK


AAC to AC3

Needed tools:

Getting ready:
  • Have Nero AAC Encoder, mkvmerge and yamb installed
  • Create a new folder for extracting audio and extract eac3to to it
  • Create a new shorcut to CMD.exe in it and change the execute in parameter to your folder location

Extracting the audio:
execute the cmd shortcut and in command line do:
  • neroaacenc -if <DRAG AND DROP FILE HERE> -of <NAME FOR THE AUDIO EX: audio.WAV>
Quote:
Notes:
    it takes tome time, and space (3GB / hour)
    it will extract the first audio track, multiple audio files will need to repack
    must extract to wav
    bad files will give errors, you will need to repack them

Converting it to ac3
still in command line do:
  • eac3to <THE PREVIOUSLY AUDIO FILE EX: audio.wav> <NEW AUDIO FILE EX: AUDIO.AC3> -448
Quote:
Notes:
This will force the bitrate to 448 deppending on your option, otherwise will do 640
Audio channels can also be swapped, but no need to do that

Muxing the new audio and video to MKV:
Now in the desktop
  • Open mkvmergegui
  • Drag and drop the video file in it
  • Drag and drop the new audio file to it
  • Uncheck the old audio track to ignore it
  • Change the language from undetermined to the propper source (optional)
  • Change the new file name
  • Press start muxing
Your file is DONE, test it an if ok delete the old files, and the "audio.wav" and "audio.ac3"


If you cant extract the audio with neroaccenc do this
Repacking a file:
  • open mkvmergegui for mkv or yamb for mp4(select 1st option)
  • drag and drop the bad file
  • guive the new name
  • start muxing
Quote:
You can skip the video stream only if you need the audio for extraction otherwise keep it



MP4 to MKV
  • open mkvmergegui
  • drag and drop the old file
  • start muxing


Tue Jun 26, 2012 9:17 am
Profile

Joined: Wed Dec 22, 2010 7:54 pm
Posts: 451
Post Re: [HOW-TO] CONVERT AUDIO and CONTAINER
Just guessing because I've not tried these conversions, but I'm pretty sure ffmpeg can do all of this (conversion from AAC to AC3 and remux from MP4 to MKV). With a batch file you could just drop your MP4 on it and ffmpeg would convert in one step without further actions needed. I love ffmpeg :D


Wed Jun 27, 2012 7:16 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 2 posts ] 

Who is online

Users browsing this forum: IBM Research [Bot] and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by: phpBB | Innitial forum Design by: STSoftware | Modified by: AC Ryan.