Failed encodes since 1.4.25 update (x64)

Dec 2, 2013 at 9:00 PM
Hi, I've used VidCoder for a long time, and I wasn't really having any problems until it updated to 1.4.25 (x64) over the weekend. First, I got the unexpected error crash when trying to load video files. I uninstalled and then re-installed 1.4.25, which got rid of the error, but now all my encodes fail. I used 2-pass, and I saw somewhere that's a known issue (can't find that post again), but i didn't have the issue before the update.

I've tried completely uninstalling the last update and re-installing 1.4.24 but the problem persists. I've also tried the latest beta build, same thing.

I'm on Windows 8.1, if that is relevant. Just installed that OS (clean) last week, but 1.4.24 was still working for a few days before the update. If it's a Windows 8.x issue then I guess I'll have to wait for Handbrake to do an update, but as I wrote, it was working...

I'll be glad to provide any logs etc, if someone can help. I'd hate to think the program is just broken for me now!
Coordinator
Dec 2, 2013 at 9:46 PM
Hmm, so you said that after you installed 1.4.25, it created a problem that persisted even after you uninstalled it and installed 1.4.24 again? Can you check C:\Program Files\VidCoder to make sure it uninstalled cleanly? Can you also try renaming the %appdata%\VidCoder folder to see if it's a preset issue?
Dec 3, 2013 at 12:47 AM
Yes, the problem is exactly as you wrote, and before I made my first post I had ensured the uninstall was complete, with no program folders or other remnants left behind. I also just now tried the folder rename and it did not help.

In fact, the situation is more random and baffling than I'd previously realized. Some encodes fail before they even start, some at the halfway point of a 2-pass, and some even at 99%. The message at the end of the log is the same every time:
"Worker process exited unexpectedly; no additional details are available. This may be due to a HandBrake engine crash."

I have definitely never had that happen prior to the update. Before the weekend I was encoding with 1.4.24 x64 on Windows 8.1, with the only problem being the known issue of Handbrake blanking the preview window for joined muxes with chapters. Now I can't complete any 2-pass reliably, I can only use CQ. I cannot think of any reason the update would permanently screw something up, but...?

Here is the first log, from an encode that failed to even start, if anything jumps out at you:
## VidCoder 1.4.24.0 (x64)
# Version 1.4.25 is available. Update download has started.
# Starting scan: D:\Video\Music\Genesis Calling All Stations\Video 01 Congo.mkv
[01:19:35] hb_init: starting libhb thread
[01:19:35] hb_scan: path=D:\Video\Music\Genesis Calling All Stations\Video 01 Congo.mkv, title_index=0
libbluray/bdnav/index_parse.c:162: indx_parse(): error opening D:\Video\Music\Genesis Calling All Stations\Video 01 Congo.mkv/BDMV/index.bdmv
libbluray/bdnav/index_parse.c:162: indx_parse(): error opening D:\Video\Music\Genesis Calling All Stations\Video 01 Congo.mkv/BDMV/BACKUP/index.bdmv
libbluray/bluray.c:1725: nav_get_title_list(D:\Video\Music\Genesis Calling All Stations\Video 01 Congo.mkv) failed (0000000003DAF680)
[01:19:35] bd: not a bd - trying as a stream/file instead
libdvdnav: Using dvdnav version 4.1.3
libdvdread: Encrypted DVD support unavailable.
libdvdnav:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed
libdvdnav:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.BUP failed
libdvdread: Can't open file VIDEO_TS.IFO.
libdvdnav: vm: failed to read VIDEO_TS.IFO
[01:19:35] dvd: not a dvd - trying as a stream/file instead
Input #0, matroska,webm, from 'D:\Video\Music\Genesis Calling All Stations\Video 01 Congo.mkv':
  Duration: 00:03:44.00, start: 0.000000, bitrate: N/A
    Chapter #0.0: start 0.000000, end 222.560000
    Metadata:
      title           : Chapter 01
    Chapter #0.1: start 222.560000, end 224.000000
    Metadata:
      title           : Chapter 02
    Stream #0.0(eng): Video: mpeg2video (Main), yuv420p, 720x576 [PAR 16:15 DAR 4:3], 6500 kb/s, 25 fps, 25 tbr, 1k tbn, 50 tbc
    Stream #0.1(eng): Audio: dca (DTS), 48000 Hz, 5.1, fltp, 768 kb/s (default)
    Metadata:
      title           : 3/2+1
    Stream #0.2(eng): Audio: ac3, 48000 Hz, 5.1, fltp, 448 kb/s
    Metadata:
      title           : 3/2+1
[01:19:35] scan: decoding previews for title 1
[01:19:35] scan: audio 0x1: dca, rate=48000Hz, bitrate=768000 English (DTS) (5.1 ch)
[01:19:35] scan: audio 0x2: AC-3, rate=48000Hz, bitrate=448000 English (AC3) (5.1 ch)
[01:19:35] scan: 10 previews, 720x576, 25.000 fps, autocrop = 68/70/2/0, aspect 4:3, PAR 16:15
[01:19:35] libhb: scan thread found 1 valid title(s)
# Scan completed

# Starting queue
## VidCoder 1.4.24.0 (x64)
# Starting job 1/1
#   Path: D:\Video\Music\Genesis Calling All Stations\Video 01 Congo.mkv
#   Title: 1
#   Chapters: 1-1
# Worker ready: Service state is Opened on pipe VidCoderWorker.b6478a78-fc6c-48ee-8d3d-54be204a87ef
# Connecting to process 3032 on pipe VidCoderWorker.b6478a78-fc6c-48ee-8d3d-54be204a87ef
[01:20:19] hb_init: starting libhb thread
[01:20:19] hb_scan: path=D:\Video\Music\Genesis Calling All Stations\Video 01 Congo.mkv, title_index=1
libbluray/bdnav/index_parse.c:162: indx_parse(): error opening D:\Video\Music\Genesis Calling All Stations\Video 01 Congo.mkv/BDMV/index.bdmv
libbluray/bdnav/index_parse.c:162: indx_parse(): error opening D:\Video\Music\Genesis Calling All Stations\Video 01 Congo.mkv/BDMV/BACKUP/index.bdmv
libbluray/bluray.c:1725: nav_get_title_list(D:\Video\Music\Genesis Calling All Stations\Video 01 Congo.mkv) failed (00000000042BC020)
[01:20:19] bd: not a bd - trying as a stream/file instead
libdvdnav: Using dvdnav version 4.1.3
libdvdread: Encrypted DVD support unavailable.
libdvdnav:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed
libdvdnav:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.BUP failed
libdvdread: Can't open file VIDEO_TS.IFO.
libdvdnav: vm: failed to read VIDEO_TS.IFO
[01:20:19] dvd: not a dvd - trying as a stream/file instead
Input #0, matroska,webm, from 'D:\Video\Music\Genesis Calling All Stations\Video 01 Congo.mkv':
  Duration: 00:03:44.00, start: 0.000000, bitrate: N/A
    Chapter #0.0: start 0.000000, end 222.560000
    Metadata:
      title           : Chapter 01
    Chapter #0.1: start 222.560000, end 224.000000
    Metadata:
      title           : Chapter 02
    Stream #0.0(eng): Video: mpeg2video (Main), yuv420p, 720x576 [PAR 16:15 DAR 4:3], 6500 kb/s, 25 fps, 25 tbr, 1k tbn, 50 tbc
    Stream #0.1(eng): Audio: dca (DTS), 48000 Hz, 5.1, fltp, 768 kb/s (default)
    Metadata:
      title           : 3/2+1
    Stream #0.2(eng): Audio: ac3, 48000 Hz, 5.1, fltp, 448 kb/s
    Metadata:
      title           : 3/2+1
[01:20:19] scan: decoding previews for title 1
[01:20:19] scan: audio 0x1: dca, rate=48000Hz, bitrate=768000 English (DTS) (5.1 ch)
[01:20:19] scan: audio 0x2: AC-3, rate=48000Hz, bitrate=448000 English (AC3) (5.1 ch)
[01:20:19] scan: 10 previews, 720x576, 25.000 fps, autocrop = 68/70/2/0, aspect 4:3, PAR 16:15
[01:20:19] libhb: scan thread found 1 valid title(s)
[01:20:19] 2 job(s) to process
[01:20:19] starting job
[01:20:19] work: track 1, compression level not supported by codec
[01:20:19] work: track 1, quality mode not supported by codec
[01:20:19] work: track 1, dithering not supported by codec
[01:20:19] sync: expecting 5564 video frames
[01:20:19] job configuration:
[01:20:19]  * source
[01:20:19]    + D:\Video\Music\Genesis Calling All Stations\Video 01 Congo.mkv
[01:20:19]    + title 1, chapter(s) 1 to 1
[01:20:19]    + container: matroska,webm
[01:20:19]  * destination
[01:20:19]    + D:\Video\Music\Genesis Calling All Stations\Video 01 Congo - Chapter 1.mkv
[01:20:19]    + container: Matroska (.mkv)
[01:20:19]  * video track
[01:20:19]    + decoder: mpeg2video
[01:20:19]      + bitrate 6500 kbps
[01:20:19]    + frame rate: same as source (around 25.000 fps)
[01:20:19]    + filters
[01:20:19]      + Deinterlace (ffmpeg or yadif/mcdeint) (0)
[01:20:19]      + Framerate Shaper (0:27000000:1080000)
[01:20:19]        + frame rate: same as source (around 25.000 fps)
[01:20:19]      + Crop and Scale (718:438:68:70:2:0)
[01:20:19]        + source: 720 * 576, crop (68/70/2/0): 718 * 438, scale: 718 * 438
[01:20:19]    + strict anamorphic
[01:20:19]      + storage dimensions: 718 * 438, mod 0
[01:20:19]      + pixel aspect ratio: 16 / 15
[01:20:19]      + display dimensions: 765 * 438
[01:20:19]    + encoder: H.264 (x264)
[01:20:19]      + x264 preset: veryfast
[01:20:19]      + options: ref=1:subme=2:me=dia:analyse=none:trellis=0:no-fast-pskip=0:8x8dct=0:weightb=0
[01:20:19]      + h264 profile: main
[01:20:19]      + h264 level: 4.0
[01:20:19]      + bitrate: 2000 kbps, pass: 1
[01:20:19]  * audio track 1
[01:20:19]    + decoder: English (DTS) (5.1 ch) (track 2, id 0x1)
[01:20:19]      + bitrate: 768 kbps, samplerate: 48000 Hz
[01:20:19]    + mixdown: Dolby Pro Logic II
[01:20:19]    + encoder: AAC (faac)
[01:20:19]      + bitrate: 160 kbps, samplerate: 48000 Hz
[01:20:19] reader: first SCR -3600 id 0x0 DTS -3600
[01:20:19] encx264: encoding with stored aspect 16/15
x264 [warning]: --psnr used with psy on: results will be invalid!
x264 [warning]: --tune psnr should be used if attempting to benchmark psnr!
x264 [info]: using SAR=16/15
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
x264 [info]: profile Main, level 4.0
# Worker process exited unexpectedly; no additional details are available. This may be due to a HandBrake engine crash.
# Encode failed.
# Job completed
# Queue completed
Coordinator
Dec 3, 2013 at 4:16 AM
I haven't been able to get to the bottom of the two-pass issue. At first I thought it was only affecting the Beta releases but I guess it's something more fundamental (maybe with Windows 8.1)... You might try the x86 version for now; that has worked for other people. Or just stick with CQ encoding as it's better overall. :) I will give diagnosing the crash another shot.
Dec 3, 2013 at 8:42 AM
Forgot to mention that I did try the x86 version, but with no joy. I guess it's something to do with Windows 8.1, as prior to the middle of last week I was on Win7 with no issues. I happen to prefer 2-pass over CQ as I'm also trying to control the file sizes and it requires less guesswork, so hopefully that will get solved eventually. Thanks.
Dec 3, 2013 at 9:51 AM
Update: Weird, in first trying to figure this out I installed the 5909 nightly version of Handbrake, which also had problems, so I uninstalled it. Handbrake wasn't on my system at all before. I just now installed the last stable build (0.9.9.1), and on opening it said my presets were out of date and updated them. Of course I know VC uses the Handbrake engine, but I would not have thought there would be a connection between the two stand-alones on one system. And yet...2-pass works again in VC, I've just done five in a row with no problem.

So, I don't know what happened after the 1.4.25 update, or what effect having a Handbrake nightly installed would have had, but installing Handbrake 0.9.9.1 seems to have remedied the whole situation. I've also been able to re-apply the 1.4.25 update and all is well. Bemused, but relieved.