Handbrake unable to start 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
spytopaz
Posts: 1
Joined: Mon Aug 30, 2021 3:32 pm

Handbrake unable to start queue

Post by spytopaz »

Description of problem or question:

System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.
---> System.IO.IOException: The file 'C:\Users\wanru\AppData\Roaming\HandBrake\hb_queue13600.json.last' already exists.
at System.IO.FileSystem.CopyFile(String sourceFullPath, String destFullPath, Boolean overwrite)
at HandBrakeWPF.Services.Queue.QueueService.BackupQueue(String exportPath)
at HandBrakeWPF.Services.Queue.QueueService.CheckAndHandleWork()
at HandBrakeWPF.Services.Queue.QueueService.ProcessNextJob()
at HandBrakeWPF.Services.Queue.QueueService.Start()
at HandBrakeWPF.ViewModels.QueueViewModel.StartQueue()
--- End of inner exception stack trace ---
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor, Boolean wrapExceptions)
at Caliburn.Micro.ActionMessage.<>c.<.cctor>b__33_0(ActionExecutionContext context)
at Caliburn.Micro.ActionMessage.Invoke(Object eventArgs)
at Microsoft.Xaml.Behaviors.TriggerBase.InvokeActions(Object parameter)
at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
at System.Windows.Controls.Primitives.ButtonBase.OnClick()
at System.Windows.Controls.Button.OnClick()
at System.Windows.Controls.Primitives.ButtonBase.OnMouseLeftButtonUp(MouseButtonEventArgs e)
at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent)
at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
at System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)
at System.Windows.Input.InputManager.ProcessStagingArea()
at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
at System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)
at System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)


Steps to reproduce the problem (If Applicable):

After add all queue > click on queue > pause > resume > error message pops up


HandBrake version (e.g., 1.0.0):

1.4.1 (2021081500)


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

Windows 10 Home


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

Code: Select all

HandBrake 1.4.1 (2021081500)
OS: Microsoft Windows NT 10.0.19043.0
CPU: Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz
Ram: 16340 MB, 
GPU Information:
  NVIDIA GeForce GTX 1070 - 27.21.14.6089
Screen: 1920x1080
Temp Dir: C:\Users\wanru\AppData\Local\Temp\
Install Dir: C:\Program Files\HandBrake\
Data Dir: C:\Users\wanru\AppData\Roaming\HandBrake

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


# Starting Encode ...
[23:29:59] base preset: Fast 1080p30
Remote Process started with Process ID: 9776 using port: 8037. Max Allowed Instances: 8
Worker: Starting HandBrake Engine ...
Worker: Starting Web Server on port 8037 ...
Worker: Disconnected worker monitoring enabled!
[23:30:00] Compile-time hardening features are enabled
[23:30:00] hb_init: starting libhb thread
[23:30:00] Starting work at: Mon Aug 30 23:30:00 2021
[23:30:00] 1 job(s) to process
[23:30:00] json job:
{
  "Audio": {
    "AudioList": [
      {
        "Bitrate": 160,
        "DRC": 0,
        "Encoder": "av_aac",
        "Gain": 0,
        "Mixdown": 4,
        "NormalizeMixLevel": false,
        "Samplerate": 0,
        "Track": 0,
        "DitherMethod": 0
      }
    ],
    "CopyMask": [
      "copy:aac",
      "copy:ac3",
      "copy:dtshd",
      "copy:dts",
      "copy:eac3",
      "copy:flac",
      "copy:mp3",
      "copy:truehd",
      "copy:mp2"
    ],
    "FallbackEncoder": "ac3"
  },
  "Destination": {
    "ChapterList": [
      {
        "Name": "Chapter 1"
      }
    ],
    "ChapterMarkers": true,
    "AlignAVStart": true,
    "File": "D:\\Download\\New folder\\Crayon 152-1.m4v",
    "Mp4Options": {
      "IpodAtom": false,
      "Mp4Optimize": false
    },
    "Mux": "av_mp4"
  },
  "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": 13,
        "Settings": {
          "crop-bottom": "0",
          "crop-left": "0",
          "crop-right": "2",
          "crop-top": "0",
          "height": "288",
          "width": "350"
        }
      },
      {
        "ID": 6,
        "Settings": {
          "mode": "2",
          "rate": "27000000/900000"
        }
      }
    ]
  },
  "PAR": {
    "Num": 1,
    "Den": 1
  },
  "Metadata": {
    "Comment": "",
    "Description": "This RealMedia File Compressed by Batch Real Producer",
    "Name": "3-152"
  },
  "SequenceID": 0,
  "Source": {
    "Angle": 1,
    "Range": {
      "Type": "chapter",
      "Start": 1,
      "End": 1
    },
    "Title": 1,
    "Path": "D:\\Download\\New folder (2)\\crayon 152.mp4"
  },
  "Subtitle": {
    "Search": {
      "Burn": true,
      "Default": false,
      "Enable": true,
      "Forced": true
    },
    "SubtitleList": []
  },
  "Video": {
    "Encoder": "x264",
    "Level": "4.0",
    "TwoPass": false,
    "Turbo": false,
    "ColorMatrixCode": 0,
    "Options": "",
    "Preset": "fast",
    "Profile": "main",
    "Quality": 22,
    "QSV": {
      "Decode": false
    }
  }
}
[23:30:00] CPU: Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz
[23:30:00]  - Intel microarchitecture Kaby Lake
[23:30:00]  - logical processor count: 8
[23:30:00] Intel Quick Sync Video support: no
[23:30:00] hb_scan: path=D:\Download\New folder (2)\crayon 152.mp4, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
src/libbluray/disc/disc.c:333: failed opening UDF image D:\Download\New folder (2)\crayon 152.mp4
src/libbluray/disc/disc.c:437: error opening file BDMV\index.bdmv
src/libbluray/disc/disc.c:437: error opening file BDMV\BACKUP\index.bdmv
src/libbluray/bluray.c:2646: nav_get_title_list(D:\Download\New folder (2)\crayon 152.mp4\) failed
[23:30:00] bd: not a bd - trying as a stream/file instead
libdvdread: Encrypted DVD support unavailable.
libdvdrlibdvdread: DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed
ead: Can't open file VIDEO_TS.IFO.
libdvdnav: vm: vm: failed to read VIDEO_TS.IFO
[23:30:00] dvd: not a dvd - trying as a stream/file instead
[rm @ 0000025473d39940] Invalid stream index 2 for index at pos 10808287
Input #0, rm, from 'D:\Download\New folder (2)\crayon 152.mp4':
  Metadata:
    title           : 3-152
    copyright       : (c)2002 RealMedia
    comment         :
    ASMRuleBook     : #($Bandwidth >= 0),Stream0Bandwidth = 96468, Stream1Bandwidth = 103532;
    Audiences       : BatchRealProducer's Audience;
    audioMode       : music
    Creation Date   : 11/7/2003 19:54:23
    Description     : This RealMedia File Compressed by Batch Real Producer
    Generated By    : Helix DNA Producer SDK 9.2 for Windows, Build 9.2.0.306
    Modification Date: 11/7/2003 19:54:23
    videoMode       : sharp
  Duration: 00:07:05.47, start: 0.000000, bitrate: 203 kb/s
  Stream #0:0: Audio: cook (cook / 0x6B6F6F63), 44100 Hz, stereo, fltp, 96 kb/s
  Stream #0:1: Video: rv40 (RV40 / 0x30345652), yuv420p, 352x288, 101 kb/s, 30 fps, 30 tbr, 1k tbn, 1k tbc
[23:30:00] scan: decoding previews for title 1
[rm @ 0000025471b6e740] Invalid stream index 2 for index at pos 10808287
[23:30:00] scan: audio 0x0: cook, rate=44100Hz, bitrate=96468 Unknown (cook) (2.0 ch) (96 kbps)
[23:30:00] scan: 10 previews, 352x288, 30.000 fps, autocrop = 0/0/0/2, aspect 1.22:1, PAR 1:1, color profile: 6-1-6
[23:30:00] libhb: scan thread found 1 valid title(s)
[23:30:00] Skipping subtitle scan.  No suitable subtitle tracks.
[23:30:00] Starting Task: Encoding Pass
[23:30:00] work: track 1, dithering not supported by codec
[23:30:00] work: only 1 chapter, disabling chapter markers
[23:30:00] job configuration:
[23:30:00]  * source
[23:30:00]    + D:\Download\New folder (2)\crayon 152.mp4
[23:30:00]    + title 1, chapter(s) 1 to 1
[23:30:00]    + container: rm
[23:30:00]    + data rate: 203 kbps
[23:30:00]  * destination
[23:30:00]    + D:\Download\New folder\Crayon 152-1.m4v
[23:30:00]    + container: MPEG-4 (libavformat)
[23:30:00]      + align initial A/V stream timestamps
[23:30:00]  * video track
[23:30:00]    + decoder: rv40 8-bit
[23:30:00]      + bitrate 101 kbps
[23:30:00]    + filters
[23:30:00]      + 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)
[23:30:00]      + Decomb (mode=39)
[23:30:00]      + Framerate Shaper (mode=2:rate=27000000/900000)
[23:30:00]        + frame rate: 30.000 fps -> peak rate limited to 30.000 fps
[23:30:00]      + Crop and Scale (width=350:height=288:crop-top=0:crop-bottom=0:crop-left=0:crop-right=2)
[23:30:00]        + source: 352 * 288, crop (0/0/0/2): 350 * 288, scale: 350 * 288
[23:30:00]    + Output geometry
[23:30:00]      + storage dimensions: 350 x 288
[23:30:00]      + pixel aspect ratio: 1 : 1
[23:30:00]      + display dimensions: 350 x 288
[23:30:00]    + encoder: H.264 (libx264)
[23:30:00]      + preset:  fast
[23:30:00]      + profile: main
[23:30:00]      + level:   4.0
[23:30:00]      + quality: 22.00 (RF)
[23:30:00]      + color profile: 6-1-6
[23:30:00]  * audio track 1
[23:30:00]    + decoder: Unknown (cook) (2.0 ch) (96 kbps) (track 1, id 0x0)
[23:30:00]      + bitrate: 96 kbps, samplerate: 44100 Hz
[23:30:00]    + mixdown: Stereo
[23:30:00]    + encoder: AAC (libavcodec)
[23:30:00]      + bitrate: 160 kbps, samplerate: 44100 Hz
[rm @ 0000025471ae05c0] Invalid stream index 2 for index at pos 10808287
[23:30:00] sync: expecting 12764 video frames
[23:30:00] encx264: min-keyint: 30, keyint: 300
[23:30:00] encx264: encoding at constant RF 22.000000
[23:30:00] encx264: unparsed options: level=4.0:ref=2:8x8dct=0:weightp=1:subme=6:vbv-bufsize=25000:vbv-maxrate=20000:rc-lookahead=30
x264 [info]: using SAR=1/1
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
x264 [info]: profile Main, level 4.0, 4:2:0, 8-bit
[23:30:00] sync: first pts video is 0
[23:30:00] sync: "Chapter 1" (1) at frame 1 time 0
[23:30:00] sync: first pts audio 0x0 is 0
[23:30:10] reader: done. 1 scr changes
[23:30:10] work: average encoding speed for job is 564.649902 fps
[23:30:10] comb detect: heavy 17 | light 140 | uncombed 5536 | total 5693
[23:30:10] decomb: deinterlaced 17 | blended 140 | unfiltered 5536 | total 5693
[23:30:10] vfr: 5693 frames output, 0 dropped and 0 duped for CFR/PFR
[23:30:10] vfr: lost time: 0 (0 frames)
[23:30:10] vfr: gained time: 0 (0 frames) (0 not accounted for)
[23:30:10] cook-decoder done: 18318 frames, 0 decoder errors
[23:30:10] rv40-decoder done: 5693 frames, 0 decoder errors
[23:30:10] sync: got 5693 frames, 12764 expected
[23:30:10] sync: framerate min 8.333 fps, max 30.000 fps, avg 13.402 fps
x264 [info]: frame I:94    Avg QP:17.23  size: 13898
x264 [info]: frame P:2100  Avg QP:19.94  size:  2799
x264 [info]: frame B:3499  Avg QP:23.86  size:   565
x264 [info]: consecutive B-frames:  5.0% 36.7%  7.3% 51.0%
x264 [info]: mb I  I16..4: 19.0%  0.0% 81.0%
x264 [info]: mb P  I16..4:  4.1%  0.0%  6.1%  P16..4: 36.1% 11.0%  6.4%  0.0%  0.0%    skip:36.3%
x264 [info]: mb B  I16..4:  1.7%  0.0%  0.9%  B16..8: 19.1%  5.2%  0.7%  direct: 2.3%  skip:70.0%  L0:41.2% L1:44.9% BI:13.9%
x264 [info]: coded y,uvDC,uvAC intra: 57.1% 74.1% 50.7% inter: 9.8% 10.9% 1.7%
x264 [info]: i16 v,h,dc,p: 30% 40% 21%  9%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 31% 26% 17%  4%  4%  4%  5%  4%  5%
x264 [info]: i8c dc,h,v,p: 41% 30% 22%  8%
x264 [info]: Weighted P-Frames: Y:0.9% UV:0.4%
x264 [info]: ref P L0: 83.6% 16.4%
x264 [info]: ref B L0: 89.1% 10.9%
x264 [info]: ref B L1: 96.7%  3.3%
x264 [info]: kb/s:172.53
[23:30:10] mux: track 0, 5693 frames, 9158122 bytes, 172.19 kbps, fifo 4096
[23:30:10] mux: track 1, 18324 frames, 8521300 bytes, 160.21 kbps, fifo 16384
[23:30:10] Finished work at: Mon Aug 30 23:30:10 2021
[23:30:10] libhb: work result = 0

# Job Completed!


Post Reply