VidCoder icon indicating copy to clipboard operation
VidCoder copied to clipboard

Encoding makes the movie shorter

Open DracoChronicles opened this issue 2 years ago • 1 comments

Problem Description

When using the standard MKV - 1080P, 30 H.264 encoding choise it will i.e. make a 1h45 minute movie 1h39minutes. I cannot see anything cut from the movie, it is all there... It just seems faster?

Any reason for this. I want the time to be exact like the original to be honest.

Thank you.

What version of VidCoder are you running?

9.16 Beta

Encode Log

VC [09:19:36] VidCoder 9.16 Beta
VC [09:19:36] Starting job 10/147
VC [09:19:36]   Source path: F:\Ripping\Stripping\9 (2009)\9 (2009).mkv
VC [09:19:36]   Destination path: F:\Storage\Movie Collection\Stripping\9 (2009)\9 (2009).mkv
VC [09:19:36]   Title: 1
VC [09:19:36]   Range: All
VC [09:19:36]   Preset: Preferred - H.265 MKV 1080p30
VC [09:19:36]   Picker: Custom
VC [09:19:36] Worker ready: Pipe 'VidCoderWorker.42a6d24d-cdc5-447b-ada7-92b49bb1c3c9' is open
VC [09:19:36] Connecting to process 22352 on pipe VidCoderWorker.42a6d24d-cdc5-447b-ada7-92b49bb1c3c9
HB [09:19:36] CPU: Intel(R) Core(TM) i9-9900X CPU @ 3.50GHz
[09:19:36]  - logical processor count: 20
[09:19:36] Intel Quick Sync Video support: no
[09:19:36] hb_scan: path=F:\Ripping\Stripping\9 (2009)\9 (2009).mkv, title_index=1
Input #0, matroska,webm, from 'F:\Ripping\Stripping\9 (2009)\9 (2009).mkv':
  Metadata:
    encoder         : libebml v1.4.2 + libmatroska v1.6.4
    creation_time   : 2024-01-20T23:07:08.000000Z
  Duration: 01:16:03.00, start: 0.000000, bitrate: 6990 kb/s
  Chapters:
    Chapter #0:0: start 0.000000, end 235.880000
      Metadata:
        title           : Chapter 01
    Chapter #0:1: start 235.880000, end 566.120000
      Metadata:
        title           : Chapter 02
    Chapter #0:2: start 566.120000, end 697.680000
      Metadata:
        title           : Chapter 03
    Chapter #0:3: start 697.680000, end 906.360000
      Metadata:
        title           : Chapter 04
    Chapter #0:4: start 906.360000, end 1012.680000
      Metadata:
        title           : Chapter 05
    Chapter #0:5: start 1012.680000, end 1186.520000
      Metadata:
        title           : Chapter 06
    Chapter #0:6: start 1186.520000, end 1399.280000
      Metadata:
        title           : Chapter 07
    Chapter #0:7: start 1399.280000, end 1675.240000
      Metadata:
        title           : Chapter 08
    Chapter #0:8: start 1675.240000, end 1935.080000
      Metadata:
        title           : Chapter 09
    Chapter #0:9: start 1935.080000, end 2059.640000
      Metadata:
        title           : Chapter 10
    Chapter #0:10: start 2059.640000, end 2295.800000
      Metadata:
        title           : Chapter 11
    Chapter #0:11: start 2295.800000, end 2575.240000
      Metadata:
        title           : Chapter 12
    Chapter #0:12: start 2575.240000, end 2766.280000
      Metadata:
        title           : Chapter 13
    Chapter #0:13: start 2766.280000, end 3039.080000
      Metadata:
        title           : Chapter 14
    Chapter #0:14: start 3039.080000, end 3169.120000
      Metadata:
        title           : Chapter 15
    Chapter #0:15: start 3169.120000, end 3436.280000
      Metadata:
        title           : Chapter 16
    Chapter #0:16: start 3436.280000, end 3662.680000
      Metadata:
        title           : Chapter 17
    Chapter #0:17: start 3662.680000, end 3937.800000
      Metadata:
        title           : Chapter 18
    Chapter #0:18: start 3937.800000, end 4157.800000
      Metadata:
        title           : Chapter 19
    Chapter #0:19: start 4157.800000, end 4563.000000
      Metadata:
        title           : Chapter 20
  Stream #0:0(eng): Video: mpeg2video (Main), yuv420p(tv, top first), 720x576 [SAR 64:45 DAR 16:9], 25 fps, 25 tbr, 1k tbn
    Metadata:
      BPS             : 6411090
      DURATION        : 01:16:03.000000000
      NUMBER_OF_FRAMES: 114075
      NUMBER_OF_BYTES : 3656726008
      _STATISTICS_WRITING_APP: mkvmerge v64.0.0 ('Willows') 64-bit
      _STATISTICS_WRITING_DATE_UTC: 2024-01-20 23:07:08
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
    Side data:
      cpb: bitrate max/min/avg: 9800000/0/0 buffer size: 1835008 vbv_delay: N/A
  Stream #0:1(eng): Audio: ac3, 48000 Hz, 5.1(side), fltp, 384 kb/s (default)
    Metadata:
      BPS             : 384000
      DURATION        : 01:16:02.976000000
      NUMBER_OF_FRAMES: 142593
      NUMBER_OF_BYTES : 219022848
      _STATISTICS_WRITING_APP: mkvmerge v64.0.0 ('Willows') 64-bit
      _STATISTICS_WRITING_DATE_UTC: 2024-01-20 23:07:08
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
  Stream #0:2(eng): Audio: ac3, 48000 Hz, stereo, fltp, 192 kb/s (default)
    Metadata:
      BPS             : 192000
      DURATION        : 01:16:02.976000000
      NUMBER_OF_FRAMES: 142593
      NUMBER_OF_BYTES : 109511424
      _STATISTICS_WRITING_APP: mkvmerge v64.0.0 ('Willows') 64-bit
      _STATISTICS_WRITING_DATE_UTC: 2024-01-20 23:07:08
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
  Stream #0:3(nor): Subtitle: dvd_subtitle, 720x576
    Metadata:
      BPS             : 1632
      DURATION        : 01:15:07.478000000
      NUMBER_OF_FRAMES: 275
      NUMBER_OF_BYTES : 919600
      _STATISTICS_WRITING_APP: mkvmerge v64.0.0 ('Willows') 64-bit
      _STATISTICS_WRITING_DATE_UTC: 2024-01-20 23:07:08
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
[09:19:36] scan: decoding previews for title 1
[09:19:36] scan: audio 0x1: ac3, rate=48000Hz, bitrate=384000 English (AC3, 5.1 ch, 384 kbps)
[09:19:36] scan: audio 0x2: ac3, rate=48000Hz, bitrate=192000 English (AC3, 2.0 ch, 192 kbps)
[09:19:36] using bitstream PAR 64:45
[09:19:36] scan: 10 previews, 720x576, 25.000 fps, autocrop = 12/12/0/0, aspect 16:9, PAR 64:45, color profile: 5-1-6, chroma location: left
[09:19:36] libhb: scan thread found 1 valid title(s)
HB [09:19:36] Starting work at: Sun Jan 21 09:19:36 2024
[09:19:36] 1 job(s) to process
[09:19:36] json job:
{
  "Audio": {
    "AudioList": [
      {
        "Bitrate": 384,
        "DRC": 0,
        "Encoder": "copy",
        "Gain": 0,
        "Mixdown": 7,
        "NormalizeMixLevel": false,
        "Samplerate": 48000,
        "Track": 0,
        "DitherMethod": 0
      },
      {
        "Bitrate": 160,
        "DRC": 0,
        "Encoder": "copy",
        "Gain": 0,
        "Mixdown": 4,
        "NormalizeMixLevel": false,
        "Samplerate": 48000,
        "Track": 1,
        "DitherMethod": 0
      }
    ],
    "CopyMask": [
      "copy:aac",
      "copy:ac3",
      "copy:eac3",
      "copy:truehd",
      "copy:dts",
      "copy:dtshd",
      "copy:mp2",
      "copy:mp3",
      "copy:flac",
      "copy:opus"
    ],
    "FallbackEncoder": "av_aac"
  },
  "Destination": {
    "ChapterList": [
      {
        "Name": "Chapter 1"
      },
      {
        "Name": "Chapter 2"
      },
      {
        "Name": "Chapter 3"
      },
      {
        "Name": "Chapter 4"
      },
      {
        "Name": "Chapter 5"
      },
      {
        "Name": "Chapter 6"
      },
      {
        "Name": "Chapter 7"
      },
      {
        "Name": "Chapter 8"
      },
      {
        "Name": "Chapter 9"
      },
      {
        "Name": "Chapter 10"
      },
      {
        "Name": "Chapter 11"
      },
      {
        "Name": "Chapter 12"
      },
      {
        "Name": "Chapter 13"
      },
      {
        "Name": "Chapter 14"
      },
      {
        "Name": "Chapter 15"
      },
      {
        "Name": "Chapter 16"
      },
      {
        "Name": "Chapter 17"
      },
      {
        "Name": "Chapter 18"
      },
      {
        "Name": "Chapter 19"
      },
      {
        "Name": "Chapter 20"
      }
    ],
    "ChapterMarkers": true,
    "AlignAVStart": false,
    "File": "F:\\Storage\\Movie Collection\\Stripping\\9 (2009)\\9 (2009).part.mkv",
    "Options": {
      "IpodAtom": false,
      "Optimize": false
    },
    "Mux": "av_mkv"
  },
  "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": 10,
        "Settings": {
          "mode": "2",
          "rate": "27000000/900000"
        }
      },
      {
        "ID": 19,
        "Settings": {
          "crop-bottom": "0",
          "crop-left": "0",
          "crop-right": "0",
          "crop-top": "0",
          "height": "576",
          "width": "720"
        }
      }
    ]
  },
  "PAR": {
    "Num": 64,
    "Den": 45
  },
  "Metadata": {},
  "SequenceID": 0,
  "Source": {
    "Angle": 0,
    "Range": {
      "Type": "chapter",
      "Start": 1,
      "End": 20
    },
    "Title": 1,
    "Path": "F:\\Ripping\\Stripping\\9 (2009)\\9 (2009).mkv",
    "HWDecode": 0
  },
  "Subtitle": {
    "Search": {
      "Burn": false,
      "Default": false,
      "Enable": true,
      "Forced": true
    },
    "SubtitleList": [
      {
        "Burn": false,
        "Default": false,
        "Forced": false,
        "ID": 1,
        "Offset": 0,
        "Track": 0
      }
    ]
  },
  "Video": {
    "Encoder": "x264",
    "Level": "auto",
    "MultiPass": false,
    "Turbo": false,
    "ColorMatrixCode": 0,
    "Options": "strong-intra-smoothing=0:rect=0:aq-mode=1",
    "Preset": "slower",
    "Profile": "main",
    "Quality": 19.0,
    "Tune": "film",
    "QSV": {
      "Decode": false
    },
    "HardwareDecode": 4
  }
}
[09:19:36] Skipping subtitle scan.  No suitable subtitle tracks.
[09:19:36] Starting Task: Encoding Pass
[09:19:36] work: skipping crop/scale filter
[09:19:36] Auto Passthru: allowed codecs are AAC, AC3, E-AC3, TrueHD, DTS, DTS-HD, MP2, MP3, FLAC, Opus
[09:19:36] Auto Passthru: fallback is AAC (avcodec)
[09:19:36] Auto Passthru: using AC3 Passthru for track 1
[09:19:36] Auto Passthru: using AC3 Passthru for track 2
[09:19:36] job configuration:
[09:19:36]  * source
[09:19:36]    + F:\Ripping\Stripping\9 (2009)\9 (2009).mkv
[09:19:36]    + title 1, chapter(s) 1 to 20
[09:19:36]    + container: matroska,webm
[09:19:36]    + data rate: 6990 kbps
[09:19:36]  * destination
[09:19:36]    + F:\Storage\Movie Collection\Stripping\9 (2009)\9 (2009).part.mkv
[09:19:36]    + container: Matroska (libavformat)
[09:19:36]      + chapter markers
[09:19:36]  * video track
[09:19:36]    + decoder: mpeg2video 8-bit (yuv420p)
[09:19:36]    + filters
[09:19:36]      + 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)
[09:19:36]      + Decomb (mode=39)
[09:19:36]      + Framerate Shaper (mode=2:rate=27000000/900000)
[09:19:36]        + frame rate: 25.000 fps -> peak rate limited to 30.000 fps
[09:19:36]    + Output geometry
[09:19:36]      + storage dimensions: 720 x 576
[09:19:36]      + pixel aspect ratio: 64 : 45
[09:19:36]      + display dimensions: 1024 x 576
[09:19:36]    + encoder: H.264 (libx264)
[09:19:36]      + preset:  slower
[09:19:36]      + tune:    film
[09:19:36]      + options: strong-intra-smoothing=0:rect=0:aq-mode=1
[09:19:36]      + profile: main
[09:19:36]      + level:   auto
[09:19:36]      + quality: 19.00 (RF)
[09:19:36]      + color profile: 5-1-6
[09:19:36]      + chroma location: left
[09:19:36]  * subtitle track 1, norsk (VOBSUB) (track 0, id 0x3, Picture) -> Passthrough
[09:19:36]  * audio track 1
[09:19:36]    + decoder: English (AC3, 5.1 ch, 384 kbps) (track 1, id 0x1)
[09:19:36]      + bitrate: 384 kbps, samplerate: 48000 Hz
[09:19:36]    + AC3 Passthru
[09:19:36]  * audio track 2
[09:19:36]    + decoder: English (AC3, 2.0 ch, 192 kbps) (track 2, id 0x2)
[09:19:36]      + bitrate: 192 kbps, samplerate: 48000 Hz
[09:19:36]    + AC3 Passthru
[09:19:36] sync: expecting 114075 video frames
[09:19:36] x264 options: Unknown suboption strong-intra-smoothing
[09:19:36] x264 options: Unknown suboption rect
[09:19:36] encx264: encoding at constant RF 19.000000
[09:19:36] encx264: unparsed options: strong-intra-smoothing=0:rect=0:ref=8:b-adapt=2:direct=auto:deblock=-1,-1:analyse=all:8x8dct=0:me=umh:subme=9:trellis=2:psy-rd=1,0.15:rc-lookahead=60
x264 [info]: using SAR=64/45
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2 AVX512 UnalignedStack
x264 [info]: profile Main, level 3.1, 4:2:0, 8-bit
[09:19:36] sync: first pts video is 0
[09:19:36] sync: "Chapter 1" (1) at frame 1 time 0
[09:19:36] sync: first pts audio 0x1 is 0
[09:19:36] sync: first pts audio 0x2 is 0
HB [09:19:47] sync: first pts subtitle 0x3 is 4744800
HB [09:20:15] sync: "Chapter 2" (2) at frame 5898 time 21229200
HB [09:21:11] sync: "Chapter 3" (3) at frame 14154 time 50950800
HB [09:21:36] sync: "Chapter 4" (4) at frame 17443 time 62791200
HB [09:22:19] sync: "Chapter 5" (5) at frame 22660 time 81572400
HB [09:22:36] sync: "Chapter 6" (6) at frame 25318 time 91141200
HB [09:23:09] sync: "Chapter 7" (7) at frame 29664 time 106786800
HB [09:23:50] sync: "Chapter 8" (8) at frame 34983 time 125935200
HB [09:24:45] sync: "Chapter 9" (9) at frame 41882 time 150771600
HB [09:25:38] sync: "Chapter 10" (10) at frame 48378 time 174157200
HB [09:26:03] sync: "Chapter 11" (11) at frame 51492 time 185367600
HB [09:26:59] sync: "Chapter 12" (12) at frame 57396 time 206622000
HB [09:27:55] sync: "Chapter 13" (13) at frame 64382 time 231771600
HB [09:28:39] sync: "Chapter 14" (14) at frame 69158 time 248965200
HB [09:29:37] sync: "Chapter 15" (15) at frame 75978 time 273517200
HB [09:30:10] sync: "Chapter 16" (16) at frame 79229 time 285220800
HB [09:31:11] sync: "Chapter 17" (17) at frame 85908 time 309265200
HB [09:31:53] sync: "Chapter 18" (18) at frame 91568 time 329641200
HB [09:33:03] sync: "Chapter 19" (19) at frame 98446 time 354402000
HB [09:33:47] sync: "Chapter 20" (20) at frame 103946 time 374202000
HB [09:34:33] reader: done. 1 scr changes
HB [09:34:33] work: average encoding speed for job is 127.107155 fps
HB [09:34:34] comb detect: heavy 871 | light 1502 | uncombed 111702 | total 114075
[09:34:34] decomb: deinterlaced 871 | blended 1502 | unfiltered 111702 | total 114075
[09:34:34] vfr: 114075 frames output, 0 dropped and 0 duped for CFR/PFR
[09:34:34] vfr: lost time: 0 (0 frames)
[09:34:34] vfr: gained time: 0 (0 frames) (0 not accounted for)
[09:34:34] ac3-decoder done: 142593 frames, 0 decoder errors
[09:34:34] ac3-decoder done: 142593 frames, 0 decoder errors
[09:34:34] mpeg2video-decoder done: 114075 frames, 0 decoder errors
[09:34:34] sync: got 114075 frames, 114075 expected
[09:34:34] sync: framerate min 25.000 fps, max 25.000 fps, avg 25.000 fps
x264 [info]: frame I:1421  Avg QP:13.78  size: 60581
x264 [info]: frame P:37661 Avg QP:17.38  size: 10473
x264 [info]: frame B:74993 Avg QP:21.64  size:  2721
x264 [info]: consecutive B-frames:  3.8%  6.2% 58.5% 31.5%
x264 [info]: mb I  I16..4: 30.2%  0.0% 69.8%
x264 [info]: mb P  I16..4:  3.7%  0.0%  5.2%  P16..4: 38.8% 13.2% 11.6%  0.8%  0.3%    skip:26.4%
x264 [info]: mb B  I16..4:  0.4%  0.0%  0.6%  B16..8: 34.0%  4.6%  1.1%  direct: 3.0%  skip:56.4%  L0:40.7% L1:48.1% BI:11.2%
x264 [info]: direct mvs  spatial:96.8% temporal:3.2%
x264 [info]: coded y,uvDC,uvAC intra: 74.3% 77.8% 54.2% inter: 12.1% 16.4% 2.9%
x264 [info]: i16 v,h,dc,p: 27% 20% 15% 38%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 11%  5%  6% 10% 14% 14% 12% 13% 14%
x264 [info]: i8c dc,h,v,p: 41% 25% 21% 14%
x264 [info]: Weighted P-Frames: Y:5.8% UV:3.7%
x264 [info]: ref P L0: 58.9% 10.4% 14.3%  4.7%  4.0%  2.8%  2.9%  1.8%  0.2%  0.0%
x264 [info]: ref B L0: 82.0%  9.7%  4.0%  1.7%  1.2%  1.0%  0.4%
x264 [info]: ref B L1: 98.3%  1.7%
x264 [info]: kb/s:1200.24
HB [09:34:34] mux: track 0, 114075 frames, 684527743 bytes, 1200.13 kbps, fifo 2048
[09:34:34] mux: track 1, 142593 frames, 219022848 bytes, 383.99 kbps, fifo 4096
[09:34:34] mux: track 2, 142593 frames, 109511424 bytes, 192.00 kbps, fifo 4096
[09:34:34] mux: track 3, 275 frames, 919600 bytes, 1.61 kbps, fifo 16
[09:34:34] Finished work at: Sun Jan 21 09:34:34 2024
[09:34:34] libhb: work result = 0
VC [09:34:34] Job completed (Elapsed Time: 14m 58s)

DracoChronicles avatar Jan 22 '24 14:01 DracoChronicles

Try it with HandBrake. 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. If it doesn't reproduce with HandBrake, we know it's a VidCoder issue.

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

RandomEngy avatar Jan 24 '24 00:01 RandomEngy