View Single Post
Posts: 40 | Thanked: 2 times | Joined on Dec 2009
#3
Originally Posted by jflatt View Post
This is what I ran on the desktop, ended up looking great on the N900, with about 33% CPU for gst-renderer and 17% for pulseaudio. Any suggestions to make it better?

#download source 1080p trailer
wget http://movies.apple.com/movies/param...lr1_h1080p.mov -U QuickTime

#strip out audio-only file
ffmpeg -i ironman2-z7r459g-tlr1_h1080p.mov -acodec copy -vn audio.mp4

#downmix audio from 5.1 to 2 channels
faad -d audio.mp4

#do first pass encoding 1920x800 resized to 800x320. Tried 800x336 but it was streaky
ffmpeg -i ironman2-z7r459g-tlr1_h1080p.mov -pass 1 -bt 4000kb -vcodec libx264 -b 4000kb -an -vpre baseline -threads 0 -s 800x320 temp.mp4

#do second pass, remap video and audio together
ffmpeg -i ironman2-z7r459g-tlr1_h1080p.mov -i audio.wav -map 0:0 -map 1:0 -pass 2 -bt 4000k -vcodec libx264 -b 4000k -acodec libfaac -ac 2 -ab 192k -ar 48000 -vpre baseline -threads 0 -s 800x320 "Iron Man 2.mp4"

#cleanup
#rm ironman2-z7r459g-tlr1_h1080p.mov audio.mp4 audio.wav ffmpeg2pass-0.log x264_2pass.log temp.mp4
what type of software that you're using to do that ? would you mind ?