[請問] 如何設定轉檔參數 (H264, Xvid @ffmpeg)
我現在手上的影片約都 1 ~ 1.2G(15 ~ 17 分鐘)左右
以下是用 KMPlayer 的 「媒體訊息」 擷取出來的資訊
General
Format : MPEG-2 Program Format/Family : MPEG-2
File size : 986 MiB PlayTime : 15mn 3s
Bit rate : 9161 Kbps
Video #E0
Codec : MPEG-2 Video Codec settings/Matrix : Standard
PlayTime : 15mn 3s
Bit rate : 8500 Kbps Bit rate mode : CBR
Width : 720x480 pixels Display Aspect ratio : 4/3
Frame rate : 29.970 fps Standard : NTSC
Chroma : 4:2:0 Interlacement : Top Field First
Bits/(Pixel*Frame) : 0.821
Audio #80
Codec : AC3 PlayTime : 15mn 3s
Bit rate : 384 Kbps Bit rate mode : CBR
Channel(s) : 2 channels Channel positions : L R
Sampling rate : 48 KHz Video0 delay : -67ms
小弟想問的是如果分別用 xvid(.avi) 跟 H.264(.mp4) 來做轉檔壓縮該如何下參數好?
我希望壓出來的畫質不錯,可快轉不會Lag但檔案能在 50MB~100MB 以下。
以下是我目前用的參數
※ For H.264 (這個壓出來檔案約 14x ~ 18x)
FFMPEG.EXE -i INPUT_FILE -deinterlace -r 29.97 -vcodec libx264 -s 720x480
-aspect 4:3 -flags +loop -cmp +chroma -deblockalpha 0 -deblockbeta 0 -b 1200k
-maxrate 1500k -bufsize 4M -bt 256k -refs 1 -bf 3 -coder 1 -me_method umh
-me_range 16 -subq 7 -partitions +parti4x4+parti8x8+partp8x8+partb8x8 -g 250
-keyint_min 25 -level 30 -qmin 10 -qmax 51 -qcomp 0.6 -trellis 2
-sc_threshold 40 -i_qfactor 0.71 -acodec libfaac -ab 64k -ar 44100 -ac 2
OUTPUT.mp4
※ For Xvid (怪怪的,我下 -b 1200K,壓出來還是會超過很多 @@ 約3K上下的數值)
FFMPEG.EXE -i INPUT_FILE -deinterlace -r 29.97 -vcodec libxvid -vtag XVID
-s 720x480 -b 1200k -maxrate 1500k -qmin 3 -qmax 5 -bufsize 4096 -mbd 2 -bf 2
-flags +4mv -trellis -aic -cmp 2 -subcmp 2 -g 300 -acodec libmp3lame -ar 44100
-ab 64k -ac 2 OUTPUT.avi
請各位高板眾指導一下 L(_`_)L
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 123.204.46.87
→
03/15 09:02, , 1F
03/15 09:02, 1F
→
03/15 14:12, , 2F
03/15 14:12, 2F
推
03/15 17:17, , 3F
03/15 17:17, 3F
→
03/16 02:08, , 4F
03/16 02:08, 4F
討論串 (同標題文章)