[MEncoder-users] Backup policies
Michael Rozdoba
mroz at ukgateway.net
Tue Nov 13 13:10:28 CET 2007
Ross Clement wrote:
> On Nov 13, 2007 2:05 AM, Michael Rozdoba <mroz at ukgateway.net> wrote:>
>> If space is an issue & you don't dislike h264's destruction of noise (or
>> care to generate & re add it on subsequent decoding), x264. That's my
>> choice at any rate.
>
> Thanks. I am having a look at this now.
I should point out I don't encode with x264 using MEncoder, but others
around here must. There's certainly plenty of info around re config options.
> Here's what I have so far. It seems to produce quite good quality
> clips even at say 3000Kb/s. Though I don't have a PSNR measurement as
> for some reason vcodec=x264 nor vcodec=h264 works with lavc for me.
> I'm using -ovc x264. Note that I'm playing around with creating
> quicktime compatible files as well.
Good luck. I've always found quicktime to be so restrictive of codec
features & generally unpleasant that I don't touch it, but to be fair I
haven't looked closely in years.
> I won't apply the scale filter
> when backing up, and will use a higher bitrate. I'm also going to add
> in more "quality" parameters such as trellis.
>
> #!/bin/bash
>
> mencoder "$1" -of rawaudio -ovc copy -oac faac -faacopts
> br=192:mpeg=4:object=2 -channels 2 -srate 48000 -o "$1.aac"
>
> mencoder -of rawvideo -ovc x264 -oac copy -x264encopts
> bframes=1:bitrate=3000 "$1" -vf scale=-10:-1,harddup -o "$1.264"
>
> MP4Box -add "$1.264" -new "$2"
> MP4Box -add "$1.aac" "$2"
Does this work for non 25fps material? I might be wrong but I thought
when mp4box is given .264 input (rather than .mp4), it needs to be told
the framerate.
In case it's of any use, this is what I often use when encoding with
x264 under Windows (I imagine you might need to translate options):
x264.exe --pass 1 --bitrate <rate> --stats stats --bframes 16
--b-pyramid --direct auto --filter -2,-1 --subme 1 --analyse none --me
dia --threads auto --thread-input --sar <sar> --progress --no-psnr
--no-ssim --output NUL input.avs
x264.exe --pass 2 --bitrate <rate> --stats stats --ref 5 --mixed-refs
--bframes 16 --b-pyramid --b-rdo --bime --weightb --direct auto --filter
-2,-1 --subme 6 --trellis 1 --analyse p8x8,b8x8,i4x4,i8x8 --8x8dct --me
umh --threads auto --thread-input --sar <sar> --progress --no-psnr
--no-ssim --output output.264 input.avs
mp4box.exe -add output.264 -add audio.m4a -chap ch.txt -fps <fps> -new
finaloutput.mp4
For reference, the above is derived from MeGUI's HQSlower profile. A lot
of valuable info can be found in the x264 related threads at doom9's web
forum.
--
Michael Rozdoba
More information about the MEncoder-users
mailing list