making h264, quicktime7
compatible files for web (using
freeware tools on winxp)
what is this for?
input
in this example is
DV
AVI, output is x264/AAC
mp4 file compatible
with qt7.
1.
- avisynth
2.5x http://www.doom9.org/index.html?/software2.htm
notepad, input avi is of DV type:
DirectShowsource("film.avi").info
#remove
.info before
encoding
LanczosResize(512,384)
assumefps(25)
ConvertToYV12
save as film.avs
2. - x264.exe http://x264.nl/ (x264-xxx-install.exe) or http://forum.doom9.org/showthread.php?t=89979
x264
-B 500 -o "film.mp4"
film.avs
3. -mp4box http://forum.doom9.org/showthread.php?t=94874
mp4box
-add film.mp4
film_final.mp4
4. -mplayer http://www.mplayerhq.hu or http://oss.netfarm.it/mplayer-win32.php
extract audio from avi:
mplayer
-ao pcm -vo null
film.avi
5. -faac http://www.rarewares.org/aac.html
faac
-b 128 --mpeg-vers 4
audiodump.wav
6. muxing and hinting:
mp4box
-add audiodump.aac
film_final.mp4 -hint
7. delete some temporary files:
del
audiodump.*
del
film.mp4
.end
- last update: there seems
to be a way to get consistent result, you shouldnt use raw 264 as
output from x264 cli but rather mp4 itself..., more info here: http://forum.doom9.org/showthread.php?t=102609&page=1&pp=20
(this guide was allready updated according to this thread.)
---
notes, questions, explanations, ect:
- 1. you can use avisource if there is vfw DV decoder installed, like
Cedocida.
- 2. q: what would be a fast and goodquality x264 command line for
bitrates around 500 kbps, preferably single pass for speed - compatible
with qt7?
- 2. --threads 4 (for dual xeon) - use as many threads
as there are virtual cpus. - untested.
- 5. q: what would be goodquality faac command line for 128 kbps?
V.
- 4. slow and silly, adding -vc
dummy will crash
mplayer on win, alternative solution required (see next point).
- 4. and 5. mplayer -ao pcm -vo null -vc dummy
film.avi&faac -b 128 --mpeg-vers 4 audiodump.wav - meaning: dump the file and encode
using faac, seems to work fine on this intel where -vc
dummy did crash
on my home athlon, to try:
mplayer.exe yourmovie.avi -dumpaudio -dumpfile audio.wav.
- q: is it possible to construct real piping from mplayer to faac on
winxp cmd?
- you could also use XVID for the video part, even without avisynth,
for example: mencoder_xvid_on_winxp.html.
---
here is a little windows bat file you can put to some use,
distro: http://somestuff.org/x264_qt/x264_bat.zip,
upgrade: http://somestuff.org/x264_qt/x264_.bat
---
other links:
http://forum.doom9.org/showthread.php?t=96059 (MPEG-4 AVC/H.264 Information)
http://somestuff.org/blog/index.php?entry=entry051129-074009 (related blog entry)
last
update: 27.dec.05
smok3
(report
back your
findings - smoker at NOSPAMemail dot si)