|
2009-12-18
, 04:07
|
|
Posts: 11,700 |
Thanked: 10,045 times |
Joined on Jun 2006
@ North Texas, USA
|
#2
|
|
2009-12-18
, 04:46
|
Posts: 40 |
Thanked: 2 times |
Joined on Dec 2009
|
#3
|
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
|
2009-12-18
, 04:47
|
|
Posts: 534 |
Thanked: 723 times |
Joined on Oct 2009
|
#4
|
|
2009-12-18
, 04:59
|
Posts: 40 |
Thanked: 2 times |
Joined on Dec 2009
|
#5
|
|
2009-12-18
, 05:09
|
|
Posts: 534 |
Thanked: 723 times |
Joined on Oct 2009
|
#6
|
|
2009-12-18
, 05:33
|
Posts: 41 |
Thanked: 3 times |
Joined on Dec 2009
@ Kirkland, WA
|
#7
|
|
2009-12-18
, 05:43
|
|
Posts: 534 |
Thanked: 723 times |
Joined on Oct 2009
|
#8
|
|
2009-12-18
, 06:20
|
|
Posts: 1,559 |
Thanked: 1,786 times |
Joined on Oct 2009
@ Boston
|
#9
|
|
2009-12-18
, 13:30
|
Posts: 313 |
Thanked: 86 times |
Joined on Oct 2009
|
#10
|
#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