the 2 videos encoded with the same setting, but the quality and time-eclipesd of the two are different. can it be fixed to encode within a reasonable same quality?
video 1:1920 x 1080, data rate: 6356 kbps, size: 6.4G(59'25'' after:2.39G, 36.18%), log as following:
[08:46:51] sync: expecting 522012 video frames
[08:46:51] Unknown Header.BufferId=1347637059
[08:46:51] encqsvInit: using encode-only via system memory path
[08:46:51] encqsvInit: H.264/AVC High profile @ level 4.2
[08:46:51] encqsvInit: TargetUsage 4 AsyncDepth 6
[08:46:51] encqsvInit: GopRefDist 4 GopPicSize 120 NumRefFrame 3 IdrInterval 0
[08:46:51] encqsvInit: BFramesMax 3 BRefType pyramid
[08:46:51] encqsvInit: RateControlMethod VBR TargetKbps 2146 MaxKbps 3219 BufferSizeInKB 804 InitialDelayInKB 402 BRCParamMultiplier 1
[08:46:51] sync: first pts video is 0
[08:46:51] sync: Chapter 1 at frame 1 time 0
[08:46:51] sync: first pts audio 0x1 is 0
[08:46:51] qsv_enc_init: using 'hardware (1) via D3D11' implementation, API: 2.8
[08:54:39] sync: audio 0x1 time went backwards 1002 ms, dropped 47 frames. PTS 111323613
[09:44:57] sync: audio 0x1 time went backwards 1024 ms, dropped 48 frames. PTS 768412353
[09:46:12] reader: done. 1 scr changes
[09:46:13] work: average encoding speed for job is 146.550339 fps
[09:46:13] vfr: 522001 frames output, 0 dropped
[09:46:13] vfr: lost time: 0 (0 frames)
[09:46:13] vfr: gained time: 0 (0 frames) (0 not accounted for)
[09:46:13] aac-decoder done: 408325 frames, 0 decoder errors
[09:46:13] hevc-decoder done: 522001 frames, 0 decoder errors
[09:46:13] sync: got 522001 frames, 522012 expected
[09:46:13] sync: framerate min 59.940 fps, max 59.940 fps, avg 59.940 fps
[09:46:13] mux: track 0, 522001 frames, 2345766817 bytes, 2154.82 kbps, fifo 4096
[09:46:13] mux: track 1, 408231 frames, 139339209 bytes, 128.00 kbps, fifo 4096
[09:46:13] Finished work at: Tue May 14 09:46:13 2024
[09:46:14] libhb: work result = 0
video 2: 1920 x 1080, data rate: 5701 kbps, size: 5.9G(26'33'' after 1.77G, 29.33%), log as following:
[17:32:29] sync: expecting 266552 video frames
[17:32:29] Unknown Header.BufferId=1347637059
[17:32:29] encqsvInit: using encode-only via system memory path
[17:32:29] encqsvInit: H.264/AVC High profile @ level 4.0
[17:32:29] encqsvInit: TargetUsage 4 AsyncDepth 6
[17:32:29] encqsvInit: GopRefDist 4 GopPicSize 60 NumRefFrame 3 IdrInterval 0
[17:32:29] encqsvInit: BFramesMax 3 BRefType pyramid
[17:32:29] encqsvInit: RateControlMethod VBR TargetKbps 1500 MaxKbps 2250 BufferSizeInKB 562 InitialDelayInKB 281 BRCParamMultiplier 1
[17:32:29] sync: first pts video is 0
[17:32:29] sync: Chapter 1 at frame 1 time 0
[17:32:29] sync: first pts audio 0x1 is 0
[17:32:29] qsv_enc_init: using 'hardware (1) via D3D11' implementation, API: 2.8
[17:58:59] reader: done. 1 scr changes
[17:58:59] work: average encoding speed for job is 167.584061 fps
[17:59:00] vfr: 266551 frames output, 0 dropped
[17:59:00] vfr: lost time: 0 (0 frames)
[17:59:00] vfr: gained time: 0 (0 frames) (0 not accounted for)
[17:59:00] aac-decoder done: 416904 frames, 0 decoder errors
[17:59:00] h264-decoder done: 266551 frames, 0 decoder errors
[17:59:00] sync: got 266551 frames, 266552 expected
[17:59:00] sync: framerate min 29.970 fps, max 29.970 fps, avg 29.970 fps
[17:59:00] mux: track 0, 266551 frames, 1707064900 bytes, 1535.48 kbps, fifo 2048
[17:59:00] mux: track 1, 416905 frames, 142237864 bytes, 127.94 kbps, fifo 4096
[17:59:00] Finished work at: Mon May 13 17:59:00 2024
[17:59:00] libhb: work result = 0
Steps to reproduce the problem (If Applicable):
HandBrake version (e.g., 1.0.0):
1.7.3
Operating system and version (e.g., Ubuntu 16.04 LTS, macOS 10.13 High Sierra, Windows 10 Creators Update):
Windows 11 23H2
HandBrake Activity Log ***required*** (see How-to get an activity log)
Code: Select all
# Starting Encode ...
[08:46:49] base preset: 20240406
[08:46:49] Remote Process started with Process ID: 5948 using port: 8037. Max Allowed Instances: 1
[08:46:49] Worker: Starting HandBrake Engine ...
[08:46:49] Worker: Parent Process Id 18400
[08:46:49] Worker: Starting Web Server on port 8037 ...
[08:46:49] Worker: Starting Listener: 1
[08:46:49] Worker: Server Started
[08:46:49] Worker: Disconnected worker monitoring enabled!
[08:46:50] Compile-time hardening features are enabled
Cannot load nvEncodeAPI64.dll
[08:46:50] vcn: not available on this system
[08:46:50] qsv: is available on this system
[08:46:50] hb_init: starting libhb thread
[08:46:50] Starting work at: Tue May 14 08:46:50 2024
[08:46:50] 1 job(s) to process
[08:46:50] json job:
{
"Audio": {
"AudioList": [
{
"Bitrate": 128,
"DRC": 0,
"Encoder": "av_aac",
"Gain": 0,
"Mixdown": 4,
"NormalizeMixLevel": false,
"Samplerate": 0,
"Track": 0,
"DitherMethod": 0
}
],
"CopyMask": [
"copy:aac"
],
"FallbackEncoder": "av_aac"
},
"Destination": {
"ChapterList": [],
"ChapterMarkers": false,
"AlignAVStart": false,
"File": "E:\\Trash\\video1.mp4",
"Options": {
"IpodAtom": false,
"Optimize": false
},
"Mux": "av_mp4"
},
"Filters": {
"FilterList": [
{
"ID": 19,
"Settings": {
"crop-bottom": "0",
"crop-left": "0",
"crop-right": "0",
"crop-top": "0",
"height": "1080",
"width": "1920"
}
},
{
"ID": 10,
"Settings": {
"mode": "0"
}
}
]
},
"PAR": {
"Num": 1,
"Den": 1
},
"Metadata": {},
"SequenceID": 0,
"Source": {
"Angle": 1,
"Range": {
"Type": "chapter",
"Start": 1,
"End": 1
},
"Title": 1,
"Path": "E:\\\u8FC5\u96F7\u4E0B\u8F7D\\video1.mp4",
"HWDecode": 4
},
"Subtitle": {
"Search": {
"Burn": false,
"Default": false,
"Enable": false,
"Forced": false
},
"SubtitleList": []
},
"Video": {
"Encoder": "qsv_h264",
"Level": "auto",
"Bitrate": 1500,
"MultiPass": false,
"Turbo": false,
"ColorMatrixCode": 0,
"Options": "lowpower=0",
"Preset": "balanced",
"Profile": "auto",
"QSV": {
"Decode": false
},
"HardwareDecode": 0
}
}
[08:46:50] CPU: 12th Gen Intel(R) Core(TM) i5-1240P
[08:46:50] - Intel microarchitecture Alder Lake performance hybrid architecture
[08:46:50] - logical processor count: 16
[08:46:50] Intel Quick Sync Video support: yes, gpu list: 0
[08:46:50] Intel Quick Sync Video integrated adapter with index 0
[08:46:50] Impl mfx-gen library path: C:\WINDOWS\System32\DriverStore\FileRepository\iigd_dch.inf_amd64_21096a7de6ab2174\libmfx64-gen.dll
[08:46:50] - Intel Media SDK hardware: API 2.8 (minimum: 1.3)
[08:46:50] - Decode support: h264 hevc (8bit: yes, 10bit: yes) av1 (8bit: yes, 10bit: yes)
[08:46:50] - H.264 encoder: yes
[08:46:50] - preferred implementation: hardware (1) via D3D11
[08:46:50] - capabilities (hardware): lowpower breftype icq vsinfo chromalocinfo opt1 opt2+mbbrc+extbrc+trellis+repeatpps+ib_adapt+nmpslice
[08:46:50] - H.265 encoder: yes (8bit: yes, 10bit: yes)
[08:46:50] - preferred implementation: hardware (1) via D3D11
[08:46:50] - capabilities (hardware): lowpower bpyramid icq vsinfo masteringinfo cllinfo opt1
[08:46:50] - AV1 encoder: no
[08:46:50] hb_scan: path=E:\video1.mp4, title_index=1
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'E:\video1.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2mp41
encoder : ShanaEncoder
Duration: 02:25:08.91, start: 0.000000, bitrate: 6356 kb/s
Stream #0:0[0x1](und): Video: hevc (Main) (hev1 / 0x31766568), yuv420p(tv), 1920x1080 [SAR 1:1 DAR 16:9], 6087 kb/s, 59.94 fps, 59.94 tbr, 60k tbn (default)
Metadata:
handler_name : VideoHandler
vendor_id : [0][0][0][0]
Stream #0:1[0x2](und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 256 kb/s (default)
Metadata:
handler_name : SoundHandler
vendor_id : [0][0][0][0]
[08:46:50] scan: decoding previews for title 1
[AVHWDeviceContext @ 000001feaea11240] Cannot load nvcuda.dll
hwaccel: failed to create hwdevice
[AVHWDeviceContext @ 000001feaea11240] Could not dynamically load CUDA
[08:46:50] scan: audio 0x1: aac, rate=48000Hz, bitrate=256059 Unknown (AAC LC, 2.0 ch, 256 kbps)
[08:46:51] using container PAR 1:1
[08:46:51] scan: 10 previews, 1920x1080, 59.940 fps, autocrop = 0/0/0/0, aspect 16:9, PAR 1:1, color profile: 1-1-1, chroma location: left
[08:46:51] scan: supported video decoders: avcodec qsv
[08:46:51] libhb: scan thread found 1 valid title(s)
[08:46:51] Starting Task: Encoding Pass
[08:46:51] work: skipping crop/scale filter
[08:46:51] work: track 1, dithering not supported by codec
[08:46:51] job configuration:
[08:46:51] * source
[08:46:51] + E:\video1.mp4
[08:46:51] + title 1, chapter(s) 1 to 1
[08:46:51] + container: mov,mp4,m4a,3gp,3g2,mj2
[08:46:51] + data rate: 6356 kbps
[08:46:51] * destination
[08:46:51] + E:\Trash\video1.mp4
[08:46:51] + container: MPEG-4 (libavformat)
[08:46:51] * video track
[08:46:51] + decoder: hevc 8-bit (yuv420p)
[08:46:51] + bitrate 6087 kbps
[08:46:51] + filters
[08:46:51] + Framerate Shaper (mode=0)
[08:46:51] + frame rate: same as source (around 59.940 fps)
[08:46:51] + Format (format=nv12)
[08:46:51] + Output geometry
[08:46:51] + storage dimensions: 1920 x 1080
[08:46:51] + pixel aspect ratio: 1 : 1
[08:46:51] + display dimensions: 1920 x 1080
[08:46:51] + encoder: H.264 (Intel Media SDK)
[08:46:51] + preset: balanced
[08:46:51] + options: lowpower=0
[08:46:51] + profile: auto
[08:46:51] + level: auto
[08:46:51] + bitrate: 1500 kbps, pass: 0
[08:46:51] + color profile: 1-1-1
[08:46:51] + chroma location: left
[08:46:51] * audio track 1
[08:46:51] + decoder: Unknown (AAC LC, 2.0 ch, 256 kbps) (track 1, id 0x1)
[08:46:51] + bitrate: 256 kbps, samplerate: 48000 Hz
[08:46:51] + mixdown: Stereo
[08:46:51] + encoder: AAC (libavcodec)
[08:46:51] + bitrate: 128 kbps, samplerate: 48000 Hz
[08:46:51] sync: expecting 522012 video frames
[08:46:51] Unknown Header.BufferId=1347637059
[08:46:51] encqsvInit: using encode-only via system memory path
[08:46:51] encqsvInit: H.264/AVC High profile @ level 4.2
[08:46:51] encqsvInit: TargetUsage 4 AsyncDepth 6
[08:46:51] encqsvInit: GopRefDist 4 GopPicSize 120 NumRefFrame 3 IdrInterval 0
[08:46:51] encqsvInit: BFramesMax 3 BRefType pyramid
[08:46:51] encqsvInit: RateControlMethod VBR TargetKbps 2146 MaxKbps 3219 BufferSizeInKB 804 InitialDelayInKB 402 BRCParamMultiplier 1
[08:46:51] sync: first pts video is 0
[08:46:51] sync: Chapter 1 at frame 1 time 0
[08:46:51] sync: first pts audio 0x1 is 0
[08:46:51] qsv_enc_init: using 'hardware (1) via D3D11' implementation, API: 2.8
[08:54:39] sync: audio 0x1 time went backwards 1002 ms, dropped 47 frames. PTS 111323613
[09:44:57] sync: audio 0x1 time went backwards 1024 ms, dropped 48 frames. PTS 768412353
[09:46:12] reader: done. 1 scr changes
[09:46:13] work: average encoding speed for job is 146.550339 fps
[09:46:13] vfr: 522001 frames output, 0 dropped
[09:46:13] vfr: lost time: 0 (0 frames)
[09:46:13] vfr: gained time: 0 (0 frames) (0 not accounted for)
[09:46:13] aac-decoder done: 408325 frames, 0 decoder errors
[09:46:13] hevc-decoder done: 522001 frames, 0 decoder errors
[09:46:13] sync: got 522001 frames, 522012 expected
[09:46:13] sync: framerate min 59.940 fps, max 59.940 fps, avg 59.940 fps
[09:46:13] mux: track 0, 522001 frames, 2345766817 bytes, 2154.82 kbps, fifo 4096
[09:46:13] mux: track 1, 408231 frames, 139339209 bytes, 128.00 kbps, fifo 4096
[09:46:13] Finished work at: Tue May 14 09:46:13 2024
[09:46:14] libhb: work result = 0
# Job Completed!
# Starting Encode ...
[17:32:27] base preset: 20240406
[17:32:27] Remote Process started with Process ID: 14560 using port: 8037. Max Allowed Instances: 1
[17:32:27] Worker: Starting HandBrake Engine ...
[17:32:27] Worker: Parent Process Id 18400
[17:32:27] Worker: Starting Web Server on port 8037 ...
[17:32:27] Worker: Starting Listener: 1
[17:32:27] Worker: Server Started
[17:32:27] Worker: Disconnected worker monitoring enabled!
[17:32:27] Compile-time hardening features are enabled
Cannot load nvEncodeAPI64.dll
[17:32:27] vcn: not available on this system
[17:32:28] qsv: is available on this system
it: starting libhb thread
[17:32:28] Starting work at: Mon May 13 17:32:28 2024
[17:32:28] 1 job(s) to process
[17:32:28] json job:
{
"Audio": {
"AudioList": [
{
"Bitrate": 128,
"DRC": 0,
"Encoder": "av_aac",
"Gain": 0,
"Mixdown": 4,
"NormalizeMixLevel": false,
"Samplerate": 0,
"Track": 0,
"DitherMethod": 0
}
],
"CopyMask": [
"copy:aac"
],
"FallbackEncoder": "av_aac"
},
"Destination": {
"ChapterList": [],
"ChapterMarkers": false,
"AlignAVStart": false,
"File": "E:\\Trash\\video2.mp4",
"Options": {
"IpodAtom": false,
"Optimize": false
},
"Mux": "av_mp4"
},
"Filters": {
"FilterList": [
{
"ID": 19,
"Settings": {
"crop-bottom": "0",
"crop-left": "0",
"crop-right": "0",
"crop-top": "0",
"height": "1080",
"width": "1920"
}
},
{
"ID": 10,
"Settings": {
"mode": "0"
}
}
]
},
"PAR": {
"Num": 1,
"Den": 1
},
"Metadata": {},
"SequenceID": 0,
"Source": {
"Angle": 1,
"Range": {
"Type": "chapter",
"Start": 1,
"End": 1
},
"Title": 1,
"Path": "E:\\\video2.mp4",
"HWDecode": 4
},
"Subtitle": {
"Search": {
"Burn": false,
"Default": false,
"Enable": false,
"Forced": false
},
"SubtitleList": []
},
"Video": {
"Encoder": "qsv_h264",
"Level": "auto",
"Bitrate": 1500,
"MultiPass": false,
"Turbo": false,
"ColorMatrixCode": 0,
"Options": "lowpower=0",
"Preset": "balanced",
"Profile": "auto",
"QSV": {
"Decode": false
},
"HardwareDecode": 0
}
}
[17:32:28] CPU: 12th Gen Intel(R) Core(TM) i5-1240P
[17:32:28] - Intel microarchitecture Alder Lake performance hybrid architecture
[17:32:28] - logical processor count: 16
[17:32:28] Intel Quick Sync Video support: yes, gpu list: 0
[17:32:28] Intel Quick Sync Video integrated adapter with index 0
[17:32:28] Impl mfx-gen library path: C:\WINDOWS\System32\DriverStore\FileRepository\iigd_dch.inf_amd64_21096a7de6ab2174\libmfx64-gen.dll
[17:32:28] - Intel Media SDK hardware: API 2.8 (minimum: 1.3)
[17:32:28] - Decode support: h264 hevc (8bit: yes, 10bit: yes) av1 (8bit: yes, 10bit: yes)
[17:32:28] - H.264 encoder: yes
[17:32:28] - preferred implementation: hardware (1) via D3D11
[17:32:28] - capabilities (hardware): lowpower breftype icq vsinfo chromalocinfo opt1 opt2+mbbrc+extbrc+trellis+repeatpps+ib_adapt+nmpslice
[17:32:28] - H.265 encoder: yes (8bit: yes, 10bit: yes)
[17:32:28] - preferred implementation: hardware (1) via D3D11
[17:32:28] - capabilities (hardware): lowpower bpyramid icq vsinfo masteringinfo cllinfo opt1
[17:32:28] - AV1 encoder: no
[17:32:28] hb_scan: path=E:\video2.mp4, title_index=1
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'E:\video2.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf58.76.100
Duration: 02:28:13.95, start: 0.000000, bitrate: 5701 kb/s
Stream #0:0[0x1](und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv, bt709, progressive), 1920x1080 [SAR 1:1 DAR 16:9], 5563 kb/s, 29.97 fps, 29.97 tbr, 11988 tbn (default)
Metadata:
handler_name : VideoHandler
vendor_id : [0][0][0][0]
Stream #0:1[0x2](und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default)
Metadata:
handler_name : SoundHandler
vendor_id : [0][0][0][0]
[17:32:28] scan: decoding previews for title 1
hwaccel: failed to create hwdevice
[AVHWDeviceContext @ 0000024622384540] Cannot load nvcuda.dll
[AVHWDeviceContext @ 0000024622384540] Could not dynamically load CUDA
[17:32:28] scan: audio 0x1: aac, rate=48000Hz, bitrate=128221 Unknown (AAC LC, 2.0 ch, 128 kbps)
[17:32:28] using container PAR 1:1
[17:32:28] scan: 10 previews, 1920x1080, 29.970 fps, autocrop = 0/0/0/0, aspect 16:9, PAR 1:1, color profile: 1-1-1, chroma location: left
[17:32:28] scan: supported video decoders: avcodec qsv
[17:32:28] libhb: scan thread found 1 valid title(s)
[17:32:29] Starting Task: Encoding Pass
[17:32:29] work: skipping crop/scale filter
[17:32:29] work: track 1, dithering not supported by codec
[17:32:29] job configuration:
[17:32:29] * source
[17:32:29] + E:\video2.mp4
[17:32:29] + title 1, chapter(s) 1 to 1
[17:32:29] + container: mov,mp4,m4a,3gp,3g2,mj2
[17:32:29] + data rate: 5701 kbps
[17:32:29] * destination
[17:32:29] + E:\Trash\video2.mp4
[17:32:29] + container: MPEG-4 (libavformat)
[17:32:29] * video track
[17:32:29] + decoder: h264 8-bit (yuv420p)
[17:32:29] + bitrate 5563 kbps
[17:32:29] + filters
[17:32:29] + Framerate Shaper (mode=0)
[17:32:29] + frame rate: same as source (around 29.970 fps)
[17:32:29] + Format (format=nv12)
[17:32:29] + Output geometry
[17:32:29] + storage dimensions: 1920 x 1080
[17:32:29] + pixel aspect ratio: 1 : 1
[17:32:29] + display dimensions: 1920 x 1080
[17:32:29] + encoder: H.264 (Intel Media SDK)
[17:32:29] + preset: balanced
[17:32:29] + options: lowpower=0
[17:32:29] + profile: auto
[17:32:29] + level: auto
[17:32:29] + bitrate: 1500 kbps, pass: 0
[17:32:29] + color profile: 1-1-1
[17:32:29] + chroma location: left
[17:32:29] * audio track 1
[17:32:29] + decoder: Unknown (AAC LC, 2.0 ch, 128 kbps) (track 1, id 0x1)
[17:32:29] + bitrate: 128 kbps, samplerate: 48000 Hz
[17:32:29] + mixdown: Stereo
[17:32:29] + encoder: AAC (libavcodec)
[17:32:29] + bitrate: 128 kbps, samplerate: 48000 Hz
[17:32:29] sync: expecting 266552 video frames
[17:32:29] Unknown Header.BufferId=1347637059
[17:32:29] encqsvInit: using encode-only via system memory path
[17:32:29] encqsvInit: H.264/AVC High profile @ level 4.0
[17:32:29] encqsvInit: TargetUsage 4 AsyncDepth 6
[17:32:29] encqsvInit: GopRefDist 4 GopPicSize 60 NumRefFrame 3 IdrInterval 0
[17:32:29] encqsvInit: BFramesMax 3 BRefType pyramid
[17:32:29] encqsvInit: RateControlMethod VBR TargetKbps 1500 MaxKbps 2250 BufferSizeInKB 562 InitialDelayInKB 281 BRCParamMultiplier 1
[17:32:29] sync: first pts video is 0
[17:32:29] sync: Chapter 1 at frame 1 time 0
[17:32:29] sync: first pts audio 0x1 is 0
[17:32:29] qsv_enc_init: using 'hardware (1) via D3D11' implementation, API: 2.8
[17:58:59] reader: done. 1 scr changes
[17:58:59] work: average encoding speed for job is 167.584061 fps
[17:59:00] vfr: 266551 frames output, 0 dropped
[17:59:00] vfr: lost time: 0 (0 frames)
[17:59:00] vfr: gained time: 0 (0 frames) (0 not accounted for)
[17:59:00] aac-decoder done: 416904 frames, 0 decoder errors
[17:59:00] h264-decoder done: 266551 frames, 0 decoder errors
[17:59:00] sync: got 266551 frames, 266552 expected
[17:59:00] sync: framerate min 29.970 fps, max 29.970 fps, avg 29.970 fps
[17:59:00] mux: track 0, 266551 frames, 1707064900 bytes, 1535.48 kbps, fifo 2048
[17:59:00] mux: track 1, 416905 frames, 142237864 bytes, 127.94 kbps, fifo 4096
[17:59:00] Finished work at: Mon May 13 17:59:00 2024
[17:59:00] libhb: work result = 0
# Job Completed!