Reply
Thread Tools
jflatt's Avatar
Posts: 534 | Thanked: 723 times | Joined on Oct 2009
#1
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
 

The Following 2 Users Say Thank You to jflatt For This Useful Post:
Texrat's Avatar
Posts: 11,700 | Thanked: 10,045 times | Joined on Jun 2006 @ North Texas, USA
#2
somewhat ot: Oh man this movie is so gonna rock!
__________________
Nokia Developer Champion
Different <> Wrong | Listen - Judgment = Progress | People + Trust = Success
My personal site: http://texrat.net
 
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 ?
 
jflatt's Avatar
Posts: 534 | Thanked: 723 times | Joined on Oct 2009
#4
It's all command line stuff, but on a linux desktop. wget, ffmpeg, faad are all the programs used
 
Posts: 40 | Thanked: 2 times | Joined on Dec 2009
#5
Originally Posted by jflatt View Post
It's all command line stuff, but on a linux desktop. wget, ffmpeg, faad are all the programs used
have any idea that window desktop software be able to do the same ?
 
jflatt's Avatar
Posts: 534 | Thanked: 723 times | Joined on Oct 2009
#6
I know there's ffmpeg and wget for win32, a quick google search seems to show faad win32 also. You're on your own from there though. You might want to at least get VirtualBox and install Ubuntu on it.
 
Posts: 41 | Thanked: 3 times | Joined on Dec 2009 @ Kirkland, WA
#7
Video bitrate was set to 4,000k, am I reading that correctly?
 
jflatt's Avatar
Posts: 534 | Thanked: 723 times | Joined on Oct 2009
#8
Yeah, too much? The resulting file was about 74MB. Apple's 480p is 46MB. Played smooth, but could maybe get away with only using 2000.
 
Flandry's Avatar
Posts: 1,559 | Thanked: 1,786 times | Joined on Oct 2009 @ Boston
#9
First i've heard about the sequel. Went and watched the preview 4 times.
__________________

Unofficial PR1.3/Meego 1.1 FAQ

***
Classic example of arbitrary Nokia decision making. Couldn't just fallback to the no brainer of tagging with lat/lon if network isn't accessible, could you Nokia?
MAME: an arcade in your pocket
Accelemymote: make your accelerometer more joy-ful
 
Posts: 313 | Thanked: 86 times | Joined on Oct 2009
#10
i am definitely watching this movie when it comes out. didn't even know there was a sequel coming out.
 
Reply


 
Forum Jump


All times are GMT. The time now is 06:50.