Handbrake encoding stopping early

HandBrake for Windows support
Forum rules
An Activity Log is required for support requests. Please read How-to get an activity log? for details on how and why this should be provided.
Post Reply
jryan15
Posts: 5
Joined: Mon Sep 18, 2017 2:23 pm

Handbrake encoding stopping early

Post by jryan15 »

Please detail your question or problem in as much detail as possible:
Hi all, I'm trying to use handbrake to compress large MOV files (~6 Gb / ~55 minutes long / 1080P 30 FPS) that I have stitched together using FFMPEG. I have a total of 6 combined MOV files. Two of them compressed in HB with no issue. Four of them appear to have stopped compressing after 45,000 frames.

One key observation was that for the two large mov files that worked... Originally those movies were broken into 10 minute chunks (~990Mb each). I used FFMPEG to combine them into a >6Gb file. HB compressed them into ~2Gb mp4 files.

Here is how I merged the files using FFMPEG:

Code: Select all

(for %i in (*.mov) do @echo file '%i') > mylist.txt

Code: Select all

ffmpeg -f concat -i mylist.txt -c copy output.mov
For the four mov files that failed. Originally those movies were broken into larger files. It appears the gopro knock off broke them into 25 minute files ~2.167Mb each. I again used FFMPEG to merge these files into one large mov file >6Gb. I confirmed that these files do playback ok in VLC player. HB starts compressing but appears to stop early saying that it "got 45000 frames expected 94569 frames". Interestingly enough, 45000 frames appears to be the exact number of frames for a 25 minute video @30fps.

I think the problem is with stiching teh 25 minute files by FFMPEG even though it worked for the smaller 10 minute files. I would prefer to have handbrake both merge and compress the files, but I don't know if that is an option.

Any help would be great. Thanks!

Tell us about your environment. What version of HandBrake? What version of Windows are you running. etc.
Handbrake 1.0.7-64bit, Windows 7-64bit

If there was any exception or error displayed, please copy it and paste it here:
no error that I noticed

Please include the scan or encode log:

Code: Select all

HandBrake 1.0.7 (2017040900) - 64bit
OS: Microsoft Windows NT 6.1.7601 Service Pack 1 - 64bit
CPU: Intel(R) Core(TM) i5-6300U CPU @ 2.40GHz
Ram: 7856 MB, 
GPU Information:
  Intel(R) HD Graphics 520 - 20.19.15.4531
Screen: 1920x1080
Temp Dir: C:\Users\jaryan\AppData\Local\Temp\
Install Dir: C:\Program Files\HandBrake
Data Dir: C:\Users\jaryan\AppData\Roaming\HandBrake Team\HandBrake\1.0.7.0

-------------------------------------------


# Starting Encode ...

[09:25:14] hb_init: starting libhb thread
[09:25:14] 1 job(s) to process
[09:25:14] json job:
{
  "Audio": {
    "AudioList": [
      {
        "Bitrate": 160,
        "DRC": 0.0,
        "Encoder": 65536,
        "Gain": 0.0,
        "Mixdown": 1,
        "NormalizeMixLevel": false,
        "Samplerate": 0,
        "Track": 0,
        "DitherMethod": 0
      }
    ],
    "CopyMask": [
      1073807360,
      1073743872,
      1074003968,
      1073750016,
      1090519040,
      1074790400,
      1074266112,
      1107296256
    ],
    "FallbackEncoder": 2048
  },
  "Destination": {
    "ChapterList": [
      {
        "Name": "Chapter 1"
      }
    ],
    "ChapterMarkers": true,
    "File": "C:\\Temp Batz\\Vs Eagles 3.m4v",
    "Mp4Options": {
      "IpodAtom": false,
      "Mp4Optimize": false
    },
    "Mux": 131072
  },
  "Filters": {
    "FilterList": [
      {
        "ID": 4,
        "Settings": {
          "mode": "7"
        }
      },
      {
        "ID": 3,
        "Settings": {
          "block-height": "16",
          "block-thresh": "80",
          "block-width": "16",
          "filter-mode": "1",
          "mode": "0",
          "motion-thresh": "2",
          "spatial-metric": "2",
          "spatial-thresh": "3"
        }
      },
      {
        "ID": 11,
        "Settings": {
          "crop-bottom": "0",
          "crop-left": "0",
          "crop-right": "0",
          "crop-top": "0",
          "height": "1080",
          "width": "1920"
        }
      },
      {
        "ID": 6,
        "Settings": {
          "mode": "2",
          "rate": "27000000/900000"
        }
      }
    ]
  },
  "PAR": {
    "Num": 1,
    "Den": 1
  },
  "Metadata": {},
  "SequenceID": 0,
  "Source": {
    "Angle": 1,
    "Range": {
      "Type": "chapter",
      "Start": 1,
      "End": 1
    },
    "Title": 1,
    "Path": "C:\\Temp Batz\\vs eagles 3.mov"
  },
  "Subtitle": {
    "Search": {
      "Burn": false,
      "Default": false,
      "Enable": false,
      "Forced": false
    },
    "SubtitleList": []
  },
  "Video": {
    "Encoder": 65536,
    "Level": "4.0",
    "TwoPass": false,
    "Turbo": false,
    "ColorMatrixCode": 0,
    "Options": "",
    "Preset": "veryfast",
    "Profile": "main",
    "Quality": 24.0,
    "OpenCL": false,
    "HWDecode": false,
    "QSV": {
      "Decode": false,
      "AsyncDepth": 0
    }
  }
}
[09:25:14] CPU: Intel(R) Core(TM) i5-6300U CPU @ 2.40GHz
[09:25:14]  - Intel microarchitecture Skylake
[09:25:14]  - logical processor count: 4
[09:25:14] Intel Quick Sync Video support: yes
[09:25:14]  - Intel Media SDK hardware: API 1.19 (minimum: 1.3)
[09:25:14]  - H.264 encoder: yes
[09:25:14]     - preferred implementation: hardware (any)
[09:25:14]     - capabilities (hardware):  breftype icq+la+i+downs vsinfo opt1 opt2+mbbrc+extbrc+trellis+ib_adapt+nmpslice
[09:25:14]  - H.265 encoder: yes
[09:25:14]     - preferred implementation: hardware (any)
[09:25:14]     - capabilities (hardware):  bpyramid vsinfo opt1
[09:25:14] hb_scan: path=C:\Temp Batz\vs eagles 3.mov, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
src/libbluray/disc/disc.c:274: failed opening UDF image C:\Temp Batz\vs eagles 3.mov
src/libbluray/disc/disc.c:352: error opening file BDMV\index.bdmv
src/libbluray/disc/disc.c:352: error opening file BDMV\BACKUP\index.bdmv
[09:25:14] bd: not a bd - trying as a stream/file instead
libdvdnav: Using dvdnav version 5.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
[09:25:14] dvd: not a dvd - trying as a stream/file instead
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'C:\Temp Batz\vs eagles 3.mov':
  Metadata:
    major_brand     : qt
    minor_version   : 512
    compatible_brands: qt
    encoder         : Lavf57.38.102
  Duration: 00:52:32.30, start: 0.000000, bitrate: 11167 kb/s
    Stream #0:0(eng): Video: h264 (High) [avc1 / 0x31637661]
      yuv420p, 1920x1080, 10650 kb/s
      30 fps, 60k tbn (default)
    Metadata:
      handler_name    : DataHandler
      encoder         : h264
    Stream #0:1(eng): Audio: pcm_s16le [sowt / 0x74776F73]
      32000 Hz, mono, s16, 512 kb/s (default)
    Metadata:
      handler_name    : DataHandler
[09:25:14] scan: decoding previews for title 1
[09:25:14] scan: audio 0x1: pcm_s16le, rate=32000Hz, bitrate=512000 English (pcm_s16le) (1.0 ch)
[09:25:15] scan: 10 previews, 1920x1080, 30.000 fps, autocrop = 0/0/0/0, aspect 16:9, PAR 1:1
[09:25:15] scan: supported video decoders: avcodec qsv
[09:25:15] libhb: scan thread found 1 valid title(s)
[09:25:15] starting job
[09:25:15] decomb filter thread started for segment 0
[09:25:15] decomb filter thread started for segment 1
[09:25:15] decomb filter thread started for segment 2
[09:25:15] decomb filter thread started for segment 3
[09:25:15] decomb check thread started for segment 0
[09:25:15] decomb check thread started for segment 1
[09:25:15] decomb check thread started for segment 2
[09:25:15] decomb check thread started for segment 3
[09:25:15] yadif thread started for segment 0
[09:25:15] yadif thread started for segment 1
[09:25:15] yadif thread started for segment 2
[09:25:15] yadif thread started for segment 3
[09:25:15] work: track 1, dithering not supported by codec
[09:25:15] work: only 1 chapter, disabling chapter markers
[09:25:15] job configuration:
[09:25:15]  * source
[09:25:15]    + C:\Temp Batz\vs eagles 3.mov
[09:25:15]    + title 1, chapter(s) 1 to 1
[09:25:15]    + container: mov,mp4,m4a,3gp,3g2,mj2
[09:25:15]    + data rate: 11167 kbps
[09:25:15]  * destination
[09:25:15]    + C:\Temp Batz\Vs Eagles 3.m4v
[09:25:15]    + container: MPEG-4 (libavformat)
[09:25:15]  * video track
[09:25:15]    + decoder: h264
[09:25:15]      + bitrate 10650 kbps
[09:25:15]    + filters
[09:25:15]      + Comb Detect (mode=0:spatial-metric=2:motion-thresh=2:spatial-thresh=3:filter-mode=1:block-thresh=80:block-width=16:block-height=16)
[09:25:15]      + Decomb (mode=39)
[09:25:15]      + Framerate Shaper (mode=2:rate=27000000/900000)
[09:25:15]        + frame rate: 30.000 fps -> peak rate limited to 30.000 fps
[09:25:15]      + Crop and Scale (width=1920:height=1080:crop-top=0:crop-bottom=0:crop-left=0:crop-right=0)
[09:25:15]        + source: 1920 * 1080, crop (0/0/0/0): 1920 * 1080, scale: 1920 * 1080
[09:25:15]    + Output geometry
[09:25:15]      + storage dimensions: 1920 x 1080
[09:25:15]      + pixel aspect ratio: 1 : 1
[09:25:15]      + display dimensions: 1920 x 1080
[09:25:15]    + encoder: H.264 (libx264)
[09:25:15]      + preset:  veryfast
[09:25:15]      + profile: main
[09:25:15]      + level:   4.0
[09:25:15]      + quality: 24.00 (RF)
[09:25:15]  * audio track 1
[09:25:15]    + decoder: English (pcm_s16le) (1.0 ch) (track 1, id 0x1)
[09:25:15]      + bitrate: 512 kbps, samplerate: 32000 Hz
[09:25:15]    + mixdown: Mono
[09:25:15]    + encoder: AAC (libavcodec)
[09:25:15]      + bitrate: 160 kbps, samplerate: 32000 Hz
[09:25:15] sync: expecting 94569 video frames
[09:25:15] encx264: min-keyint: 30, keyint: 300
[09:25:15] encx264: encoding at constant RF 24.000000
[09:25:15] encx264: unparsed options: level=4.0:subme=2:vbv-bufsize=25000:ref=1:weightp=1:8x8dct=0:mixed-refs=0:vbv-maxrate=20000:trellis=0:rc-lookahead=10
x264 [info]: using SAR=1/1
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 AVX2 LZCNT BMI2
x264 [info]: profile Main, level 4.0
[09:25:15] sync: first pts video is 0
[09:25:15] sync: "Chapter 1" (1) at frame 1 time 0
[09:25:15] sync: first pts audio 0x1 is 0
[09:42:46] reader: done. 1 scr changes
[09:42:47] work: average encoding speed for job is 42.793407 fps
[09:42:47] comb detect: heavy 33 | light 4761 | uncombed 40206 | total 45000
[09:42:47] decomb: deinterlaced 33 | blended 4761 | unfiltered 40206 | total 45000
[09:42:47] vfr: 45000 frames output, 0 dropped and 0 duped for CFR/PFR
[09:42:47] vfr: lost time: 0 (0 frames)
[09:42:47] vfr: gained time: 0 (0 frames) (0 not accounted for)
[09:42:47] pcm_s16le-decoder done: 100864 frames, 0 decoder errors
[09:42:47] h264-decoder done: 45000 frames, 0 decoder errors
[09:42:47] sync: got 45000 frames, 94569 expected
[09:42:47] sync: framerate min 0.001 fps, max 30.000 fps, avg 14.300 fps
x264 [info]: frame I:150   Avg QP:19.70  size:280031
x264 [info]: frame P:19539 Avg QP:23.17  size: 22774
x264 [info]: frame B:25311 Avg QP:27.95  size:  2727
x264 [info]: consecutive B-frames: 15.1% 26.5%  9.8% 48.6%
x264 [info]: mb I  I16..4: 28.9%  0.0% 71.1%
x264 [info]: mb P  I16..4:  3.0%  0.0%  0.2%  P16..4: 29.9%  3.0%  2.3%  0.0%  0.0%    skip:61.7%
x264 [info]: mb B  I16..4:  0.1%  0.0%  0.0%  B16..8:  2.1%  1.0%  0.3%  direct: 1.6%  skip:94.9%  L0:30.3% L1:40.9% BI:28.8%
x264 [info]: coded y,uvDC,uvAC intra: 47.0% 52.6% 9.2% inter: 6.9% 2.7% 0.2%
x264 [info]: i16 v,h,dc,p: 33% 19% 38% 10%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 16% 20% 24%  5%  8%  5%  9%  5%  8%
x264 [info]: i8c dc,h,v,p: 48% 29% 20%  3%
x264 [info]: Weighted P-Frames: Y:0.0% UV:0.0%
x264 [info]: kb/s:1413.44
[09:42:47] mux: track 0, 45000 frames, 555995464 bytes, 1411.16 kbps, fifo 1024
[09:42:47] mux: track 1, 98500 frames, 63214223 bytes, 160.44 kbps, fifo 16384
[09:42:47] libhb: work result = 0

# Encode Completed ...

rollin_eng
Veteran User
Posts: 4854
Joined: Wed May 04, 2011 11:06 pm

Re: Handbrake encoding stopping early

Post by rollin_eng »

Can ffmpeg output them to mkv, might give you better options to fix them?
jryan15
Posts: 5
Joined: Mon Sep 18, 2017 2:23 pm

Re: Handbrake encoding stopping early

Post by jryan15 »

Hi and thanks, but it still didn't work... I used FFMPEG again and this time combined the files into a single large mkv file using the same process. Handbrake stopped compressing the file early again at exactly 25 minutes. Below is the log.

Code: Select all

HandBrake 1.0.7 (2017040900) - 64bit
OS: Microsoft Windows NT 6.1.7601 Service Pack 1 - 64bit
CPU: Intel(R) Core(TM) i5-6300U CPU @ 2.40GHz
Ram: 7856 MB, 
GPU Information:
  Intel(R) HD Graphics 520 - 20.19.15.4531
Screen: 1280x1024
Temp Dir: C:\Users\jaryan\AppData\Local\Temp\
Install Dir: C:\Program Files\HandBrake
Data Dir: C:\Users\jaryan\AppData\Roaming\HandBrake Team\HandBrake\1.0.7.0

-------------------------------------------


# Starting Encode ...

[14:03:15] hb_init: starting libhb thread
[14:03:15] 1 job(s) to process
[14:03:15] json job:
{
  "Audio": {
    "AudioList": [
      {
        "Bitrate": 160,
        "DRC": 0.0,
        "Encoder": 65536,
        "Gain": 0.0,
        "Mixdown": 1,
        "NormalizeMixLevel": false,
        "Samplerate": 0,
        "Track": 0,
        "DitherMethod": 0
      }
    ],
    "CopyMask": [
      1073807360,
      1073743872,
      1074003968,
      1073750016,
      1090519040,
      1074790400,
      1074266112,
      1107296256
    ],
    "FallbackEncoder": 2048
  },
  "Destination": {
    "ChapterList": [
      {
        "Name": "Chapter 1"
      }
    ],
    "ChapterMarkers": true,
    "File": "C:\\Users\\jaryan\\Downloads\\Batz games\\Vs Crush.m4v",
    "Mp4Options": {
      "IpodAtom": false,
      "Mp4Optimize": false
    },
    "Mux": 131072
  },
  "Filters": {
    "FilterList": [
      {
        "ID": 4,
        "Settings": {
          "mode": "7"
        }
      },
      {
        "ID": 3,
        "Settings": {
          "block-height": "16",
          "block-thresh": "80",
          "block-width": "16",
          "filter-mode": "1",
          "mode": "0",
          "motion-thresh": "2",
          "spatial-metric": "2",
          "spatial-thresh": "3"
        }
      },
      {
        "ID": 11,
        "Settings": {
          "crop-bottom": "0",
          "crop-left": "0",
          "crop-right": "0",
          "crop-top": "0",
          "height": "1080",
          "width": "1920"
        }
      },
      {
        "ID": 6,
        "Settings": {
          "mode": "2",
          "rate": "27000000/900000"
        }
      }
    ]
  },
  "PAR": {
    "Num": 1,
    "Den": 1
  },
  "Metadata": {},
  "SequenceID": 0,
  "Source": {
    "Angle": 1,
    "Range": {
      "Type": "chapter",
      "Start": 1,
      "End": 1
    },
    "Title": 1,
    "Path": "C:\\Temp Batz\\vs crush.mkv"
  },
  "Subtitle": {
    "Search": {
      "Burn": false,
      "Default": false,
      "Enable": false,
      "Forced": false
    },
    "SubtitleList": []
  },
  "Video": {
    "Encoder": 65536,
    "Level": "4.0",
    "TwoPass": false,
    "Turbo": false,
    "ColorMatrixCode": 0,
    "Options": "",
    "Preset": "veryfast",
    "Profile": "main",
    "Quality": 24.0,
    "OpenCL": false,
    "HWDecode": false,
    "QSV": {
      "Decode": false,
      "AsyncDepth": 0
    }
  }
}
[14:03:15] CPU: Intel(R) Core(TM) i5-6300U CPU @ 2.40GHz
[14:03:15]  - Intel microarchitecture Skylake
[14:03:15]  - logical processor count: 4
[14:03:15] Intel Quick Sync Video support: yes
[14:03:15]  - Intel Media SDK hardware: API 1.19 (minimum: 1.3)
[14:03:15]  - H.264 encoder: yes
[14:03:15]     - preferred implementation: hardware (any)
[14:03:15]     - capabilities (hardware):  breftype icq+la+i+downs vsinfo opt1 opt2+mbbrc+extbrc+trellis+ib_adapt+nmpslice
[14:03:15]  - H.265 encoder: yes
[14:03:15]     - preferred implementation: hardware (any)
[14:03:15]     - capabilities (hardware):  bpyramid vsinfo opt1
[14:03:15] hb_scan: path=C:\Temp Batz\vs crush.mkv, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
src/libbluray/disc/disc.c:274: failed opening UDF image C:\Temp Batz\vs crush.mkv
src/libbluray/disc/disc.c:352: error opening file BDMV\index.bdmv
src/libbluray/disc/disc.c:352: error opening file BDMV\BACKUP\index.bdmv
[14:03:15] bd: not a bd - trying as a stream/file instead
libdvdnav: Using dvdnav version 5.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
[14:03:15] dvd: not a dvd - trying as a stream/file instead
Input #0, matroska,webm, from 'C:\Temp Batz\vs crush.mkv':
  Metadata:
    ENCODER         : Lavf57.38.102
  Duration: 01:11:16.26, start: 0.000000, bitrate: N/A
    Stream #0:0(eng): Video: h264 (High)
      yuv420p, 1920x1080, PAR 1:1 DAR 16:9
      30 fps, 1k tbn (default)
    Metadata:
      HANDLER_NAME    : DataHandler
      ENCODER         : h264
      DURATION        : 01:11:16.266000000
    Stream #0:1(eng): Audio: pcm_s16le
      32000 Hz, 1 channels, s16, 512 kb/s (default)
    Metadata:
      HANDLER_NAME    : DataHandler
      DURATION        : 01:11:16.267000000
[14:03:15] scan: decoding previews for title 1
[14:03:15] scan: audio 0x1: pcm_s16le, rate=32000Hz, bitrate=512000 English (pcm_s16le) (1.0 ch)
[14:03:16] scan: 10 previews, 1920x1080, 30.000 fps, autocrop = 0/0/0/0, aspect 16:9, PAR 1:1
[14:03:16] scan: supported video decoders: avcodec qsv
[14:03:16] libhb: scan thread found 1 valid title(s)
[14:03:16] starting job
[14:03:16] decomb filter thread started for segment 0
[14:03:16] decomb filter thread started for segment 1
[14:03:16] decomb filter thread started for segment 2
[14:03:16] decomb filter thread started for segment 3
[14:03:16] decomb check thread started for segment 0
[14:03:16] decomb check thread started for segment 1
[14:03:16] decomb check thread started for segment 2
[14:03:16] decomb check thread started for segment 3
[14:03:16] yadif thread started for segment 0
[14:03:16] yadif thread started for segment 1
[14:03:16] yadif thread started for segment 2
[14:03:16] yadif thread started for segment 3
[14:03:16] work: track 1, dithering not supported by codec
[14:03:16] work: only 1 chapter, disabling chapter markers
[14:03:16] job configuration:
[14:03:16]  * source
[14:03:16]    + C:\Temp Batz\vs crush.mkv
[14:03:16]    + title 1, chapter(s) 1 to 1
[14:03:16]    + container: matroska,webm
[14:03:16]  * destination
[14:03:16]    + C:\Users\jaryan\Downloads\Batz games\Vs Crush.m4v
[14:03:16]    + container: MPEG-4 (libavformat)
[14:03:16]  * video track
[14:03:16]    + decoder: h264
[14:03:16]    + filters
[14:03:16]      + Comb Detect (mode=0:spatial-metric=2:motion-thresh=2:spatial-thresh=3:filter-mode=1:block-thresh=80:block-width=16:block-height=16)
[14:03:16]      + Decomb (mode=39)
[14:03:16]      + Framerate Shaper (mode=2:rate=27000000/900000)
[14:03:16]        + frame rate: 30.000 fps -> peak rate limited to 30.000 fps
[14:03:16]      + Crop and Scale (width=1920:height=1080:crop-top=0:crop-bottom=0:crop-left=0:crop-right=0)
[14:03:16]        + source: 1920 * 1080, crop (0/0/0/0): 1920 * 1080, scale: 1920 * 1080
[14:03:16]    + Output geometry
[14:03:16]      + storage dimensions: 1920 x 1080
[14:03:16]      + pixel aspect ratio: 1 : 1
[14:03:16]      + display dimensions: 1920 x 1080
[14:03:16]    + encoder: H.264 (libx264)
[14:03:16]      + preset:  veryfast
[14:03:16]      + profile: main
[14:03:16]      + level:   4.0
[14:03:16]      + quality: 24.00 (RF)
[14:03:16]  * audio track 1
[14:03:16]    + decoder: English (pcm_s16le) (1.0 ch) (track 1, id 0x1)
[14:03:16]      + bitrate: 512 kbps, samplerate: 32000 Hz
[14:03:16]    + mixdown: Mono
[14:03:16]    + encoder: AAC (libavcodec)
[14:03:16]      + bitrate: 160 kbps, samplerate: 32000 Hz
[14:03:16] sync: expecting 128288 video frames
[14:03:16] encx264: min-keyint: 30, keyint: 300
[14:03:16] encx264: encoding at constant RF 24.000000
[14:03:16] encx264: unparsed options: subme=2:level=4.0:ref=1:8x8dct=0:vbv-maxrate=20000:weightp=1:vbv-bufsize=25000:trellis=0:mixed-refs=0:rc-lookahead=10
x264 [info]: using SAR=1/1
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 AVX2 LZCNT BMI2
x264 [info]: profile Main, level 4.0
[14:03:16] sync: first pts video is 0
[14:03:16] sync: "Chapter 1" (1) at frame 1 time 0
[14:03:16] sync: first pts audio 0x1 is 0
[14:23:07] reader: done. 1 scr changes
[14:23:08] work: average encoding speed for job is 37.767918 fps
[14:23:08] comb detect: heavy 57 | light 5095 | uncombed 39848 | total 45000
[14:23:08] decomb: deinterlaced 57 | blended 5095 | unfiltered 39848 | total 45000
[14:23:08] vfr: 45000 frames output, 0 dropped and 0 duped for CFR/PFR
[14:23:08] vfr: lost time: 0 (0 frames)
[14:23:08] vfr: gained time: 0 (0 frames) (0 not accounted for)
[14:23:08] pcm_s16le-decoder done: 136832 frames, 0 decoder errors
[14:23:08] h264-decoder done: 45000 frames, 0 decoder errors
[14:23:08] sync: got 45000 frames, 128288 expected
[14:23:08] sync: framerate min 0.000 fps, max 30.000 fps, avg 10.530 fps
x264 [info]: frame I:151   Avg QP:20.03  size:193422
x264 [info]: frame P:24757 Avg QP:22.47  size: 14757
x264 [info]: frame B:20092 Avg QP:26.65  size:  1770
x264 [info]: consecutive B-frames: 28.1% 35.3%  5.1% 31.4%
x264 [info]: mb I  I16..4: 58.8%  0.0% 41.2%
x264 [info]: mb P  I16..4:  6.4%  0.0%  0.1%  P16..4: 21.5%  2.5%  1.4%  0.0%  0.0%    skip:68.0%
x264 [info]: mb B  I16..4:  0.5%  0.0%  0.0%  B16..8:  2.1%  0.7%  0.1%  direct: 2.0%  skip:94.6%  L0:32.0% L1:49.0% BI:19.0%
x264 [info]: coded y,uvDC,uvAC intra: 41.8% 39.6% 4.1% inter: 4.9% 3.5% 0.1%
x264 [info]: i16 v,h,dc,p: 16% 32% 42%  9%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 16% 22% 28%  5%  6%  5%  6%  4%  8%
x264 [info]: i8c dc,h,v,p: 48% 35% 15%  2%
x264 [info]: Weighted P-Frames: Y:0.1% UV:0.1%
x264 [info]: kb/s:805.21
[14:23:08] mux: track 0, 45000 frames, 430107668 bytes, 804.64 kbps, fifo 2048
[14:23:08] mux: track 1, 133633 frames, 83729563 bytes, 156.64 kbps, fifo 32768
[14:23:08] libhb: work result = 0

# Encode Completed ...

Deleted User 11865

Re: Handbrake encoding stopping early

Post by Deleted User 11865 »

Maybe there's a bitstream header change that's throwing HandBrake off. Can you try the following way to combine the streams? MPEG Transport Streams don't have global bitstream headers, unlike Matroska or QuickTime.

Code: Select all

ffmpeg -f concat -i mylist.txt -c copy -f mpegts output.mts
jryan15
Posts: 5
Joined: Mon Sep 18, 2017 2:23 pm

Re: Handbrake encoding stopping early

Post by jryan15 »

I'll give it a shot, thanks!
jryan15
Posts: 5
Joined: Mon Sep 18, 2017 2:23 pm

Re: Handbrake encoding stopping early

Post by jryan15 »

Looks like that worked, thanks!
Deleted User 11865

Re: Handbrake encoding stopping early

Post by Deleted User 11865 »

Most likely, there are very subtle differences in encoding settings between the videos you tried to join, which causes a change in the bitstream headers. Such streams are ill-suited to being stored in a MOV or MKV file, because these formats only support one global set of bitstream headers -- once it reaches the part where the content doesn't match the container-level bitstream headers, HandBrake's decoder can't reconfigure and fails to decode additional frames. There are hacks we could use to make this work, but it's not a great idea generally speaking.

On the other hand, MPEG Transport Streams and similar containers don't have global bitstream headers and are designed so that the decoder can easily reconfigure on changes in the bitstream format.
jryan15
Posts: 5
Joined: Mon Sep 18, 2017 2:23 pm

Re: Handbrake encoding stopping early

Post by jryan15 »

Thanks again. I'll compress the next couple files and will report back if there are any issues. In the meantime, this command set appears to work:

Code: Select all

(for %i in (*.mov) do @echo file '%i') > mylist.txt
ffmpeg -f concat -i mylist.txt -c copy -f mpegts output.mts
Post Reply