Handbrake is processing file but resulting output file is roughly 110MB, not complete movie, and plays for a few seconds before freezing.
I noticed the following lines from activity log:
[h264 @ 0x7fcff2ef0be0] P sub_mb_type 7 out of range at 33 65
[h264 @ 0x7fcff2ef0be0] error while decoding MB 33 65
and
[07:53:00] h264-decoder done: 373 frames, 0 decoder errors
[07:53:00] sync: got 373 frames, 166007 expected
I did a Goog search and forum search for these and didn't see exactly the same issue.
Any Ideas???
Steps to reproduce the problem (If Applicable):
This does not happen to all videos. I can encode a single file OR put 4 in the queue. Usually they will all encode properly but roughly 5 out of the last 20 videos have had this issue happen.
The videos are all recorded via TV in 1080p MP4 AAC format. I do no other editing or processing to file(s) before encoding them in Handbrake. I am using the H.254 MKV 1080p30 preset without tweaking any settings.
Handbrake doesn't lock-up or crash. It will just move on and process next video in queue or close Handbrake if I'm just processing a single file.
Like I mentioned above, the resulting file size of the "trouble" files is around 100-115MB. Which seems weird to me.
HandBrake version (e.g., 1.0.0):
Handbrake Version: 1.0.7 (2017122800)
Operating system and version (e.g., Ubuntu 16.04 LTS, macOS 10.13 High Sierra, Windows 10 Creators Update):
4.14.30-1-MANJARO GNU/Linux
HandBrake Activity Log ***required*** (see How-to get an activity log)
Code: Select all
Handbrake Version: 1.0.7 (2017122800)
[07:51:20] gtkgui: Preset: /Matroska/H.265 MKV 1080p30
[07:51:20] 1 job(s) to process
[07:51:20] json job:
{
"Audio": {
"AudioList": [
{
"Bitrate": 160,
"CompressionLevel": -1.0,
"DRC": 0.0,
"DitherMethod": "auto",
"Encoder": "av_aac",
"Gain": 0.0,
"Mixdown": "stereo",
"NormalizeMixLevel": false,
"PresetEncoder": "av_aac",
"Quality": -3.0,
"Samplerate": "auto",
"Track": 0
}
],
"CopyMask": [
"copy:aac"
],
"FallbackEncoder": "av_aac"
},
"Destination": {
"ChapterList": [
{
"Name": ""
}
],
"ChapterMarkers": false,
"File": "/home/joe/Videos/An Ideal Husband (1947)_x265.mkv",
"Mp4Options": {
"IpodAtom": false,
"Mp4Optimize": false
},
"Mux": "mkv"
},
"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": 2,
"rate": "27000000/900000"
}
},
{
"ID": 11,
"Settings": {
"crop-bottom": 6,
"crop-left": 250,
"crop-right": 250,
"crop-top": 10,
"height": 1064,
"width": 1420
}
}
]
},
"Metadata": {
"Name": "An Ideal Husband (1947)"
},
"PAR": {
"Den": 1,
"Num": 1
},
"SequenceID": 0,
"Source": {
"Angle": 0,
"Path": "/home/joe/Videos/An Ideal Husband (1947).mp4",
"Range": {
"End": 1,
"Start": 1,
"Type": "chapter"
},
"Title": 1
},
"Subtitle": {
"Search": {
"Burn": true,
"Default": false,
"Enable": false,
"Forced": false
},
"SubtitleList": []
},
"Video": {
"ColorMatrixCode": 0,
"Encoder": "x265",
"Level": "",
"OpenCL": false,
"Options": "strong-intra-smoothing=0:rect=0",
"Preset": "slow",
"Profile": "main",
"QSV": {
"AsyncDepth": 4,
"Decode": false
},
"Quality": 22.0,
"Tune": "",
"Turbo": false,
"TwoPass": false
}
}
[07:51:20] CPU: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz
[07:51:20] - Intel microarchitecture Ivy Bridge
[07:51:20] - logical processor count: 4
[07:51:20] hb_scan: path=/home/joe/Videos/An Ideal Husband (1947).mp4, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
disc.c:274: failed opening UDF image /home/joe/Videos/An Ideal Husband (1947).mp4
disc.c:352: error opening file BDMV/index.bdmv
disc.c:352: error opening file BDMV/BACKUP/index.bdmv
[07:51:20] bd: not a bd - trying as a stream/file instead
libdvdnav: Using dvdnav version 5.0.1
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
[07:51:20] dvd: not a dvd - trying as a stream/file instead
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/home/joe/Videos/An Ideal Husband (1947).mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: qt
Duration: 01:32:21.41, start: 0.000000, bitrate: 10170 kb/s
Stream #0:0(eng): Audio: aac [mp4a / 0x6134706D]
48000 Hz, stereo, fltp, 188 kb/s (default)
Metadata:
handler_name : SoundHandler
Stream #0:1(eng): Video: h264 (Constrained Baseline) [avc1 / 0x31637661]
yuv420p, 1920x1080, 9972 kb/s
30 fps, 30 tbn (default)
Metadata:
handler_name : VideoHandler
[07:51:20] scan: decoding previews for title 1
[07:51:20] scan: audio 0x0: aac, rate=48000Hz, bitrate=188824 English (AAC) (2.0 ch)
[07:51:20] scan: 10 previews, 1920x1080, 29.958 fps, autocrop = 10/6/250/252, aspect 16:9, PAR 1:1
[07:51:20] libhb: scan thread found 1 valid title(s)
[07:51:20] starting job
[07:51:20] decomb filter thread started for segment 0
[07:51:20] decomb filter thread started for segment 2
[07:51:20] decomb filter thread started for segment 1
[07:51:20] decomb check thread started for segment 0
[07:51:20] decomb check thread started for segment 1
[07:51:20] decomb check thread started for segment 2
[07:51:20] decomb check thread started for segment 3
[07:51:20] mask filter thread started for segment 1
[07:51:20] mask filter thread started for segment 3
[07:51:20] mask erode thread started for segment 0
[07:51:20] mask erode thread started for segment 1
[07:51:20] mask erode thread started for segment 3
[07:51:20] mask dilate thread started for segment 0
[07:51:20] mask filter thread started for segment 2
[07:51:20] mask dilate thread started for segment 1
[07:51:20] mask erode thread started for segment 2
[07:51:20] yadif thread started for segment 0
[07:51:20] yadif thread started for segment 1
[07:51:20] yadif thread started for segment 3
[07:51:20] yadif thread started for segment 2
[07:51:20] mask dilate thread started for segment 2
[07:51:20] mask dilate thread started for segment 3
[07:51:20] job configuration:
[07:51:20] * source
[07:51:20] + /home/joe/Videos/An Ideal Husband (1947).mp4
[07:51:20] + title 1, chapter(s) 1 to 1
[07:51:20] + container: mov,mp4,m4a,3gp,3g2,mj2
[07:51:20] + data rate: 10170 kbps
[07:51:20] * destination
[07:51:20] + /home/joe/Videos/An Ideal Husband (1947)_x265.mkv
[07:51:20] + container: Matroska (libavformat)
[07:51:20] * video track
[07:51:20] + decoder: h264
[07:51:20] + bitrate 9972 kbps
[07:51:20] + filters
[07:51:20] + 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)
[07:51:20] + Decomb (mode=39)
[07:51:20] + Framerate Shaper (mode=2:rate=27000000/900000)
[07:51:20] + frame rate: 29.958 fps -> peak rate limited to 30.000 fps
[07:51:20] + Crop and Scale (width=1420:height=1064:crop-top=10:crop-bottom=6:crop-left=250:crop-right=250)
[07:51:20] + source: 1920 * 1080, crop (10/6/250/250): 1420 * 1064, scale: 1420 * 1064
[07:51:20] + Output geometry
[07:51:20] + storage dimensions: 1420 x 1064
[07:51:20] + pixel aspect ratio: 1 : 1
[07:51:20] + display dimensions: 1420 x 1064
[07:51:20] + encoder: H.265 (libx265)
[07:51:20] + preset: slow
[07:51:20] + options: strong-intra-smoothing=0:rect=0
[07:51:20] + profile: main
[07:51:20] + quality: 22.00 (RF)
[07:51:20] * audio track 1
[07:51:20] + decoder: English (AAC) (2.0 ch) (track 1, id 0x0)
[07:51:20] + bitrate: 188 kbps, samplerate: 48000 Hz
[07:51:20] + mixdown: Stereo
[07:51:20] + encoder: AAC (libavcodec)
[07:51:20] + bitrate: 160 kbps, samplerate: 48000 Hz
[07:51:20] mask filter thread started for segment 0
[07:51:20] decomb filter thread started for segment 3
[07:51:20] sync: expecting 166007 video frames
x265 [info]: HEVC encoder version 2.1
x265 [info]: build info [Linux][GCC 7.2.1][64 bit] 8bit
x265 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
x265 [info]: Main profile, Level-4 (Main tier)
x265 [info]: Thread pool created using 4 threads
x265 [info]: Slices : 1
x265 [info]: frame threads / pool features : 2 / wpp(17 rows)
x265 [info]: Coding QT: max CU size, min CU size : 64 / 8
x265 [info]: Residual QT: max TU size, max depth : 32 / 1 inter / 1 intra
x265 [info]: ME / range / subpel / merge : star / 57 / 3 / 3
x265 [info]: Keyframe min / max / scenecut : 30 / 300 / 40
x265 [info]: Lookahead / bframes / badapt : 25 / 4 / 2
x265 [info]: b-pyramid / weightp / weightb : 1 / 1 / 0
x265 [info]: References / ref-limit cu / depth : 4 / on / on
x265 [info]: AQ: mode / str / qg-size / cu-tree : 1 / 1.0 / 32 / 1
x265 [info]: Rate Control / qCompress : CRF-22.0 / 0.60
x265 [info]: tools: limit-modes rd=4 psy-rd=2.00 rdoq=2 psy-rdoq=1.00 rskip
x265 [info]: tools: signhide tmvp lslices=4 deblock sao
[07:51:21] sync: first pts video is 0
[07:51:21] sync: Chapter 1 at frame 1 time 0
[07:51:21] sync: first pts audio 0x0 is 0
[h264 @ 0x7fcff2ef0be0] P sub_mb_type 7 out of range at 33 65
[h264 @ 0x7fcff2ef0be0] error while decoding MB 33 65
[07:52:52] reader: done. 1 scr changes
[07:53:00] work: average encoding speed for job is 3.729752 fps
[07:53:00] comb detect: heavy 77 | light 113 | uncombed 183 | total 373
[07:53:00] decomb: deinterlaced 77 | blended 113 | unfiltered 183 | total 373
[07:53:00] vfr: 373 frames output, 0 dropped and 0 duped for CFR/PFR
[07:53:00] vfr: lost time: 0 (0 frames)
[07:53:00] vfr: gained time: 0 (0 frames) (0 not accounted for)
[07:53:00] aac-decoder done: 258999 frames, 0 decoder errors
[07:53:00] h264-decoder done: 373 frames, 0 decoder errors
[07:53:00] sync: got 373 frames, 166007 expected
[07:53:00] sync: framerate min 0.000 fps, max 30.000 fps, avg 0.067 fps
x265 [info]: frame I: 3, Avg QP:21.78 kb/s: 6751.64
x265 [info]: frame P: 90, Avg QP:22.02 kb/s: 4401.96
x265 [info]: frame B: 280, Avg QP:27.50 kb/s: 597.67
x265 [info]: Weighted P-Frames: Y:6.7% UV:5.6%
x265 [info]: consecutive B-frames: 7.5% 6.5% 6.5% 36.6% 43.0%
encoded 373 frames in 99.85s (3.74 fps), 1565.09 kb/s, Avg QP:26.13
[07:53:00] mux: track 0, 373 frames, 2437347 bytes, 3.52 kbps, fifo 512
[07:53:00] mux: track 1, 259755 frames, 111344637 bytes, 160.74 kbps, fifo 32768
[07:53:00] libhb: work result = 0