I have a FreeBSD system that I am using HandBrakeCLI to re=encode mpeg2 streams to mp4 files using the x264 encoder. I want to disable the use of QSV as occationally it throws errors and failed encodes due to the age of the i3-4130 CPU and drivers for this platform.
It should not be trying to use QSV as it isn't supported but it still sometimes tries to. I want to flag it to never use QSV to force the proper behavior.
However, I am unable to find a reference to a option for the CLI that forces the disablement of QSV. Only references I find are to the GUI.
Steps to reproduce the problem (If Applicable):
encode using the --encoder x264 on a ancient intel CPU.
HandBrake version (e.g., 1.0.0):
1.3.1
Operating system and version (e.g., Ubuntu 16.04 LTS, macOS 10.13 High Sierra, Windows 10 Creators Update):
FreeNAS 11.2-u7
HandBrake Activity Log ***required*** (see How-to get an activity log)
Code: Select all
[00:25:09] hb_init: starting libhb thread
[00:25:09] thread 808c19c00 started ("libhb")
HandBrake 1.3.1 (2020011400) - FreeBSD amd64 - https://handbrake.fr
4 CPUs detected
Opening /media/Visual/TV Shows/Recorded/Mystery Science Theater 3000 (1987)/Season 4/Mystery Science Theater 3000 S04E04 Teenagers From Outer Space.ts...
[00:25:09] CPU: Intel(R) Core(TM) i3-4130 CPU @ 3.40GHz
[00:25:09] - Intel microarchitecture Haswell
[00:25:09] - logical processor count: 4
[00:25:09] Intel Quick Sync Video support: no
[00:25:09] hb_scan: path=/media/Visual/TV Shows/Recorded/Mystery Science Theater 3000 (1987)/Season 4/Mystery Science Theater 3000 S04E04 Teenagers From Outer Space.ts, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
disc.c:323: failed opening UDF image /media/Visual/TV Shows/Recorded/Mystery Science Theater 3000 (1987)/Season 4/Mystery Science Theater 3000 S04E04 Teenagers From Outer Space.ts
disc.c:424: error opening file BDMV/index.bdmv
disc.c:424: error opening file BDMV/BACKUP/index.bdmv
bluray.c:2585: nav_get_title_list(/media/Visual/TV Shows/Recorded/Mystery Science Theater 3000 (1987)/Season 4/Mystery Science Theater 3000 S04E04 Teenagers From Outer Space.ts/) failed
[00:25:09] bd: not a bd - trying as a stream/file instead
libdvdnav: Using dvdnav version 6.0.1
libdvdread: Encrypted DVD support unavailable.
libdvdread:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed
libdvdread:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.BUP failed
libdvdread: Can't open file VIDEO_TS.IFO.
libdvdnav: vm: failed to read VIDEO_TS.IFO
[00:25:09] dvd: not a dvd - trying as a stream/file instead
[00:25:09] file is MPEG Transport Stream with 188 byte packets offset 0 bytes
[00:25:09] Found the following PIDS
[00:25:09] Video PIDS :
[00:25:09] 0x100 type MPEG2 (0x2) (PCR)
[00:25:09] Audio PIDS :
[00:25:09] 0x101 type AC3 (0x81)
[00:25:09] Subtitle PIDS :
[00:25:09] Other PIDS :
[00:25:09] stream id 0x101 (type 0x81 substream 0x0) audio 0x101
[00:25:09] scan: decoding previews for title 1
[00:25:09] file is MPEG Transport Stream with 188 byte packets offset 0 bytes
[00:25:09] scan: audio 0x101: ac3, rate=48000Hz, bitrate=192000 English (AC3) (2.0 ch) (192 kbps)
[00:25:09] stream: 7 good frames, 0 errors (0%)
[00:25:09] scan: 10 previews, 704x480, 29.970 fps, autocrop = 4/28/86/90, aspect 16:9, PAR 40:33
[00:25:09] libhb: scan thread found 1 valid title(s)
+ Using preset: CLI Default
+ title 1:
+ stream: /media/Visual/TV Shows/Recorded/Mystery Science Theater 3000 (1987)/Season 4/Mystery Science Theater 3000 S04E04 Teenagers From Outer Space.ts
+ duration: 01:28:44
+ size: 704x480, pixel aspect: 40/33, display aspect: 1.78, 29.970 fps
+ autocrop: 4/28/86/90
+ chapters:
+ 1: duration 01:28:44
+ audio tracks:
+ 1, English (AC3) (2.0 ch) (192 kbps) (iso639-2: eng), 48000Hz, 192000bps
+ subtitle tracks:
+ 1, English, Closed Caption [CC608]
Warning: Could not find audio track 2, skipped
Warning: Could not find audio track 3, skipped
Warning: Could not find audio track 4, skipped
Warning: Could not find audio track 5, skipped
Warning: Could not find audio track 6, skipped
Warning: Could not find audio track 7, skipped
Warning: Could not find audio track 8, skipped
Warning: Could not find audio track 9, skipped
Warning: Could not find audio track 10, skipped
Warning: Could not find audio track 11, skipped
Dropping excess audio encoders
Dropping excess audio mixdowns
[00:25:09] Starting work at: Sat Jan 18 00:25:09 2020
[00:25:09] 1 job(s) to process
[00:25:09] json job:
{
"Audio": {
"AudioList": [
{
"Encoder": 65536,
"Mixdown": 4,
"Track": 0
},
{
"Encoder": 1125984256,
"Mixdown": 9,
"Track": 0
}
],
"CopyMask": [
"copy:aac",
"copy:ac3",
"copy:eac3",
"copy:truehd",
"copy:dts",
"copy:dtshd",
"copy:flac"
],
"FallbackEncoder": "aac"
},
"Destination": {
"AlignAVStart": false,
"ChapterList": [
{
"Duration": {
"Hours": 1,
"Minutes": 28,
"Seconds": 44,
"Ticks": 479172497
},
"Name": "Chapter 1"
}
],
"ChapterMarkers": false,
"File": "/media/Visual/TV Shows/Recorded/Mystery Science Theater 3000 (1987)/Season 4/Mystery Science Theater 3000 S04E04 Teenagers From Outer Space.mp4",
"InlineParameterSets": false,
"Mp4Options": {
"IpodAtom": false,
"Mp4Optimize": true
},
"Mux": "m4v"
},
"Filters": {
"FilterList": [
{
"ID": 3,
"Settings": {
"block-height": "16",
"block-thresh": "40",
"block-width": "16",
"filter-mode": "2",
"mode": "3",
"motion-thresh": "1",
"spatial-metric": "2",
"spatial-thresh": "1"
}
},
{
"ID": 4,
"Settings": {
"mode": "7"
}
},
{
"ID": 6,
"Settings": {
"mode": 0
}
},
{
"ID": 12,
"Settings": {
"crop-bottom": 28,
"crop-left": 86,
"crop-right": 90,
"crop-top": 4,
"height": 448,
"width": 528
}
}
]
},
"Metadata": {},
"PAR": {
"Den": 33,
"Num": 40
},
"SequenceID": 0,
"Source": {
"Angle": 0,
"Path": "/media/Visual/TV Shows/Recorded/Mystery Science Theater 3000 (1987)/Season 4/Mystery Science Theater 3000 S04E04 Teenagers From Outer Space.ts",
"Range": {
"End": 1,
"Start": 1,
"Type": "chapter"
},
"Title": 1
},
"Subtitle": {
"Search": {
"Burn": true,
"Default": false,
"Enable": false,
"Forced": false
},
"SubtitleList": []
},
"Video": {
"ColorFormat": 0,
"ColorMatrix": 6,
"ColorPrimaries": 6,
"ColorRange": 1,
"ColorTransfer": 1,
"Encoder": "x264",
"Level": "4.1",
"Options": "",
"Preset": "slow",
"Profile": "high",
"QSV": {
"AsyncDepth": 4,
"Decode": false
},
"Quality": 18.0,
"Tune": "",
"Turbo": false,
"TwoPass": false
}
}
[00:25:09] Starting Task: Encoding Pass
[00:25:09] Skipping vfr filter
[00:25:09] Auto Passthru: allowed codecs are AAC, AC3, E-AC3, TrueHD, DTS, DTS-HD, FLAC
[00:25:09] Auto Passthru: fallback is AAC (avcodec)
[00:25:09] Auto Passthru: using AC3 Passthru for track 2
[00:25:09] work: bitrate not specified, track 1 setting bitrate 160 Kbps
[00:25:09] job configuration:
[00:25:09] * source
[00:25:09] + /media/Visual/TV Shows/Recorded/Mystery Science Theater 3000 (1987)/Season 4/Mystery Science Theater 3000 S04E04 Teenagers From Outer Space.ts
[00:25:09] + title 1, chapter(s) 1 to 1
[00:25:09] * destination
[00:25:09] + /media/Visual/TV Shows/Recorded/Mystery Science Theater 3000 (1987)/Season 4/Mystery Science Theater 3000 S04E04 Teenagers From Outer Space.mp4
[00:25:09] + container: MPEG-4 (libavformat)
[00:25:09] + optimized for HTTP streaming (fast start)
[00:25:09] * video track
[00:25:09] + decoder: mpeg2video
[00:25:09] + bitrate 200 kbps
[00:25:09] + filters
[00:25:09] + Comb Detect (mode=3:spatial-metric=2:motion-thresh=1:spatial-thresh=1:filter-mode=2:block-thresh=40:block-width=16:block-height=16)
[00:25:09] + Decomb (mode=39)
[00:25:09] + Crop and Scale (width=528:height=448:crop-top=4:crop-bottom=28:crop-left=86:crop-right=90)
[00:25:09] + source: 704 * 480, crop (4/28/86/90): 528 * 448, scale: 528 * 448
[00:25:09] + Output geometry
[00:25:09] + storage dimensions: 528 x 448
[00:25:09] + pixel aspect ratio: 40 : 33
[00:25:09] + display dimensions: 640 x 448
[00:25:09] + encoder: H.264 (libx264)
[00:25:09] + preset: slow
[00:25:09] + profile: high
[00:25:09] + level: 4.1
[00:25:09] + quality: 18.00 (RF)
[00:25:09] + color profile: 6-1-6
[00:25:09] * audio track 1
[00:25:09] + decoder: English (AC3) (2.0 ch) (192 kbps) (track 1, id 0x101)
[00:25:09] + bitrate: 192 kbps, samplerate: 48000 Hz
[00:25:09] + mixdown: Stereo
[00:25:09] + dither: triangular
[00:25:09] + encoder: AAC (libavcodec)
[00:25:09] + bitrate: 160 kbps, samplerate: 48000 Hz
[00:25:09] * audio track 2
[00:25:09] + decoder: English (AC3) (2.0 ch) (192 kbps) (track 1, id 0x101)
[00:25:09] + bitrate: 192 kbps, samplerate: 48000 Hz
[00:25:09] + AC3 Passthru
[00:25:09] file is MPEG Transport Stream with 188 byte packets offset 0 bytes
[00:25:09] sync: expecting 159564 video frames
[00:25:09] encx264: min-keyint: 30, keyint: 300
[00:25:09] encx264: encoding at constant RF 18.000000
[00:25:09] encx264: unparsed options: level=4.1:ref=5:direct=auto:subme=8:trellis=2:vbv-bufsize=78125:vbv-maxrate=62500:rc-lookahead=50
x264 [info]: using SAR=40/33
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
x264 [info]: profile High, level 4.1, 4:2:0, 8-bit
[00:25:09] sync: first pts audio 0x101 is 0
[00:25:09] sync: first pts audio 0x101 is 0
[00:25:09] sync: first pts video is 8067
Encoding: task 1 of 1, 2.21 % (67.76 fps, avg 70.02 fps, ETA 00h37m09s)[00:26:00] sync: audio 0x101 time went backwards 96 ms, dropped 3 frames. PTS 10607040
[00:26:00] 119.340401s: Video -> Film
Encoding: task 1 of 1, 2.22 % (70.65 fps, avg 70.22 fps, ETA 00h37m02s)[00:26:00] 120.057777s: Film -> Video
Encoding: task 1 of 1, 6.82 % (62.56 fps, avg 66.38 fps, ETA 00h37m20s)[00:27:54] 364.735565s: Video -> Film
Encoding: task 1 of 1, 7.37 % (60.81 fps, avg 65.58 fps, ETA 00h37m34s)[00:28:09] 401.438904s: Film -> Video
Encoding: task 1 of 1, 7.38 % (60.81 fps, avg 65.58 fps, ETA 00h37m34s)[00:28:09] 402.606720s: Video -> Film
Encoding: task 1 of 1, 7.40 % (61.21 fps, avg 65.59 fps, ETA 00h37m33s)[00:28:09] 403.274048s: Film -> Video
[00:28:09] 403.440887s: Video -> Film
Encoding: task 1 of 1, 7.42 % (61.21 fps, avg 65.59 fps, ETA 00h37m33s)[00:28:10] 404.942413s: Film -> Video
Encoding: task 1 of 1, 8.30 % (51.56 fps, avg 64.38 fps, ETA 00h37m53s)[00:28:35] 451.822540s: Video -> Film
Encoding: task 1 of 1, 8.32 % (51.56 fps, avg 64.38 fps, ETA 00h37m53s)[00:28:36] 452.489868s: Film -> Video
Encoding: task 1 of 1, 8.72 % (57.63 fps, avg 64.08 fps, ETA 00h37m53s)[00:28:47] 474.345062s: Video -> Film
[00:28:47] 474.511871s: Film -> Video
[00:28:47] 474.678711s: Video -> Film
Encoding: task 1 of 1, 8.74 % (57.63 fps, avg 64.08 fps, ETA 00h37m53s)[00:28:47] 475.212585s: Film -> Video
[00:28:47] 475.512878s: Video -> Film
[00:28:47] 475.679749s: Film -> Video
[00:28:47] 475.846527s: Video -> Film
Encoding: task 1 of 1, 8.76 % (58.11 fps, avg 64.05 fps, ETA 00h37m53s)[00:28:48] 476.013367s: Film -> Video
Encoding: task 1 of 1, 8.76 % (58.11 fps, avg 64.05 fps, ETA 00h37m53s)[00:28:48] 476.680725s: Video -> Film
Encoding: task 1 of 1, 8.81 % (53.78 fps, avg 63.95 fps, ETA 00h37m56s)[00:28:49] 479.850525s: Film -> Video
Encoding: task 1 of 1, 9.22 % (62.36 fps, avg 63.81 fps, ETA 00h37m50s)[00:29:00] 502.206207s: Video -> Film
Encoding: task 1 of 1, 9.26 % (60.04 fps, avg 63.75 fps, ETA 00h37m51s)[00:29:01] 503.741058s: Film -> Video
Encoding: task 1 of 1, 9.31 % (51.64 fps, avg 63.66 fps, ETA 00h37m53s)[00:29:03] 506.543854s: Video -> Film
Encoding: task 1 of 1, 9.31 % (51.64 fps, avg 63.66 fps, ETA 00h37m53s)[00:29:03] 507.544891s: Film -> Video
Encoding: task 1 of 1, 9.70 % (66.60 fps, avg 63.43 fps, ETA 00h37m51s)[00:29:14] 527.898560s: Video -> Film
Encoding: task 1 of 1, 9.72 % (66.60 fps, avg 63.43 fps, ETA 00h37m51s)[00:29:14] 528.732727s: Film -> Video
Encoding: task 1 of 1, 15.22 % (79.59 fps, avg 65.82 fps, ETA 00h34m16s)[00:31:18] 822.025696s: Video -> Film
[00:31:18] 822.192505s: Film -> Video
Encoding: task 1 of 1, 15.67 % (69.00 fps, avg 65.82 fps, ETA 00h34m05s)[00:31:29] 845.549255s: Video -> Film
[00:31:29] 846.249939s: Film -> Video
Encoding: task 1 of 1, 15.95 % (63.03 fps, avg 65.75 fps, ETA 00h34m00s)[00:31:36] 860.897888s: Video -> Film
[00:31:36] 861.098022s: Film -> Video
[00:31:36] 861.231567s: Video -> Film
Encoding: task 1 of 1, 15.97 % (63.03 fps, avg 65.75 fps, ETA 00h34m00s)[00:31:37] 861.431763s: Film -> Video
Encoding: task 1 of 1, 16.07 % (65.98 fps, avg 65.75 fps, ETA 00h33m56s)[00:31:39] 867.404358s: Video -> Film
Encoding: task 1 of 1, 16.09 % (65.98 fps, avg 65.75 fps, ETA 00h33m56s)[00:31:40] 868.438782s: Film -> Video
[00:31:40] 868.572205s: Video -> Film
[00:31:40] 869.406372s: Film -> Video
Encoding: task 1 of 1, 16.11 % (59.32 fps, avg 65.72 fps, ETA 00h33m57s)[00:31:41] 869.906860s: Video -> Film
[00:31:41] 870.073669s: Film -> Video
Encoding: task 1 of 1, 16.13 % (59.32 fps, avg 65.72 fps, ETA 00h33m57s)[00:31:41] 870.407349s: Video -> Film
Encoding: task 1 of 1, 16.24 % (57.50 fps, avg 65.65 fps, ETA 00h33m56s)[00:31:44] 877.748108s: Film -> Video
Encoding: task 1 of 1, 16.64 % (74.43 fps, avg 65.78 fps, ETA 00h33m42s)[00:31:53] 899.102783s: Video -> Film
Encoding: task 1 of 1, 16.68 % (65.41 fps, avg 65.75 fps, ETA 00h33m42s)[00:31:54] 902.472717s: Film -> Video
Encoding: task 1 of 1, 16.94 % (68.46 fps, avg 65.77 fps, ETA 00h33m36s)[00:32:00] 915.952881s: Video -> Film
[00:32:00] 916.119751s: Film -> Video
[00:32:00] 916.286560s: Video -> Film
[00:32:00] 916.453308s: Film -> Video
Encoding: task 1 of 1, 17.01 % (68.26 fps, avg 65.76 fps, ETA 00h33m34s)[00:32:03] sync: audio 0x101 time went backwards 64 ms, dropped 2 frames. PTS 82785600
[00:32:03] sync: video time went backwards 33 ms, dropped 1 frames. PTS 82873786
Encoding: task 1 of 1, 28.73 % (77.79 fps, avg 65.60 fps, ETA 00h28m53s)[00:36:48] sync: audio 0x101 time went backwards 64 ms, dropped 2 frames. PTS 139075200
Encoding: task 1 of 1, 28.76 % (77.79 fps, avg 65.60 fps, ETA 00h28m53s)x264 [warning]: non-strictly-monotonic PTS
Encoding: task 1 of 1, 29.96 % (62.57 fps, avg 65.58 fps, ETA 00h28m24s)ERROR: avformatMux: track 0, av_interleaved_write_frame failed with error 'Invalid argument'
[00:37:18] work: average encoding speed for job is 65.584961 fps
Encoding: task 1 of 1, 29.97 % (62.57 fps, avg 65.58 fps, ETA 00h28m24s)[00:37:18] comb detect: heavy 3394 | light 8459 | uncombed 35943 | total 47796
[00:37:18] decomb: deinterlaced 3394 | blended 8458 | unfiltered 35935 | total 47787
[00:37:18] stream: 48335 good frames, 0 errors (0%)
[00:37:18] ac3-decoder done: 50390 frames, 0 decoder errors
[00:37:18] ac3-decoder done: 50390 frames, 0 decoder errors
[00:37:18] mpeg2video-decoder done: 47872 frames, 0 decoder errors
[00:37:18] sync: got 47830 frames, 159564 expected
[00:37:18] sync: framerate min 0.698 fps, max 29.970 fps, avg 29.687 fps
[aac @ 0x8097f0600] Qavg: 202.774
[aac @ 0x8097f0600] 2 frames left in the queue on closing
x264 [info]: frame I:270 Avg QP:16.28 size: 29865
x264 [info]: frame P:12745 Avg QP:18.61 size: 10810
x264 [info]: frame B:34703 Avg QP:22.69 size: 1991
x264 [info]: consecutive B-frames: 1.5% 3.3% 3.6% 91.5%
x264 [info]: mb I I16..4: 5.3% 70.6% 24.2%
x264 [info]: mb P I16..4: 1.2% 6.5% 0.8% P16..4: 45.6% 29.2% 13.2% 0.0% 0.0% skip: 3.5%
x264 [info]: mb B I16..4: 0.1% 0.4% 0.0% B16..8: 38.0% 6.7% 1.3% direct: 6.5% skip:47.0% L0:38.5% L1:45.8% BI:15.7%
x264 [info]: 8x8 transform intra:75.9% inter:54.5%
x264 [info]: direct mvs spatial:99.9% temporal:0.1%
x264 [info]: coded y,uvDC,uvAC intra: 81.6% 72.1% 39.6% inter: 26.5% 22.1% 2.1%
x264 [info]: i16 v,h,dc,p: 38% 24% 10% 28%
x264 [info]: i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 15% 12% 8% 7% 10% 12% 10% 13% 12%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 15% 12% 6% 8% 12% 13% 11% 11% 12%
x264 [info]: i8c dc,h,v,p: 34% 30% 23% 13%
x264 [info]: Weighted P-Frames: Y:31.6% UV:2.2%
x264 [info]: ref P L0: 52.4% 17.3% 17.2% 6.3% 4.8% 2.0% 0.1%
x264 [info]: ref B L0: 86.9% 10.1% 2.1% 0.9%
x264 [info]: ref B L1: 97.1% 2.9%
x264 [info]: kb/s:1069.74
[mp4 @ 0x809122a00] Starting second pass: moving the moov atom to the beginning of the file
Muxing: this may take awhile...[00:37:19] mux: track 0, 47717 frames, 214927120 bytes, 1067.16 kbps, fifo 4096
[00:37:19] mux: track 1, 75523 frames, 32350758 bytes, 160.63 kbps, fifo 8192
[00:37:19] mux: track 2, 50350 frames, 38668800 bytes, 192.00 kbps, fifo 4096
[00:37:19] Finished work at: Sat Jan 18 00:37:19 2020
[00:37:19] libhb: work result = 4
Encode failed (error 4).
HandBrake has exited.