我試了又試,就是找不到任何「handbrake-audio=」裡的參數在編碼過程中被實際使用的例子。例如,我正嘗試把大量 .MKV 檔案轉成 MP4 容器,並希望直接複製其中單一 AAC 2 聲道音軌,而不再重新編碼。然而,無論我如何設定「handbrake-audio=」參數,每次轉檔都還是會去參考我在各種自訂設定檔中寫的 audioac3 參數。以下是我試過卻都無效的幾個語法範例:
handbrake-audio=-E copy -R auto -B 0 -D 0 --audio-copy-mask aac,mp3 --audio-fallback faac (或 fdk_aac)
handbrake-audio=-a 1 -E copy -R auto -B 0 -D 0
handbrake-audio=-E copy -R auto -B 0 -D 0 -a 1
handbrake-audio=-a 1 -E copy:aac -R auto -B 0 -D 0
handbrake-audio=-E copy:aac -R auto -B 0 -D 0 -a 1
我已經束手無策,真的很不希望再重新編碼 AAC 音訊流。任何協助都將感激不盡。
我还要补充一点:如果我把“handbrake-audioac3=”这一行注释掉,转换过程就能完美地使用“handbrake-audio=”参数。但这并不是可行的解决方案,因为该配置文件既要处理单音频 2 声道的视频,也要处理具有多种音频编码的多声道视频(我很喜欢 HandBrake 的音频拷贝掩码和回退功能)。作为参考,以下是我其中一个配置文件的副本:
…
order=handbrake
handbrake-general=–decomb=“fast” --loose-anamorphic --modulus 2 --markers -f mp4 -O --vfr --verbose=1
handbrake-video=-e x264 -q 14 -x me=umh:level=4.0:mixed-refs=0:vbv-bufsize=5000:vbv-maxrate=2500:rc-lookahead=10:ref=1:bframes=2:subme=2:8x8dct=0:cabac=0:trellis=0:deblock=-1,-1:threads=auto
handbrake-audio=-E copy -R auto -B 0 -D 0 -a 1
handbrake-audioac3=-a 1,1 -E fdk_aac,copy -6 stereo,none -R Auto,Auto -B 128,0 --aname=“Stereo”,“Surround” --audio-copy-mask aac,ac3,mp3 --audio-fallback ffac3
handbrake-ext=.mp4
handbrake-audiodelay=skip
PreConversionCommercialRemover=true
RBoy
(RBoy)
3
<encoder>-audio 用于源文件音频不是 AC3 的情况,而 <encoder-audioac3> 用于源文件音频为 AC3 的情况。
我猜测你的源文件音频是 AC3。通常,除非你需要对它们进行不同处理,否则应将这两个参数设置为相同。
详见配置文件基础:
來源音訊為 AAC 雙聲道。以下是與其他未引用 handbrake-audio= 參數的影片一致的影片 mediainfo 輸出。所有這些影片皆僅有一條 AAC 2.0 音訊串流:
Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : Main@L4
Format settings, CABAC : Yes
Format settings, ReFrames : 1 frame
Format settings, GOP : M=1, N=48
Codec ID : V_MPEG4/ISO/AVC
Duration : 43 min 19 s
Bit rate : 4 096 kb/s
Width : 1 920 pixels
Height : 1 080 pixels
Display aspect ratio : 16:9
Frame rate mode : Variable
Frame rate : 23.976 FPS
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.082
Stream size : 1.24 GiB (98%)
Writing library : x264 core 120
Encoding settings : cabac=1 / ref=1 / deblock=1:0:0 / analyse=0x1:0x111 / me=hex / subme=6 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=0 / me_range=16 / chroma_me=0 / trellis=1 / 8x8dct=0 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / threads=8 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=0 / weightp=2 / keyint=48 / keyint_min=25 / scenecut=0 / intra_refresh=0 / rc=abr / mbtree=0 / bitrate=4096 / ratetol=1.0 / qcomp=0.60 / qpmin=10 / qpmax=51 / qpstep=4 / ip_ratio=1.40 / aq=1:1.00
Default : Yes
Forced : No
Audio
ID : 2
Format : AAC
Format/Info : Advanced Audio Codec
Format profile : LC
Codec ID : A_AAC
Duration : 43 min 19 s
Bit rate : 96.0 kb/s
Channel(s) : 2 channels
Channel positions : Front: L R
Sampling rate : 44.1 kHz
Frame rate : 43.066 FPS (1024 spf)
Compression mode : Lossy
Stream size : 29.7 MiB (2%)
Default : Yes
Forced : No
RBoy
(RBoy)
5
请附上或通过私信(private message,点击我的名字再点击“message”)发送你的转换日志给我。
RBoy
(RBoy)
6
所以問題在這裡:你正在使用一個自訂的設定檔,但它尚未向 MCEBuddy 註冊
→ 正在使用的設定檔:TV MP4 Video - High Quality (VBR 3K)。
設定檔項目 →
當 MCEBuddy 嘗試讀取時,Profiles.conf 回傳空白。可能的原因有兩個:
- 設定檔不存在(請檢查名稱,必須完全相符)
- 簡化名稱,移除特殊字元、點號等,儲存
profiles.conf,重新開啟轉換工作設定,再次選擇「新」的修正名稱設定檔,然後按兩次確定。
为了简化问题并尽快找到解决方案,我决定重新安装 MCEBuddy,从头开始,使用全新的 mcebuddy.conf 和 profiles.conf。
我使用了默认的 “MP4 Normal” 配置文件,未对其参数做任何修改。任务再次引用了 “handbrake-audioac3=”。我已附上日志文件和 profiles.conf 供您参考。
profiles.conf (96.7 KB)
Dark Matter - S03E02 - It Doesn’t Have to Be Like This.mkv-TV MP4 VBR 3K-2017-06-15T05-22-23.0811059-07-00.log (1.4 MB)
RBoy
(RBoy)
9
你说得对,我将把它移到 Bug 讨论串,我们会调查并修复它。
RBoy
(RBoy)
10
已在今天的 2.4.7 BETA 版本中修復。試試看,若有任何問題請告訴我們。
抓得好,好久沒看到真正的 bug 了。