Getting 0 frames from BD rip after 1st pass

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
Crono141
Posts: 13
Joined: Mon May 31, 2010 2:28 pm

Getting 0 frames from BD rip after 1st pass

Post by Crono141 »

Description of problem or question:
Handbrake fails to begin encoding after 1st pass/subtitle scan. For some reason its getting 0 frames instead of expected 146539



Steps to reproduce the problem (If Applicable):
Analyse ripped BR folder, select relevant settings, start encode



HandBrake version (e.g., 1.0.0):
Both 1.2.2 and Nightly 20190309213014-3082b59-master



Operating system and version (e.g., Ubuntu 16.04 LTS, macOS 10.13 High Sierra, Windows 10 Creators Update):

Windows 10 Pro 1809


HandBrake Activity Log ***required*** (see How-to get an activity log)

Code: Select all

HandBrake Nightly 20190309213014-3082b59-master (2019031001)
OS: Microsoft Windows NT 10.0.17763.0
CPU: AMD A10-7850K Radeon R7, 12 Compute Cores 4C+8G
Ram: 8114 MB, 
GPU Information:
  NVIDIA GeForce GTX 970 - 25.21.14.1771
Screen: 2560x1080
Temp Dir: C:\Users\crono\AppData\Local\Temp\
Install Dir: C:\Program Files\HandBrake Nightly
Data Dir: C:\Users\crono\AppData\Roaming\HandBrake\Nightly

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


# Starting Encode ...

[15:50:52] hb_init: starting libhb thread
[15:50:52] 1 job(s) to process
[15:50:52] json job:
{
  "Audio": {
    "AudioList": [
      {
        "Bitrate": 640,
        "DRC": 0.0,
        "Encoder": "ac3",
        "Gain": -20.0,
        "Mixdown": 7,
        "NormalizeMixLevel": false,
        "Samplerate": 0,
        "Track": 1,
        "DitherMethod": 0
      },
      {
        "DRC": 0.0,
        "Encoder": "copy",
        "Gain": -20.0,
        "Mixdown": -1,
        "NormalizeMixLevel": false,
        "Samplerate": 0,
        "Track": 0,
        "DitherMethod": 0
      },
      {
        "DRC": 0.0,
        "Encoder": "copy",
        "Gain": -20.0,
        "Mixdown": -1,
        "NormalizeMixLevel": false,
        "Samplerate": 0,
        "Track": 2,
        "DitherMethod": 0
      }
    ],
    "CopyMask": [
      "copy:aac",
      "copy:ac3",
      "copy:dts"
    ],
    "FallbackEncoder": "ac3"
  },
  "Destination": {
    "ChapterList": [
      {
        "Name": "Chapter 1"
      },
      {
        "Name": "Chapter 2"
      },
      {
        "Name": "Chapter 3"
      },
      {
        "Name": "Chapter 4"
      },
      {
        "Name": "Chapter 5"
      },
      {
        "Name": "Chapter 6"
      },
      {
        "Name": "Chapter 7"
      },
      {
        "Name": "Chapter 8"
      },
      {
        "Name": "Chapter 9"
      },
      {
        "Name": "Chapter 10"
      },
      {
        "Name": "Chapter 11"
      },
      {
        "Name": "Chapter 12"
      },
      {
        "Name": "Chapter 13"
      },
      {
        "Name": "Chapter 14"
      },
      {
        "Name": "Chapter 15"
      },
      {
        "Name": "Chapter 16"
      },
      {
        "Name": "Chapter 17"
      }
    ],
    "ChapterMarkers": true,
    "AlignAVStart": false,
    "File": "S:\\Movies\\The Crow.mkv",
    "Mp4Options": {
      "IpodAtom": false,
      "Mp4Optimize": false
    },
    "Mux": "mkv"
  },
  "Filters": {
    "FilterList": [
      {
        "ID": 4,
        "Settings": {
          "mode": "7"
        }
      },
      {
        "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": 11,
        "Settings": {
          "crop-bottom": "20",
          "crop-left": "0",
          "crop-right": "2",
          "crop-top": "20",
          "height": "1040",
          "width": "1918"
        }
      },
      {
        "ID": 6,
        "Settings": {
          "mode": "1"
        }
      }
    ]
  },
  "PAR": {
    "Num": 1,
    "Den": 1
  },
  "Metadata": {},
  "SequenceID": 0,
  "Source": {
    "Angle": 1,
    "Range": {
      "Type": "chapter",
      "Start": 1,
      "End": 17
    },
    "Title": 51,
    "Path": "S:\\Ripped\\THE_CROW"
  },
  "Subtitle": {
    "Search": {
      "Burn": true,
      "Default": false,
      "Enable": true,
      "Forced": true
    },
    "SubtitleList": [
      {
        "Burn": false,
        "Default": false,
        "Forced": false,
        "ID": 1,
        "Offset": 0,
        "Track": 0
      },
      {
        "Burn": false,
        "Default": false,
        "Forced": false,
        "ID": 2,
        "Offset": 0,
        "Track": 1
      },
      {
        "Burn": false,
        "Default": false,
        "Forced": false,
        "ID": 3,
        "Offset": 0,
        "Track": 2
      }
    ]
  },
  "Video": {
    "Encoder": "x265_10bit",
    "Level": "auto",
    "TwoPass": false,
    "Turbo": false,
    "ColorMatrixCode": 0,
    "Options": "",
    "Preset": "fast",
    "Profile": "auto",
    "Quality": 22.0,
    "QSV": {
      "Decode": false,
      "AsyncDepth": 0
    }
  }
}
[15:50:52] CPU:
[15:50:52]  - logical processor count: 4
[15:50:52] Intel Quick Sync Video support: no
[15:50:52] hb_scan: path=S:\Ripped\THE_CROW, title_index=51
src/libbluray/bdj/bdj.c:133: Error opening registry key SOFTWARE\JavaSoft\Java Runtime Environment\
src/libbluray/bdj/bdj.c:746: BD-J check: Failed to load JVM library
src/libbluray/bdj/bdj.c:133: Error opening registry key SOFTWARE\JavaSoft\Java Runtime Environment\
src/libbluray/bdj/bdj.c:746: BD-J check: Failed to load JVM library
[15:50:53] scan: BD has 51 title(s)
[15:50:53] bd: scanning title 51
[15:50:53] bd: playlist 00800.MPLS
[15:50:53] bd: duration is 01:41:51 (6111939 ms)
[15:50:53] bd: video id=0x1011, stream type=H.264, format 1080p
[15:50:53] bd: aspect = 16:9
[15:50:53] bd: audio id=0x711100, lang=English (DTS), 3cc=eng
[15:50:53] bd: audio id=0x1100, lang=English (DTS-HD MA), 3cc=eng
[15:50:53] bd: audio id=0x1101, lang=English (AC3), 3cc=eng
[15:50:53] bd: subtitle id=0x1200, lang=English [PGS], 3cc=eng
[15:50:53] bd: subtitle id=0x1201, lang=English [PGS], 3cc=eng
[15:50:53] bd: subtitle id=0x1202, lang=español [PGS], 3cc=spa
[15:50:53] bd: chap 1 packet=768, 275066 ms
[15:50:53] bd: chap 2 packet=783699072, 504420 ms
[15:50:53] bd: chap 3 packet=2307873600, 240698 ms
[15:50:53] bd: chap 4 packet=3052579008, 306973 ms
[15:50:53] bd: chap 5 packet=4095469440, 346429 ms
[15:50:53] bd: chap 6 packet=5210222016, 236236 ms
[15:50:53] bd: chap 7 packet=5950026624, 218968 ms
[15:50:53] bd: chap 8 packet=6652150464, 455746 ms
[15:50:53] bd: chap 9 packet=8164902528, 338296 ms
[15:50:53] bd: chap 10 packet=9314149632, 253044 ms
[15:50:53] bd: chap 11 packet=10094908992, 252585 ms
[15:50:53] bd: chap 12 packet=10852152576, 327327 ms
[15:50:53] bd: chap 13 packet=12004646400, 416791 ms
[15:50:53] bd: chap 14 packet=13299539712, 545711 ms
[15:50:53] bd: chap 15 packet=15265364928, 529195 ms
[15:50:53] bd: chap 16 packet=16829986752, 864196 ms
[15:50:53] bd: chap 17 packet=18741483840, 250 ms
[15:50:53] bd: title 51 has 17 chapters
[15:50:53] scan: decoding previews for title 51
[15:50:53] scan: title angle(s) 1
[15:50:53] scan: audio 0x711100: dca, rate=48000Hz, bitrate=1536000 English (DTS) (5.1 ch) (1536 kbps)
[15:50:53] scan: audio 0x1100: dca, rate=48000Hz, bitrate=1 English (DTS-HD MA) (5.1 ch)
[15:50:53] scan: audio 0x1101: ac3, rate=48000Hz, bitrate=224000 English (AC3) (2.0 ch) (Dolby Surround) (224 kbps)
[15:50:55] scan: 10 previews, 1920x1080, 23.976 fps, autocrop = 20/20/0/2, aspect 16:9, PAR 1:1
[15:50:55] scan: supported video decoders: avcodec qsv
[15:50:55] stream: 10 good frames, 0 errors (0%)
[15:50:55] libhb: scan thread found 1 valid title(s)
[15:50:55] starting job
[15:50:55] decomb filter thread started for segment 0
[15:50:55] decomb check thread started for segment 3
[15:50:55] decomb filter thread started for segment 2
[15:50:55] decomb filter thread started for segment 3
[15:50:55] decomb check thread started for segment 0
[15:50:55] decomb check thread started for segment 1
[15:50:55] decomb check thread started for segment 2
[15:50:55] decomb filter thread started for segment 1
[15:50:55] mask filter thread started for segment 0
[15:50:55] mask filter thread started for segment 1
[15:50:55] job configuration:
[15:50:55]  * source
[15:50:55]    + S:\Ripped\THE_CROW
[15:50:55]    + title 51, chapter(s) 1 to 17
[15:50:55]  * destination
[15:50:55] mask filter thread started for segment 2
[15:50:55]    + S:\Movies\The Crow.mkv
[15:50:55]    + container: Matroska (libavformat)
[15:50:55]      + chapter markers
[15:50:55]  * video track
[15:50:55]    + decoder: h264
[15:50:55]      + bitrate 200 kbps
[15:50:55]    + filters
[15:50:55]      + 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)
[15:50:55] mask filter thread started for segment 3
[15:50:55]      + Decomb (mode=39)
[15:50:55]      + Framerate Shaper (mode=1)
[15:50:55]        + frame rate: 23.976 fps -> constant 23.976 fps
[15:50:55]      + Crop and Scale (width=1918:height=1040:crop-top=20:crop-bottom=20:crop-left=0:crop-right=2)
[15:50:55] mask erode thread started for segment 0
[15:50:55]        + source: 1920 * 1080, crop (20/20/0/2): 1918 * 1040, scale: 1918 * 1040
[15:50:55]    + Output geometry
[15:50:55]      + storage dimensions: 1918 x 1040
[15:50:55]      + pixel aspect ratio: 1 : 1
[15:50:55]      + display dimensions: 1918 x 1040
[15:50:55]  * Foreign Audio Search: Render/Burn-in, Forced Only
[15:50:55]    + subtitle, English [PGS] (track 0, id 0x1200, Picture)
[15:50:55]    + subtitle, English [PGS] (track 1, id 0x1201, Picture)
[15:50:55] mask erode thread started for segment 2
[15:50:55] mask erode thread started for segment 1
[15:50:55] mask erode thread started for segment 3
[15:50:55] mask dilate thread started for segment 0
[15:50:55] mask dilate thread started for segment 1
[15:50:55] mask dilate thread started for segment 2
[15:50:55] mask dilate thread started for segment 3
[15:50:55] yadif thread started for segment 0
[15:50:55] yadif thread started for segment 1
[15:50:55] yadif thread started for segment 2
[15:50:55] yadif thread started for segment 3
src/libbluray/bdj/bdj.c:133: Error opening registry key SOFTWARE\JavaSoft\Java Runtime Environment\
src/libbluray/bdj/bdj.c:746: BD-J check: Failed to load JVM library
src/libbluray/bdj/bdj.c:133: Error opening registry key SOFTWARE\JavaSoft\Java Runtime Environment\
src/libbluray/bdj/bdj.c:746: BD-J check: Failed to load JVM library
[15:50:56] sync: expecting 146539 video frames

[15:55:04] bd: End of title
[15:55:04] reader: done. 1 scr changes
[15:55:04] work: average encoding speed for job is 0.000000 fps
[15:55:04] comb detect: heavy 0 | light 0 | uncombed 0 | total 0
[15:55:04] decomb: deinterlaced 0 | blended 0 | unfiltered 0 | total 0
[15:55:04] vfr: 0 frames output, 0 dropped and 0 duped for CFR/PFR
[15:55:04] vfr: lost time: 0 (0 frames)
[15:55:04] vfr: gained time: 0 (0 frames) (0 not accounted for)
[15:55:04] stream: 146540 good frames, 0 errors (0%)
[15:55:04] h264-decoder done: 0 frames, 1 decoder errors
[15:55:04] sync: got 0 frames, 146539 expected
[15:55:04] Subtitle track 0 (id 0x1200) 'English [PGS]': 873 hits (0 forced)
[15:55:04] Subtitle track 1 (id 0x1201) 'English [PGS]': 1251 hits (0 forced)
[15:55:04] No candidate detected during subtitle scan
[15:55:04] starting job
[15:55:04] decomb filter thread started for segment 0
[15:55:04] decomb filter thread started for segment 1
[15:55:04] decomb filter thread started for segment 2
[15:55:04] decomb filter thread started for segment 3
[15:55:04] decomb check thread started for segment 0
[15:55:04] decomb check thread started for segment 1
[15:55:04] decomb check thread started for segment 2
[15:55:04] decomb check thread started for segment 3
[15:55:04] mask filter thread started for segment 0
[15:55:04] mask filter thread started for segment 1
[15:55:04] mask filter thread started for segment 2
[15:55:04] yadif thread started for segment 0
[15:55:04] mask erode thread started for segment 0
[15:55:04] mask erode thread started for segment 1
[15:55:04] mask erode thread started for segment 2
[15:55:04] Auto Passthru: allowed codecs are AAC, AC3, DTS
[15:55:04] Auto Passthru: fallback is AC3
[15:55:04] mask erode thread started for segment 3
[15:55:04] Auto Passthru: using DTS Passthru for track 2
[15:55:04] Auto Passthru: using AC3 Passthru for track 3
[15:55:04] mask dilate thread started for segment 0
[15:55:04] mask dilate thread started for segment 1
[15:55:04] mask dilate thread started for segment 2
[15:55:04] mask dilate thread started for segment 3
[15:55:04] mask filter thread started for segment 3
[15:55:04] yadif thread started for segment 1
[15:55:04] yadif thread started for segment 2
[15:55:04] job configuration:
[15:55:04]  * source
[15:55:04]    + S:\Ripped\THE_CROW
[15:55:04]    + title 51, chapter(s) 1 to 17
[15:55:04] yadif thread started for segment 3
[15:55:04]  * destination
[15:55:04]    + S:\Movies\The Crow.mkv
[15:55:04]    + container: Matroska (libavformat)
[15:55:04]      + chapter markers
[15:55:04]  * video track
[15:55:04]    + decoder: h264
[15:55:04]      + bitrate 200 kbps
[15:55:04]    + filters
[15:55:04]      + 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)
[15:55:04]      + Decomb (mode=39)
[15:55:04]      + Framerate Shaper (mode=1)
[15:55:04]        + frame rate: 23.976 fps -> constant 23.976 fps
[15:55:04]      + Crop and Scale (width=1918:height=1040:crop-top=20:crop-bottom=20:crop-left=0:crop-right=2)
[15:55:04]        + source: 1920 * 1080, crop (20/20/0/2): 1918 * 1040, scale: 1918 * 1040
[15:55:04]    + Output geometry
[15:55:04]      + storage dimensions: 1918 x 1040
[15:55:04]      + pixel aspect ratio: 1 : 1
[15:55:04]      + display dimensions: 1918 x 1040
[15:55:04]    + encoder: H.265 10-bit (libx265)
[15:55:04]      + preset:  fast
[15:55:04]      + profile: auto
[15:55:04]      + quality: 22.00 (RF)
[15:55:04]      + color profile: 1-1-1
[15:55:04]  * subtitle track 1, English [PGS] (track 0, id 0x1200, Picture) -> Passthrough
[15:55:04]  * subtitle track 2, English [PGS] (track 1, id 0x1201, Picture) -> Passthrough
[15:55:04]  * subtitle track 3, español [PGS] (track 2, id 0x1202, Picture) -> Passthrough
[15:55:04]  * audio track 1
[15:55:04]    + decoder: English (DTS-HD MA) (5.1 ch) (track 2, id 0x1100)
[15:55:04]      + samplerate: 48000 Hz
[15:55:04]    + mixdown: 5.1 Channels
[15:55:04]    + gain: -20dB
[15:55:04]    + dither: none
[15:55:04]    + encoder: AC3 (libavcodec)
[15:55:04]      + bitrate: 640 kbps, samplerate: 48000 Hz
[15:55:04]  * audio track 2
[15:55:04]    + decoder: English (DTS) (5.1 ch) (1536 kbps) (track 1, id 0x711100)
[15:55:04]      + bitrate: 1536 kbps, samplerate: 48000 Hz
[15:55:04]    + DTS Passthru
[15:55:04]  * audio track 3
[15:55:04]    + decoder: English (AC3) (2.0 ch) (Dolby Surround) (224 kbps) (track 3, id 0x1101)
[15:55:04]      + bitrate: 224 kbps, samplerate: 48000 Hz
[15:55:04]    + AC3 Passthru
src/libbluray/bdj/bdj.c:133: Error opening registry key SOFTWARE\JavaSoft\Java Runtime Environment\
src/libbluray/bdj/bdj.c:746: BD-J check: Failed to load JVM library
src/libbluray/bdj/bdj.c:133: Error opening registry key SOFTWARE\JavaSoft\Java Runtime Environment\
src/libbluray/bdj/bdj.c:746: BD-J check: Failed to load JVM library
[15:55:05] sync: expecting 146539 video frames
x265 [info]: HEVC encoder version 3.0
x265 [info]: build info [Windows][GCC 7.1.0][64 bit] 10bit
x265 [info]: using cpu capabilities: MMX2 SSE2Fast LZCNT SSSE3 SSE4.2 AVX XOP FMA4 FMA3 BMI1
x265 [info]: Main 10 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         : hex / 57 / 2 / 2
x265 [info]: Keyframe min / max / scenecut / bias: 24 / 240 / 40 / 5.00
x265 [info]: Lookahead / bframes / badapt        : 15 / 4 / 0
x265 [info]: b-pyramid / weightp / weightb       : 1 / 1 / 0
x265 [info]: References / ref-limit  cu / depth  : 3 / on / on
x265 [info]: AQ: mode / str / qg-size / cu-tree  : 2 / 1.0 / 32 / 1
x265 [info]: Rate Control / qCompress            : CRF-22.0 / 0.60
x265 [info]: tools: rd=2 psy-rd=2.00 rskip signhide tmvp fast-intra
x265 [info]: tools: strong-intra-smoothing lslices=6 deblock sao
avio_open2 failed, errno -13
[15:55:05] work: average encoding speed for job is 0.000000 fps
[15:55:05] comb detect: heavy 0 | light 0 | uncombed 0 | total 0
[15:55:05] decomb: deinterlaced 0 | blended 0 | unfiltered 0 | total 0
[15:55:05] vfr: 0 frames output, 0 dropped and 0 duped for CFR/PFR
[15:55:05] vfr: lost time: 0 (0 frames)
[15:55:05] vfr: gained time: 0 (0 frames) (0 not accounted for)
[15:55:05] stream: 1 good frames, 0 errors (0%)
[15:55:05] dca-decoder done: 0 frames, 0 decoder errors
[15:55:05] dca-decoder done: 0 frames, 0 decoder errors
[15:55:05] ac3-decoder done: 0 frames, 0 decoder errors
[15:55:05] h264-decoder done: 0 frames, 0 decoder errors
[15:55:05] sync: got 0 frames, 146539 expected
encoded 0 frames
[15:55:05] mux: track 0, 0 frames, 0 bytes, 0.00 kbps, fifo 8
[15:55:05] mux: track 1, 0 frames, 0 bytes, 0.00 kbps, fifo 8
[15:55:05] mux: track 2, 0 frames, 0 bytes, 0.00 kbps, fifo 8
[15:55:05] mux: track 3, 0 frames, 0 bytes, 0.00 kbps, fifo 8
[15:55:05] mux: track 4, 0 frames, 0 bytes, 0.00 kbps, fifo 8
[15:55:05] mux: track 5, 0 frames, 0 bytes, 0.00 kbps, fifo 8
[15:55:05] mux: track 6, 0 frames, 0 bytes, 0.00 kbps, fifo 8
[15:55:05] libhb: work result = 3

# Encode Completed ...

mduell
Veteran User
Posts: 8198
Joined: Sat Apr 21, 2007 8:54 pm

Re: Getting 0 frames from BD rip after 1st pass

Post by mduell »

Code: Select all

avio_open2 failed, errno -13
Do you have write permission to the destination?
Crono141
Posts: 13
Joined: Mon May 31, 2010 2:28 pm

Re: Getting 0 frames from BD rip after 1st pass

Post by Crono141 »

That was the issue. Weirdly, I had write permission to the folder, but not to the file I was overwriting. New file name fixed it. Thanks for your help.

Any possibility that this error could have a better descriptor? Had is said "write error" or "permission denied" or something it would have been easier to troubleshoot without bothering the forum.
mduell
Veteran User
Posts: 8198
Joined: Sat Apr 21, 2007 8:54 pm

Re: Getting 0 frames from BD rip after 1st pass

Post by mduell »

Sure, I bet the developers would accept a pull request from you to better surface this error on all supported platforms.
Post Reply