RandomEngy / VidCoder

A Blu-ray, DVD and video file transcoder for Windows.
http://vidcoder.net
GNU General Public License v2.0
668 stars 42 forks source link

Encoding fails without any reason after sometime #1182

Open AircraftRu opened 8 months ago

AircraftRu commented 8 months ago

Problem Description

I converted many videos like that and then it's started to fail. It happened to 9.10 version also. 8.26 version works well with the same videos

What version of VidCoder are you running?

9.11 Beta Portable

Encode Log

VC [13:49:02] VidCoder 9.11 Beta
VC [13:49:02] Starting job 2/3
VC [13:49:02]   Source path: C:\Users\Nikolai\Downloads\Мозг и бизнес\8.2 Социальные игры в коллективе и концепция Aut-Aut-master.ts
VC [13:49:02]   Destination path: C:\Users\Nikolai\Downloads\Мозг и бизнес\8.2 Социальные игры в коллективе и концепция Aut-Aut-master.mp4
VC [13:49:02]   Title: 1
VC [13:49:02]   Range: All
VC [13:49:02]   Preset: Custom 1080p30 H.265
VC [13:49:02]   Picker: Custom
VC [13:49:02] Worker ready: Pipe 'VidCoderWorker.92723c48-a8d9-4216-bbd3-ec83a2d47247' is open
VC [13:49:02] Connecting to process 20748 on pipe VidCoderWorker.92723c48-a8d9-4216-bbd3-ec83a2d47247
HB [13:49:03] CPU: Intel(R) Core(TM) i7-10750H CPU @ 2.60GHz
[13:49:03]  - Intel microarchitecture Comet Lake
[13:49:03]  - logical processor count: 12
[13:49:03] Intel Quick Sync Video support: yes, gpu list: 0
[13:49:03] Intel Quick Sync Video integrated adapter with index 0
[13:49:03] Impl mfxhw64 library path: C:\Windows\System32\DriverStore\FileRepository\iigd_dch.inf_amd64_dc29bdfd478be046\libmfxhw64.dll
[13:49:03]  - Intel Media SDK hardware: API 1.35 (minimum: 1.3)
[13:49:03]  - Decode support:  h264 hevc (8bit: yes, 10bit: yes)
[13:49:03]  - H.264 encoder: yes
[13:49:03]     - preferred implementation: hardware (1) via D3D11
[13:49:03]     - capabilities (hardware):  breftype icq+la+i+downs vsinfo chromalocinfo opt1 opt2+mbbrc+extbrc+trellis+repeatpps+ib_adapt+nmpslice
[13:49:03]  - H.265 encoder: yes (8bit: yes, 10bit: yes)
[13:49:03]     - preferred implementation: hardware (1) via D3D11
[13:49:03]     - capabilities (hardware):  bpyramid icq vsinfo masteringinfo cllinfo opt1
[13:49:03]  - AV1 encoder: no
[13:49:03] hb_scan: path=C:\Users\Nikolai\Downloads\???? ? ??????\8.2 ?????????? ???? ? ?????????? ? ????????? Aut-Aut-master.ts, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
src/libbluray/disc/disc.c:333: failed opening UDF image C:\Users\Nikolai\Downloads\Мозг и бизнес\8.2 Социальные игры в коллективе и концепция Aut-Aut-master.ts
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
[13:49:03] bd: not a bd - trying as a stream/file instead
libdvdread: DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed
libdvdnav: vm: vm: failed to read VIDEO_TS.IFO
[13:49:03] dvd: not a dvd - trying as a stream/file instead
[13:49:03] file is MPEG Transport Stream with 188 byte packets offset 0 bytes
[13:49:03] Found the following PIDS
[13:49:03]     Video PIDS :
[13:49:03]       0x100 type H.264 (0x1b) (PCR)
[13:49:03]     Audio PIDS :
[13:49:03]       0x101 type AAC (0xf)
[13:49:03]     Subtitle PIDS :
[13:49:03]     Other PIDS :
[13:49:03] stream id 0x101 (type 0xf substream 0x0) audio 0x101
[13:49:03] scan: decoding previews for title 1
[13:49:03] file is MPEG Transport Stream with 188 byte packets offset 0 bytes
[13:49:03] scan: audio 0x101: aac, rate=48000Hz, bitrate=13125 English (AAC LC, 2.0 ch, 13 kbps)
HB [13:49:03] stream: 5 good frames, 0 errors (0%)
[13:49:03] using bitstream PAR 14400:14399
[13:49:03] scan: 10 previews, 1694x720, 23.976 fps, autocrop = 0/0/130/0, aspect 2.35:1, PAR 14400:14399, color profile: 1-1-1, chroma location: left
[13:49:03] scan: supported video decoders: avcodec qsv
[13:49:03] libhb: scan thread found 1 valid title(s)
[13:49:03] Starting work at: Sat Oct 21 13:49:03 2023
[13:49:03] 1 job(s) to process
[13:49:03] json job:
{
  "Audio": {
    "AudioList": [
      {
        "DRC": 0,
        "Encoder": "copy:aac",
        "Gain": 0,
        "Mixdown": 0,
        "NormalizeMixLevel": false,
        "Samplerate": 0,
        "Track": 0,
        "DitherMethod": 0
      }
    ],
    "CopyMask": [
      "copy:aac",
      "copy:ac3",
      "copy:eac3",
      "copy:truehd",
      "copy:dts",
      "copy:dtshd",
      "copy:mp2",
      "copy:mp3",
      "copy:flac",
      "copy:opus"
    ]
  },
  "Destination": {
    "ChapterList": [
      {
        "Name": "Chapter 1"
      }
    ],
    "ChapterMarkers": true,
    "AlignAVStart": false,
    "File": "C:\\Users\\Nikolai\\Downloads\\\u041C\u043E\u0437\u0433 \u0438 \u0431\u0438\u0437\u043D\u0435\u0441\\8.2 \u0421\u043E\u0446\u0438\u0430\u043B\u044C\u043D\u044B\u0435 \u0438\u0433\u0440\u044B \u0432 \u043A\u043E\u043B\u043B\u0435\u043A\u0442\u0438\u0432\u0435 \u0438 \u043A\u043E\u043D\u0446\u0435\u043F\u0446\u0438\u044F Aut-Aut-master.part.mp4",
    "Options": {
      "IpodAtom": false,
      "Optimize": false
    },
    "Mux": "av_mp4"
  },
  "Filters": {
    "FilterList": [
      {
        "ID": 5,
        "Settings": {
          "mode": "7"
        }
      },
      {
        "ID": 4,
        "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": 19,
        "Settings": {
          "crop-bottom": "0",
          "crop-left": "0",
          "crop-right": "0",
          "crop-top": "0",
          "height": "720",
          "width": "1694"
        }
      }
    ]
  },
  "PAR": {
    "Num": 14400,
    "Den": 14399
  },
  "Metadata": {},
  "SequenceID": 0,
  "Source": {
    "Angle": 0,
    "Range": {
      "Type": "chapter",
      "Start": 1,
      "End": 1
    },
    "Title": 1,
    "Path": "C:\\Users\\Nikolai\\Downloads\\\u041C\u043E\u0437\u0433 \u0438 \u0431\u0438\u0437\u043D\u0435\u0441\\8.2 \u0421\u043E\u0446\u0438\u0430\u043B\u044C\u043D\u044B\u0435 \u0438\u0433\u0440\u044B \u0432 \u043A\u043E\u043B\u043B\u0435\u043A\u0442\u0438\u0432\u0435 \u0438 \u043A\u043E\u043D\u0446\u0435\u043F\u0446\u0438\u044F Aut-Aut-master.ts"
  },
  "Subtitle": {
    "Search": {
      "Burn": false,
      "Default": false,
      "Enable": false,
      "Forced": false
    },
    "SubtitleList": []
  },
  "Video": {
    "Encoder": "nvenc_h265",
    "Level": "auto",
    "MultiPass": false,
    "Turbo": false,
    "ColorMatrixCode": 0,
    "Options": "",
    "Preset": "slowest",
    "Profile": "auto",
    "Quality": 33,
    "QSV": {
      "Decode": true
    },
    "HardwareDecode": 4
  }
}
[13:49:03] Starting Task: Encoding Pass
[13:49:03] work: skipping crop/scale filter
[13:49:03] work: only 1 chapter, disabling chapter markers
[13:49:03] job configuration:
[13:49:03]  * source
[13:49:03]    + C:\Users\Nikolai\Downloads\???? ? ??????\8.2 ?????????? ???? ? ?????????? ? ????????? Aut-Aut-master.ts
[13:49:03]    + title 1, chapter(s) 1 to 1
[13:49:03]  * destination
[13:49:03]    + C:\Users\Nikolai\Downloads\???? ? ??????\8.2 ?????????? ???? ? ?????????? ? ????????? Aut-Aut-master.part.mp4
[13:49:03]    + container: MPEG-4 (libavformat)
[13:49:03]  * video track
[13:49:03]    + decoder: h264_qsv 8-bit (yuv420p)
[13:49:03]      + bitrate 200 kbps
[13:49:03]    + filters
[13:49:03]      + 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)
[13:49:03]      + Decomb (mode=39)
[13:49:03]    + Output geometry
[13:49:03]      + storage dimensions: 1694 x 720
[13:49:03]      + pixel aspect ratio: 14400 : 14399
[13:49:03]      + display dimensions: 1694 x 720
[13:49:03]    + encoder: H.265 (NVEnc)
[13:49:03]      + preset:  slowest
[13:49:03]      + profile: auto
[13:49:03]      + level:   auto
[13:49:03]      + quality: 33.00 (CQ)
[13:49:03]      + color profile: 1-1-1
[13:49:03]      + chroma location: left
[13:49:03]  * audio track 1
[13:49:03]    + decoder: English (AAC LC, 2.0 ch, 13 kbps) (track 1, id 0x101)
[13:49:03]      + bitrate: 13 kbps, samplerate: 48000 Hz
[13:49:03]    + AAC Passthru
[13:49:03] file is MPEG Transport Stream with 188 byte packets offset 0 bytes
[13:49:03] sync: expecting 6267 video frames
[13:49:03] encavcodecInit: H.265 (Nvidia NVENC)
[13:49:03] encavcodec: encoding at rc=vbr, 33.00
[13:49:03] encavcodec: encoding with stored aspect 14400/14399
HB [h264_qsv @ 0000019ca5b52bc0] Invalid pkt_timebase, passing timestamps as-is.
HB [13:49:04] sync: first pts audio 0x101 is 0
[13:49:04] sync: first pts video is 1920
VC E [13:49:13] Operation 'Ping' failed. Worker process exited unexpectedly with code -1073741819. This may be due to a HandBrake engine crash.
VC E [13:49:13] Encode failed with code ErrorHandBrakeProcessCrashed
VC [13:49:13] Job completed (Elapsed Time: 11s)
RandomEngy commented 8 months ago

Looks like a HandBrake encoding crash. VidCoder uses HandBrake for the core encoding engine, so if the issue reproduces there it's an issue with their code and you can ask them for help.

Equivalent versions: VidCoder Stable ↔ HandBrake Stable VidCoder Beta ↔ HandBrake Nightly

AircraftRu commented 8 months ago

Looks like a HandBrake encoding crash. VidCoder uses HandBrake for the core encoding engine, so if the issue reproduces there it's an issue with their code and you can ask them for help.

Equivalent versions: VidCoder Stable ↔ HandBrake Stable VidCoder Beta ↔ HandBrake Nightly

As I alredy said no like issues with the 8.26 stable version. I know. Would you proceed to develop VidCoder with the HandBrake problems? I don't understand why I should report them with HandBrake. You're a part of VidCoder and you know the products better

RandomEngy commented 8 months ago

VidCoder is an alternate user interface on the HandBrake core encoding engine. I use the encoding engine but do not debug crashes in their logic, because I don't know the code and I don't have experience debugging crashes in there.

AircraftRu commented 7 months ago

New log from the version 9.13 The problem is with QVS - Intel Encoding

VC [20:00:12] VidCoder 9.13 Beta
VC [20:00:12] Starting job 1/1
VC [20:00:12]   Source path: C:\Users\Nikolai\Downloads\Disco (Original-2 MOV)_28-Oct-2023_Oksana_Zamaraev.mov
VC [20:00:12]   Destination path: C:\Users\Nikolai\Downloads\Disco (Original-2 MOV) 28-Oct-2023 Oksana Zamaraev-1.mp4
VC [20:00:12]   Title: 1
VC [20:00:12]   Range: All
VC [20:00:12]   Preset: Fast 1080p30 Custom
VC [20:00:12]   Picker: Custom
VC [20:00:12] Worker ready: Pipe 'VidCoderWorker.55eb58cd-93a4-4769-8081-ce8fb2d6c74c' is open
VC [20:00:12] Connecting to process 15088 on pipe VidCoderWorker.55eb58cd-93a4-4769-8081-ce8fb2d6c74c
HB [20:00:13] CPU: Intel(R) Core(TM) i7-10750H CPU @ 2.60GHz
[20:00:13]  - Intel microarchitecture Comet Lake
[20:00:13]  - logical processor count: 12
[20:00:13] Intel Quick Sync Video support: yes, gpu list: 0
[20:00:13] Intel Quick Sync Video integrated adapter with index 0
[20:00:13] Impl mfxhw64 library path: C:\Windows\System32\DriverStore\FileRepository\iigd_dch.inf_amd64_dc29bdfd478be046\libmfxhw64.dll
[20:00:13]  - Intel Media SDK hardware: API 1.35 (minimum: 1.3)
[20:00:13]  - Decode support:  h264 hevc (8bit: yes, 10bit: yes)
[20:00:13]  - H.264 encoder: yes
[20:00:13]     - preferred implementation: hardware (1) via D3D11
[20:00:13]     - capabilities (hardware):  breftype icq+la+i+downs vsinfo chromalocinfo opt1 opt2+mbbrc+extbrc+trellis+repeatpps+ib_adapt+nmpslice
[20:00:13]  - H.265 encoder: yes (8bit: yes, 10bit: yes)
[20:00:13]     - preferred implementation: hardware (1) via D3D11
[20:00:13]     - capabilities (hardware):  bpyramid icq vsinfo masteringinfo cllinfo opt1
[20:00:13]  - AV1 encoder: no
[20:00:13] hb_scan: path=C:\Users\Nikolai\Downloads\Disco (Original-2 MOV)_28-Oct-2023.mov, title_index=1
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'C:\Users\Nikolai\Downloads\Disco (Original-2 MOV)_28-Oct-2023.mov':
  Metadata:
    encoder         : Lavf57.71.100
    mdat_pos        : 28
    maxrate         : 0
    te_is_reencode  : 1
    moov_pos        : 155343260
    com.apple.quicktime.copyright: 858b3d24edbaca2eeb5a50e0450ab652
    minor_version   : 512
    com.apple.quicktime.software: {"publicMode":"1","TEEditor":"2","isFastImport":"0","transType":"2","te_is_reencode":"1","source":""}
    Hw              : 1
    bitrate         : 12582912
    major_brand     : qt
    compatible_brands: qt
    creation_time   : 2023-11-04T02:21:37Z
  Duration: 00:01:37.59, start: 0.000000, bitrate: 12738 kb/s
  Stream #0:0[0x1](eng): Video: hevc (Main) (hvc1 / 0x31637668), yuv420p(tv, bt709), 1080x1920, 12611 kb/s, 30 fps, 30 tbr, 1000k tbn (default)
    Metadata:
      creation_time   : 2023-11-04T02:21:37.000000Z
      handler_name    : VideoHandler
      vendor_id       : FFMP
  Stream #0:1[0x2](eng): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 125 kb/s (default)
    Metadata:
      creation_time   : 2023-11-04T02:21:37.000000Z
      handler_name    : SoundHandler
      vendor_id       : [0][0][0][0]
[20:00:13] scan: decoding previews for title 1
[20:00:13] scan: audio 0x1: aac, rate=44100Hz, bitrate=125339 English (AAC LC, 2.0 ch, 125 kbps)
HB [20:00:13] scan: 10 previews, 1080x1920, 30.000 fps, autocrop = 0/0/0/0, aspect 1:1.78, PAR 1:1, color profile: 1-1-1, chroma location: left
[20:00:13] scan: supported video decoders: avcodec qsv
[20:00:13] libhb: scan thread found 1 valid title(s)
HB [20:00:13] Starting work at: Tue Nov 07 20:00:13 2023
[20:00:13] 1 job(s) to process
[20:00:13] json job:
{
  "Audio": {
    "AudioList": [
      {
        "DRC": 0,
        "Encoder": "copy:aac",
        "Gain": 0,
        "Mixdown": 0,
        "NormalizeMixLevel": false,
        "Samplerate": 0,
        "Track": 0,
        "DitherMethod": 0
      }
    ],
    "CopyMask": [
      "copy:aac",
      "copy:ac3",
      "copy:eac3",
      "copy:truehd",
      "copy:dts",
      "copy:dtshd",
      "copy:mp2",
      "copy:mp3",
      "copy:flac",
      "copy:opus"
    ]
  },
  "Destination": {
    "ChapterList": [
      {
        "Name": "Chapter 1"
      }
    ],
    "ChapterMarkers": true,
    "AlignAVStart": false,
    "File": "C:\\Users\\Nikolai\\Downloads\\Disco (Original-2 MOV) 28-Oct-2023-1.part.mp4",
    "Options": {
      "IpodAtom": false,
      "Optimize": false
    },
    "Mux": "av_mp4"
  },
  "Filters": {
    "FilterList": [
      {
        "ID": 5,
        "Settings": {
          "mode": "7"
        }
      },
      {
        "ID": 4,
        "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": 19,
        "Settings": {
          "crop-bottom": "0",
          "crop-left": "0",
          "crop-right": "0",
          "crop-top": "0",
          "height": "1080",
          "width": "608"
        }
      }
    ]
  },
  "PAR": {
    "Num": 1215,
    "Den": 1216
  },
  "Metadata": {},
  "SequenceID": 0,
  "Source": {
    "Angle": 1,
    "Range": {
      "Type": "chapter",
      "Start": 1,
      "End": 1
    },
    "Title": 1,
    "Path": "C:\\Users\\Nikolai\\Downloads\\Disco (Original-2 MOV)_28-Oct-2023.mov"
  },
  "Subtitle": {
    "Search": {
      "Burn": false,
      "Default": false,
      "Enable": false,
      "Forced": false
    },
    "SubtitleList": []
  },
  "Video": {
    "Encoder": "nvenc_h265",
    "Level": "auto",
    "MultiPass": false,
    "Turbo": false,
    "ColorMatrixCode": 0,
    "Options": "",
    "Preset": "slowest",
    "Profile": "auto",
    "Quality": 25,
    "QSV": {
      "Decode": true
    },
    "HardwareDecode": 4
  }
}
[20:00:13] Starting Task: Encoding Pass
[20:00:13] work: only 1 chapter, disabling chapter markers
[20:00:13] job configuration:
[20:00:13]  * source
[20:00:13]    + C:\Users\Nikolai\Downloads\Disco (Original-2 MOV)_28-Oct-2023_Oksana_Zamaraev.mov
[20:00:13]    + title 1, chapter(s) 1 to 1
[20:00:13]    + container: mov,mp4,m4a,3gp,3g2,mj2
[20:00:13]    + data rate: 12738 kbps
[20:00:13]  * destination
[20:00:13]    + C:\Users\Nikolai\Downloads\Disco (Original-2 MOV) 28-Oct-2023 Oksana Zamaraev-1.part.mp4
[20:00:13]    + container: MPEG-4 (libavformat)
[20:00:13]  * video track
[20:00:13]    + decoder: hevc_qsv 8-bit (yuv420p)
[20:00:13]      + bitrate 12611 kbps
[20:00:13]    + filters
[20:00:13]      + 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)
[20:00:13]      + Decomb (mode=39)
[20:00:13]      + Crop and Scale (width=608:height=1080:crop-top=0:crop-bottom=0:crop-left=0:crop-right=0)
[20:00:13]        + source: 1080 * 1920, crop (0/0/0/0): 1080 * 1920, scale: 608 * 1080
[20:00:13]    + Output geometry
[20:00:13]      + storage dimensions: 608 x 1080
[20:00:13]      + pixel aspect ratio: 1215 : 1216
[20:00:13]      + display dimensions: 607 x 1080
[20:00:13]    + encoder: H.265 (NVEnc)
[20:00:13]      + preset:  slowest
[20:00:13]      + profile: auto
[20:00:13]      + level:   auto
[20:00:13]      + quality: 25.00 (CQ)
[20:00:13]      + color profile: 1-1-1
[20:00:13]      + chroma location: left
[20:00:13]  * audio track 1
[20:00:13]    + decoder: English (AAC LC, 2.0 ch, 125 kbps) (track 1, id 0x1)
[20:00:13]      + bitrate: 125 kbps, samplerate: 44100 Hz
[20:00:13]    + AAC Passthru
HB [AVHWDeviceContext @ 000002558615f600] Error creating a MFX session: -9.
HB E hb_qsv_device_init: error creating a QSV device -1313558101
VC E [20:00:23] Operation 'Ping' failed. Worker process exited unexpectedly with code -1073741819. This may be due to a HandBrake engine crash.
VC E [20:00:23] Encode failed with code ErrorHandBrakeProcessCrashed
VC [20:00:23] Job completed (Elapsed Time: 11s)
RandomEngy commented 7 months ago

This is another HandBrake engine crash, you'll have to ask the HandBrake team about it.

AircraftRu commented 7 months ago

This is another HandBrake engine crash, you'll have to ask the HandBrake team about it.

Is there any seriuos aproach? You send me there, they need a HandBrake log, I don't use their software to get the log and test... test...test... I think it looks like you don't care about your software, if you use their engine you should work with them

https://github.com/HandBrake/HandBrake/issues/5492

RandomEngy commented 7 months ago

I agree that it's not the most convenient arrangement. I've proposed that they adopt VidCoder's UI for the official HandBrake UI on Windows but they don't want to do it. They are convinced that they have the best UI and don't need to hear anything from me.

I don't know the internal HandBrake code so if you wanted me to fix it, I would just be acting as a debugging intermediary for you. I can't reproduce the problem so it's much faster to have you interact directly with them.

I care about my software enough that I've spent countless hours for free to bring the best UI I can to Windows. I don't even really use it myself anymore, but I still write features and fix bugs because I like seeing people use it. But I just don't have the time or patience to relay messages between you and the people who can actually fix your issue.

AircraftRu commented 7 months ago

I agree that it's not the most convenient arrangement. I've proposed that they adopt VidCoder's UI for the official HandBrake UI on Windows but they don't want to do it. They are convinced that they have the best UI and don't need to hear anything from me.

I don't know the internal HandBrake code so if you wanted me to fix it, I would just be acting as a debugging intermediary for you. I can't reproduce the problem so it's much faster to have you interact directly with them.

I care about my software enough that I've spent countless hours for free to bring the best UI I can to Windows. I don't even really use it myself anymore, but I still write features and fix bugs because I like seeing people use it. But I just don't have the time or patience to relay messages between you and the people who can actually fix your issue.

Got it, I understand how it looks like now. Sorry, I coudn't emagine. I appretiate your efforts of course, you made really convinient and great software for ease encoding.