Frame skip/jitter is visually detected at ~5 skips per second when using version:
1:1.2.1-zhb-1ppa1~bionic1
nice HandBrakeCLI $RESARGS -s scan -F -N eng --subtitle-burned -2 -T --cfr -B 320,192 -q 23 -t $TITLENUM --gain=+5,+5 --drc=1.5,1.5 -a 1,1 -E ffac3,ffaac --mixdown 5point1,dpl2 --preset="HQ 1080p30 Surround" -i $INPUT -o $FILENAME
Frame skip/jitter is not visually detected when using version:
1.1.0+ds1-1ubuntu1
nice HandBrakeCLI $RESARGS -s scan -F -N eng --subtitle-burned -2 -T --cfr -B 320,192 -q 23 -t $TITLENUM --gain=+5,+5 --drc=1.5,1.5 -a 1,1 -E ffac3,ffaac --mixdown 5point1,dpl2 --preset=\"High Profile\" -i $INPUT -o $FILENAME "
I upgraded to try the new nvenc_264 option, but skip is observed with or without this option.
The other key difference is "High Profile" is gone, so I'm using "HQ 1080p30" as a suggested workalike profile.
I'm stuck on 1.1 at this point.
Is my command line coherent? I want 264 video with two audio streams (ac3-surround and aac-stereo). The input source is from makemkv/bluray.
Edit: according to mediainfo the source FPS is 23.976, the encoded video is at 30.000 FPS. ????
Would need before an after logs (pipe the console outpout strerr to a log file) to see what's actually going on.
Log with handbrake 1.1.0 working correctly (see above for 1.1.0 command line):
[11:19:32] hb_init: starting libhb thread
[11:19:32] thread 7f8f306d2700 started ("libhb")
HandBrake 1.1.0 (2018042400) - Linux x86_64 - https://handbrake.fr
4 CPUs detected
Opening Between_Worlds.mkv...
[11:19:32] CPU: Intel(R) Xeon(R) CPU W3550 @ 3.07GHz
[11:19:32] - logical processor count: 4
[11:19:32] hb_scan: path=Between_Worlds.mkv, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
disc.c:323: failed opening UDF image Between_Worlds.mkv
disc.c:424: error opening file BDMV/index.bdmv
disc.c:424: error opening file BDMV/BACKUP/index.bdmv
[11:19:32] bd: not a bd - trying as a stream/file instead
libdvdnav: Using dvdnav version 6.0.0
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
[11:19:32] dvd: not a dvd - trying as a stream/file instead
Input #0, matroska,webm, from 'Between_Worlds.mkv':
Metadata:
title : Between Worlds
encoder : libmakemkv v1.14.3 (1.3.5/1.4.7) x86_64-linux-gnu
creation_time : 2019-07-13T02:13:15.000000Z
Duration: 01:31:04.50, start: 0.000000, bitrate: 30777 kb/s
Chapter #0:0: start 0.000000, end 344.260583
Metadata:
title : Chapter 01
Chapter #0:1: start 344.260583, end 640.973667
Metadata:
title : Chapter 02
Chapter #0:2: start 640.973667, end 1101.350250
Metadata:
title : Chapter 03
Chapter #0:3: start 1101.350250, end 1373.455417
Metadata:
title : Chapter 04
Chapter #0:4: start 1373.455417, end 1640.889250
Metadata:
title : Chapter 05
Chapter #0:5: start 1640.889250, end 1951.991708
Metadata:
title : Chapter 06
Chapter #0:6: start 1951.991708, end 2259.006750
Metadata:
title : Chapter 07
Chapter #0:7: start 2259.006750, end 2758.380625
Metadata:
title : Chapter 08
Chapter #0:8: start 2758.380625, end 2876.498625
Metadata:
title : Chapter 09
Chapter #0:9: start 2876.498625, end 3333.079750
Metadata:
title : Chapter 10
Chapter #0:10: start 3333.079750, end 3606.519583
Metadata:
title : Chapter 11
Chapter #0:11: start 3606.519583, end 4009.630625
Metadata:
title : Chapter 12
Chapter #0:12: start 4009.630625, end 4256.710792
Metadata:
title : Chapter 13
Chapter #0:13: start 4256.710792, end 4604.057792
Metadata:
title : Chapter 14
Chapter #0:14: start 4604.057792, end 4968.964000
Metadata:
title : Chapter 15
Chapter #0:15: start 4968.964000, end 5464.500708
Metadata:
title : Chapter 16
Stream #0:0(eng): Video: h264 (High), yuv420p(progressive), 1920x1080 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc
Metadata:
BPS-eng : 25621201
DURATION-eng : 01:31:04.500708333
NUMBER_OF_FRAMES-eng: 131017
NUMBER_OF_BYTES-eng: 17500881776
SOURCE_ID-eng : 001011
_STATISTICS_WRITING_APP-eng: MakeMKV v1.14.3 linux(x64-release)
_STATISTICS_WRITING_DATE_UTC-eng: 2019-07-13 02:13:15
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
Stream #0:1(eng): Audio: dts (DTS-HD MA), 48000 Hz, 5.1(side), s32p (24 bit) (default)
Metadata:
title : Surround 5.1
BPS-eng : 3580275
DURATION-eng : 01:31:04.501333333
NUMBER_OF_FRAMES-eng: 512297
NUMBER_OF_BYTES-eng: 2445552088
SOURCE_ID-eng : 001100
_STATISTICS_WRITING_APP-eng: MakeMKV v1.14.3 linux(x64-release)
_STATISTICS_WRITING_DATE_UTC-eng: 2019-07-13 02:13:15
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
Stream #0:2(eng): Audio: dts (DTS), 48000 Hz, 5.1(side), fltp, 1536 kb/s
Metadata:
title : Surround 5.1
BPS-eng : 1509000
DURATION-eng : 01:31:04.501333333
NUMBER_OF_FRAMES-eng: 512297
NUMBER_OF_BYTES-eng: 1030741564
SOURCE_ID-eng : 001100
_STATISTICS_WRITING_APP-eng: MakeMKV v1.14.3 linux(x64-release)
_STATISTICS_WRITING_DATE_UTC-eng: 2019-07-13 02:13:15
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
Stream #0:3(eng): Subtitle: hdmv_pgs_subtitle
Metadata:
BPS-eng : 35770
DURATION-eng : 01:28:51.513687500
NUMBER_OF_FRAMES-eng: 2170
NUMBER_OF_BYTES-eng: 23838873
SOURCE_ID-eng : 001200
_STATISTICS_WRITING_APP-eng: MakeMKV v1.14.3 linux(x64-release)
_STATISTICS_WRITING_DATE_UTC-eng: 2019-07-13 02:13:15
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
Stream #0:4(spa): Subtitle: hdmv_pgs_subtitle
Metadata:
BPS-eng : 31504
DURATION-eng : 01:19:45.843562500
NUMBER_OF_FRAMES-eng: 1780
NUMBER_OF_BYTES-eng: 18847071
SOURCE_ID-eng : 001201
_STATISTICS_WRITING_APP-eng: MakeMKV v1.14.3 linux(x64-release)
_STATISTICS_WRITING_DATE_UTC-eng: 2019-07-13 02:13:15
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
[11:19:32] scan: decoding previews for title 1
[11:19:32] scan: audio 0x1: dca, rate=48000Hz, bitrate=1 English (DTS-HD MA) (5.1 ch)
[11:19:32] scan: audio 0x2: dca, rate=48000Hz, bitrate=1536000 English (DTS) (5.1 ch)
Scanning title 1 of 1, preview 10, 100.00 %[11:19:35] scan: 10 previews, 1920x1080, 23.976 fps, autocrop = 22/22/0/0, aspect 16:9, PAR 1:1
[11:19:35] libhb: scan thread found 1 valid title(s)
Encode done!
HandBrake has exited.
Log with handbrake 1.2.0 working incorrectly, encoding 23.976 source at 30.000 FPS (frameskips observed). See above for 1.2.1 command line. This run was aborted after a few minutes since output is unusable
[14:33:01] hb_init: starting libhb thread
[14:33:01] thread 7f27cf2b0700 started ("libhb")
HandBrake 1.2.1 (2019021900) - Linux x86_64 - https://handbrake.fr
4 CPUs detected
Opening Between_Worlds.mkv...
[14:33:01] CPU: Intel(R) Xeon(R) CPU W3550 @ 3.07GHz
[14:33:01] - logical processor count: 4
[14:33:01] hb_scan: path=Between_Worlds.mkv, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
disc.c:323: failed opening UDF image Between_Worlds.mkv
disc.c:424: error opening file BDMV/index.bdmv
disc.c:424: error opening file BDMV/BACKUP/index.bdmv
[14:33:01] bd: not a bd - trying as a stream/file instead
libdvdnav: Using dvdnav version 6.0.0
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
[14:33:01] dvd: not a dvd - trying as a stream/file instead
Input #0, matroska,webm, from 'Between_Worlds.mkv':
Metadata:
title : Between Worlds
encoder : libmakemkv v1.14.3 (1.3.5/1.4.7) x86_64-linux-gnu
creation_time : 2019-07-13T02:13:15.000000Z
Duration: 01:31:04.50, start: 0.000000, bitrate: 30777 kb/s
Chapter #0:0: start 0.000000, end 344.260583
Metadata:
title : Chapter 01
Chapter #0:1: start 344.260583, end 640.973667
Metadata:
title : Chapter 02
Chapter #0:2: start 640.973667, end 1101.350250
Metadata:
title : Chapter 03
Chapter #0:3: start 1101.350250, end 1373.455417
Metadata:
title : Chapter 04
Chapter #0:4: start 1373.455417, end 1640.889250
Metadata:
title : Chapter 05
Chapter #0:5: start 1640.889250, end 1951.991708
Metadata:
title : Chapter 06
Chapter #0:6: start 1951.991708, end 2259.006750
Metadata:
title : Chapter 07
Chapter #0:7: start 2259.006750, end 2758.380625
Metadata:
title : Chapter 08
Chapter #0:8: start 2758.380625, end 2876.498625
Metadata:
title : Chapter 09
Chapter #0:9: start 2876.498625, end 3333.079750
Metadata:
title : Chapter 10
Chapter #0:10: start 3333.079750, end 3606.519583
Metadata:
title : Chapter 11
Chapter #0:11: start 3606.519583, end 4009.630625
Metadata:
title : Chapter 12
Chapter #0:12: start 4009.630625, end 4256.710792
Metadata:
title : Chapter 13
Chapter #0:13: start 4256.710792, end 4604.057792
Metadata:
title : Chapter 14
Chapter #0:14: start 4604.057792, end 4968.964000
Metadata:
title : Chapter 15
Chapter #0:15: start 4968.964000, end 5464.500708
Metadata:
title : Chapter 16
Stream #0:0(eng): Video: h264 (High), yuv420p(progressive), 1920x1080 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc
Metadata:
BPS-eng : 25621201
DURATION-eng : 01:31:04.500708333
NUMBER_OF_FRAMES-eng: 131017
NUMBER_OF_BYTES-eng: 17500881776
SOURCE_ID-eng : 001011
_STATISTICS_WRITING_APP-eng: MakeMKV v1.14.3 linux(x64-release)
_STATISTICS_WRITING_DATE_UTC-eng: 2019-07-13 02:13:15
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
Stream #0:1(eng): Audio: dts (DTS-HD MA), 48000 Hz, 5.1(side), s32p (24 bit) (default)
Metadata:
title : Surround 5.1
BPS-eng : 3580275
DURATION-eng : 01:31:04.501333333
NUMBER_OF_FRAMES-eng: 512297
NUMBER_OF_BYTES-eng: 2445552088
SOURCE_ID-eng : 001100
_STATISTICS_WRITING_APP-eng: MakeMKV v1.14.3 linux(x64-release)
_STATISTICS_WRITING_DATE_UTC-eng: 2019-07-13 02:13:15
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
Stream #0:2(eng): Audio: dts (DTS), 48000 Hz, 5.1(side), fltp, 1536 kb/s
Metadata:
title : Surround 5.1
BPS-eng : 1509000
DURATION-eng : 01:31:04.501333333
NUMBER_OF_FRAMES-eng: 512297
NUMBER_OF_BYTES-eng: 1030741564
SOURCE_ID-eng : 001100
_STATISTICS_WRITING_APP-eng: MakeMKV v1.14.3 linux(x64-release)
_STATISTICS_WRITING_DATE_UTC-eng: 2019-07-13 02:13:15
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
Stream #0:3(eng): Subtitle: hdmv_pgs_subtitle
Metadata:
BPS-eng : 35770
DURATION-eng : 01:28:51.513687500
NUMBER_OF_FRAMES-eng: 2170
NUMBER_OF_BYTES-eng: 23838873
SOURCE_ID-eng : 001200
_STATISTICS_WRITING_APP-eng: MakeMKV v1.14.3 linux(x64-release)
_STATISTICS_WRITING_DATE_UTC-eng: 2019-07-13 02:13:15
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
Stream #0:4(spa): Subtitle: hdmv_pgs_subtitle
Metadata:
BPS-eng : 31504
DURATION-eng : 01:19:45.843562500
NUMBER_OF_FRAMES-eng: 1780
NUMBER_OF_BYTES-eng: 18847071
SOURCE_ID-eng : 001201
_STATISTICS_WRITING_APP-eng: MakeMKV v1.14.3 linux(x64-release)
_STATISTICS_WRITING_DATE_UTC-eng: 2019-07-13 02:13:15
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
[14:33:01] scan: decoding previews for title 1
[14:33:01] scan: audio 0x1: dca, rate=48000Hz, bitrate=1 English (DTS-HD MA) (5.1 ch)
[14:33:01] scan: audio 0x2: dca, rate=48000Hz, bitrate=1536000 English (DTS) (5.1 ch)
Scanning title 1 of 1, preview 10, 100.00 %[14:33:02] scan: 10 previews, 1920x1080, 23.976 fps, autocrop = 22/22/0/0, aspect 16:9, PAR 1:1
[14:33:02] libhb: scan thread found 1 valid title(s)
HandBrake has exited.
Thanks for looking - I'm really hoping I have some bad command line syntax, 1.2.1 with nvenc seemed to run much faster!! thanks!
HandBrake 1.1.0 mediainfo of output:
Frame rate : 23.976 (24000/1001) FPS
HandeBrake 1.2.1 mediainfo of output:
Frame rate : 30.000 FPS
The only difference is the version of HandBrake and the profile name.
The preset you selected is 30fps peak. You then override the framerate mode with --cfr, so that becomes 30fps constant.
Either drop the --cfr or explicitly set the framerate.
If you really want CFR, change the frame rate to Same As Source.
Awesome, thanks guys, so my old command line somehow matched the source. What exactly would I change to continue to match the source with v1.2.1?
fwiw, my old command line resulted in a variable frame rate according to mediainfo (--cfr was ignored)?
Old 1.1.0 result:
Frame rate mode : Variable
Frame rate : 23.976 (24000/1001) FPS
Minimum frame rate : 23.974 FPS
Maximum frame rate : 23.981 FPS
I know my command line isn't perfect, it's the results of months of trial and error -- mostly error :)
If your output container is MP4, there us technically only VFR mode, even though HandBrake ensures CFR. MediaInfo also is not always correct. :smile_cat:
I know this isn't a bug anymore, but just to be sure, I can't find a replacement command line for 1.2.1 that matches the filesize and perceived quality of 1.1.0.
In the following image, from left to right:
First is "fast720p30" with no -quality option. (30% larger file)
Then fast720p30 with -q23 (same filesize)
Then my original 1.1.0 version of handbrake command line above

Yah, it's subjective.