아라의 글로벌 마인드 칼럼..think globally [댓글 불허 블로그]


[ 사회 참여 활동은 작은 참여로부터 시작된다. ]


This ffmpeg setting can be use it in linux, too.

This is setting for myself from various sources especially maxconsole.net's PSP forum.
And this is setting specifically to 3GP Converter 0.34 with quite old ffmpeg for windows version.

[Item5]
Title=ipod touch 480x320/768kbps
TitleE=ipod touch 480x320/768kbps
Command0=""<%AppPath%>\cores\ffmpeg" -bitexact -y -i "<%InputFile%>" -title "<%Title%>" -timestamp "<%TimeStamp%>" -vcodec h264 -level 30 -coder 0 -bufsize 10M -g 250 -s 480x320 -r 25 -b 768k -qmin 21 -qmax 29 -passlogfile "<%OutputFile%>" -pass 1 -f mp4 "<%OutputFile%>.MP4""
Command1=""<%AppPath%>\cores\ffmpeg" -bitexact -y -i "<%InputFile%>" -title "<%Title%>" -timestamp "<%TimeStamp%>" -vcodec h264 -level 30 -coder 0 -bufsize 10M -g 250 -s 480x320 -r 25 -b 768k -qmin 21 -qmax 29 -passlogfile "<%OutputFile%>" -pass 2 -acodec aac -ac 2 -ar 48000 -ab 128 -vol 150 -f mp4 "<%OutputFile%>.MP4""
Command2="rm "<%OutputFile%>-0.log""

I know there has a lot of good tools such as XViD4PSP, Videora but I prefer to using the 3G converter because it was most fastest and screen quality also good. I think reason is that my computer was quite old Pentium PC. So probably these new tools are more suitable for Core or 64bit CPU.


I found quite good example for linux.
I found it in Robert Swain's blog. But I couldn't test it so you can try out yourself.
Here is address http://rob.opendot.cl/index.php/useful-stuff/ipod-video-guide/

For one pass:
ffmpeg -i INPUT -acodec libfaac -ab 128k -s WIDTHxHEIGHT -vcodec libx264 -b BIT_RATE -flags +loop -cmp +chroma -partitions +parti4x4+partp8x8+partb8x8 -me umh -subq 5 -trellis 1 -refs 1 -coder 0 -me_range 16 -g 300 -keyint_min 25 -sc_threshold 40 -i_qfactor 0.71 -bt BIT_RATE -maxrate 10M -bufsize 10M -rc_eq 'blurCplx^(1-qComp)' -qcomp 0.6 -qmin 10 -qmax 51 -qdiff 4 -level 30 -aspect WIDTH:HEIGHT OUTPUT.mp4
AtomicParsley OUTPUT.mp4 --DeepScan --iPod-uuid 1200 --overWrite

For two pass:
ffmpeg -i INPUT -an -pass 1 -s WIDTHxHEIGHT -vcodec libx264 -b BIT_RATE -flags +loop -cmp +chroma -partitions 0 -me epzs -subq 1 -trellis 0 -refs 1 -coder 0 -me_range 16 -g 300 -keyint_min 25 -sc_threshold 40 -i_qfactor 0.71 -bt BIT_RATE -maxrate 10M -bufsize 10M -rc_eq 'blurCplx^(1-qComp)' -qcomp 0.6 -qmin 10 -qmax 51 -qdiff 4 -level 30 -aspect WIDTH:HEIGHT OUTPUT.mp4
ffmpeg -i INPUT -acodec libfaac -ab 128k -pass 2 -s WIDTHxHEIGHT -vcodec libx264 -b BIT_RATE -flags +loop -cmp +chroma -partitions +parti4x4+partp8x8+partb8x8 -me umh -subq 5 -trellis 1 -refs 1 -coder 0 -me_range 16 -g 300 -keyint_min 25 -sc_threshold 40 -i_qfactor 0.71 -bt BIT_RATE -maxrate 10M -bufsize 10M -rc_eq 'blurCplx^(1-qComp)' -qcomp 0.6 -qmin 10 -qmax 51 -qdiff 4 -level 30 -aspect WIDTH:HEIGHT OUTPUT.mp4

AtomicParsley OUTPUT.mp4 --DeepScan --iPod-uuid 1200 --overWrite


* Thanks for the good info. to Robert Swan and you can find a lot of useful tips about x264's setting in his blog.