ffmpeg + mp4 encoding

Here’s two example ffmpeg commands for two-pass encoding:
First pass:
ffmpeg -i <inputfile> -title “<title>” -vcodec mpeg4 -acodec libfaac -b 672k -ab 96k -ar 24000 -s 480×272 -aspect 16:9 -g 300 -aic 2 -mbd 2 -cmp 3 -precmp 3 -subcmp 3 -trellis 2 -flags +4mv+trell -pass 1 -f psp Video.mp4
Second pass:
ffmpeg -i <inputfile> -title “<title>” -vcodec mpeg4 -acodec libfaac -b 672k -ab 96k -ar 24000 -s 480×272 -aspect 16:9 -g 300 -aic 2 -mbd 2 -cmp 3 -precmp 3 -subcmp 3 -trellis 2 -flags +4mv+trell -pass 2 -f psp Video.mp4

The meaning of the options:
-i <inputfile>
-title <title>
-acodec <audio codec>
-ab <audio bitrate>
-ar <audio rate>
-vcodec <video codec>
-b <video bitrate>
-s <resolution>
-aspect <aspect ratio>
-f <format>
All the other flags are options to optimize the video quality, at the expense of encoding speed.

서진우

슈퍼컴퓨팅 전문 기업 클루닉스/ 상무(기술이사)/ 정보시스템감리사/ 시스존 블로그 운영자

You may also like...

5 Responses

  1. 2024년 9월 11일

    … [Trackback]

    […] Here you can find 81877 additional Information to that Topic: nblog.syszone.co.kr/archives/3358 […]

  2. 2024년 9월 23일

    … [Trackback]

    […] Find More to that Topic: nblog.syszone.co.kr/archives/3358 […]

  3. 2024년 10월 14일

    … [Trackback]

    […] Find More on on that Topic: nblog.syszone.co.kr/archives/3358 […]

  4. 2024년 10월 18일

    … [Trackback]

    […] Here you can find 33363 more Info to that Topic: nblog.syszone.co.kr/archives/3358 […]

  5. 2024년 11월 18일

    … [Trackback]

    […] Read More Info here to that Topic: nblog.syszone.co.kr/archives/3358 […]

페이스북/트위트/구글 계정으로 댓글 가능합니다.