恆定影格率

抱歉,我一直在努力調整 MP4 Normal 設定檔中的命令,想讓 HandBrake 輸出固定影格率(CFR)而非可變影格率(VFR)。我試過 -q 參數,但似乎放錯位置。有人能指點我該怎麼做,才能讓它產生固定 30fps 的 MP4 檔案嗎?以下是我正在編輯的設定檔:

[MP4 Normal]
Description=Main profile, good quality 1 pass MP4 (H.264/AAC) conversion. Good for most conversions, produces good results and is faster than the two pass conversion.
order=handbrake,ffmpeg,mencoder
mencoder-general=-ss 3 -vf pullup,softskip,yadif=0:-1,hqdn3d,harddup
mencoder-video=-ovc x264 -x264encopts bitrate=1400:me=hex:trellis=1:subq=8:partitions=all:8x8dct:ref=3:rc_lookahead=50:keyint=25:keyint_min=20:bframes=1:weight_b:level_idc=40:b_pyramid=normal:direct_pred=auto:mixed_refs:deblock=-1,-1:nofast_pskip:nodct_decimate:b_adapt=0:threads=auto
mencoder-audio=-oac faac -faacopts br=160:mpeg=4:tns:object=2
mencoder-audioac3=-oac faac -faacopts br=256:mpeg=4:tns:object=2
mencoder-ext=.avi
mencoder-remuxto=.mp4
mencoder-audiodelay=skip
ffmpeg-general=-threads 0
ffmpeg-video=-ss 3 -vf yadif=0:-1:1,hqdn3d -vcodec libx264 -b 1400k -x264opts me=hex:trellis=1:subq=8:partitions=all:8x8dct=1:ref=3:rc-lookahead=50:keyint=25:min-keyint=20:bframes=1:weightb=1:level=4.0:b-pyramid=normal:direct=auto:mixed-refs=1:deblock=-1,-1:no-fast-pskip=1:no-dct-decimate=1:b-adapt=0:threads=auto -map 0:v -sn
ffmpeg-audio=-acodec libfdk_aac -ab 160k -cutoff 18000 -map 0:a
ffmpeg-audioac3=-acodec libfdk_aac -ab 256k -cutoff 18000 -map 0:a
ffmpeg-ext=.mp4
ffmpeg-audiodelay=skip
handbrake-general=–decomb --loose-anamorphic --verbose=2 -f mp4 -O
handbrake-video=–start-at duration:3 -e x264 -b 1400 -x me=hex:trellis=1:subq=8:partitions=all:8x8dct:ref=3:rc-lookahead=50:keyint=25:keyint-min=20:bframes=1:weight-b:level-idc=40:b-pyramid=normal:direct-pred=auto:mixed-refs:deblock=-1,-1:nofast-pskip:nodct-decimate:b-adapt=0:threads=auto
handbrake-audio=-E faac -R auto -B 160 -D 0 -a 1,2,3,4,5
handbrake-audioac3=-E faac -R auto -B 256 -D 0 -a 1,2,3,4,5
handbrake-ext=.mp4
handbrake-audiodelay=skip
PreConversionCommercialRemover=true

謝謝。

首先,檔案都是固定影格率,我沒看過「可變」影格率的檔案。影格率取決於來源檔案,不過你可以在「轉換任務」->「專家設定」頁面啟用變更影格率的選項,並設定成你想要的值,而不需要動到設定檔。

你是指固定位元率嗎?MP4 Normal 是固定位元率的設定檔。HandBrake 中的 -q 參數表示你想要使用可變位元率。

我知道这是篇旧帖,但这串讨论提到了我一直在尝试解决的问题。在“转换任务→高级设置”(我没有看到“专家设置”)里,我找不到更改帧率的选项。这个设置不明显吗?我看到有“最大宽度”、“质量”等,但没有“帧率”。我使用的是 2.3.13 版。这个设置是在更新版本里吗?谢谢。

是的,高級版本新增了 500 多項功能、改進與錯誤 :bug: 修正。