Variable Framerate behavior change with MP4 in HD 1.0.x

HandBrake for Windows support
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.
Post Reply
Yersh
Posts: 25
Joined: Sun Jan 08, 2017 1:29 am

Variable Framerate behavior change with MP4 in HD 1.0.x

Post by Yersh »

In HB 0.10.5 I used FPS = Same as Source + Variable Framerate. When the source had constant framerate the output had variable framerate.

In 1.0.1 with the same settings I get constant framerate as a result. This applies only to MP4 output files. When I use mkv as an output, everything works fine.
I looked through change log of HB 1.0.0 in the news, there was nothing about behavior change of this setting.

I guess it's a bug.
Last edited by Yersh on Tue Jan 10, 2017 3:44 pm, edited 2 times in total.
rollin_eng
Veteran User
Posts: 4854
Joined: Wed May 04, 2011 11:06 pm

Re: Variable Framerate behavior change in HD 1.0.x

Post by rollin_eng »

Could you please post your logs, instructions can be found here:

viewtopic.php?f=6&t=31236
Yersh
Posts: 25
Joined: Sun Jan 08, 2017 1:29 am

Re: Variable Framerate behavior change with MP4 in HD 1.0.x

Post by Yersh »

Here are my logs:
1. This is mkv output (which works correctly)

Code: Select all

HandBrake 1.0.1 (2016122900) - 64bit
OS: Microsoft Windows NT 6.3.9600.0 - 64bit
CPU: Intel(R) Core(TM) i7-2600K CPU @ 3.40GHz
Ram: 16342 MB, 
GPU Information:
  AMD Radeon HD 7700 Series - 12.104.0.0
Screen: 1920x1080
Temp Dir: D:\Temp\
Install Dir: C:\Program Files\Handbrake_1.0.1
Data Dir: C:\Users\Администратор\AppData\Roaming\HandBrake Team\HandBrake\1.0.1.0

-------------------------------------------


# Starting Encode ...

[18:07:39] hb_init: starting libhb thread
[18:07:39] 1 job(s) to process
[18:07:39] json job:
{
  "Audio": {
    "AudioList": [],
    "CopyMask": [
      1073807360,
      1073743872,
      1074003968,
      1073750016,
      1090519040,
      1074790400,
      1074266112,
      1107296256
    ],
    "FallbackEncoder": 512
  },
  "Destination": {
    "ChapterList": [
      {
        "Name": "Chapter 1"
      }
    ],
    "ChapterMarkers": true,
    "File": "D:\\~~archive\\Recoded\\01_test_15fps_variable_hb_v1.0.1.mkv",
    "Mp4Options": {
      "IpodAtom": false,
      "Mp4Optimize": false
    },
    "Mux": 2097152
  },
  "Filters": {
    "FilterList": [
      {
        "ID": 11,
        "Settings": {
          "crop-bottom": "0",
          "crop-left": "0",
          "crop-right": "0",
          "crop-top": "0",
          "height": "1080",
          "width": "1920"
        }
      },
      {
        "ID": 6,
        "Settings": {
          "mode": "0"
        }
      }
    ]
  },
  "PAR": {
    "Num": 1,
    "Den": 1
  },
  "Metadata": {},
  "SequenceID": 0,
  "Source": {
    "Angle": 1,
    "Range": {
      "Type": "chapter",
      "Start": 1,
      "End": 1
    },
    "Title": 1,
    "Path": "D:\\work\\01_test.mkv"
  },
  "Subtitle": {
    "Search": {
      "Burn": false,
      "Default": false,
      "Enable": false,
      "Forced": false
    },
    "SubtitleList": []
  },
  "Video": {
    "Encoder": 65536,
    "Level": "4.0",
    "TwoPass": false,
    "Turbo": false,
    "ColorMatrixCode": 0,
    "Options": "",
    "Preset": "veryslow",
    "Profile": "high",
    "Quality": 25.0,
    "OpenCL": false,
    "HWDecode": false,
    "QSV": {
      "Decode": false,
      "AsyncDepth": 0
    }
  }
}
[18:07:39] CPU: Intel(R) Core(TM) i7-2600K CPU @ 3.40GHz
[18:07:39]  - Intel microarchitecture Sandy Bridge
[18:07:39]  - logical processor count: 8
[18:07:39] OpenCL device #1: Advanced Micro Devices, Inc. Capeverde
[18:07:39]  - OpenCL version: 1.2 AMD-APP (1124.2)
[18:07:39]  - driver version: 1124.2 (VM)
[18:07:39]  - device type:    GPU
[18:07:39]  - supported:      YES
[18:07:39] Intel Quick Sync Video support: no
[18:07:39] hb_scan: path=D:\work\01_test.mkv, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
src/libbluray/disc/disc.c:274: failed opening UDF image D:\work\01_test.mkv
src/libbluray/disc/disc.c:352: error opening file BDMV\index.bdmv
src/libbluray/disc/disc.c:352: error opening file BDMV\BACKUP\index.bdmv
[18:07:39] bd: not a bd - trying as a stream/file instead
libdvdnav: Using dvdnav version 5.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
[18:07:39] dvd: not a dvd - trying as a stream/file instead
Input #0, matroska,webm, from 'D:\work\01_test.mkv':
  Duration: 00:09:46.00, start: 0.000000, bitrate: N/A
    Stream #0:0: Video: h264 (High 4:4:4 Predictive)
      gbrp, pc, gbr/unknown/unknown
      1920x1080 [PAR 1:1 DAR 16:9], PAR 1:1 DAR 16:9
      15 fps, 1k tbn (default)
    Metadata:
      BPS             : 207696
      BPS-eng         : 207696
      DURATION        : 00:09:46.000000000
      DURATION-eng    : 00:09:46.000000000
      NUMBER_OF_FRAMES: 8790
      NUMBER_OF_FRAMES-eng: 8790
      NUMBER_OF_BYTES : 15213802
      NUMBER_OF_BYTES-eng: 15213802
      _STATISTICS_WRITING_APP: mkvmerge v7.8.0 ('River Man') 64bit built on Mar 27 2015 16:31:37
      _STATISTICS_WRITING_APP-eng: mkvmerge v7.8.0 ('River Man') 64bit built on Mar 27 2015 16:31:37
      _STATISTICS_WRITING_DATE_UTC: 2016-04-17 01:41:54
      _STATISTICS_WRITING_DATE_UTC-eng: 2016-04-17 01:41:54
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
    Stream #0:1: Audio: pcm_s16le
      48000 Hz, 1 channels, s16, 768 kb/s (default)
    Metadata:
      BPS             : 768000
      BPS-eng         : 768000
      DURATION        : 00:09:46.000000000
      DURATION-eng    : 00:09:46.000000000
      NUMBER_OF_FRAMES: 18752
      NUMBER_OF_FRAMES-eng: 18752
      NUMBER_OF_BYTES : 56256000
      NUMBER_OF_BYTES-eng: 56256000
      _STATISTICS_WRITING_APP: mkvmerge v7.8.0 ('River Man') 64bit built on Mar 27 2015 16:31:37
      _STATISTICS_WRITING_APP-eng: mkvmerge v7.8.0 ('River Man') 64bit built on Mar 27 2015 16:31:37
      _STATISTICS_WRITING_DATE_UTC: 2016-04-17 01:41:54
      _STATISTICS_WRITING_DATE_UTC-eng: 2016-04-17 01:41:54
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
[18:07:39] scan: decoding previews for title 1
[18:07:39] scan: audio 0x1: pcm_s16le, rate=48000Hz, bitrate=768000 Unknown (pcm_s16le) (1.0 ch)
[18:07:40] scan: 10 previews, 1920x1080, 15.000 fps, autocrop = 0/0/0/0, aspect 16:9, PAR 1:1
[18:07:40] libhb: scan thread found 1 valid title(s)
[18:07:40] starting job
[18:07:40] work: only 1 chapter, disabling chapter markers
[18:07:40] job configuration:
[18:07:40]  * source
[18:07:40]    + D:\work\01_test.mkv
[18:07:40]    + title 1, chapter(s) 1 to 1
[18:07:40]    + container: matroska,webm
[18:07:40]  * destination
[18:07:40]    + D:\~~archive\Recoded\01_test_15fps_variable_hb_v1.0.1.mkv
[18:07:40]    + container: Matroska (libavformat)
[18:07:40]  * video track
[18:07:40]    + decoder: h264
[18:07:40]    + filters
[18:07:40]      + Framerate Shaper (mode=0)
[18:07:40]        + frame rate: same as source (around 15.000 fps)
[18:07:40]      + Crop and Scale (width=1920:height=1080:crop-top=0:crop-bottom=0:crop-left=0:crop-right=0)
[18:07:40]        + source: 1920 * 1080, crop (0/0/0/0): 1920 * 1080, scale: 1920 * 1080
[18:07:40]    + Output geometry
[18:07:40]      + storage dimensions: 1920 x 1080
[18:07:40]      + pixel aspect ratio: 1 : 1
[18:07:40]      + display dimensions: 1920 x 1080
[18:07:40]    + encoder: H.264 (libx264)
[18:07:40]      + preset:  veryslow
[18:07:40]      + profile: high
[18:07:40]      + level:   4.0
[18:07:40]      + quality: 25.00 (RF)
[18:07:40] sync: expecting 8790 video frames
[18:07:40] encx264: min-keyint: 15, keyint: 150
[18:07:40] encx264: encoding at constant RF 25.000000
[18:07:40] encx264: unparsed options: level=4.0:direct=auto:ref=4:b-adapt=2:bframes=8:vbv-maxrate=25000:analyse=all:merange=24:me=umh:subme=10:trellis=2:vbv-bufsize=31250:rc-lookahead=60
x264 [info]: using SAR=1/1
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
x264 [info]: profile High, level 4.0
[18:07:41] sync: first pts video is 0
[18:07:41] sync: "Chapter 1" (1) at frame 1 time 0
[18:11:39] reader: done. 1 scr changes
[18:11:41] work: average encoding speed for job is 36.704220 fps
[18:11:41] vfr: lost time: 0 (0 frames)
[18:11:41] vfr: gained time: 0 (0 frames) (0 not accounted for)
[18:11:41] h264-decoder done: 8790 frames, 0 decoder errors
[18:11:41] sync: got 8790 frames, 8790 expected
[18:11:41] sync: framerate min 15.000 fps, max 15.000 fps, avg 15.000 fps
x264 [info]: frame I:60    Avg QP: 9.81  size: 68010
x264 [info]: frame P:996   Avg QP: 9.67  size:   431
x264 [info]: frame B:7734  Avg QP:13.52  size:    74
x264 [info]: consecutive B-frames:  0.7%  0.0%  0.0%  0.0%  3.2%  0.1%  0.1%  0.0% 95.9%
x264 [info]: mb I  I16..4: 65.5% 22.8% 11.7%
x264 [info]: mb P  I16..4:  0.1%  0.1%  0.1%  P16..4:  0.0%  0.0%  0.0%  0.0%  0.0%    skip:99.7%
x264 [info]: mb B  I16..4:  0.0%  0.0%  0.0%  B16..8:  0.1%  0.0%  0.0%  direct: 0.0%  skip:99.9%  L0:62.0% L1:37.9% BI: 0.0%
x264 [info]: 8x8 transform intra:23.1% inter:14.7%
x264 [info]: direct mvs  spatial:95.3% temporal:4.7%
x264 [info]: coded y,uvDC,uvAC intra: 10.5% 9.1% 8.7% inter: 0.0% 0.0% 0.0%
x264 [info]: i16 v,h,dc,p: 86% 12%  2%  0%
x264 [info]: i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 49% 19% 31%  0%  0%  0%  0%  0%  1%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 28% 23% 13%  5%  6%  5%  6%  6% 10%
x264 [info]: i8c dc,h,v,p: 91%  5%  4%  0%
x264 [info]: Weighted P-Frames: Y:0.0% UV:0.0%
x264 [info]: ref P L0: 85.2%  7.0%  6.3%  1.5%
x264 [info]: ref B L0: 77.5% 22.4%  0.1%
x264 [info]: ref B L1: 99.9%  0.1%
x264 [info]: kb/s:69.35
[18:11:41] mux: track 0, 8790 frames, 5076966 bytes, 69.30 kbps, fifo 16384
[18:11:41] libhb: work result = 0

# Encode Completed ...

2. This one is mp4 output, which results in constant framerate.

Code: Select all

HandBrake 1.0.1 (2016122900) - 64bit
OS: Microsoft Windows NT 6.3.9600.0 - 64bit
CPU: Intel(R) Core(TM) i7-2600K CPU @ 3.40GHz
Ram: 16342 MB, 
GPU Information:
  AMD Radeon HD 7700 Series - 12.104.0.0
Screen: 1920x1080
Temp Dir: D:\Temp\
Install Dir: C:\Program Files\Handbrake_1.0.1
Data Dir: C:\Users\Администратор\AppData\Roaming\HandBrake Team\HandBrake\1.0.1.0

-------------------------------------------


# Starting Encode ...

[18:18:29] hb_init: starting libhb thread
[18:18:29] 1 job(s) to process
[18:18:29] json job:
{
  "Audio": {
    "AudioList": [],
    "CopyMask": [
      1073807360,
      1073743872,
      1074003968,
      1073750016,
      1090519040,
      1074790400,
      1074266112,
      1107296256
    ],
    "FallbackEncoder": 512
  },
  "Destination": {
    "ChapterList": [
      {
        "Name": "Chapter 1"
      }
    ],
    "ChapterMarkers": true,
    "File": "D:\\~~archive\\Recoded\\01_test_15fps_variable_hb_v1.0.1_v2.mp4",
    "Mp4Options": {
      "IpodAtom": false,
      "Mp4Optimize": false
    },
    "Mux": 131072
  },
  "Filters": {
    "FilterList": [
      {
        "ID": 11,
        "Settings": {
          "crop-bottom": "0",
          "crop-left": "0",
          "crop-right": "0",
          "crop-top": "0",
          "height": "1080",
          "width": "1920"
        }
      },
      {
        "ID": 6,
        "Settings": {
          "mode": "0"
        }
      }
    ]
  },
  "PAR": {
    "Num": 1,
    "Den": 1
  },
  "Metadata": {},
  "SequenceID": 0,
  "Source": {
    "Angle": 1,
    "Range": {
      "Type": "chapter",
      "Start": 1,
      "End": 1
    },
    "Title": 1,
    "Path": "D:\\work\\01_test.mkv"
  },
  "Subtitle": {
    "Search": {
      "Burn": false,
      "Default": false,
      "Enable": false,
      "Forced": false
    },
    "SubtitleList": []
  },
  "Video": {
    "Encoder": 65536,
    "Level": "4.0",
    "TwoPass": false,
    "Turbo": false,
    "ColorMatrixCode": 0,
    "Options": "",
    "Preset": "veryslow",
    "Profile": "high",
    "Quality": 25.0,
    "OpenCL": false,
    "HWDecode": false,
    "QSV": {
      "Decode": false,
      "AsyncDepth": 0
    }
  }
}
[18:18:29] CPU: Intel(R) Core(TM) i7-2600K CPU @ 3.40GHz
[18:18:29]  - Intel microarchitecture Sandy Bridge
[18:18:29]  - logical processor count: 8
[18:18:29] OpenCL device #1: Advanced Micro Devices, Inc. Capeverde
[18:18:29]  - OpenCL version: 1.2 AMD-APP (1124.2)
[18:18:29]  - driver version: 1124.2 (VM)
[18:18:29]  - device type:    GPU
[18:18:29]  - supported:      YES
[18:18:29] Intel Quick Sync Video support: no
[18:18:29] hb_scan: path=D:\work\01_test.mkv, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
src/libbluray/disc/disc.c:274: failed opening UDF image D:\work\01_test.mkv
src/libbluray/disc/disc.c:352: error opening file BDMV\index.bdmv
src/libbluray/disc/disc.c:352: error opening file BDMV\BACKUP\index.bdmv
[18:18:29] bd: not a bd - trying as a stream/file instead
libdvdnav: Using dvdnav version 5.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
[18:18:29] dvd: not a dvd - trying as a stream/file instead
Input #0, matroska,webm, from 'D:\work\01_test.mkv':
  Duration: 00:09:46.00, start: 0.000000, bitrate: N/A
    Stream #0:0: Video: h264 (High 4:4:4 Predictive)
      gbrp, pc, gbr/unknown/unknown
      1920x1080 [PAR 1:1 DAR 16:9], PAR 1:1 DAR 16:9
      15 fps, 1k tbn (default)
    Metadata:
      BPS             : 207696
      BPS-eng         : 207696
      DURATION        : 00:09:46.000000000
      DURATION-eng    : 00:09:46.000000000
      NUMBER_OF_FRAMES: 8790
      NUMBER_OF_FRAMES-eng: 8790
      NUMBER_OF_BYTES : 15213802
      NUMBER_OF_BYTES-eng: 15213802
      _STATISTICS_WRITING_APP: mkvmerge v7.8.0 ('River Man') 64bit built on Mar 27 2015 16:31:37
      _STATISTICS_WRITING_APP-eng: mkvmerge v7.8.0 ('River Man') 64bit built on Mar 27 2015 16:31:37
      _STATISTICS_WRITING_DATE_UTC: 2016-04-17 01:41:54
      _STATISTICS_WRITING_DATE_UTC-eng: 2016-04-17 01:41:54
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
    Stream #0:1: Audio: pcm_s16le
      48000 Hz, 1 channels, s16, 768 kb/s (default)
    Metadata:
      BPS             : 768000
      BPS-eng         : 768000
      DURATION        : 00:09:46.000000000
      DURATION-eng    : 00:09:46.000000000
      NUMBER_OF_FRAMES: 18752
      NUMBER_OF_FRAMES-eng: 18752
      NUMBER_OF_BYTES : 56256000
      NUMBER_OF_BYTES-eng: 56256000
      _STATISTICS_WRITING_APP: mkvmerge v7.8.0 ('River Man') 64bit built on Mar 27 2015 16:31:37
      _STATISTICS_WRITING_APP-eng: mkvmerge v7.8.0 ('River Man') 64bit built on Mar 27 2015 16:31:37
      _STATISTICS_WRITING_DATE_UTC: 2016-04-17 01:41:54
      _STATISTICS_WRITING_DATE_UTC-eng: 2016-04-17 01:41:54
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
[18:18:29] scan: decoding previews for title 1
[18:18:29] scan: audio 0x1: pcm_s16le, rate=48000Hz, bitrate=768000 Unknown (pcm_s16le) (1.0 ch)
[18:18:30] scan: 10 previews, 1920x1080, 15.000 fps, autocrop = 0/0/0/0, aspect 16:9, PAR 1:1
[18:18:30] libhb: scan thread found 1 valid title(s)
[18:18:30] starting job
[18:18:30] work: only 1 chapter, disabling chapter markers
[18:18:30] job configuration:
[18:18:30]  * source
[18:18:30]    + D:\work\01_test.mkv
[18:18:30]    + title 1, chapter(s) 1 to 1
[18:18:30]    + container: matroska,webm
[18:18:30]  * destination
[18:18:30]    + D:\~~archive\Recoded\01_test_15fps_variable_hb_v1.0.1_v2.mp4
[18:18:30]    + container: MPEG-4 (libavformat)
[18:18:30]  * video track
[18:18:30]    + decoder: h264
[18:18:30]    + filters
[18:18:30]      + Framerate Shaper (mode=0)
[18:18:30]        + frame rate: same as source (around 15.000 fps)
[18:18:30]      + Crop and Scale (width=1920:height=1080:crop-top=0:crop-bottom=0:crop-left=0:crop-right=0)
[18:18:30]        + source: 1920 * 1080, crop (0/0/0/0): 1920 * 1080, scale: 1920 * 1080
[18:18:30]    + Output geometry
[18:18:30]      + storage dimensions: 1920 x 1080
[18:18:30]      + pixel aspect ratio: 1 : 1
[18:18:30]      + display dimensions: 1920 x 1080
[18:18:30]    + encoder: H.264 (libx264)
[18:18:30]      + preset:  veryslow
[18:18:30]      + profile: high
[18:18:30]      + level:   4.0
[18:18:30]      + quality: 25.00 (RF)
[18:18:30] sync: expecting 8790 video frames
[18:18:30] encx264: min-keyint: 15, keyint: 150
[18:18:30] encx264: encoding at constant RF 25.000000
[18:18:30] encx264: unparsed options: level=4.0:direct=auto:ref=4:b-adapt=2:bframes=8:vbv-maxrate=25000:analyse=all:merange=24:me=umh:subme=10:trellis=2:vbv-bufsize=31250:rc-lookahead=60
x264 [info]: using SAR=1/1
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
x264 [info]: profile High, level 4.0
[18:18:30] sync: first pts video is 0
[18:18:30] sync: "Chapter 1" (1) at frame 1 time 0
[18:22:15] reader: done. 1 scr changes
[18:22:16] work: average encoding speed for job is 39.046783 fps
[18:22:16] vfr: lost time: 0 (0 frames)
[18:22:16] vfr: gained time: 0 (0 frames) (0 not accounted for)
[18:22:16] h264-decoder done: 8790 frames, 0 decoder errors
[18:22:16] sync: got 8790 frames, 8790 expected
[18:22:16] sync: framerate min 15.000 fps, max 15.000 fps, avg 15.000 fps
x264 [info]: frame I:60    Avg QP: 9.81  size: 68010
x264 [info]: frame P:996   Avg QP: 9.67  size:   431
x264 [info]: frame B:7734  Avg QP:13.52  size:    74
x264 [info]: consecutive B-frames:  0.7%  0.0%  0.0%  0.0%  3.2%  0.1%  0.1%  0.0% 95.9%
x264 [info]: mb I  I16..4: 65.5% 22.8% 11.7%
x264 [info]: mb P  I16..4:  0.1%  0.1%  0.1%  P16..4:  0.0%  0.0%  0.0%  0.0%  0.0%    skip:99.7%
x264 [info]: mb B  I16..4:  0.0%  0.0%  0.0%  B16..8:  0.1%  0.0%  0.0%  direct: 0.0%  skip:99.9%  L0:62.0% L1:37.9% BI: 0.0%
x264 [info]: 8x8 transform intra:23.1% inter:14.7%
x264 [info]: direct mvs  spatial:95.3% temporal:4.7%
x264 [info]: coded y,uvDC,uvAC intra: 10.5% 9.1% 8.7% inter: 0.0% 0.0% 0.0%
x264 [info]: i16 v,h,dc,p: 86% 12%  2%  0%
x264 [info]: i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 49% 19% 31%  0%  0%  0%  0%  0%  1%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 28% 23% 13%  5%  6%  5%  6%  6% 10%
x264 [info]: i8c dc,h,v,p: 91%  5%  4%  0%
x264 [info]: Weighted P-Frames: Y:0.0% UV:0.0%
x264 [info]: ref P L0: 85.2%  7.0%  6.3%  1.5%
x264 [info]: ref B L0: 77.5% 22.4%  0.1%
x264 [info]: ref B L1: 99.9%  0.1%
x264 [info]: kb/s:69.35
[18:22:16] mux: track 0, 8790 frames, 5076966 bytes, 69.30 kbps, fifo 16384
[18:22:16] libhb: work result = 0

# Encode Completed ...

Last edited by Yersh on Tue Jan 10, 2017 3:45 pm, edited 1 time in total.
rollin_eng
Veteran User
Posts: 4854
Joined: Wed May 04, 2011 11:06 pm

Re: Variable Framerate behavior change with MP4 in HD 1.0.x

Post by rollin_eng »

Are you talking about framerate or bitrate?
Yersh
Posts: 25
Joined: Sun Jan 08, 2017 1:29 am

Re: Variable Framerate behavior change with MP4 in HD 1.0.x

Post by Yersh »

I misstyped, I'm talking about framerate
mduell
Veteran User
Posts: 8198
Joined: Sat Apr 21, 2007 8:54 pm

Re: Variable Framerate behavior change with MP4 in HD 1.0.x

Post by mduell »

What leads you to believe the latter is constant bitrate?

Do you understand the difference between framerate and bitrate?
Yersh
Posts: 25
Joined: Sun Jan 08, 2017 1:29 am

Re: Variable Framerate behavior change with MP4 in HD 1.0.x

Post by Yersh »

Do you understand the difference between framerate and bitrate?
I misstyped
rollin_eng
Veteran User
Posts: 4854
Joined: Wed May 04, 2011 11:06 pm

Re: Variable Framerate behavior change with MP4 in HD 1.0.x

Post by rollin_eng »

According to those logs both outputs are the same framerate, 15fps.
Yersh
Posts: 25
Joined: Sun Jan 08, 2017 1:29 am

Re: Variable Framerate behavior change with MP4 in HD 1.0.x

Post by Yersh »

mkv file output has variable framerate

Code: Select all

Codec ID                       : V_MPEG4/ISO/AVC
Bit rate                       : 68.7 kb/s
Width                          : 1 920 pixels
Height                         : 1 080 pixels
Display aspect ratio           : 16:9
Frame rate mode                : Variable
while mp4 has constant

Code: Select all

Codec ID                       : avc1
Codec ID/Info                  : Advanced Video Coding
Duration                       : 9 min
Bit rate                       : 69.3 kb/s
Width                          : 1 920 pixels
Height                         : 1 080 pixels
Display aspect ratio           : 16:9
Frame rate mode                : Constant
Frame rate                     : 15.000 FPS
handbrake settings are the same in both cases:

Code: Select all

FPS= same as source
variable framerate
rollin_eng
Veteran User
Posts: 4854
Joined: Wed May 04, 2011 11:06 pm

Re: Variable Framerate behavior change with MP4 in HD 1.0.x

Post by rollin_eng »

Might be an issue with HB but might also be an issue with Mediainfo.
Yersh
Posts: 25
Joined: Sun Jan 08, 2017 1:29 am

Re: Variable Framerate behavior change with MP4 in HD 1.0.x

Post by Yersh »

Might be an issue with HB but might also be an issue with Mediainfo.
It's possible.
But 0.10.5 outputs correct mp4 file:

Code: Select all

Codec ID                       : avc1
Codec ID/Info                  : Advanced Video Coding
Duration                       : 9 min
Bit rate                       : 69.0 kb/s
Width                          : 1 920 pixels
Height                         : 1 080 pixels
Display aspect ratio           : 16:9
Frame rate mode                : Variable
Frame rate                     : 15.000 FPS
Minimum frame rate             : 14.925 FPS
Maximum frame rate             : 15.152 FPS
User avatar
Ritsuka
HandBrake Team
Posts: 1655
Joined: Fri Jan 12, 2007 11:29 am

Re: Variable Framerate behavior change with MP4 in HD 1.0.x

Post by Ritsuka »

There is no difference at the container level for cfr and vbr. Mediainfo sees that everything has got the same duration and shows you it as "constant frame rate". There is no bug here at all.
Yersh
Posts: 25
Joined: Sun Jan 08, 2017 1:29 am

Re: Variable Framerate behavior change with MP4 in HD 1.0.x

Post by Yersh »

understood
thank you for clarification
rollin_eng
Veteran User
Posts: 4854
Joined: Wed May 04, 2011 11:06 pm

Re: Variable Framerate behavior change with MP4 in HD 1.0.x

Post by rollin_eng »

Ritsuka wrote:There is no difference at the container level for cfr and vbr. Mediainfo sees that everything has got the same duration and shows you it as "constant frame rate". There is no bug here at all.
Not sure I understand :)

Mediainfo is reporting one output as vfr and one as cfr.
jacop89
Novice
Posts: 64
Joined: Sat Dec 01, 2012 9:11 am

Re: Variable Framerate behavior change with MP4 in HD 1.0.x

Post by jacop89 »

Same problem on my case:

When i try to encode a MKV video into MP4 video i have this result:

Code: Select all

HandBrake Nightly 20170415192255-bb92ab0-master (2017041601) - 64bit
OS: Microsoft Windows NT 10.0.15063.0 - 64bit
CPU: Intel(R) Core(TM) i7-6820HK CPU @ 2.70GHz
Ram: 16259 MB, 
GPU Information:
  Intel(R) HD Graphics 530 - 21.20.16.4627
  NVIDIA GeForce GTX 1070 - 22.21.13.8165
Screen: 1920x1080
Temp Dir: C:\Users\Jacopo Di Giuli\AppData\Local\Temp\
Install Dir: C:\Program Files\HandBrake Nightly
Data Dir: C:\Users\Jacopo Di Giuli\AppData\Roaming\HandBrake Team\HandBrake\1.0.3.0

-------------------------------------------


# Starting Encode ...

[12:56:53] hb_init: starting libhb thread
[12:56:53] 1 job(s) to process
[12:56:53] json job:
{
  "Audio": {
    "AudioList": [
      {
        "Bitrate": 224,
        "DRC": 0.0,
        "Encoder": 65536,
        "Gain": 0.0,
        "Mixdown": 4,
        "NormalizeMixLevel": false,
        "Samplerate": 0,
        "Track": 0,
        "DitherMethod": 0
      }
    ],
    "CopyMask": [
      1073807360,
      1073743872,
      1074003968,
      1073750016,
      1090519040,
      1074790400,
      1074266112,
      1107296256
    ],
    "FallbackEncoder": 2048
  },
  "Destination": {
    "ChapterList": [],
    "ChapterMarkers": false,
    "File": "C:\\Users\\Jacopo Di Giuli\\Desktop\\Prova_scontrofinale.mp4",
    "Mp4Options": {
      "IpodAtom": false,
      "Mp4Optimize": false
    },
    "Mux": 131072
  },
  "Filters": {
    "FilterList": [
      {
        "ID": 11,
        "Settings": {
          "crop-bottom": "0",
          "crop-left": "0",
          "crop-right": "0",
          "crop-top": "0",
          "height": "1080",
          "width": "1920"
        }
      },
      {
        "ID": 6,
        "Settings": {
          "mode": "1"
        }
      }
    ]
  },
  "PAR": {
    "Num": 1,
    "Den": 1
  },
  "Metadata": {},
  "SequenceID": 0,
  "Source": {
    "Angle": 1,
    "Range": {
      "Type": "chapter",
      "Start": 4,
      "End": 4
    },
    "Title": 1,
    "Path": "D:\\Video\\Prova\\Prova_Disco2.mkv"
  },
  "Subtitle": {
    "Search": {
      "Burn": false,
      "Default": false,
      "Enable": false,
      "Forced": false
    },
    "SubtitleList": [
      {
        "Burn": true,
        "Default": false,
        "Forced": false,
        "ID": 2,
        "Offset": 0,
        "Track": 1
      }
    ]
  },
  "Video": {
    "Encoder": 65536,
    "TwoPass": false,
    "Turbo": false,
    "ColorMatrixCode": 0,
    "Options": "ref=6:bframes=5:b-adapt=2:direct=auto:me=umh:merange=20:aq-strength=0.6:psy-rd=0.4,0.00:deblock=1,1",
    "Quality": 20.0,
    "OpenCL": false,
    "HWDecode": false,
    "QSV": {
      "Decode": false,
      "AsyncDepth": 0
    }
  }
}
[12:56:53] CPU: Intel(R) Core(TM) i7-6820HK CPU @ 2.70GHz
[12:56:53]  - Intel microarchitecture Skylake
[12:56:53]  - logical processor count: 8
[12:56:53] Intel Quick Sync Video support: yes
[12:56:53]  - Intel Media SDK hardware: API 1.21 (minimum: 1.3)
[12:56:53]  - H.264 encoder: yes
[12:56:53]     - preferred implementation: hardware (any)
[12:56:53]     - capabilities (hardware):  breftype icq+la+i+downs vsinfo opt1 opt2+mbbrc+extbrc+trellis+ib_adapt+nmpslice
[12:56:53]  - H.265 encoder: yes (8bit: yes, 10bit: no)
[12:56:53]     - preferred implementation: hardware (any)
[12:56:53]     - capabilities (hardware):  bpyramid vsinfo opt1
[12:56:53] hb_scan: path=D:\Video\Prova\Prova_Disco2.mkv, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
src/libbluray/disc/disc.c:274: failed opening UDF image D:\Video\Prova\Prova_Disco2.mkv
src/libbluray/disc/disc.c:352: error opening file BDMV\index.bdmv
src/libbluray/disc/disc.c:352: error opening file BDMV\BACKUP\index.bdmv
[12:56:53] bd: not a bd - trying as a stream/file instead
libdvdnav: Using dvdnav version 5.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
[12:56:53] dvd: not a dvd - trying as a stream/file instead
Input #0, matroska,webm, from 'D:\Video\Prova\Prova_Disco2.mkv':
  Metadata:
    title           : Prova 02
  Duration: 01:37:24.21, start: 0.000000, bitrate: N/A
    Chapter #0:0: start 0.000000, end 69.986583
    Metadata:
      title           : Capitolo 01
    Chapter #0:1: start 69.986583, end 160.034875
    Metadata:
      title           : Capitolo 02
    Chapter #0:2: start 160.034875, end 725.015958
    Metadata:
      title           : Capitolo 03
    Chapter #0:3: start 725.015958, end 1322.029042
    Metadata:
      title           : Capitolo 04
    Chapter #0:4: start 1322.029042, end 1411.993917
    Metadata:
      title           : Capitolo 05
    Chapter #0:5: start 1411.993917, end 1440.021917
    Metadata:
      title           : Capitolo 06
    Chapter #0:6: start 1440.021917, end 1461.042917
    Metadata:
      title           : Capitolo 07
    Chapter #0:7: start 1461.042917, end 1650.023375
    Metadata:
      title           : Capitolo 08
    Chapter #0:8: start 1650.023375, end 1740.071667
    Metadata:
      title           : Capitolo 09
    Chapter #0:9: start 1740.071667, end 2070.109708
    Metadata:
      title           : Capitolo 10
    Chapter #0:10: start 2070.109708, end 2739.111375
    Metadata:
      title           : Capitolo 11
    Chapter #0:11: start 2739.111375, end 2829.076250
    Metadata:
      title           : Capitolo 12
    Chapter #0:12: start 2829.076250, end 2901.106542
    Metadata:
      title           : Capitolo 13
    Chapter #0:13: start 2901.106542, end 2922.127542
    Metadata:
      title           : Capitolo 14
    Chapter #0:14: start 2922.127542, end 3001.123125
    Metadata:
      title           : Capitolo 15
    Chapter #0:15: start 3001.123125, end 3091.171417
    Metadata:
      title           : Capitolo 16
    Chapter #0:16: start 3091.171417, end 3631.169208
    Metadata:
      title           : Capitolo 17
    Chapter #0:17: start 3631.169208, end 4254.208292
    Metadata:
      title           : Capitolo 18
    Chapter #0:18: start 4254.208292, end 4344.173167
    Metadata:
      title           : Capitolo 19
    Chapter #0:19: start 4344.173167, end 4362.191167
    Metadata:
      title           : Capitolo 20
    Chapter #0:20: start 4362.191167, end 4383.212167
    Metadata:
      title           : Capitolo 21
    Chapter #0:21: start 4383.212167, end 4514.218042
    Metadata:
      title           : Capitolo 22
    Chapter #0:22: start 4514.218042, end 4604.224625
    Metadata:
      title           : Capitolo 23
    Chapter #0:23: start 4604.224625, end 5290.159875
    Metadata:
      title           : Capitolo 24
    Chapter #0:24: start 5290.159875, end 5733.144083
    Metadata:
      title           : Capitolo 25
    Chapter #0:25: start 5733.144083, end 5823.192375
    Metadata:
      title           : Capitolo 26
    Chapter #0:26: start 5823.192375, end 5844.213375
    Metadata:
      title           : Capitolo 27
    Stream #0:0(eng): Video: h264 (High)
      yuv420p, 1920x1080 [PAR 1:1 DAR 16:9], PAR 1:1 DAR 16:9
      23.98 fps, 1k tbn
    Metadata:
      BPS-eng         : 37792023
      DURATION-eng    : 01:37:24.213375000
      NUMBER_OF_FRAMES-eng: 140121
      NUMBER_OF_BYTES-eng: 27608079413
      SOURCE_ID-eng   : 001011
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.10.5 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2017-04-15 12:02:57
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Stream #0:1(ita): Audio: dts (DTS-HD MA)
      48000 Hz, stereo, fltp, 640 kb/s (default)
    Metadata:
      title           : Stereo
      BPS-eng         : 1773894
      DURATION-eng    : 01:37:24.224000000
      NUMBER_OF_FRAMES-eng: 547896
      NUMBER_OF_BYTES-eng: 1295879916
      SOURCE_ID-eng   : 001100
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.10.5 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2017-04-15 12:02:57
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Stream #0:2(ita): Subtitle: hdmv_pgs_subtitle
    Metadata:
      BPS-eng         : 55165
      DURATION-eng    : 01:37:20.814145833
      NUMBER_OF_FRAMES-eng: 2507
      NUMBER_OF_BYTES-eng: 40276719
      SOURCE_ID-eng   : 001200
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.10.5 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2017-04-15 12:02:57
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Stream #0:3(ita): Subtitle: hdmv_pgs_subtitle
    Metadata:
      BPS-eng         : 2399
      DURATION-eng    : 01:37:20.814145833
      NUMBER_OF_FRAMES-eng: 96
      NUMBER_OF_BYTES-eng: 1751938
      SOURCE_ID-eng   : 001201
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.10.5 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2017-04-15 12:02:57
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
[12:56:53] scan: decoding previews for title 1
[12:56:53] scan: audio 0x1: dca, rate=48000Hz, bitrate=640000 italiano (DTS-HD MA) (2.0 ch)
[12:56:55] scan: 10 previews, 1920x1080, 23.976 fps, autocrop = 0/0/0/0, aspect 16:9, PAR 1:1
[12:56:55] scan: supported video decoders: avcodec qsv
[12:56:55] libhb: scan thread found 1 valid title(s)
[12:56:55] starting job
[12:56:55] work: track 1, dithering not supported by codec
[12:56:55] job configuration:
[12:56:55]  * source
[12:56:55]    + D:\Video\Prova\Prova_Disco2.mkv
[12:56:55]    + title 1, chapter(s) 4 to 4
[12:56:55]    + container: matroska,webm
[12:56:55]  * destination
[12:56:55]    + C:\Users\Jacopo Di Giuli\Desktop\Prova_scontrofinale.mp4
[12:56:55]    + container: MPEG-4 (libavformat)
[12:56:55]  * video track
[12:56:55]    + decoder: h264
[12:56:55]    + filters
[12:56:55]      + Framerate Shaper (mode=1)
[12:56:55]        + frame rate: 23.976 fps -> constant 23.976 fps
[12:56:55]      + Subtitle renderer ()
[12:56:55]      + Crop and Scale (width=1920:height=1080:crop-top=0:crop-bottom=0:crop-left=0:crop-right=0)
[12:56:55]        + source: 1920 * 1080, crop (0/0/0/0): 1920 * 1080, scale: 1920 * 1080
[12:56:55]    + Output geometry
[12:56:55]      + storage dimensions: 1920 x 1080
[12:56:55]      + pixel aspect ratio: 1 : 1
[12:56:55]      + display dimensions: 1920 x 1080
[12:56:55]    + encoder: H.264 (libx264)
[12:56:55]      + options: ref=6:bframes=5:b-adapt=2:direct=auto:me=umh:merange=20:aq-strength=0.6:psy-rd=0.4,0.00:deblock=1,1
[12:56:55]      + quality: 20.00 (RF)
[12:56:55]  * subtitle track 1, italiano [PGS] (track 1, id 0x3, Picture) -> Render/Burn-in
[12:56:55]  * audio track 1
[12:56:55]    + decoder: italiano (DTS-HD MA) (2.0 ch) (track 1, id 0x1)
[12:56:55]      + bitrate: 640 kbps, samplerate: 48000 Hz
[12:56:55]    + mixdown: Stereo
[12:56:55]    + encoder: AAC (libavcodec)
[12:56:55]      + bitrate: 224 kbps, samplerate: 48000 Hz
[12:56:55] sync: expecting 14313 video frames
[12:56:55] encx264: min-keyint: 24, keyint: 240
[12:56:55] encx264: encoding at constant RF 20.000000
[12:56:55] encx264: unparsed options: deblock=1,1:ref=6:bframes=5:b-adapt=2:merange=20:direct=auto:me=umh:aq-strength=0.6:psy-rd=0.4,0
x264 [info]: using SAR=1/1
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 AVX2 LZCNT BMI2
x264 [info]: profile High, level 5.0
[12:56:55] sync: first pts video is 0
[12:56:55] sync: "Capitolo 04" (4) at frame 1 time 0
[12:56:55] sync: first pts audio 0x1 is 720
[13:02:20] sync: first pts subtitle 0x3 is 21981960
[13:07:25] reader: end of chapter 4 (media 4) reached at media chapter 5
[13:07:25] reader: done. 1 scr changes
[13:07:30] work: average encoding speed for job is 22.630220 fps
[13:07:30] vfr: 14316 frames output, 0 dropped and 0 duped for CFR/PFR
[13:07:30] vfr: lost time: 0 (0 frames)
[13:07:30] vfr: gained time: 0 (0 frames) (0 not accounted for)
[13:07:30] dca-decoder done: 55979 frames, 0 decoder errors
[13:07:30] h264-decoder done: 14316 frames, 0 decoder errors
[13:07:30] sync: got 14316 frames, 14313 expected
[13:07:30] sync: framerate min 23.981 fps, max 23.981 fps, avg 23.976 fps
x264 [info]: frame I:139   Avg QP:17.73  size:132769
x264 [info]: frame P:3498  Avg QP:20.92  size: 32503
x264 [info]: frame B:10679 Avg QP:22.51  size:  5598
x264 [info]: consecutive B-frames:  5.5%  3.5%  8.6% 11.3% 18.0% 53.1%
x264 [info]: mb I  I16..4: 33.1% 58.5%  8.4%
x264 [info]: mb P  I16..4:  8.0% 16.6%  1.4%  P16..4: 27.5%  6.4%  3.2%  0.0%  0.0%    skip:36.9%
x264 [info]: mb B  I16..4:  0.6%  1.1%  0.1%  B16..8: 19.7%  1.3%  0.3%  direct: 0.9%  skip:76.1%  L0:45.5% L1:52.3% BI: 2.2%
x264 [info]: 8x8 transform intra:62.8% inter:85.7%
x264 [info]: direct mvs  spatial:100.0% temporal:0.0%
x264 [info]: coded y,uvDC,uvAC intra: 43.5% 57.5% 25.8% inter: 6.5% 9.3% 0.8%
x264 [info]: i16 v,h,dc,p: 40% 24%  8% 27%
x264 [info]: i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 20% 20% 25%  5%  5%  5%  7%  6%  7%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 23% 19% 15%  6% 10%  9%  9%  5%  4%
x264 [info]: i8c dc,h,v,p: 55% 21% 19%  5%
x264 [info]: Weighted P-Frames: Y:5.0% UV:3.4%
x264 [info]: ref P L0: 53.1% 10.0% 18.4%  6.4%  6.3%  5.3%  0.5%  0.0%
x264 [info]: ref B L0: 79.0% 10.5%  6.9%  2.6%  1.0%
x264 [info]: ref B L1: 95.5%  4.5%
x264 [info]: kb/s:2571.46
[13:07:30] mux: track 0, 14316 frames, 191920766 bytes, 2571.21 kbps, fifo 2048
[13:07:30] mux: track 1, 27990 frames, 16743154 bytes, 224.31 kbps, fifo 4096
[13:07:30] libhb: work result = 0

# Encode Completed ...

[13:07:30] hb_init: starting libhb thread

With MediaInfo i have this result:

Code: Select all

Complete name : C:\Users\Jacopo Di Giuli\Desktop\Prova_scontrofinale.mp4 
Format : MPEG-4 
Format profile : Base Media / Version 2 
Codec ID : mp42 (isom/iso2/avc1/mp41) 
File size : 199 MiB 
Duration : 9 min 57 s 
Overall bit rate mode : Variable 
Overall bit rate : 2 802 kb/s 
Movie name : Prova 02 
Encoded date : UTC 2017-04-16 10:56:55 
Tagged date : UTC 2017-04-16 10:56:55 
Writing application : HandBrake 20170415192255-bb92ab0-master 2017041601 

Video 
ID : 1 
Format : AVC 
Format/Info : Advanced Video Codec 
Format profile : High@L5 
Format settings, CABAC : Yes 
Format settings, ReFrames : 6 frames 
Codec ID : avc1 
Codec ID/Info : Advanced Video Coding 
Duration : 9 min 57 s 
Bit rate : 2 571 kb/s 
Width : 1 920 pixels 
Height : 1 080 pixels 
Display aspect ratio : 16:9 
[b]Frame rate mode : Variable 
Frame rate : 23.976 (24000/1001) FPS 
Minimum frame rate : 23.974 FPS 
Maximum frame rate : 23.981 FPS [/b]
Color space : YUV 
Chroma subsampling : 4:2:0 
Bit depth : 8 bits 
Scan type : Progressive 
Bits/(Pixel*Frame) : 0.052 
Stream size : 183 MiB (92%) 
Writing library : x264 core 148 r2708 86b7198 
Encoding settings : cabac=1 / ref=6 / deblock=1:1:1 / analyse=0x3:0x113 / me=umh / subme=7 / psy=1 / psy_rd=0.40:0.00 / mixed_ref=1 / me_range=20 / chroma_me=1 / trellis=1 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / threads=12 / lookahead_threads=3 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=5 / b_pyramid=2 / b_adapt=2 / b_bias=0 / direct=3 / weightb=1 / open_gop=0 / weightp=2 / keyint=240 / keyint_min=24 / scenecut=40 / intra_refresh=0 / rc_lookahead=40 / rc=crf / mbtree=1 / crf=20.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / ip_ratio=1.40 / aq=1:0.60 
Encoded date : UTC 2017-04-16 10:56:55 
Tagged date : UTC 2017-04-16 10:56:55 
Color range : Limited 
Color primaries : BT.709 
Transfer characteristics : BT.709 
Matrix coefficients : BT.709 

Audio 
ID : 2 
Format : AAC 
Format/Info : Advanced Audio Codec 
Format profile : LC 
Codec ID : 40 
Duration : 9 min 57 s 
Bit rate mode : Variable 
Bit rate : 224 kb/s 
Channel(s) : 2 channels 
Channel positions : Front: L R 
Sampling rate : 48.0 kHz 
Frame rate : 46.875 FPS (1024 spf) 
Compression mode : Lossy 
Stream size : 16.0 MiB (8%) 
Title : Stereo / Stereo 
Language : Italian 
Default : Yes 
Alternate group : 1 
Encoded date : UTC 2017-04-16 10:56:55 
Tagged date : UTC 2017-04-16 10:56:55 
If i try to encode the same MKV video with, for example, Xmedia Recode, i have a real constant Framerate... Why????
User avatar
s55
HandBrake Team
Posts: 10357
Joined: Sun Dec 24, 2006 1:05 pm

Re: Variable Framerate behavior change with MP4 in HD 1.0.x

Post by s55 »

MediaInfo is getting confused by the 90khz timebase we use. Your source is infact constant.
jacop89
Novice
Posts: 64
Joined: Sat Dec 01, 2012 9:11 am

Re: Variable Framerate behavior change with MP4 in HD 1.0.x

Post by jacop89 »

s55 wrote: Sun Apr 16, 2017 11:50 am MediaInfo is getting confused by the 90khz timebase we use. Your source is infact constant.

Ok but..... i did some tests:

I've update Handbrake GUI to the last Version (b652292) and i try to encode this new video (streaming video with variable framerate):

Code: Select all

General 
CompleteName : C:\Users\Jacopo Di Giuli\Desktop\QuakeChampions.mp4 
Format : MPEG-4 
Format_Profile : Base Media 
CodecID/String : isom (isom/iso2/avc1/mp41) 
FileSize/String : 507 MiB 
Duration/String : 19 min 14 s 
OverallBitRate_Mode/String : Variable 
OverallBitRate/String : 3 684 kb/s 
Encoded_Application/String : Lavf55.43.100 

Video 
ID/String : 1 
Format : AVC 
Format/Info : Advanced Video Codec 
Format_Profile : High@L3.2 
Format_Settings_CABAC/String : Yes 
Format_Settings_RefFrames/String : 4 frames 
CodecID : avc1 
CodecID/Info : Advanced Video Coding 
Duration/String : 19 min 14 s 
BitRate/String : 3 504 kb/s 
Width/String : 1 280 pixels 
Height/String : 720 pixels 
DisplayAspectRatio/String : 16:9 
FrameRate_Mode/String : Variable 
FrameRate/String : 60.000 FPS 
FrameRate_Minimum/String : 58.824 FPS 
FrameRate_Maximum/String : 62.500 FPS 
ColorSpace : YUV 
ChromaSubsampling/String : 4:2:0 
BitDepth/String : 8 bits 
ScanType/String : Progressive 
Bits-(Pixel*Frame) : 0.063 
StreamSize/String : 482 MiB (95%) 

Audio 
ID/String : 2 
Format : AAC 
Format/Info : Advanced Audio Codec 
Format_Profile : LC 
CodecID : 40 
Duration/String : 19 min 14 s 
BitRate_Mode/String : Variable 
BitRate/String : 164 kb/s 
BitRate_Maximum/String : 172 kb/s 
Channel(s)/String : 2 channels 
ChannelPositions : Front: L R 
SamplingRate/String : 44.1 kHz 
FrameRate/String : 43.066 FPS (1024 spf) 
Compression_Mode/String : Lossy 
StreamSize/String : 22.5 MiB (4%) 
Default/String : Yes 
AlternateGroup/String : 1 

....with this Encode result (constant framerate):

Code: Select all

General 
Complete name : C:\Users\Jacopo Di Giuli\Desktop\LaBestemmiadiTommaso.mp4 
Format : MPEG-4 
Format profile : Base Media / Version 2 
Codec ID : mp42 (isom/iso2/avc1/mp41) 
File size : 783 MiB 
Duration : 19 min 14 s 
Overall bit rate : 5 690 kb/s 
Encoded date : UTC 2017-04-30 17:28:05 
Tagged date : UTC 2017-04-30 17:28:05 
Writing application : HandBrake 20170429190807-b652292-master 2017043001 

Video 
ID : 1 
Format : AVC 
Format/Info : Advanced Video Codec 
Format profile : Main@L3.2 
Format settings, CABAC : Yes 
Format settings, ReFrames : 4 frames 
Codec ID : avc1 
Codec ID/Info : Advanced Video Coding 
Duration : 19 min 14 s 
Bit rate : 5 552 kb/s 
Width : 1 280 pixels 
Height : 720 pixels 
Display aspect ratio : 16:9 
Frame rate mode : Constant 
Frame rate : 60.000 FPS 
Color space : YUV 
Chroma subsampling : 4:2:0 
Bit depth : 8 bits 
Scan type : Progressive 
Bits/(Pixel*Frame) : 0.100 
Stream size : 764 MiB (98%) 
Writing library : x264 core 148 r2708 86b7198 
Encoding settings : cabac=1 / ref=1 / deblock=1:0:0 / analyse=0x1:0x1 / me=dia / subme=1 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=0 / me_range=16 / chroma_me=1 / trellis=0 / 8x8dct=0 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=0 / threads=12 / lookahead_threads=2 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=3 / b_pyramid=2 / b_adapt=1 / b_bias=0 / direct=1 / weightb=1 / open_gop=0 / weightp=1 / keyint=600 / keyint_min=60 / scenecut=40 / intra_refresh=0 / rc=crf / mbtree=0 / crf=22.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / ip_ratio=1.40 / pb_ratio=1.30 / aq=1:1.00 
Encoded date : UTC 2017-04-30 17:28:05 
Tagged date : UTC 2017-04-30 17:28:05 
Color range : Limited 
Color primaries : BT.709 
Transfer characteristics : BT.709 
Matrix coefficients : BT.709 

Audio 
ID : 2 
Format : AC-3 
Format/Info : Audio Coding 3 
Format settings, Endianness : Big 
Codec ID : ac-3 
Duration : 19 min 14 s 
Bit rate mode : Constant 
Bit rate : 128 kb/s 
Channel(s) : 2 channels 
Channel positions : Front: L R 
Sampling rate : 44.1 kHz 
Frame rate : 28.711 FPS (1536 spf) 
Bit depth : 16 bits 
Compression mode : Lossy 
Stream size : 17.6 MiB (2%) 
Title : Stereo / Stereo 
Service kind : Complete Main 
Default : Yes 
Alternate group : 1 
Encoded date : UTC 2017-04-30 17:28:05 
Tagged date : UTC 2017-04-30 17:28:05 
But if i try my video (with constant framerate)......

Code: Select all

General 
Unique ID : 325927084103925425654138654352330145718 (0xF53345E9A2E333E3CA768E5D674B3FB6) 
Complete name : D:\Video\PROVA\Prova_Disco1.mkv 
Format : Matroska 
Format version : Version 2 
File size : 26.2 GiB 
Duration : 1 h 37 min 
Overall bit rate mode : Variable 
Overall bit rate : 38.6 Mb/s 
Movie name : PROVA 01 
Encoded date : UTC 2017-04-11 17:57:08 
Writing application : MakeMKV v1.10.5 win(x64-release) 
Writing library : libmakemkv v1.10.5 (1.3.3/1.4.4) win(x64-release) 
Original source medium : Blu-ray 

Video 
ID : 1 
ID in the original source medium : 4113 (0x1011) 
Format : AVC 
Format/Info : Advanced Video Codec 
Format profile : High@L4.1 
Format settings, CABAC : Yes 
Format settings, ReFrames : 4 frames 
Format settings, GOP : M=3, N=12 
Codec ID : V_MPEG4/ISO/AVC 
Duration : 1 h 37 min 
Bit rate mode : Variable 
Bit rate : 36.8 Mb/s 
Maximum bit rate : 39.0 Mb/s 
Width : 1 920 pixels 
Height : 1 080 pixels 
Display aspect ratio : 16:9 
Frame rate mode : Constant 
Frame rate : 23.976 (24000/1001) FPS 
Color space : YUV 
Chroma subsampling : 4:2:0 
Bit depth : 8 bits 
Scan type : Progressive 
Bits/(Pixel*Frame) : 0.740 
Stream size : 25.0 GiB (95%) 
Language : English 
Default : No 
Forced : No 

Audio 
ID : 2 
ID in the original source medium : 4352 (0x1100) 
Format : DTS 
Format/Info : Digital Theater Systems 
Format profile : MA / Core 
Mode : 16 
Format settings, Endianness : Big 
Codec ID : A_DTS 
Duration : 1 h 37 min 
Bit rate mode : Variable / Constant 
Bit rate : 1 754 kb/s / 639 kb/s 
Channel(s) : 2 channels 
Channel positions : Front: L R 
Sampling rate : 48.0 kHz 
Frame rate : 93.750 FPS (512 spf) 
Bit depth : 24 bits 
Compression mode : Lossless / Lossy 
Stream size : 1.19 GiB (5%) 
Title : Stereo 
Language : Italian 
Default : Yes 
Forced : No 

Text #1 
ID : 3 
ID in the original source medium : 4608 (0x1200) 
Format : PGS 
Codec ID : S_HDMV/PGS 
Codec ID/Info : Picture based subtitle format used on BDs/HD-DVDs 
Duration : 1 h 36 min 
Bit rate : 46.6 kb/s 
Count of elements : 1980 
Stream size : 32.1 MiB (0%) 
Language : Italian 
Default : No 
Forced : No 

Text #2 
ID : 5 
ID in the original source medium : 4609 (0x1201) 
Format : PGS 
Codec ID : S_HDMV/PGS 
Codec ID/Info : Picture based subtitle format used on BDs/HD-DVDs 
Duration : 1 h 36 min 
Bit rate : 1 399 b/s 
Count of elements : 51 
Stream size : 985 KiB (0%) 
Language : Italian 
Default : No 
Forced : No 

Menu 
00:00:00.000 : it:Capitolo 01 
00:03:10.982 : it:Capitolo 02 
00:04:41.030 : it:Capitolo 03 
00:14:45.050 : it:Capitolo 04 
00:22:10.120 : it:Capitolo 05 
00:23:40.085 : it:Capitolo 06 
00:24:00.105 : it:Capitolo 07 
00:24:21.126 : it:Capitolo 08 
00:26:21.162 : it:Capitolo 09 
00:27:51.127 : it:Capitolo 10 
00:35:39.095 : it:Capitolo 11 
00:46:30.078 : it:Capitolo 12 
00:48:00.043 : it:Capitolo 13 
00:48:21.064 : it:Capitolo 14 
00:48:42.085 : it:Capitolo 15 
00:51:10.108 : it:Capitolo 16 
00:52:40.115 : it:Capitolo 17 
01:01:05.161 : it:Capitolo 18 
01:10:42.196 : it:Capitolo 19 
01:12:12.161 : it:Capitolo 20 
01:12:42.191 : it:Capitolo 21 
01:13:03.212 : it:Capitolo 22 
01:14:08.193 : it:Capitolo 23 
01:15:38.242 : it:Capitolo 24 
01:24:48.249 : it:Capitolo 25 
01:35:13.290 : it:Capitolo 26 
01:36:43.297 : it:Capitolo 27 
01:37:03.275 : it:Capitolo 28 
...Handbrake make a video with this results (with variable framerate):

Code: Select all

HandBrake Nightly 20170429190807-b652292-master (2017043001) - 64bit
OS: Microsoft Windows NT 10.0.15063.0 - 64bit
CPU: Intel(R) Core(TM) i7-6820HK CPU @ 2.70GHz
Ram: 16331 MB, 
GPU Information:
  NVIDIA GeForce GTX 1070 - 22.21.13.8189
Screen: 1920x1080
Temp Dir: C:\Users\USER\AppData\Local\Temp\
Install Dir: C:\Program Files\HandBrake Nightly
Data Dir: C:\Users\USER\AppData\Roaming\HandBrake Team\HandBrake\1.0.3.0

-------------------------------------------


# Starting Encode ...

[19:49:32] hb_init: starting libhb thread
[19:49:32] 1 job(s) to process
[19:49:32] json job:
{
  "Audio": {
    "AudioList": [
      {
        "Bitrate": 128,
        "DRC": 0.0,
        "Encoder": 2048,
        "Gain": 0.0,
        "Mixdown": 4,
        "NormalizeMixLevel": false,
        "Samplerate": 0,
        "Track": 0,
        "DitherMethod": 0
      }
    ],
    "CopyMask": [
      1073807360,
      1073743872,
      1074003968,
      1073750016,
      1090519040,
      1074790400,
      1074266112,
      1107296256
    ],
    "FallbackEncoder": 2048
  },
  "Destination": {
    "ChapterList": [],
    "ChapterMarkers": false,
    "File": "C:\\Users\\Jacopo Di Giuli\\Desktop\\PROVA_intro.mp4",
    "Mp4Options": {
      "IpodAtom": false,
      "Mp4Optimize": false
    },
    "Mux": 131072
  },
  "Filters": {
    "FilterList": [
      {
        "ID": 11,
        "Settings": {
          "crop-bottom": "0",
          "crop-left": "0",
          "crop-right": "0",
          "crop-top": "0",
          "height": "1080",
          "width": "1920"
        }
      },
      {
        "ID": 6,
        "Settings": {
          "mode": "1"
        }
      }
    ]
  },
  "PAR": {
    "Num": 1,
    "Den": 1
  },
  "Metadata": {},
  "SequenceID": 0,
  "Source": {
    "Angle": 1,
    "Range": {
      "Type": "chapter",
      "Start": 2,
      "End": 2
    },
    "Title": 1,
    "Path": "D:\\Video\\PROVA\\PROVA_Disco1.mkv"
  },
  "Subtitle": {
    "Search": {
      "Burn": false,
      "Default": false,
      "Enable": false,
      "Forced": false
    },
    "SubtitleList": []
  },
  "Video": {
    "Encoder": 65536,
    "Level": "auto",
    "TwoPass": false,
    "Turbo": false,
    "ColorMatrixCode": 0,
    "Options": "",
    "Preset": "veryfast",
    "Profile": "main",
    "Quality": 22.0,
    "OpenCL": false,
    "HWDecode": false,
    "QSV": {
      "Decode": false,
      "AsyncDepth": 0
    }
  }
}
[19:49:32] CPU: Intel(R) Core(TM) i7-6820HK CPU @ 2.70GHz
[19:49:32]  - Intel microarchitecture Skylake
[19:49:32]  - logical processor count: 8
[19:49:32] Intel Quick Sync Video support: no
[19:49:32] hb_scan: path=D:\Video\PROVA\PROVA_Disco1.mkv, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
src/libbluray/disc/disc.c:274: failed opening UDF image D:\Video\PROVA\PROVA_Disco1.mkv
src/libbluray/disc/disc.c:352: error opening file BDMV\index.bdmv
src/libbluray/disc/disc.c:352: error opening file BDMV\BACKUP\index.bdmv
[19:49:32] bd: not a bd - trying as a stream/file instead
libdvdnav: Using dvdnav version 5.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
[19:49:32] dvd: not a dvd - trying as a stream/file instead
Input #0, matroska,webm, from 'D:\Video\PROVA\PROVA_Disco1.mkv':
  Metadata:
    title           : PROVA 01
  Duration: 01:37:24.29, start: 0.000000, bitrate: N/A
    Chapter #0:0: start 0.000000, end 190.982458
    Metadata:
      title           : Capitolo 01
    Chapter #0:1: start 190.982458, end 281.030750
    Metadata:
      title           : Capitolo 02
    Chapter #0:2: start 281.030750, end 885.050833
    Metadata:
      title           : Capitolo 03
    Chapter #0:3: start 885.050833, end 1330.120458
    Metadata:
      title           : Capitolo 04
    Chapter #0:4: start 1330.120458, end 1420.085333
    Metadata:
      title           : Capitolo 05
    Chapter #0:5: start 1420.085333, end 1440.105333
    Metadata:
      title           : Capitolo 06
    Chapter #0:6: start 1440.105333, end 1461.126333
    Metadata:
      title           : Capitolo 07
    Chapter #0:7: start 1461.126333, end 1581.162917
    Metadata:
      title           : Capitolo 08
    Chapter #0:8: start 1581.162917, end 1671.127792
    Metadata:
      title           : Capitolo 09
    Chapter #0:9: start 1671.127792, end 2139.095292
    Metadata:
      title           : Capitolo 10
    Chapter #0:10: start 2139.095292, end 2790.078958
    Metadata:
      title           : Capitolo 11
    Chapter #0:11: start 2790.078958, end 2880.043833
    Metadata:
      title           : Capitolo 12
    Chapter #0:12: start 2880.043833, end 2901.064833
    Metadata:
      title           : Capitolo 13
    Chapter #0:13: start 2901.064833, end 2922.085833
    Metadata:
      title           : Capitolo 14
    Chapter #0:14: start 2922.085833, end 3070.108708
    Metadata:
      title           : Capitolo 15
    Chapter #0:15: start 3070.108708, end 3160.115292
    Metadata:
      title           : Capitolo 16
    Chapter #0:16: start 3160.115292, end 3665.161500
    Metadata:
      title           : Capitolo 17
    Chapter #0:17: start 3665.161500, end 4242.196292
    Metadata:
      title           : Capitolo 18
    Chapter #0:18: start 4242.196292, end 4332.161167
    Metadata:
      title           : Capitolo 19
    Chapter #0:19: start 4332.161167, end 4362.191167
    Metadata:
      title           : Capitolo 20
    Chapter #0:20: start 4362.191167, end 4383.212167
    Metadata:
      title           : Capitolo 21
    Chapter #0:21: start 4383.212167, end 4448.193750
    Metadata:
      title           : Capitolo 22
    Chapter #0:22: start 4448.193750, end 4538.242042
    Metadata:
      title           : Capitolo 23
    Chapter #0:23: start 4538.242042, end 5088.249833
    Metadata:
      title           : Capitolo 24
    Chapter #0:24: start 5088.249833, end 5713.290917
    Metadata:
      title           : Capitolo 25
    Chapter #0:25: start 5713.290917, end 5803.297500
    Metadata:
      title           : Capitolo 26
    Chapter #0:26: start 5803.297500, end 5823.275792
    Metadata:
      title           : Capitolo 27
    Chapter #0:27: start 5823.275792, end 5844.296792
    Metadata:
      title           : Capitolo 28
    Stream #0:0(eng): Video: h264 (High)
      yuv420p, 1920x1080 [PAR 1:1 DAR 16:9], PAR 1:1 DAR 16:9
      23.98 fps, 1k tbn
    Metadata:
      BPS-eng         : 36768507
      DURATION-eng    : 01:37:24.296791666
      NUMBER_OF_FRAMES-eng: 140123
      NUMBER_OF_BYTES-eng: 26860755070
      SOURCE_ID-eng   : 001011
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.10.5 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2017-04-11 17:57:08
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Stream #0:1(ita): Audio: dts (DTS-HD MA)
      48000 Hz, stereo, fltp, 640 kb/s (default)
    Metadata:
      title           : Stereo
      BPS-eng         : 1753669
      DURATION-eng    : 01:37:24.309333333
      NUMBER_OF_FRAMES-eng: 547904
      NUMBER_OF_BYTES-eng: 1281123640
      SOURCE_ID-eng   : 001100
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.10.5 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2017-04-11 17:57:08
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Stream #0:2(ita): Subtitle: hdmv_pgs_subtitle
    Metadata:
      BPS-eng         : 46570
      DURATION-eng    : 01:36:30.055104166
      NUMBER_OF_FRAMES-eng: 1980
      NUMBER_OF_BYTES-eng: 33705718
      SOURCE_ID-eng   : 001200
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.10.5 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2017-04-11 17:57:08
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Stream #0:3(ita): Subtitle: hdmv_pgs_subtitle
    Metadata:
      BPS-eng         : 1399
      DURATION-eng    : 01:36:09.117520833
      NUMBER_OF_FRAMES-eng: 51
      NUMBER_OF_BYTES-eng: 1008986
      SOURCE_ID-eng   : 001201
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.10.5 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2017-04-11 17:57:08
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
[19:49:32] scan: decoding previews for title 1
[19:49:32] scan: audio 0x1: dca, rate=48000Hz, bitrate=640000 italiano (DTS-HD MA) (2.0 ch)
[19:49:34] scan: 10 previews, 1920x1080, 23.976 fps, autocrop = 0/0/0/0, aspect 16:9, PAR 1:1
[19:49:34] scan: supported video decoders: avcodec qsv
[19:49:34] libhb: scan thread found 1 valid title(s)
[19:49:34] starting job
[19:49:34] work: track 1, dithering not supported by codec
[19:49:34] job configuration:
[19:49:34]  * source
[19:49:34]    + D:\Video\PROVA\PROVA_Disco1.mkv
[19:49:34]    + title 1, chapter(s) 2 to 2
[19:49:34]    + container: matroska,webm
[19:49:34]  * destination
[19:49:34]    + C:\Users\USER\Desktop\PROVA_intro.mp4
[19:49:34]    + container: MPEG-4 (libavformat)
[19:49:34]  * video track
[19:49:34]    + decoder: h264
[19:49:34]    + filters
[19:49:34]      + Framerate Shaper (mode=1)
[19:49:34]        + frame rate: 23.976 fps -> constant 23.976 fps
[19:49:34]      + Crop and Scale (width=1920:height=1080:crop-top=0:crop-bottom=0:crop-left=0:crop-right=0)
[19:49:34]        + source: 1920 * 1080, crop (0/0/0/0): 1920 * 1080, scale: 1920 * 1080
[19:49:34]    + Output geometry
[19:49:34]      + storage dimensions: 1920 x 1080
[19:49:34]      + pixel aspect ratio: 1 : 1
[19:49:34]      + display dimensions: 1920 x 1080
[19:49:34]    + encoder: H.264 (libx264)
[19:49:34]      + preset:  veryfast
[19:49:34]      + profile: main
[19:49:34]      + level:   auto
[19:49:34]      + quality: 22.00 (RF)
[19:49:34]  * audio track 1
[19:49:34]    + decoder: italiano (DTS-HD MA) (2.0 ch) (track 1, id 0x1)
[19:49:34]      + bitrate: 640 kbps, samplerate: 48000 Hz
[19:49:34]    + mixdown: Stereo
[19:49:34]    + encoder: AC3 (libavcodec)
[19:49:34]      + bitrate: 128 kbps, samplerate: 48000 Hz
[19:49:34] sync: expecting 2158 video frames
[19:49:34] encx264: min-keyint: 24, keyint: 240
[19:49:34] encx264: encoding at constant RF 22.000000
[19:49:34] encx264: unparsed options: ref=1:8x8dct=0:weightp=1:subme=2:mixed-refs=0:trellis=0:rc-lookahead=10
x264 [info]: using SAR=1/1
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 AVX2 LZCNT BMI2
x264 [info]: profile Main, level 4.0
[19:49:34] sync: first pts video is 0
[19:49:34] sync: first pts audio 0x1 is 450
[19:49:34] sync: "Capitolo 02" (2) at frame 4 time 11261
[19:50:02] reader: end of chapter 2 (media 2) reached at media chapter 3
[19:50:02] reader: done. 1 scr changes
[19:50:02] work: average encoding speed for job is 76.805489 fps
[19:50:02] vfr: 2160 frames output, 0 dropped and 0 duped for CFR/PFR
[19:50:02] vfr: lost time: 0 (0 frames)
[19:50:02] vfr: gained time: 0 (0 frames) (0 not accounted for)
[19:50:02] dca-decoder done: 8442 frames, 0 decoder errors
[19:50:02] h264-decoder done: 2160 frames, 0 decoder errors
[19:50:02] sync: got 2160 frames, 2158 expected
[19:50:02] sync: framerate min 23.981 fps, max 23.981 fps, avg 23.976 fps
x264 [info]: frame I:96    Avg QP:18.65  size: 69793
x264 [info]: frame P:937   Avg QP:21.88  size: 30908
x264 [info]: frame B:1127  Avg QP:22.36  size:  8135
x264 [info]: consecutive B-frames: 25.6% 11.3%  9.2% 53.9%
x264 [info]: mb I  I16..4: 66.7%  0.0% 33.3%
x264 [info]: mb P  I16..4: 35.8%  0.0%  7.1%  P16..4: 12.9%  6.9%  3.0%  0.0%  0.0%    skip:34.2%
x264 [info]: mb B  I16..4:  4.6%  0.0%  0.4%  B16..8: 10.0%  3.5%  0.5%  direct: 6.7%  skip:74.4%  L0:42.3% L1:50.7% BI: 7.0%
x264 [info]: coded y,uvDC,uvAC intra: 19.8% 40.6% 15.4% inter: 6.8% 12.0% 1.3%
x264 [info]: i16 v,h,dc,p: 51% 27% 11% 11%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 23% 22% 22%  7%  5%  5%  6%  5%  5%
x264 [info]: i8c dc,h,v,p: 59% 20% 17%  4%
x264 [info]: Weighted P-Frames: Y:8.1% UV:6.0%
x264 [info]: kb/s:3980.83
[19:50:03] mux: track 0, 2160 frames, 44827534 bytes, 3980.69 kbps, fifo 1024
[19:50:03] mux: track 1, 2814 frames, 1440768 bytes, 127.94 kbps, fifo 1024
[19:50:03] libhb: work result = 0

# Encode Completed ...

[19:50:03] hb_init: starting libhb thread

Code: Select all

General 
Complete name : C:\Users\Jacopo Di Giuli\Desktop\PROVA_intro.mp4 
Format : MPEG-4 
Format profile : Base Media / Version 2 
Codec ID : mp42 (isom/iso2/avc1/mp41) 
File size : 44.2 MiB 
Duration : 1 min 30 s 
Overall bit rate : 4 113 kb/s 
Movie name : PROVA 01
Encoded date : UTC 2017-04-30 17:49:34 
Tagged date : UTC 2017-04-30 17:49:34 
Writing application : HandBrake 20170429190807-b652292-master 2017043001 

Video 
ID : 1 
Format : AVC 
Format/Info : Advanced Video Codec 
Format profile : Main@L4 
Format settings, CABAC : Yes 
Format settings, ReFrames : 4 frames 
Codec ID : avc1 
Codec ID/Info : Advanced Video Coding 
Duration : 1 min 30 s 
Bit rate : 3 981 kb/s 
Width : 1 920 pixels 
Height : 1 080 pixels 
Display aspect ratio : 16:9 
Frame rate mode : Variable 
Frame rate : 23.976 (24000/1001) FPS 
Minimum frame rate : 23.974 FPS 
Maximum frame rate : 23.981 FPS 
Color space : YUV 
Chroma subsampling : 4:2:0 
Bit depth : 8 bits 
Scan type : Progressive 
Bits/(Pixel*Frame) : 0.080 
Stream size : 42.8 MiB (97%) 
Writing library : x264 core 148 r2708 86b7198 
Encoding settings : cabac=1 / ref=1 / deblock=1:0:0 / analyse=0x1:0x111 / me=hex / subme=2 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=0 / me_range=16 / chroma_me=1 / trellis=0 / 8x8dct=0 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=0 / threads=12 / lookahead_threads=4 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=3 / b_pyramid=2 / b_adapt=1 / b_bias=0 / direct=1 / weightb=1 / open_gop=0 / weightp=1 / keyint=240 / keyint_min=24 / scenecut=40 / intra_refresh=0 / rc_lookahead=10 / rc=crf / mbtree=1 / crf=22.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / ip_ratio=1.40 / aq=1:1.00 
Encoded date : UTC 2017-04-30 17:49:34 
Tagged date : UTC 2017-04-30 17:49:34 
Color range : Limited 
Color primaries : BT.709 
Transfer characteristics : BT.709 
Matrix coefficients : BT.709 

Audio 
ID : 2 
Format : AC-3 
Format/Info : Audio Coding 3 
Format settings, Endianness : Big 
Codec ID : ac-3 
Duration : 1 min 30 s 
Bit rate mode : Constant 
Bit rate : 128 kb/s 
Channel(s) : 2 channels 
Channel positions : Front: L R 
Sampling rate : 48.0 kHz 
Frame rate : 31.250 FPS (1536 spf) 
Bit depth : 16 bits 
Compression mode : Lossy 
Stream size : 1.37 MiB (3%) 
Title : Stereo / Stereo 
Language : Italian 
Service kind : Complete Main 
Default : Yes 
Alternate group : 1 
Encoded date : UTC 2017-04-30 17:49:34 
Tagged date : UTC 2017-04-30 17:49:34 

Can you explane this???
Thanks!
User avatar
s55
HandBrake Team
Posts: 10357
Joined: Sun Dec 24, 2006 1:05 pm

Re: Variable Framerate behavior change with MP4 in HD 1.0.x

Post by s55 »

There is nothing to explain. The 90khz timebase we use means you can *sometimes* have a 1 tick jitter which will trip up MediaInfo.
jacop89
Novice
Posts: 64
Joined: Sat Dec 01, 2012 9:11 am

Re: Variable Framerate behavior change with MP4 in HD 1.0.x

Post by jacop89 »

s55 wrote: Sun Apr 30, 2017 6:38 pm There is nothing to explain. The 90khz timebase we use means you can *sometimes* have a 1 tick jitter which will trip up MediaInfo.
Thanks.... but i can't understand: what is 90khz timebase? Why the first video don't have it? it depends of MakeMKV re-mux??
Deleted User 13735

Re: Variable Framerate behavior change with MP4 in HD 1.0.x

Post by Deleted User 13735 »

It's not something to worry about. Trust me, I'm a producer.

If you have math knowledge beyond 8th grade US, [(24(1000/1001))/90,0000] is not a rational solution. Best.
Post Reply