Re: Some MP4 AAC files

"Gordon Harris" <[email protected]>
Newsgroups gmane.comp.ipod.ephpod
Message-ID <[email protected]>
Hamish: you go, guy!

Here is the Windows XP (and maybe 2K?) batch file I'm using to help automate
MP4 file creation.  Just put this file into the same directory as faac.exe,
mp4creater60.exe, mp4info.exe and libmmd.dll.  You might then create a
shortcut on your desktop to the batch file.  You can then drag and drop WAV
files onto the shortcut and the batch file will create a MP4 file in the
same folder as your WAV file.  Be sure to fix up any command lines that get
wrapped by your email client.

ENCODE.CMD:

@echo off
rem WinXP CMD file to encode a WAV file to an AAC encoded MP4 file
echo playable with QuickTime..
rem ..and hopefully on an iPod with fw 1.3

rem Check to see that we are processing a WAV file..

if "%~x1"==".WAV" goto next
if "%~x1"==".wav" goto next
echo Sorry.  I only process WAV files.  Better luck next time.
pause
goto end

:next
rem change to the input file drive and directory..
%~d1
cd %~p1


echo Ready to encode:
echo   %1
echo   -- to --
echo   %~dpn1.mp4

Rem Save any previous version of the MP4 file.
if exist "%~n1.mp4" copy /y "%~n1.mp4" "%~n1.bak"
if exist "%~n1.aac" del "%~n1.aac"
if exist "%~n1.mp4" del "%~n1.mp4"

rem Encode with FAAC as per Joe's post:
rem   -m X   AAC MPEG version, X can be 2 or 4.
rem   -o X   AAC object type, X can be LC, MAIN or
rem   -n     Don't use mid/side coding.
rem   -r     RAW AAC output file.
rem   -c <bandwidth>        Set the bandwidth in H
rem   -q <quality>  Set quantizer quality.

%~dp0faac.exe -m 4 -o LC -n -c 22050 -q 200 "%~nx1" "%~n1.aac"

rem An alternate FAAC command line:
rem %~dp0faac -m 4 "%~nx1" "%~n1.aac"

rem Shrink-wrap that AAC into an MP4 file..
%~dp0mp4creator60.exe -create="%~n1.aac" "%~n1.mp4"
if exist "%~n1.mp4" del "%~n1.aac"

rem Show the MP4 info..
%~dp0mp4info.exe "%~n1.mp4"

pause
goto end

:end

This batch file uses faac parameters suggested by Joe in a previous post.  I
don't know if these MP4 files will be playable on the iPod.  I haven't
gotten around to trying Hemish's iTunesDB hexedit surgery yet.  But soon...


-----Original Message-----
From: [email protected]
[mailto:[email protected]]On Behalf Of Hamish O'Dea
Sent: Saturday, May 03, 2003 8:55 PM
To: [email protected]
Subject: [ephpod] Some MP4 AAC files



For anyone interested, I've made available a couple of samples of
MPEG4-AAC files I created on Windows. They both play on my iPod
(Original 5 gig, reformatted to FAT32, firmware 1.3).

http://members.optushome.com.au/hodea/test-faac.mp4
http://members.optushome.com.au/hodea/test-quicktime.mp4

They are 12 second samples, about 200 kB each. The first was created
using faac (with -m 4 switch to create MPEG-4 rather than MPEG-2) and
mp4creator. The second was created with Quicktime 6.1 for Windows
(Pro) using export movie to MPEG-4, and then under options changing
"output sample rate" to 44.100 kHz.

To play them on my iPod I replaced an existing MP3, renamed it to .m4a
and changed the file name in iTunesDB with a hex editor. I don't have
access to a Mac right now, if anyone wants to try them in iTunes I'd
be interested in the results, especially when renamed to .m4a. Both
play in Quicktime on Windows.

Hamish.


------------------------------------------------------
ephPod Mailing List
FAQ and HomePage http://www.ephpod.com
mailto:[email protected] to susbcribe
mailto:[email protected] to unsusbcribe
mailto:[email protected] the mailing-list itself









------------------------------------------------------
ephPod Mailing List 
FAQ and HomePage http://www.ephpod.com 
mailto:[email protected] to susbcribe 
mailto:[email protected] to unsusbcribe 
mailto:[email protected] the mailing-list itself
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.