maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   Iron Man 2 trailer conversion (https://talk.maemo.org/showthread.php?t=37619)

jflatt 2009-12-18 03:32

Iron Man 2 trailer conversion
 
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

Texrat 2009-12-18 04:07

Re: Iron Man 2 trailer conversion
 
somewhat ot: Oh man this movie is so gonna rock! :D

joesphle 2009-12-18 04:46

Re: Iron Man 2 trailer conversion
 
Quote:

Originally Posted by jflatt (Post 432862)
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 2009-12-18 04:47

Re: Iron Man 2 trailer conversion
 
It's all command line stuff, but on a linux desktop. wget, ffmpeg, faad are all the programs used

joesphle 2009-12-18 04:59

Re: Iron Man 2 trailer conversion
 
Quote:

Originally Posted by jflatt (Post 432908)
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 2009-12-18 05:09

Re: Iron Man 2 trailer conversion
 
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.

gravis86 2009-12-18 05:33

Re: Iron Man 2 trailer conversion
 
Video bitrate was set to 4,000k, am I reading that correctly?

jflatt 2009-12-18 05:43

Re: Iron Man 2 trailer conversion
 
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 2009-12-18 06:20

Re: Iron Man 2 trailer conversion
 
First i've heard about the sequel. Went and watched the preview 4 times. :D

cenwesi 2009-12-18 13:30

Re: Iron Man 2 trailer conversion
 
i am definitely watching this movie when it comes out. didn't even know there was a sequel coming out.


All times are GMT. The time now is 04:10.

vBulletin® Version 3.8.8