View Single Post
Old November 15th, 2009, 07:31 AM   #212 (permalink)
NobodySpecial
New Member
 
Join Date: Nov 2009
Location: United States
Posts: 5
 
Device(s):
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by mr_manny View Post
I updated my ffmpeg script on my Linux box that served me well during my e71 days...love the new resolution

source file info:
$ file TEST.HDTV.XviD.avi
TEST.HDTV.XviD.avi: RIFF (little-endian) data, AVI, 624 x 352, 23.98 fps, video: XviD, audio: MPEG-1 Layer 3 (stereo, 48000 Hz)


encode script example:
$ cat testscript.sh
#!/bin/sh
ffmpeg -y -i $1 -acodec libfaac -ab 160k -s 720x480 -aspect 16:9 -vcodec libx264 -b 500k \
-qcomp 0.6 -qmin 16 -qmax 51 -qdiff 4 -flags +loop -cmp +chroma -subq 7 -refs 6 -g 300 \
-keyint_min 25 -rc_eq 'blurCplx^(1-qComp)' -sc_threshold 40 -me_range 12 -i_qfactor 0.71 \
-directpred 3 outputTEST.mp4
exit

syntax:
./testscript.sh TEST.HDTV.XviD.avi

720x480 works like a charm...wish I could say the same for 848x480

Tried a few variations, unfortunately I'm experiencing some pretty bad pixelation during playback of higher res. output mp4 files...

seems ffmpeg is also available for windows...your mileage may vary

manny
mr_manny - I previously did a transcode of a video from apple/trailers, so this time I went to YouTube, downloaded a High Def Vid in mp4 format and ran the script - it worked fine.

Both the vids I did were 1280 x 720 which is an aspect ratio of 1.777. So on the script I added "-s wvga" to set the width and height. Runs with occasional slight choppiness, but no pixelation.

Also, I did try converting an FLV video, but couldn't get that one to end up looking very good - must need a different parameter, but I haven't had time to experiment.
NobodySpecial is offline  
Reply With Quote