Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

constant framerate setting doesn't work at 23.976/59.94fps mp4 #3183

Closed
tangh opened this issue Oct 13, 2020 · 2 comments
Closed

constant framerate setting doesn't work at 23.976/59.94fps mp4 #3183

tangh opened this issue Oct 13, 2020 · 2 comments

Comments

@tangh
Copy link

tangh commented Oct 13, 2020

Problem description:

When setting framerate to 23.976 or 59.94, (in constant framerate, mp4/m4v), it results in variable framerate.

HandBrake version (e.g., 1.3.0):

Handbrake version: 1.3.3 (2020061300)

Operating system and version (e.g., Ubuntu 19.10, macOS 10.15 Catalina, Windows 10 1909):

Same result in macOS 10.15.7 Catalina and Windows 10 1909

Error message text and/or screenshot:

In MediaInfo:

Frame rate mode: Variable
Frame rate: 59.940 (60000/1001) FPS
Minimum frame rate: 59.920 FPS
Maximum frame rate: 59.960 FPS
Frame rate mode: Variable
Frame rate: 23.976 (24000/1001) FPS
Minimum frame rate: 23.974 FPS
Maximum frame rate: 23.981 FPS

Seems is not a MediaInfo issue, in Premiere or other software it also shows variable frame rate. And no matter of what source video frame rate or codec, as long as set frame rate to constant 23.976 or 59.94 mp4, it gives variable frame rate result (like above). Others (29.97/30/60 ... or mkv with all frame rate) works as expected.

HandBrake Activity Log:

An Activity Log is required for support. Please read https://handbrake.fr/docs/en/latest/help/activity-log.html for more information.

[01:03:41] macgui: Failed to create bookmark: Error Domain=NSCocoaErrorDomain Code=256 "Could not open() the item" UserInfo={NSURL=file:///Users/tang/Library/Containers/fr.handbrake.HandBrake/Data/Movies/, NSDebugDescription=Could not open() the item}
[01:03:41] macgui: Failed to create bookmark: Error Domain=NSCocoaErrorDomain Code=256 "Could not open() the item" UserInfo={NSURL=file:///Users/tang/Library/Containers/fr.handbrake.HandBrake/Data/Movies/, NSDebugDescription=Could not open() the item}
[01:03:41] macgui: QueueCore scanning specifically for title: 1
[01:03:41] CPU: Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
[01:03:41]  - Intel microarchitecture Kaby Lake
[01:03:41]  - logical processor count: 12
[01:03:41] hb_scan: path=/Volumes/Segate Slim Drive/1010.mov, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
disc.c:323: failed opening UDF image /Volumes/Segate Slim Drive/1010.mov
disc.c:424: error opening file BDMV/index.bdmv
disc.c:424: error opening file BDMV/BACKUP/index.bdmv
bluray.c:2585: nav_get_title_list(/Volumes/Segate Slim Drive/1010.mov/) failed
[01:03:41] 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
[01:03:41] dvd: not a dvd - trying as a stream/file instead
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/Volumes/Segate Slim Drive/1010.mov':
  Metadata:
    major_brand     : qt  
    minor_version   : 0
    compatible_brands: qt  
    creation_time   : 2020-10-10T15:26:30.000000Z
    com.apple.quicktime.description: R67
    com.apple.quicktime.author: Tang
    com.apple.quicktime.displayname: R67
    com.apple.quicktime.title: R67
  Duration: 00:40:19.55, start: 0.000000, bitrate: 1182699 kb/s
    Chapter #0:0: start 0.000000, end 159.776283
    Metadata:
      title           : Introductions
    Chapter #0:1: start 159.776283, end 233.549983
    Metadata:
      title           : Getting Start
    Chapter #0:2: start 233.549983, end 576.058817
    Metadata:
      title           : C1
    Chapter #0:3: start 576.058817, end 737.503433
    Metadata:
      title           : C2
    Chapter #0:4: start 737.503433, end 970.269300
    Metadata:
      title           : C3
    Chapter #0:5: start 970.269300, end 1295.127167
    Metadata:
      title           : C4
    Chapter #0:6: start 1295.127167, end 1733.231500
    Metadata:
      title           : C5
    Chapter #0:7: start 1733.231500, end 2206.153950
    Metadata:
      title           : C6
    Chapter #0:8: start 2206.153950, end 2341.889550
    Metadata:
      title           : C7
    Chapter #0:9: start 2341.889550, end 2419.550467
    Metadata:
      title           : C8
    Stream #0:0(und): Audio: pcm_s24le (lpcm / 0x6D63706C), 48000 Hz, 2 channels, s32 (24 bit), 2304 kb/s (default)
    Metadata:
      creation_time   : 2020-10-10T15:26:30.000000Z
      handler_name    : Core Media Audio
    Stream #0:1(und): Video: prores (Standard) (apcn / 0x6E637061), yuv422p10le(tv, bt709, progressive), 4096x2160, 1179399 kb/s, SAR 1:1 DAR 256:135, 59.94 fps, 59.94 tbr, 60k tbn, 60k tbc (default)
    Metadata:
      creation_time   : 2020-10-10T15:26:30.000000Z
      handler_name    : Core Media Video
      encoder         : Apple ProRes 422
      timecode        : 00:00:00;00
    Stream #0:2(und): Data: none (tmcd / 0x64636D74) (default)
    Metadata:
      creation_time   : 2020-10-10T15:26:30.000000Z
      handler_name    : Core Media Time Code
      timecode        : 00:00:00;00
    Stream #0:3(und): Data: bin_data (text / 0x74786574), 0 kb/s
    Metadata:
      creation_time   : 2020-10-10T15:26:30.000000Z
      handler_name    : Core Media Text
[01:03:41] scan: decoding previews for title 1
[01:03:42] scan: audio 0x0: pcm_s24le, rate=48000Hz, bitrate=2304000 Unknown (pcm_s24le) (2.0 ch) (2304 kbps)
[01:03:44] scan: 10 previews, 4096x2160, 59.940 fps, autocrop = 0/0/0/0, aspect 1.90:1, PAR 1:1
[01:03:44] libhb: scan thread found 1 valid title(s)
[01:03:44] macgui: Failed to create bookmark: Error Domain=NSCocoaErrorDomain Code=256 "Could not open() the item" UserInfo={NSURL=file:///Users/tang/Library/Containers/fr.handbrake.HandBrake/Data/Movies/, NSDebugDescription=Could not open() the item}
[01:03:44] macgui: QueueCore scan done
[01:03:44] macgui: QueueCore started encoding 1010-10bit.mp4
[01:03:44] macgui: QueueCore with preset Production Max (Modified)
[01:03:44] Starting work at: Sun Oct 11 01:03:44 2020

[01:03:44] 1 job(s) to process
[01:03:44] Starting Task: Encoding Pass
[01:03:44] Skipping crop/scale filter
[01:03:44] job configuration:
[01:03:44]  * source
[01:03:44]    + /Volumes/Segate Slim Drive/1010.mov
[01:03:44]    + title 1, chapter(s) 1 to 10
[01:03:44]    + container: mov,mp4,m4a,3gp,3g2,mj2
[01:03:44]    + data rate: 1182699 kbps
[01:03:44]  * destination
[01:03:44]    + /Users/tang/Library/Containers/fr.handbrake.HandBrake/Data/Movies/1010-10bit.mp4
[01:03:44]    + container: MPEG-4 (libavformat)
[01:03:44]      + optimized for HTTP streaming (fast start)
[01:03:44]      + align initial A/V stream timestamps
[01:03:44]      + chapter markers
[01:03:44]  * video track
[01:03:44]    + decoder: prores
[01:03:44]      + bitrate 1179399 kbps
[01:03:44]    + filter
[01:03:44]      + Framerate Shaper (mode=1:rate=27000000/450450)
[01:03:44]        + frame rate: 59.940 fps -> constant 59.940 fps
[01:03:44]    + Output geometry
[01:03:44]      + storage dimensions: 4096 x 2160
[01:03:44]      + pixel aspect ratio: 1 : 1
[01:03:44]      + display dimensions: 4096 x 2160
[01:03:44]    + encoder: H.265 10-bit (libx265)
[01:03:44]      + preset:  slow
[01:03:44]      + options: keyint=480:min-keyint=1
[01:03:44]      + profile: main10
[01:03:44]      + level:   5.2
[01:03:44]      + quality: 20.00 (RF)
[01:03:44]      + color profile: 1-1-1
[01:03:44]  * audio track 1
[01:03:44]    + decoder: Unknown (pcm_s24le) (2.0 ch) (2304 kbps) (track 1, id 0x0)
[01:03:44]      + bitrate: 2304 kbps, samplerate: 48000 Hz
[01:03:44]    + mixdown: Stereo
[01:03:44]    + dither: triangular
[01:03:44]    + encoder: AAC (Apple AudioToolbox)
[01:03:44]      + bitrate: 320 kbps, samplerate: 48000 Hz
[01:03:44] sync: expecting 145028 video frames
x265 [info]: HEVC encoder version 3.2.1+1-b5c86a64bbbe
x265 [info]: build info [Mac OS X][clang 11.0.3][64 bit] 10bit
x265 [info]: using cpu capabilities: MMX2 SSE2Fast LZCNT SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
x265 [warning]: Specifying a decoder level with constant rate factor rate-control requires
x265 [warning]: enabling VBV with vbv-bufsize=240000kb vbv-maxrate=240000kbps. VBV outputs are non-deterministic!
x265 [info]: Main 10 profile, Level-5.2 (High tier)
x265 [info]: Thread pool created using 12 threads
x265 [info]: Slices                              : 1
x265 [info]: frame threads / pool features       : 3 / wpp(34 rows)
x265 [info]: Coding QT: max CU size, min CU size : 64 / 8
x265 [info]: Residual QT: max TU size, max depth : 32 / 1 inter / 1 intra
x265 [info]: ME / range / subpel / merge         : star / 57 / 3 / 3
x265 [info]: Keyframe min / max / scenecut / bias: 1 / 480 / 40 / 5.00
x265 [info]: Lookahead / bframes / badapt        : 25 / 4 / 2
x265 [info]: b-pyramid / weightp / weightb       : 1 / 1 / 0
x265 [info]: References / ref-limit  cu / depth  : 4 / on / on
x265 [info]: AQ: mode / str / qg-size / cu-tree  : 2 / 1.0 / 32 / 1
x265 [info]: Rate Control / qCompress            : CRF-20.0 / 0.60
x265 [info]: VBV/HRD buffer / max-rate / init    : 240000 / 240000 / 0.900
x265 [info]: tools: rect limit-modes rd=4 psy-rd=2.00 rdoq=2 psy-rdoq=1.00
x265 [info]: tools: rskip signhide tmvp strong-intra-smoothing lslices=4
x265 [info]: tools: deblock sao
[01:03:45] sync: first pts video is 0
[01:03:45] sync: "Introductions" (1) at frame 1 time 0
[01:03:45] sync: first pts audio 0x0 is 0
[02:18:44] sync: "Getting Start" (2) at frame 9578 time 14379865
[02:57:34] sync: "C1" (3) at frame 14000 time 21019498
[07:01:08] sync: "C2" (4) at frame 34530 time 51845293
[08:24:22] sync: "C3" (5) at frame 44207 time 66375309
[10:23:58] sync: "C4" (6) at frame 58159 time 87324237
[14:42:08] sync: "C5" (7) at frame 77631 time 116561445
[01:48:58] sync: "C6" (8) at frame 103891 time 155990835
[05:15:09] sync: "C7" (9) at frame 132238 time 198553855
[06:17:25] sync: "C8" (10) at frame 140374 time 210770059
[07:03:57] reader: done. 1 scr changes
[07:06:19] work: average encoding speed for job is 1.797716 fps
[07:06:19] vfr: 145028 frames output, 0 dropped and 0 duped for CFR/PFR
[07:06:19] vfr: lost time: 0 (0 frames)
[07:06:19] vfr: gained time: 0 (0 frames) (0 not accounted for)
[07:06:19] pcm_s24le-decoder done: 116022 frames, 0 decoder errors
[07:06:19] prores-decoder done: 145028 frames, 0 decoder errors
[07:06:19] sync: got 145028 frames, 145028 expected
[07:06:19] sync: framerate min 59.940 fps, max 59.940 fps, avg 59.940 fps
x265 [info]: frame I:    396, Avg QP:20.60  kb/s: 256828.43
x265 [info]: frame P:  32259, Avg QP:22.26  kb/s: 97126.91
x265 [info]: frame B: 112373, Avg QP:29.14  kb/s: 6783.79 
x265 [info]: Weighted P-Frames: Y:1.9% UV:1.3%
x265 [info]: consecutive B-frames: 4.5% 2.1% 3.8% 23.9% 65.7% 

encoded 145028 frames in 108154.87s (1.34 fps), 27561.82 kb/s, Avg QP:27.58
[07:06:30] mux: track 0, 145028 frames, 8336481761 bytes, 27563.55 kbps, fifo 4096
[07:06:30] mux: track 1, 113419 frames, 100013641 bytes, 330.68 kbps, fifo 2048
[07:06:30] Finished work at: Mon Oct 12 07:06:30 2020
@woodstockathbf
Copy link

It is called "jitter", and it comes from using a time base that doesn't QUITE work out to an even number of frames per second.

@galad87
Copy link
Contributor

galad87 commented Oct 16, 2020

Duplicate of #377

@galad87 galad87 marked this as a duplicate of #377 Oct 16, 2020
@galad87 galad87 closed this as completed Oct 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants