RandomEngy / VidCoder

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

Turbo second pass #862

Open ThomasCSR opened 3 years ago

ThomasCSR commented 3 years ago

I wonder if something might be wrong: My settings are 2-pass Encoding and Turbo first Pass. According to the progress bar first pass it in 2 steps: first one pass within at minute and then around 45 minutes for a 2-hour video clip. Then second pass begins in the exact same way: One pass within a minute and then 45 minutes afterwards. First and second pass takes exactly the same time. Not much turbo on the first pass then. Is this behavior correct?

RandomEngy commented 3 years ago

Can you provide an encode log so I can see what encoding settings you're using?

ThomasCSR commented 3 years ago

VidCoder 5.21

Starting job 1/1

Source path: D:\Det store vaccinekapløb (2-2)_2021-07-20 23-50-00.ts

Destination path: C:\Users\Thoma\Documents\Output\VidCoder\Letters from Iwo Jima.mkv

Title: 1

Seconds: 520-8465

Preset: Min

Worker ready: Pipe 'VidCoderWorker.62b01130-b6dd-4208-9e5f-ac812279da73' is open

Connecting to process 4844 on pipe VidCoderWorker.62b01130-b6dd-4208-9e5f-ac812279da73

[08:10:12] hb_init: starting libhb thread [08:10:12] CPU: Intel(R) Core(TM) i7-10710U CPU @ 1.10GHz [08:10:12] - logical processor count: 12 [08:10:12] Intel Quick Sync Video support: yes [08:10:12] - Intel Media SDK hardware: API 1.33 (minimum: 1.3) [08:10:12] - H.264 encoder: yes [08:10:12] - preferred implementation: hardware (any) via D3D11 [08:10:12] - capabilities (hardware): breftype icq+la+i+downs vsinfo opt1 opt2+mbbrc+extbrc+trellis+ib_adapt+nmpslice [08:10:12] - H.265 encoder: yes (8bit: yes, 10bit: yes) [08:10:12] - preferred implementation: hardware (any) via D3D11 [08:10:12] - capabilities (hardware): bpyramid icq vsinfo opt1 [08:10:12] hb_scan: path=D:\Det store vaccinekapl›b (2-2)_2021-07-20 23-50-00.ts, title_index=1 src/libbluray/disc/disc.c:323: failed opening UDF image D:\Det store vaccinekapløb (2-2)_2021-07-20 23-50-00.ts src/libbluray/disc/disc.c:424: error opening file BDMV\index.bdmv src/libbluray/disc/disc.c:424: error opening file BDMV\BACKUP\index.bdmv src/libbluray/bluray.c:2585: nav_get_title_list(D:\Det store vaccinekapløb (2-2)_2021-07-20 23-50-00.ts) failed [08:10:12] bd: not a bd - trying as a stream/file instead libdvdnav: Using dvdnav version 6.0.1 libdvdread: Encrypted DVD support unavailable. libdvdread:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed libdvdread:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.BUP failed libdvdread: Can't open file VIDEO_TS.IFO. libdvdnav: vm: failed to read VIDEO_TS.IFO [08:10:12] dvd: not a dvd - trying as a stream/file instead [08:10:12] file is MPEG Transport Stream with 188 byte packets offset 0 bytes [08:10:12] Found the following PIDS [08:10:12] Video PIDS : [08:10:12] 0x488 type H.264 (0x1b) (PCR) [08:10:12] Audio PIDS : [08:10:12] 0x489 type MPEG1 (0x3) [08:10:12] Subtitle PIDS : [08:10:12] Other PIDS : [08:10:12] 0x480 type ISO 13818-1 private section (0x5) [08:10:12] 0x481 type ISO 13818-6 DSM-CC U-N msgs (0xb) [08:10:12] 0x48a type DVB Teletext (0x0) [08:10:12] stream id 0x489 (type 0x3 substream 0x0) audio 0x489 [08:10:12] scan: decoding previews for title 1 [08:10:12] file is MPEG Transport Stream with 188 byte packets offset 0 bytes [08:10:12] scan: audio 0x489: mp2, rate=48000Hz, bitrate=128000 dansk (MPEG) (2.0 ch) (128 kbps) [08:10:12] stream: 34 good frames, 0 errors (0%) [08:10:12] scan: 10 previews, 1920x1080, 25.000 fps, autocrop = 12/0/0/0, aspect 16:9, PAR 1:1 [08:10:12] scan: supported video decoders: avcodec qsv [08:10:12] Title is likely interlaced or telecined (7 out of 10 previews). You should do something about that. [08:10:12] libhb: scan thread found 1 valid title(s) [08:10:13] Starting work at: Wed Jul 21 08:10:13 2021 [08:10:13] 1 job(s) to process [08:10:13] json job: { "Audio": { "AudioList": [ { "Bitrate": 160, "DRC": 0.0, "Encoder": "av_aac", "Gain": 0.0, "Mixdown": 4, "NormalizeMixLevel": false, "Samplerate": 0, "Track": 0, "DitherMethod": 0 } ], "CopyMask": [ "copy:aac", "copy:ac3", "copy:eac3", "copy:truehd", "copy:dts", "copy:dtshd", "copy:mp3", "copy:flac" ] }, "Destination": { "ChapterList": [ { "Name": "Chapter 1" } ], "ChapterMarkers": true, "AlignAVStart": true, "File": "C:\Users\Thoma\Documents\Output\VidCoder\Letters from Iwo Jima.mkv.part", "Mp4Options": { "IpodAtom": false, "Mp4Optimize": false }, "Mux": "av_mkv" }, "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": 6, "Settings": { "mode": "1", "rate": "27000000/1080000" } }, { "ID": 12, "Settings": { "crop-bottom": "50", "crop-left": "0", "crop-right": "0", "crop-top": "132", "height": "898", "width": "1920" } } ] }, "PAR": { "Num": 1, "Den": 1 }, "Metadata": {}, "SequenceID": 0, "Source": { "Angle": 1, "Range": { "Type": "time", "Start": 46800000, "End": 761850000 }, "Title": 1, "Path": "D:\Det store vaccinekapl›b (2-2)_2021-07-20 23-50-00.ts" }, "Subtitle": { "Search": { "Burn": false, "Default": false, "Enable": false, "Forced": false }, "SubtitleList": [] }, "Video": { "Encoder": "x264", "Level": "3.1", "Bitrate": 1800, "TwoPass": true, "Turbo": true, "ColorMatrixCode": 0, "Options": "", "Preset": "medium", "Profile": "main", "QSV": { "Decode": false, "AsyncDepth": 0 } } } [08:10:13] Starting Task: Analysis Pass [08:10:13] work: only 1 chapter, disabling chapter markers [08:10:13] job configuration: [08:10:13] source [08:10:13] + D:\Det store vaccinekapl›b (2-2)_2021-07-20 23-50-00.ts [08:10:13] + title 1, start 00:08:40.00 stop 02:21:5.00 [08:10:13] destination [08:10:13] + C:\Users\Thoma\Documents\Output\VidCoder\Letters from Iwo Jima.mkv.part [08:10:13] + container: Matroska (libavformat) [08:10:13] + align initial A/V stream timestamps [08:10:13] video track [08:10:13] + decoder: h264 [08:10:13] + bitrate 200 kbps [08:10:13] + filters [08:10: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) [08:10:13] + Decomb (mode=39) [08:10:13] + Framerate Shaper (mode=1:rate=27000000/1080000) [08:10:13] + frame rate: 25.000 fps -> constant 25.000 fps [08:10:13] + Crop and Scale (width=1920:height=898:crop-top=132:crop-bottom=50:crop-left=0:crop-right=0) [08:10:13] + source: 1920 1080, crop (132/50/0/0): 1920 898, scale: 1920 898 [08:10:13] + Output geometry [08:10:13] + storage dimensions: 1920 x 898 [08:10:13] + pixel aspect ratio: 1 : 1 [08:10:13] + display dimensions: 1920 x 898 [08:10:13] + encoder: H.264 (libx264) [08:10:13] + preset: medium [08:10:13] + profile: main [08:10:13] + level: 3.1 [08:10:13] + bitrate: 1800 kbps, pass: 1 [08:10:13] + fast first pass [08:10:13] + options: ref=1:8x8dct=0:me=dia:trellis=0 [08:10:13] analyse=i4x4 (if originally enabled, else analyse=none) [08:10:13] subq=2 (if originally greater than 2, else subq unchanged) [08:10:13] + color profile: 1-1-1 [08:10:13] audio track 1 [08:10:13] + decoder: dansk (MPEG) (2.0 ch) (128 kbps) (track 1, id 0x489) [08:10:13] + bitrate: 128 kbps, samplerate: 48000 Hz [08:10:13] + mixdown: Stereo [08:10:13] + dither: none [08:10:13] + encoder: AAC (libavcodec) [08:10:13] + bitrate: 160 kbps, samplerate: 48000 Hz [08:10:13] file is MPEG Transport Stream with 188 byte packets offset 0 bytes [08:10:13] sync: expecting 198650 video frames [08:10:13] encx264: encoding at average bitrate 1800 [08:10:13] apply_h264_level [warning]: frame size (1920x912, 6840 macroblocks) too high for level 3.1 (max. 3600 macroblocks) [08:10:13] encx264: unparsed options: level=3.1:ref=2:b-pyramid=none:8x8dct=0:vbv-bufsize=14000:vbv-maxrate=14000 x264 [info]: x264 [warning]: x264 [warning]: x264 [info]: x264 [info]: [08:10:38] sync: first pts video is 0 [08:10:38] sync: first pts audio 0x489 is 0 [08:51:03] sync: reached video pts 715050000, exiting early [08:51:03] sync: reached audio 0x489 pts 715051440, exiting early [08:51:04] work: average encoding speed for job is 81.912262 fps [08:51:04] comb detect: heavy 52428 | light 29573 | uncombed 116624 | total 198625 [08:51:04] decomb: deinterlaced 52428 | blended 29573 | unfiltered 116624 | total 198625 [08:51:04] vfr: 198625 frames output, 0 dropped and 0 duped for CFR/PFR [08:51:04] vfr: lost time: 0 (0 frames) [08:51:04] vfr: gained time: 0 (0 frames) (0 not accounted for) [08:51:04] stream: 423622 good frames, 0 errors (0%) [08:51:04] mp2-decoder done: 353017 frames, 0 decoder errors [08:51:04] h264-decoder done: 211794 frames, 0 decoder errors [08:51:04] sync: got 198625 frames, 198650 expected [08:51:04] sync: framerate min 25.000 fps, max 25.000 fps, avg 25.000 fps [aac @ 0000017374768c40] Qavg: 287.086 x264 [info]: x264 [info]: x264 [info]: x264 [info]: x264 [info]: x264 [info]: x264 [info]: x264 [info]: x264 [info]: x264 [info]: x264 [info]: x264 [info]: x264 [info]: x264 [info]: [08:51:04] Starting Task: Encoding Pass [08:51:04] work: only 1 chapter, disabling chapter markers [08:51:04] job configuration: [08:51:04] source [08:51:04] + D:\Det store vaccinekapl›b (2-2)_2021-07-20 23-50-00.ts [08:51:04] + title 1, start 00:08:40.00 stop 02:21:5.00 [08:51:04] destination [08:51:04] + C:\Users\Thoma\Documents\Output\VidCoder\Letters from Iwo Jima.mkv.part [08:51:04] + container: Matroska (libavformat) [08:51:04] + align initial A/V stream timestamps [08:51:04] video track [08:51:04] + decoder: h264 [08:51:04] + bitrate 200 kbps [08:51:04] + filters [08:51:04] + 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) [08:51:04] + Decomb (mode=39) [08:51:04] + Framerate Shaper (mode=1:rate=27000000/1080000) [08:51:04] + frame rate: 25.000 fps -> constant 25.000 fps [08:51:04] + Crop and Scale (width=1920:height=898:crop-top=132:crop-bottom=50:crop-left=0:crop-right=0) [08:51:04] + source: 1920 1080, crop (132/50/0/0): 1920 898, scale: 1920 898 [08:51:04] + Output geometry [08:51:04] + storage dimensions: 1920 x 898 [08:51:04] + pixel aspect ratio: 1 : 1 [08:51:04] + display dimensions: 1920 x 898 [08:51:04] + encoder: H.264 (libx264) [08:51:04] + preset: medium [08:51:04] + profile: main [08:51:04] + level: 3.1 [08:51:04] + bitrate: 1800 kbps, pass: 2 [08:51:04] + color profile: 1-1-1 [08:51:04] audio track 1 [08:51:04] + decoder: dansk (MPEG) (2.0 ch) (128 kbps) (track 1, id 0x489) [08:51:04] + bitrate: 128 kbps, samplerate: 48000 Hz [08:51:04] + mixdown: Stereo [08:51:04] + dither: none [08:51:04] + encoder: AAC (libavcodec) [08:51:04] + bitrate: 160 kbps, samplerate: 48000 Hz [08:51:04] file is MPEG Transport Stream with 188 byte packets offset 0 bytes [08:51:04] sync: expecting 198625 video frames [08:51:04] encx264: encoding at average bitrate 1800 [08:51:04] apply_h264_level [warning]: frame size (1920x912, 6840 macroblocks) too high for level 3.1 (max. 3600 macroblocks) [08:51:04] encx264: unparsed options: level=3.1:ref=2:b-pyramid=none:8x8dct=0:vbv-bufsize=14000:vbv-maxrate=14000 x264 [info]: x264 [warning]: x264 [warning]: x264 [info]: x264 [info]: [08:51:37] sync: first pts video is 0 [08:51:37] sync: first pts audio 0x489 is 0 [09:46:48] sync: reached video pts 715050000, exiting early [09:46:48] sync: reached audio 0x489 pts 715051440, exiting early [09:46:49] work: average encoding speed for job is 59.982391 fps [09:46:49] comb detect: heavy 52428 | light 29573 | uncombed 116624 | total 198625 [09:46:49] decomb: deinterlaced 52428 | blended 29573 | unfiltered 116624 | total 198625 [09:46:49] vfr: 198625 frames output, 0 dropped and 0 duped for CFR/PFR [09:46:49] vfr: lost time: 0 (0 frames) [09:46:49] vfr: gained time: 0 (0 frames) (0 not accounted for) [09:46:49] stream: 423536 good frames, 0 errors (0%) [09:46:49] mp2-decoder done: 352940 frames, 0 decoder errors [09:46:49] h264-decoder done: 211754 frames, 0 decoder errors [09:46:49] sync: got 198625 frames, 198625 expected [09:46:49] sync: framerate min 25.000 fps, max 25.000 fps, avg 25.000 fps [aac @ 000001737ef13c00] Qavg: 287.086 x264 [info]: x264 [info]: x264 [info]: x264 [info]: x264 [info]: x264 [info]: x264 [info]: x264 [info]: x264 [info]: x264 [info]: x264 [info]: x264 [info]: x264 [info]: x264 [info]: [09:46:49] mux: track 0, 198625 frames, 1787197938 bytes, 1799.56 kbps, fifo 4096 [09:46:49] mux: track 1, 372423 frames, 159685048 bytes, 160.79 kbps, fifo 8192 [09:46:49] Finished work at: Wed Jul 21 09:46:49 2021 [09:46:49] libhb: work result = 0

Job completed (Elapsed Time: 1h 36m)

RandomEngy commented 3 years ago

That quick first pass is the subtitle scan pass. It looks like I passed the "fast first pass" correctly into the HandBrake encoder. It's probably an issue with the HandBrake engine. Though I would recommend using quality targeting.