After an encode of a movie the video becomes laggy the first minutes and seems to correct itself around 3 minutes and 50 seconds.
Is there some sort of a fix for that/any preset to prevent that?
Details: DVD (ISO file), NTSC.
Video becomes laggy.
Forum rules
An Activity Log is required for support requests. Please read How-to get an activity log? for details on how and why this should be provided.
An Activity Log is required for support requests. Please read How-to get an activity log? for details on how and why this should be provided.
-
- Veteran User
- Posts: 4840
- Joined: Wed May 04, 2011 11:06 pm
Re: Video becomes laggy.
Could you please post your HB logs, instructions can be found here:
https://handbrake.fr/docs/en/latest/hel ... y-log.html
https://handbrake.fr/docs/en/latest/hel ... y-log.html
-
- Posts: 15
- Joined: Sat Jul 16, 2022 9:34 am
Re: Video becomes laggy.
Code: Select all
HandBrake 1.6.1 (2023012300)
OS: Microsoft Windows NT 10.0.19045.0
CPU: AMD FX(tm)-8350 Eight-Core Processor
Ram: 16281 MB,
GPU Information:
NVIDIA GeForce GTX 1650 - 31.0.15.3598
Screen: 1920x1080
Temp Dir: C:\Users\AppData\Local\Temp\
Install Dir: C:\Program Files\HandBrake\
Data Dir: C:\Users\AppData\Roaming\HandBrake
-------------------------------------------
# Starting Encode ...
[20:23:57] base preset: Fast 1080p30 (Modified)
[20:23:57] Remote Process started with Process ID: 1440 using port: 8037. Max Allowed Instances: 1
[20:23:57] Worker: Starting HandBrake Engine ...
[20:23:57] Worker: Starting Web Server on port 8037 ...
[20:23:58] Worker: Disconnected worker monitoring enabled!
[20:23:58] Compile-time hardening features are enabled
[20:23:58] qsv: not available on this system
[20:23:58] vcn: not available on this system
[20:23:58] nvenc: version 12.1 is available
[20:23:58] nvdec: is available
[20:23:58] hb_init: starting libhb thread
[20:23:58] Starting work at: Fri Jun 09 20:23:58 2023
[20:23:58] 1 job(s) to process
[20:23:58] json job:
{
"Audio": {
"AudioList": [
{
"DRC": 0,
"Encoder": "copy:ac3",
"Gain": 0,
"Mixdown": -1,
"NormalizeMixLevel": false,
"Samplerate": 0,
"Name": "Dolby Digital 2.0",
"Track": 0,
"DitherMethod": 0
},
{
"DRC": 0,
"Encoder": "copy:ac3",
"Gain": 0,
"Mixdown": -1,
"NormalizeMixLevel": false,
"Samplerate": 0,
"Name": "Dolby Digital 2.0",
"Track": 1,
"DitherMethod": 0
}
],
"CopyMask": [
"copy: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"
}
],
"ChapterMarkers": true,
"AlignAVStart": false,
"File": "C:\\Users\\Desktop\\Weekend At Bernie\u0027s.mkv",
"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": 14,
"Settings": {
"crop-bottom": "0",
"crop-left": "0",
"crop-right": "0",
"crop-top": "0",
"height": "406",
"width": "720"
}
},
{
"ID": 7,
"Settings": {
"mode": "1"
}
}
]
},
"PAR": {
"Num": 1,
"Den": 1
},
"Metadata": {},
"SequenceID": 0,
"Source": {
"Angle": 1,
"Range": {
"Type": "chapter",
"Start": 1,
"End": 16
},
"Title": 1,
"Path": "G:\\VIDEO_TS"
},
"Subtitle": {
"Search": {
"Burn": false,
"Default": true,
"Enable": true,
"Forced": false
},
"SubtitleList": [
{
"Burn": false,
"Default": false,
"Forced": false,
"ID": 1,
"Offset": 0,
"Track": 0
},
{
"Burn": false,
"Default": false,
"Forced": false,
"ID": 2,
"Offset": 0,
"Track": 1
},
{
"Burn": false,
"Default": false,
"Forced": false,
"ID": 3,
"Offset": 0,
"Track": 2
},
{
"Burn": false,
"Default": false,
"Forced": false,
"ID": 4,
"Offset": 0,
"Track": 3,
"Name": "Closed Caption"
}
]
},
"Video": {
"Encoder": "nvenc_h264",
"Level": "auto",
"TwoPass": false,
"Turbo": false,
"ColorMatrixCode": 0,
"Options": "",
"Preset": "medium",
"Profile": "auto",
"Quality": 12,
"QSV": {
"Decode": false
},
"HardwareDecode": 4
}
}
[20:23:58] CPU:
[20:23:58] - logical processor count: 8
[20:23:58] Intel Quick Sync Video support: no
[20:23:58] hb_scan: path=G:\VIDEO_TS, title_index=1
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
[20:23:58] bd: not a bd - trying as a stream/file instead
libdvdread: Encrypted DVD support unavailable.
libdvdread: Could not open input:
libdvdread: Can't open G:\VIDEO_TS for reading
libdvdread: Device G:\VIDEO_TS inaccessible, CSS authentication not available.
libdvdlibdvdnav: Unable to open device file G:\VIDEO_TS.
nav: vm: dvd_read_name failed
libdvdnav: DVD disk reports itself with Region mask 0x00000000. Regions: 01 02 03 04 05 06 07 08
libdvdread: Encrypted DVD support unavailable.
libdvdread: Could not open input:
libdvdread: Can't open G:\VIDEO_TS for reading
libdvdread: Device G:\VIDEO_TS inaccessible, CSS authentication not available.
[20:23:58] scan: DVD has 8 title(s)
[20:23:58] scan: scanning title 1
[20:23:58] scan: duration is 01:38:17 (5897500 ms)
[20:23:58] pgc_id: 1, pgn: 1: pgc: 000001a0ccad1920
[20:23:58] scan: checking audio 1
[20:23:58] scan: id=0x80bd, lang=English (AC3), 3cc=eng ext=0
[20:23:58] scan: checking audio 2
[20:23:58] scan: id=0x81bd, lang=espaÏol (AC3), 3cc=spa ext=0
[20:23:58] scan: checking subtitle 1
[20:23:58] scan: id=0x20bd, lang=English (Wide Screen) [VOBSUB], 3cc=eng ext=0
[20:23:58] scan: checking subtitle 2
[20:23:58] scan: id=0x21bd, lang=espaÏol (Wide Screen) [VOBSUB], 3cc=spa ext=0
[20:23:58] scan: checking subtitle 3
[20:23:58] scan: id=0x22bd, lang=Francais (Wide Screen) [VOBSUB], 3cc=fra ext=0
[20:23:58] scan: title 1 has 16 chapters
[20:23:58] scan: chap 1, 226166 ms
[20:23:58] scan: chap 2, 145000 ms
[20:23:58] scan: chap 3, 338834 ms
[20:23:58] scan: chap 4, 376500 ms
[20:23:58] scan: chap 5, 235000 ms
[20:23:58] scan: chap 6, 362500 ms
[20:23:58] scan: chap 7, 672166 ms
[20:23:58] scan: chap 8, 350333 ms
[20:23:58] scan: chap 9, 310233 ms
[20:23:58] scan: chap 10, 273900 ms
[20:23:58] scan: chap 11, 381500 ms
[20:23:58] scan: chap 12, 714000 ms
[20:23:58] scan: chap 13, 254333 ms
[20:23:58] scan: chap 14, 497333 ms
[20:23:58] scan: chap 15, 416667 ms
[20:23:58] scan: chap 16, 343033 ms
[20:23:58] scan: aspect = 16:9
[20:23:58] scan: decoding previews for title 1
libdvdnav: DVD disk reports itself with Region mask 0x00000000. Regions: 01 02 03 04 05 06 07 08
[20:23:58] scan: title angle(s) 1
[20:23:58] scan: audio 0x80bd: ac3, rate=48000Hz, bitrate=192000 English (AC3) (2.0 ch) (Dolby Surround) (192 kbps)
[20:23:58] scan: audio 0x81bd: ac3, rate=48000Hz, bitrate=192000 espaÏol (AC3) (2.0 ch) (Dolby Surround) (192 kbps)
[20:23:58] scan: 10 previews, 720x480, 23.976 fps, autocrop = 0/8/0/0, aspect 16:9, PAR 32:27, color profile: 6-1-6, chroma location: left
[20:23:58] scan: supported video decoders: avcodec nvdec
[20:23:58] libhb: scan thread found 1 valid title(s)
[20:23:58] Skipping subtitle scan. No suitable subtitle tracks.
[20:23:58] Starting Task: Encoding Pass
[20:23:58] job configuration:
[20:23:58] * source
[20:23:58] + G:\VIDEO_TS
[20:23:58] + title 1, chapter(s) 1 to 16
[20:23:58] * destination
[20:23:58] + C:\Users\Andreas\Desktop\Weekend At Bernie's.mkv
[20:23:58] + container: Matroska (libavformat)
[20:23:58] + chapter markers
[20:23:58] * video track
[20:23:58] + decoder: mpeg2video 8-bit (yuv420p)
[20:23:58] + bitrate 200 kbps
[20:23:58] + filters
[20:23:58] + 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:23:58] + Decomb (mode=39)
[20:23:58] + Framerate Shaper (mode=1)
[20:23:58] + frame rate: 23.976 fps -> constant 23.976 fps
[20:23:58] + Crop and Scale (width=720:height=406:crop-top=0:crop-bottom=0:crop-left=0:crop-right=0)
[20:23:58] + source: 720 * 480, crop (0/0/0/0): 720 * 480, scale: 720 * 406
[20:23:58] + Output geometry
[20:23:58] + storage dimensions: 720 x 406
[20:23:58] + pixel aspect ratio: 1 : 1
[20:23:58] + display dimensions: 720 x 406
[20:23:58] + encoder: H.264 (NVEnc)
[20:23:58] + preset: medium
[20:23:58] + profile: auto
[20:23:58] + level: auto
[20:23:58] + quality: 12.00 (CQ)
[20:23:58] + color profile: 6-1-6
[20:23:58] + chroma location: left
[20:23:58] * subtitle track 1, English (Wide Screen) [VOBSUB] (track 0, id 0x20bd, Picture) -> Passthrough
[20:23:58] * subtitle track 2, espaÏol (Wide Screen) [VOBSUB] (track 1, id 0x21bd, Picture) -> Passthrough
[20:23:58] * subtitle track 3, Francais (Wide Screen) [VOBSUB] (track 2, id 0x22bd, Picture) -> Passthrough
[20:23:58] * subtitle track 4, English, Closed Caption [CC608] (track 3, id 0xfe000000, Text) -> Passthrough
[20:23:58] + name: Closed Caption
[20:23:58] * audio track 1
[20:23:58] + name: Dolby Digital 2.0
[20:23:58] + decoder: English (AC3) (2.0 ch) (Dolby Surround) (192 kbps) (track 1, id 0x80bd)
[20:23:58] + bitrate: 192 kbps, samplerate: 48000 Hz
[20:23:58] + AC3 Passthru
[20:23:58] * audio track 2
[20:23:58] + name: Dolby Digital 2.0
[20:23:58] + decoder: espaÏol (AC3) (2.0 ch) (Dolby Surround) (192 kbps) (track 2, id 0x81bd)
[20:23:58] + bitrate: 192 kbps, samplerate: 48000 Hz
[20:23:58] + AC3 Passthru
libdvdread: Encrypted DVD support unavailable.
libdvdread: Could not open input:
libdvdread: Can't open G:\VIDEO_TS for reading
libdvdread: Device G:\VIDEO_TS inaccessible, CSS authentication not available.
libdvdlibdvdnav: Unable to open device file G:\VIDEO_TS.
nav: vm: dvd_read_name failed
libdvdnav: DVD disk reports itself with Region mask 0x00000000. Regions: 01 02 03 04 05 06 07 08
libdvdread: Encrypted DVD support unavailable.
libdvdread: Could not open input:
libdvdread: Can't open G:\VIDEO_TS for reading
libdvdread: Device G:\VIDEO_TS inaccessible, CSS authentication not available.
libdvdnav: DVD disk reports itself with Region mask 0x00000000. Regions: 01 02 03 04 05 06 07 08
[20:23:58] sync: expecting 141398 video frames
[20:23:58] encavcodecInit: H.264 (Nvidia NVENC)
[20:23:58] encavcodec: encoding at rc=vbr, multipass=fullres, 12.00
[20:23:58] encavcodec: encoding with stored aspect 1/1
[20:23:59] sync: first pts video is 0
[20:23:59] sync: "Chapter 1" (1) at frame 1 time 0
[20:23:59] sync: first pts audio 0x80bd is 0
[20:23:59] sync: first pts audio 0x81bd is 0
[20:23:59] sync: first pts subtitle 0xfe000000 is 51051
[20:24:00] sync: first pts subtitle 0x20bd is 2258256
[20:24:00] sync: first pts subtitle 0x21bd is 2258256
[20:24:00] sync: first pts subtitle 0x22bd is 2258256
[20:24:14] sync: "Chapter 2" (2) at frame 6786 time 20376105
[20:24:14] 226.442886s: Video -> Film
[20:24:21] sync: "Chapter 3" (3) at frame 10268 time 33446663
[20:24:36] 710.609863s: Film -> Video
[20:24:36] sync: "Chapter 4" (4) at frame 18399 time 63964651
[20:24:36] 710.760071s: Video -> Film
[20:24:51] sync: "Chapter 5" (5) at frame 27437 time 97891044
[20:24:53] 1117.516357s: Film -> Video
[20:24:53] 1117.666626s: Video -> Film
[20:25:01] sync: "Chapter 6" (6) at frame 33078 time 119062195
# Encode Paused
# Encode Resumed
[20:26:27] 1636.534912s: Film -> Video
[20:26:27] 1636.685181s: Video -> Film
[20:26:29] sync: "Chapter 7" (7) at frame 41779 time 151719821
[20:26:47] 2070.635254s: Film -> Video
[20:26:47] 2070.785400s: Video -> Film
[20:27:00] sync: "Chapter 8" (8) at frame 57912 time 212275316
[20:27:08] 2540.938232s: Film -> Video
[20:27:08] 2541.088623s: Video -> Film
[20:27:15] sync: "Chapter 9" (9) at frame 66321 time 243836847
[20:27:19] 2801.365234s: Film -> Video
[20:27:19] 2801.515381s: Video -> Film
[20:27:28] 3019.750000s: Film -> Video
[20:27:28] sync: "Chapter 10" (10) at frame 73766 time 271778260
# Encode Paused
# Encode Resumed
[20:28:59] 3239.419678s: Video -> Film
[20:29:01] sync: "Chapter 11" (11) at frame 81658 time 296461419
[20:29:17] 3675.205078s: Film -> Video
[20:29:17] 3675.354980s: Video -> Film
[20:29:17] sync: "Chapter 12" (12) at frame 90815 time 330830755
[20:29:35] 4062.592041s: Film -> Video
[20:29:35] 4062.741943s: Video -> Film
# Encode Paused
# Encode Resumed
[20:30:52] sync: "Chapter 13" (13) at frame 107952 time 395155016
[20:30:55] 4456.318359s: Film -> Video
[20:30:55] 4456.468750s: Video -> Film
[20:31:03] sync: "Chapter 14" (14) at frame 114057 time 418067907
[20:31:15] 4907.603027s: Film -> Video
[20:31:15] 4907.752930s: Video -> Film
# Encode Paused
# Encode Resumed
[20:32:39] sync: "Chapter 15" (15) at frame 125994 time 462872668
[20:32:46] 5295.323242s: Film -> Video
[20:32:46] 5295.473633s: Video -> Film
[20:32:55] 5512.373535s: Film -> Video
[20:32:55] 5512.523926s: Video -> Film
[20:32:57] sync: "Chapter 16" (16) at frame 135996 time 500410170
[20:33:11] reader: done. 2 scr changes
[20:33:12] work: average encoding speed for job is 541.225220 fps
[20:33:12] comb detect: heavy 5108 | light 2377 | uncombed 136741 | total 144226
[20:33:12] decomb: deinterlaced 5108 | blended 2377 | unfiltered 136741 | total 144226
[20:33:12] vfr: 141541 frames output, 2685 dropped and 0 duped for CFR/PFR
[20:33:12] vfr: lost time: 0 (0 frames)
[20:33:12] vfr: gained time: 0 (0 frames) (0 not accounted for)
[20:33:12] ac3-decoder done: 184480 frames, 0 decoder errors
[20:33:12] ac3-decoder done: 184480 frames, 0 decoder errors
[20:33:12] mpeg2video-decoder done: 144226 frames, 0 decoder errors
[20:33:12] sync: got 144226 frames, 141398 expected
[20:33:12] sync: framerate min 23.976 fps, max 29.970 fps, avg 24.431 fps
[20:33:12] mux: track 0, 141541 frames, 4200429501 bytes, 5692.14 kbps, fifo 1024
[20:33:12] mux: track 1, 184480 frames, 141680640 bytes, 192.00 kbps, fifo 1024
[20:33:12] mux: track 2, 184480 frames, 141680640 bytes, 192.00 kbps, fifo 1024
[20:33:12] mux: track 3, 1379 frames, 4559016 bytes, 6.18 kbps, fifo 16
[20:33:12] mux: track 4, 1382 frames, 4441000 bytes, 6.02 kbps, fifo 16
[20:33:12] mux: track 5, 1382 frames, 4454148 bytes, 6.04 kbps, fifo 16
[20:33:12] mux: track 6, 2305 frames, 199463 bytes, 0.27 kbps, fifo 16
[20:33:12] Finished work at: Fri Jun 09 20:33:12 2023
[20:33:12] libhb: work result = 0
# Job Completed!
Last edited by Anonymous on Fri Jun 09, 2023 9:59 pm, edited 1 time in total.
Reason: [code]Log goes here[/code]
Reason: [code]Log goes here[/code]
Re: Video becomes laggy.
What do you mean by "laggy"?
Is the audio out of sync with the video?
Is the video framerate low?
Is the audio out of sync with the video?
Is the video framerate low?
-
- Posts: 15
- Joined: Sat Jul 16, 2022 9:34 am
Re: Video becomes laggy.
Most of it is technically fine. But the best word I can come up with is that the picture somewhat stutters.
If I watch directly from the ISO file the picture goes smooth. Like when people walk and the camera tilts or pans smoothly. But if I look at the encoded file from the same spot, it stutters.
If I watch directly from the ISO file the picture goes smooth. Like when people walk and the camera tilts or pans smoothly. But if I look at the encoded file from the same spot, it stutters.
Re: Video becomes laggy.
Same as source constant framerate does not account for frames that may be doubled by deinterlace.
That combination will cause some "stutter" whenever there's interlacing in parts of the video.
Depending on the playback environment, you want to use same as source with variable framerate instead, or manually forcing a higher frame rate of e.g. 59.94 fps to ensure no frames get dropped.
Code: Select all
[20:23:58] + 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:23:58] + Decomb (mode=39)
[20:23:58] + Framerate Shaper (mode=1)
[20:23:58] + frame rate: 23.976 fps -> constant 23.976 fps
Code: Select all
[20:33:12] comb detect: heavy 5108 | light 2377 | uncombed 136741 | total 144226
[20:33:12] decomb: deinterlaced 5108 | blended 2377 | unfiltered 136741 | total 144226
[20:33:12] vfr: 141541 frames output, 2685 dropped and 0 duped for CFR/PFR <-- dropped frames to maintain target frame rate
-
- Posts: 15
- Joined: Sat Jul 16, 2022 9:34 am
Re: Video becomes laggy.
I re-encoded it with "Variable Framerate" and it now goes smooth. Thanks, man.