handbrake feezes during queue

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
derpmcgeee
Posts: 8
Joined: Mon Dec 03, 2018 8:37 am

handbrake feezes during queue

Post by derpmcgeee » Mon Dec 03, 2018 8:49 am

Description of problem or question:
for the last week ive been using handbrake to convert my media library to h.265 after leaving the computer for several hours ill come back and its frozen on one of the files its tried to encode and its been encoding the file for 10+ hours frozen at some random time in the encode the files im working with usually only take 15-20 minutes to transcode because its a short 20 minute tv show, when this happens i cannot correctly close the application because it crashes therefor im not getting a activity log for the event



Steps to reproduce the problem (If Applicable):
leave to transcode on h.265 (intel qsv) overnight



HandBrake version (e.g., 1.0.0):
1.1.2



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

windows 10 Home (most recent)*


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

Code: Select all

HandBrake 1.1.2 (2018090500) - 64bit
OS: Microsoft Windows NT 10.0.17134.0 - 64bit
CPU: Intel(R) Core(TM) i3-6100 CPU @ 3.70GHz
Ram: 16252 MB, 
GPU Information:
  NVIDIA GeForce GTX 680 - 25.21.14.1701
  Intel(R) HD Graphics 530 - 20.19.15.4463
Screen: 1824x1026
Temp Dir: C:\Users\jakob\AppData\Local\Temp\
Install Dir: C:\Program Files\HandBrake
Data Dir: C:\Users\jakob\AppData\Roaming\HandBrake

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


# Starting Encode ...

[06:47:07] hb_init: starting libhb thread
[06:47:07] 1 job(s) to process
[06:47:07] json job:
{
  "Audio": {
    "AudioList": [
      {
        "Bitrate": 160,
        "DRC": 0.0,
        "Encoder": 65536,
        "Gain": 0.0,
        "Mixdown": 4,
        "NormalizeMixLevel": false,
        "Samplerate": 48000,
        "Track": 0,
        "DitherMethod": 0
      }
    ],
    "CopyMask": [
      1073807360,
      1073743872,
      1074003968,
      1073750016,
      1090519040,
      1074790400,
      1074266112,
      1107296256
    ],
    "FallbackEncoder": 2048
  },
  "Destination": {
    "ChapterList": [],
    "ChapterMarkers": false,
    "AlignAVStart": false,
    "File": "D:\\converted\\Accel World Episode 15 English Dubbed.mp4",
    "Mp4Options": {
      "IpodAtom": false,
      "Mp4Optimize": true
    },
    "Mux": 131072
  },
  "Filters": {
    "FilterList": [
      {
        "ID": 2,
        "Settings": {}
      },
      {
        "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": "0",
          "crop-left": "0",
          "crop-right": "0",
          "crop-top": "0",
          "height": "480",
          "width": "852"
        }
      },
      {
        "ID": 6,
        "Settings": {
          "mode": "2"
        }
      }
    ]
  },
  "PAR": {
    "Num": 640,
    "Den": 639
  },
  "Metadata": {},
  "SequenceID": 0,
  "Source": {
    "Angle": 1,
    "Range": {
      "Type": "chapter",
      "Start": 1,
      "End": 1
    },
    "Title": 7,
    "Path": "E:\\Accel World\\Season 1\\Accel World Episode 15 English Dubbed.flv"
  },
  "Subtitle": {
    "Search": {
      "Burn": false,
      "Default": false,
      "Enable": false,
      "Forced": false
    },
    "SubtitleList": []
  },
  "Video": {
    "Encoder": 512,
    "Level": "auto",
    "TwoPass": false,
    "Turbo": false,
    "ColorMatrixCode": 0,
    "Options": "",
    "Preset": "quality",
    "Profile": "auto",
    "Quality": 25.0,
    "HWDecode": false,
    "QSV": {
      "Decode": true,
      "AsyncDepth": 0
    }
  }
}
[06:47:07] CPU: Intel(R) Core(TM) i3-6100 CPU @ 3.70GHz
[06:47:07]  - Intel microarchitecture Skylake
[06:47:07]  - logical processor count: 4
[06:47:07] Intel Quick Sync Video support: yes
[06:47:07]  - Intel Media SDK hardware: API 1.19 (minimum: 1.3)
[06:47:07]  - H.264 encoder: yes
[06:47:07]     - preferred implementation: hardware (any) via D3D11
[06:47:07]     - capabilities (hardware):  breftype icq+la+i+downs vsinfo opt1 opt2+mbbrc+extbrc+trellis+ib_adapt+nmpslice
[06:47:07]  - H.265 encoder: yes (8bit: yes, 10bit: no)
[06:47:07]     - preferred implementation: hardware (any) via D3D11
[06:47:07]     - capabilities (hardware):  bpyramid icq vsinfo opt1
[06:47:07] hb_scan: path=E:\Accel World\Season 1\Accel World Episode 15 English Dubbed.flv, title_index=7
udfread ERROR: ECMA 167 Volume Recognition failed
src/libbluray/disc/disc.c:323: failed opening UDF image E:\Accel World\Season 1\Accel World Episode 15 English Dubbed.flv
src/libbluray/disc/disc.c:424: error opening file BDMV\index.bdmv
src/libbluray/disc/disc.c:424: error opening file BDMV\BACKUP\index.bdmv
[06:47:07] bd: not a bd - trying as a stream/file instead
libdvdnav: Using dvdnav version 6.0.0
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
[06:47:07] dvd: not a dvd - trying as a stream/file instead
Input #0, flv, from 'E:\Accel World\Season 1\Accel World Episode 15 English Dubbed.flv':
  Metadata:
    metadatacreator : Yet Another Metadata Injector for FLV - Version 1.8
    hasKeyframes    : true
    hasVideo        : true
    hasAudio        : true
    hasMetadata     : true
    canSeekToEnd    : true
    datasize        : 113558789
    videosize       : 89387997
    audiosize       : 23785608
    lasttimestamp   : 1436
    lastkeyframetimestamp: 1436
    lastkeyframelocation: 113567266
  Duration: 00:23:56.34, start: 0.000000, bitrate: N/A
    Stream #0:0: Video: h264 (High)
      yuv420p, 852x480 [PAR 640:639 DAR 16:9]
      23.98 fps, 1k tbn
    Stream #0:1: Audio: aac (LC)
      44100 Hz, stereo, fltp
[06:47:07] scan: decoding previews for title 7
[06:47:07] scan: audio 0x1: aac, rate=44100Hz, bitrate=1 Unknown (AAC) (2.0 ch)
[06:47:07] scan: 10 previews, 852x480, 23.976 fps, autocrop = 0/0/0/0, aspect 16:9, PAR 640:639
[06:47:07] scan: supported video decoders: avcodec qsv
[06:47:07] libhb: scan thread found 1 valid title(s)
[06:47:07] starting job
[06:47:07] decomb filter thread started for segment 1
[06:47:07] mask filter thread started for segment 0
[06:47:07] mask erode thread started for segment 2
[06:47:07] mask dilate thread started for segment 1
[06:47:07] decomb check thread started for segment 0
[06:47:07] decomb check thread started for segment 1
[06:47:07] decomb check thread started for segment 2
[06:47:07] work: track 1, dithering not supported by codec
[06:47:07] decomb check thread started for segment 3
[06:47:07] mask filter thread started for segment 1
[06:47:07] job configuration:
[06:47:07]  * source
[06:47:07]    + E:\Accel World\Season 1\Accel World Episode 15 English Dubbed.flv
[06:47:07]    + title 7, chapter(s) 1 to 1
[06:47:07]    + container: flv
[06:47:07]  * destination
[06:47:07]    + D:\converted\Accel World Episode 15 English Dubbed.mp4
[06:47:07] decomb filter thread started for segment 0
[06:47:07]    + container: MPEG-4 (libavformat)
[06:47:07]      + optimized for HTTP streaming (fast start)
[06:47:07]  * video track
[06:47:07]    + decoder: h264_qsv
[06:47:07]    + filters
[06:47:07]      + Detelecine (pullup) ()
[06:47:07] mask filter thread started for segment 2
[06:47:07] mask filter thread started for segment 3
[06:47:07]      + 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)
[06:47:07]      + Decomb (mode=39)
[06:47:07]      + Framerate Shaper (mode=2)
[06:47:07]        + frame rate: 23.976 fps -> peak rate limited to 23.976 fps
[06:47:07]      + Crop and Scale (width=852:height=480:crop-top=0:crop-bottom=0:crop-left=0:crop-right=0)
[06:47:07]        + source: 852 * 480, crop (0/0/0/0): 852 * 480, scale: 852 * 480
[06:47:07]    + Output geometry
[06:47:07]      + storage dimensions: 852 x 480
[06:47:07]      + pixel aspect ratio: 640 : 639
[06:47:07]      + display dimensions: 853 x 480
[06:47:07]    + encoder: H.265 (Intel Media SDK)
[06:47:07]      + preset:  quality
[06:47:07]      + profile: auto
[06:47:07]      + level:   auto
[06:47:07]      + quality: 25.00 (ICQ)
[06:47:07]  * audio track 1
[06:47:07]    + decoder: Unknown (AAC) (2.0 ch) (track 1, id 0x1)
[06:47:07]      + samplerate: 44100 Hz
[06:47:07] mask erode thread started for segment 0
[06:47:07]    + mixdown: Stereo
[06:47:07]    + encoder: AAC (libavcodec)
[06:47:07]      + bitrate: 160 kbps, samplerate: 48000 Hz
[06:47:07] mask erode thread started for segment 1
[06:47:07] decomb filter thread started for segment 2
[06:47:07] mask erode thread started for segment 3
[06:47:07] decomb filter thread started for segment 3
[06:47:07] mask dilate thread started for segment 0
[06:47:07] mask dilate thread started for segment 2
[06:47:07] mask dilate thread started for segment 3
[06:47:07] yadif thread started for segment 0
[06:47:07] yadif thread started for segment 1
[06:47:07] yadif thread started for segment 2
[06:47:07] yadif thread started for segment 3
[06:47:07] sync: expecting 34437 video frames
[06:47:07] encqsvInit: using encode-only path
[06:47:07] encqsvInit: H.265/HEVC Main profile @ level 3.0
[06:47:07] encqsvInit: TargetUsage 1 AsyncDepth 5
[06:47:07] encqsvInit: GopRefDist 3 GopPicSize 24 NumRefFrame 4
[06:47:07] encqsvInit: BFramesMax 2 BRefType off
[06:47:07] encqsvInit: RateControlMethod ICQ ICQQuality 25
[06:47:07] sync: first pts audio 0x1 is 0
[06:47:07] sync: first pts video is 14490
[06:47:07] sync: Chapter 1 at frame 1 time 14490
[06:47:07] qsv_enc_init: using 'hardware (2) via D3D11' implementation, API: 1.19
[06:47:07] encqsv: BPyramid off not respected (delay: 1)
Error code -17,	hb_qsv_wait_on_sync	602

Last edited by derpmcgeee on Mon Dec 03, 2018 1:21 pm, edited 3 times in total.

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

Re: handbrake feezes during queue

Post by rollin_eng » Mon Dec 03, 2018 10:35 am

Could you please post your HB logs, instructions can be found here:

https://handbrake.fr/docs/en/latest/hel ... y-log.html

User avatar
s55
HandBrake Team
Posts: 9267
Joined: Sun Dec 24, 2006 1:05 pm

Re: handbrake feezes during queue

Post by s55 » Mon Dec 03, 2018 10:41 am

Logs are always recorded to disk when the process is running, so the last run will still be there.

derpmcgeee
Posts: 8
Joined: Mon Dec 03, 2018 8:37 am

Re: handbrake feezes during queue

Post by derpmcgeee » Mon Dec 03, 2018 10:48 am

Yes the logs before and after are there but the relevant one from when handbrake froze doesn't exist just to add context it froze on file 18 there's logs for 17 and 19 no 18

User avatar
s55
HandBrake Team
Posts: 9267
Joined: Sun Dec 24, 2006 1:05 pm

Re: handbrake feezes during queue

Post by s55 » Mon Dec 03, 2018 11:15 am

There should be a file called Activity_logXYZ.txt where xyz is a number.

Also, for clarity, is this a system freeze or an app freeze

derpmcgeee
Posts: 8
Joined: Mon Dec 03, 2018 8:37 am

Re: handbrake feezes during queue

Post by derpmcgeee » Mon Dec 03, 2018 12:59 pm

It happened again, this time i was able to grab a current log file before it crashed I have updated the post it is where its supposed to be. the best way I can explain it is the app appears to be running fine but when i go check on it the trans-code itself has froze,it sticks at the same percentage completed, current fps, avg fps and time remaining but it actually records time elapsed so when I wake up in the morning or come back after a while i can see the app has spent hours trying to trans-code the same frame

Woodstock
Veteran User
Posts: 2818
Joined: Tue Aug 27, 2013 6:39 am

Re: handbrake feezes during queue

Post by Woodstock » Mon Dec 03, 2018 1:41 pm

Intel video drivers....

Error code -17, hb_qsv_wait_on_sync 602

At the very least, disable QSV hardware DECODE, and try again.

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

Re: handbrake feezes during queue

Post by rollin_eng » Mon Dec 03, 2018 2:40 pm

Try the nightly build.

derpmcgeee
Posts: 8
Joined: Mon Dec 03, 2018 8:37 am

Re: handbrake feezes during queue

Post by derpmcgeee » Mon Dec 03, 2018 3:31 pm

Woodstock wrote:
Mon Dec 03, 2018 1:41 pm
Intel video drivers....

Error code -17, hb_qsv_wait_on_sync 602

At the very least, disable QSV hardware DECODE, and try again.
then i get like 3fps im on a i3 :cry: id rather get the 30fps from using qsv and have to make some error handler with sikulix,thanks for the help was just wondering if there was anything i could do to fix it

derpmcgeee
Posts: 8
Joined: Mon Dec 03, 2018 8:37 am

Re: handbrake feezes during queue

Post by derpmcgeee » Mon Dec 03, 2018 3:32 pm

rollin_eng wrote:
Mon Dec 03, 2018 2:40 pm
Try the nightly build.
I will try the nightly to see if that helps and report back

Woodstock
Veteran User
Posts: 2818
Joined: Tue Aug 27, 2013 6:39 am

Re: handbrake feezes during queue

Post by Woodstock » Mon Dec 03, 2018 4:24 pm

You can use QSV ENCODE with the buggy DECODE disabled.

derpmcgeee
Posts: 8
Joined: Mon Dec 03, 2018 8:37 am

Re: handbrake feezes during queue

Post by derpmcgeee » Mon Dec 03, 2018 4:40 pm

Woodstock wrote:
Mon Dec 03, 2018 4:24 pm
You can use QSV ENCODE with the buggy DECODE disabled.
okay I will change that right away I didn't realise it was only part of qsv and not qsv itself. I'm assuming it will be a minor performance decrease or should it stay the same?

Woodstock
Veteran User
Posts: 2818
Joined: Tue Aug 27, 2013 6:39 am

Re: handbrake feezes during queue

Post by Woodstock » Mon Dec 03, 2018 4:43 pm

There will be a minor slowdown, but the software decode can handle a lot of things the hardware decoder blows up on. The encode is the slow part.

derpmcgeee
Posts: 8
Joined: Mon Dec 03, 2018 8:37 am

Re: handbrake feezes during queue

Post by derpmcgeee » Mon Dec 03, 2018 10:56 pm

Woodstock wrote:
Mon Dec 03, 2018 4:43 pm
There will be a minor slowdown, but the software decode can handle a lot of things the hardware decoder blows up on. The encode is the slow part.
well unfortunately I'm back with bad news disabling hardware decoding did not solve the issue.I just came home from running around to see it froze 3 and a half hours ago

Woodstock
Veteran User
Posts: 2818
Joined: Tue Aug 27, 2013 6:39 am

Re: handbrake feezes during queue

Post by Woodstock » Tue Dec 04, 2018 3:02 am

OK, then we're back to the Intel video driver. Intel put out a bunch of versions in the last year or so that had bugs that affected handbrake, but I did not try keeping track of them, so I don't know if "Intel(R) HD Graphics 530 - 20.19.15.4463" is one of them; the developers probably have a list, though, from the failure reports that came in.

A final test while we wait for someone with that specialized knowledge to check in - does the file encode if you select x265 selected instead of qsv_h265? This will help narrow it down as to whether it's the encoder going wonky or the decoder. You might also try qsv_h264 in case it's a problem with the 265 implementation.

derpmcgeee
Posts: 8
Joined: Mon Dec 03, 2018 8:37 am

Re: handbrake feezes during queue

Post by derpmcgeee » Tue Dec 04, 2018 2:34 pm

well there is something I can add.The only way I can use x265 on intel qsv is if i use the default driver installed by windows and not the most recent intel driver. So it is one of the bugged releases, either way it actually works to convert it to h.265 intel qsv with the windows driver i just need to make an error handler to reset it when it does freeze,it seems to happen the most when the computer trys to sleep. To answer your questions yes it does encode if i put it on just h.265 it also completes the encodes on intel qsv most of the time but every once in a while it freezes and no theres no issue at all with the intel qsv h.264 i didnt run into any issues with it myself

Post Reply