RandomEngy / VidCoder

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

Output file naming error: CRF 24 encoding, but {quality} generates 25 #1319

Open JNavas2 opened 4 days ago

JNavas2 commented 4 days ago

Problem Description

Windows 10 Pro x64 First time I've ever seen this error, and I'm not able to reproduce it. My 720p Preset [attached] is CRF 24, and my Custom output file naming is "{source} HEVC {quality}" but 25 appeared for {quality} in the output file name. In attached Log file you can see both CRF 24 encoding and 25 in output file name. CRF 25 is what I use for 1080p encoding. I speculate that I was editing a new 1080p job, and that somehow affected the queued 720p job. Redo 720p HEVC.vjpreset.zip

p2l5fd2hEM

What version of VidCoder are you running?

11.7 Beta VelopackInstaller

Encode Log

VC [21:02:02] VidCoder 11.7 Beta
VC [21:02:02] Starting job 1/15
VC [21:02:02]   Source path: G:\My Drive\TV\Gasmamman (Mother Goose)\Season 2\Gasmamman S02E01 720p.mp4
VC [21:02:02]   Destination path: C:\Users\johnn\Desktop\Gasmamman S02E01 720p HEVC 25.mp4
VC [21:02:02]   Title: 1
VC [21:02:02]   Range: All
VC [21:02:02]   Preset: Redo  720p HEVC
VC [21:02:02]   Picker: 
VC [21:02:02] Worker ready: Pipe 'VidCoderWorker.b30edbbd-4cdc-4392-9de5-95e47325c501' is open
VC [21:02:02] Connecting to process 13588 on pipe VidCoderWorker.b30edbbd-4cdc-4392-9de5-95e47325c501
HB [21:02:10] CPU: Intel(R) Core(TM) i5-6440HQ CPU @ 2.60GHz
[21:02:10]  - Intel microarchitecture Skylake
[21:02:10]  - logical processor count: 4
[21:02:10] Intel Quick Sync Video support: yes, gpu list: 1
[21:02:10] Intel Quick Sync Video integrated adapter with index 1
[21:02:10] Impl mfxhw64 library path: C:\WINDOWS\System32\DriverStore\FileRepository\igdlh64.inf_amd64_e8709544d05b90c8\libmfxhw64.dll
[21:02:10]  - Intel Media SDK hardware: API 1.35 (minimum: 1.3)
[21:02:10]  - Decode support:  h264 hevc (8bit: yes, 10bit: no)
[21:02:10]  - H.264 encoder: yes
[21:02:10]     - preferred implementation: hardware (2) via D3D11
[21:02:10]     - capabilities (hardware):  breftype icq+la+i+downs vsinfo chromalocinfo opt1 opt2+mbbrc+extbrc+trellis+repeatpps+ib_adapt+nmpslice
[21:02:10]  - H.265 encoder: yes (8bit: yes, 10bit: no)
[21:02:10]     - preferred implementation: hardware (2) via D3D11
[21:02:10]     - capabilities (hardware):  bpyramid icq vsinfo masteringinfo cllinfo opt1
[21:02:10]  - AV1 encoder: no
[21:02:10] hb_scan: path=G:\My Drive\TV\Gasmamman (Mother Goose)\Season 2\Gasmamman S02E01 720p.mp4, title_index=1
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'G:\My Drive\TV\Gasmamman (Mother Goose)\Season 2\Gasmamman S02E01 720p.mp4':
  Metadata:
    major_brand     : mp42
    minor_version   : 512
    compatible_brands: isomiso2mp41
    creation_time   : 2020-02-24T23:38:31.000000Z
    encoder         : HandBrake 20200205215430-8cb2ee4-master 2020020601
  Duration: 00:43:28.19, start: 0.000000, bitrate: 1033 kb/s
  Stream #0:0[0x1](und): Video: hevc (Main 10) (hvc1 / 0x31637668), yuv420p10le(tv, bt709), 1280x720 [SAR 1:1 DAR 16:9], 899 kb/s, 25 fps, 25 tbr, 90k tbn (default)
      Metadata:
        creation_time   : 2020-02-24T23:38:31.000000Z
        handler_name    : VideoHandler
        vendor_id       : [0][0][0][0]
  Stream #0:1[0x2](swe): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 127 kb/s (default)
      Metadata:
        creation_time   : 2020-02-24T23:38:31.000000Z
        handler_name    : Stereo
        vendor_id       : [0][0][0][0]
        title           : Stereo
[21:02:10] scan: decoding previews for title 1
HB [21:02:10] scan: audio 0x1: aac, rate=48000Hz, bitrate=127999 svenska (AAC LC, 2.0 ch, 127 kbps)
HB [21:02:12] using container PAR 1:1
[21:02:12] scan: 30 previews, 1280x720, 25.000 fps, autocrop = 0/0/0/0, aspect 16:9, PAR 1:1, color profile: 1-1-1, chroma location: left
[21:02:12] libhb: scan thread found 1 valid title(s)
HB [21:02:12] Starting work at: Sun Nov 24 21:02:12 2024
[21:02:12] 1 job(s) to process
[21:02:12] json job:
{
  "Audio": {
    "AudioList": [
      {
        "Bitrate": 160,
        "DRC": 0,
        "Encoder": "copy",
        "Gain": 0,
        "Mixdown": 4,
        "NormalizeMixLevel": false,
        "Samplerate": 48000,
        "Name": "Stereo",
        "Track": 0,
        "DitherMethod": 0
      }
    ],
    "CopyMask": [
      "copy:aac",
      "copy:mp2",
      "copy:flac"
    ],
    "FallbackEncoder": "av_aac"
  },
  "Destination": {
    "ChapterList": [
      {
        "Name": "Chapter 1"
      }
    ],
    "ChapterMarkers": true,
    "AlignAVStart": true,
    "File": "C:\\Users\\johnn\\Desktop\\Gasmamman S02E01 720p HEVC 25.part.mp4",
    "Options": {
      "IpodAtom": false,
      "Optimize": true
    },
    "Mux": "av_mp4"
  },
  "Filters": {
    "FilterList": [
      {
        "ID": 6,
        "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": 13,
        "Settings": {
          "cb-spatial": "0.7",
          "cb-temporal": "2",
          "cr-spatial": "0.7",
          "cr-temporal": "2",
          "y-spatial": "1",
          "y-temporal": "1"
        }
      },
      {
        "ID": 20,
        "Settings": {
          "crop-bottom": "0",
          "crop-left": "0",
          "crop-right": "0",
          "crop-top": "0",
          "height": "720",
          "width": "1280"
        }
      }
    ]
  },
  "PAR": {
    "Num": 1,
    "Den": 1
  },
  "Metadata": {},
  "SequenceID": 0,
  "Source": {
    "Angle": 0,
    "Range": {
      "Type": "chapter",
      "Start": 1,
      "End": 1
    },
    "Title": 1,
    "Path": "G:\\My Drive\\TV\\Gasmamman (Mother Goose)\\Season 2\\Gasmamman S02E01 720p.mp4",
    "HWDecode": 0,
    "KeepDuplicateTitles": false
  },
  "Subtitle": {
    "Search": {
      "Burn": false,
      "Default": false,
      "Enable": false,
      "Forced": false
    },
    "SubtitleList": []
  },
  "Video": {
    "Encoder": "x265",
    "Level": "auto",
    "MultiPass": false,
    "Turbo": false,
    "ColorMatrixCode": 0,
    "Options": "",
    "Preset": "veryfast",
    "Profile": "main",
    "Quality": 24,
    "QSV": {
      "Decode": false
    },
    "HardwareDecode": 4
  }
}
[21:02:12] Starting Task: Encoding Pass
[21:02:12] work: skipping crop/scale filter
[21:02:12] Auto Passthru: allowed codecs are AAC, MP2, FLAC
[21:02:12] Auto Passthru: fallback is AAC (avcodec)
[21:02:12] Auto Passthru: using AAC Passthru for track 1
[21:02:12] work: only 1 chapter, disabling chapter markers
[21:02:12] job configuration:
[21:02:12]  * source
[21:02:12]    + G:\My Drive\TV\Gasmamman (Mother Goose)\Season 2\Gasmamman S02E01 720p.mp4
[21:02:12]    + title 1, chapter(s) 1 to 1
[21:02:12]    + container: mov,mp4,m4a,3gp,3g2,mj2
[21:02:12]    + data rate: 1033 kbps
[21:02:12]  * destination
[21:02:12]    + C:\Users\johnn\Desktop\Gasmamman S02E01 720p HEVC 25.part.mp4
[21:02:12]    + container: MPEG-4 (libavformat)
[21:02:12]      + optimized for HTTP streaming (fast start)
[21:02:12]      + align initial A/V stream timestamps
[21:02:12]  * video track
[21:02:12]    + decoder: hevc 10-bit (yuv420p10le)
[21:02:12]      + bitrate 899 kbps
[21:02:12]    + filters
[21:02:12]      + 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)
[21:02:12]      + Decomb (mode=39)
[21:02:12]      + Denoise (hqdn3d) (y-spatial=1:cb-spatial=0.7:cr-spatial=0.7:y-temporal=1:cb-temporal=2:cr-temporal=2)
[21:02:12]      + Format (format=yuv420p)
[21:02:12]    + Output geometry
[21:02:12]      + storage dimensions: 1280 x 720
[21:02:12]      + pixel aspect ratio: 1 : 1
[21:02:12]      + display dimensions: 1280 x 720
[21:02:12]    + encoder: H.265 (libx265)
[21:02:12]      + preset:  veryfast
[21:02:12]      + profile: main
[21:02:12]      + level:   auto
[21:02:12]      + quality: 24.00 (RF)
[21:02:12]      + color profile: 1-1-1
[21:02:12]      + color range: tv
[21:02:12]      + chroma location: left
[21:02:12]  * audio track 1
[21:02:12]    + name: Stereo
[21:02:12]    + decoder: svenska (AAC LC, 2.0 ch, 127 kbps) (track 1, id 0x1)
[21:02:12]      + bitrate: 127 kbps, samplerate: 48000 Hz
[21:02:12]    + AAC Passthru
HB [21:02:12] sync: expecting 65204 video frames
x265 [info]: HEVC encoder version 4.0+1-6318f22
x265 [info]: build info [Windows][GCC 13.2.0][64 bit] 8bit+10bit+12bit
x265 [info]: using cpu capabilities: MMX2 SSE2Fast LZCNT SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
x265 [info]: Main profile, Level-3.1 (Main tier)
x265 [info]: Thread pool created using 4 threads
x265 [info]: Slices                              : 1
x265 [info]: frame threads / pool features       : 2 / wpp(12 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 / 1 / 2
x265 [info]: Keyframe min / max / scenecut / bias  : 25 / 250 / 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  : 2 / on / on
x265 [info]: AQ: mode / str / qg-size / cu-tree  : 2 / 1.0 / 32 / 1
x265 [info]: Rate Control / qCompress            : CRF-24.0 / 0.60
x265 [info]: tools: rd=2 psy-rd=2.00 early-skip rskip mode=1 signhide tmvp
x265 [info]: tools: fast-intra strong-intra-smoothing lslices=4 deblock sao
[21:02:13] sync: first pts audio 0x1 is 0
[21:02:13] sync: first pts video is 2970
[21:02:13] sync: "Chapter 1" (1) at frame 1 time 2970
HB [05:44:40] reader: done. 1 scr changes
HB [05:44:41] work: average encoding speed for job is 2.076992 fps
[05:44:41] comb detect: heavy 15 | light 106 | uncombed 65083 | total 65204
HB [05:44:41] decomb: deinterlaced 15 | blended 106 | unfiltered 65083 | total 65204
[05:44:41] aac-decoder done: 122258 frames, 0 decoder errors
[05:44:41] hevc-decoder done: 65204 frames, 0 decoder errors
HB [05:44:42] sync: got 65204 frames, 65204 expected
[05:44:42] sync: framerate min 25.000 fps, max 25.000 fps, avg 25.000 fps
x265 [info]: frame I:    414, Avg QP:22.25  kb/s: 6838.91
x265 [info]: frame P:  12961, Avg QP:24.05  kb/s: 1871.07
x265 [info]: frame B:  51829, Avg QP:30.24  kb/s: 272.43
x265 [info]: Weighted P-Frames: Y:1.1% UV:0.6%
encoded 65204 frames in 31349.03s (2.08 fps), 631.89 kb/s, Avg QP:28.96
HB [05:44:42] mux: track 0, 65204 frames, 206270122 bytes, 632.68 kbps, fifo 8192
[05:44:42] mux: track 1, 122258 frames, 41730730 bytes, 128.00 kbps, fifo 16384
[05:44:42] Finished work at: Mon Nov 25 05:44:42 2024
[05:44:42] libhb: work result = 0
VC [05:44:42] Job completed (Elapsed Time: 8h 42m)
JNavas2 commented 4 days ago

Happened a 2nd time (Log attached). But a 3rd similar encode is normal. Go figure. Output {quality} naming error 2.zip