Mediainfo shows encoded file as VFR, when CFR is selected for 59.940 fps

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
Eagle Six
Posts: 3
Joined: Fri Aug 03, 2018 9:28 pm

Mediainfo shows encoded file as VFR, when CFR is selected for 59.940 fps

Post by Eagle Six » Fri Aug 03, 2018 10:13 pm

Mediainfo shows encoded file as VFR, when CFR is selected for 59.940 fps

Source is 1280x720 59.940p. Using the Fast 720-30 'Preset', changing only the 30 fps to 59.940 fps and checking 'Constant Framerate', the encoded results are reported in Vegas Pro (latest build) as 59.947 fps, and Mediainfo (latest build) does not report a 'Frame Rate Mode'. If I use Handbrake ver 1.1.1, Mediainfo reports the "Frame Rate Mode:' as 'Variable'.

After trying many presets, and changing manually, the only time I can get a 'Constant' frame rate report from Resolve 14, Vegas Pro 15, and Mediainfo is when I encode with Matroska (Vegas Pro does not support Matroska).

I must be doing something wrong, I just can't believe Handbrake will not encode h.264/h.265 at a constant frame rate of 59.940. or, perhaps it is something in the file tags that Mediainfo is not reading properly.

Encoding to 30 fps. 60 fps, or 29.97 work fine.


version 1.1.1 and Nightly 20180730204202-f7f3718-master (2018080301)

Window 7 updated

HandBrake Activity Log

Code: Select all

HandBrake Nightly 20180730204202-f7f3718-master (2018080301)
OS: Microsoft Windows NT 6.1.7601 Service Pack 1
Ram: 65446 MB, 
GPU Information:
  AMD Radeon (TM) R9 390 Series - 22.19.677.257
Screen: 1920x1080
Temp Dir: C:\Users\EagleSix\AppData\Local\Temp\
Install Dir: C:\Program Files\HandBrake Nightly
Data Dir: C:\Users\EagleSix\AppData\Roaming\HandBrake\Nightly

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


# Starting Encode ...

[14:57:34] hb_init: starting libhb thread
[14:57:34] 1 job(s) to process
[14:57:34] json job:
{
  "Audio": {
    "AudioList": [
      {
        "Bitrate": 160,
        "DRC": 0.0,
        "Encoder": "av_aac",
        "Gain": 0.0,
        "Mixdown": 6,
        "NormalizeMixLevel": false,
        "Samplerate": 48000,
        "Track": 0,
        "DitherMethod": 0
      }
    ],
    "CopyMask": [
      "copy:aac",
      "copy:ac3",
      "copy:dtshd",
      "copy:dts",
      "copy:eac3",
      "copy:flac",
      "copy:mp3",
      "copy:truehd"
    ],
    "FallbackEncoder": "ac3"
  },
  "Destination": {
    "ChapterList": [
      {
        "Name": "Chapter 1"
      }
    ],
    "ChapterMarkers": true,
    "AlignAVStart": true,
    "File": "E:\\Handbrake Output Files\\Alpine 07-30-18.mp4",
    "Mp4Options": {
      "IpodAtom": false,
      "Mp4Optimize": false
    },
    "Mux": "mp4"
  },
  "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": 11,
        "Settings": {
          "crop-bottom": "0",
          "crop-left": "0",
          "crop-right": "0",
          "crop-top": "0",
          "height": "720",
          "width": "1280"
        }
      },
      {
        "ID": 6,
        "Settings": {
          "mode": "1",
          "rate": "27000000/450450"
        }
      }
    ]
  },
  "PAR": {
    "Num": 1,
    "Den": 1
  },
  "Metadata": {},
  "SequenceID": 0,
  "Source": {
    "Angle": 1,
    "Range": {
      "Type": "chapter",
      "Start": 1,
      "End": 1
    },
    "Title": 1,
    "Path": "G:\\Video\\Alpine Run 07-30-18\\Production\\Alpine 07-30-18.mp4"
  },
  "Subtitle": {
    "Search": {
      "Burn": true,
      "Default": false,
      "Enable": true,
      "Forced": true
    },
    "SubtitleList": []
  },
  "Video": {
    "Encoder": "x264",
    "Level": "3.1",
    "TwoPass": false,
    "Turbo": false,
    "ColorMatrixCode": 0,
    "Options": "",
    "Preset": "fast",
    "Profile": "main",
    "Quality": 21.0,
    "QSV": {
      "Decode": false,
      "AsyncDepth": 0
    }
  }
}
[14:57:34] CPU: Intel(R) Core(TM) i7-6800K CPU @ 3.40GHz
[14:57:34]  - Intel microarchitecture Broadwell
[14:57:34]  - logical processor count: 12
[14:57:34] Intel Quick Sync Video support: no
[14:57:34] hb_scan: path=G:\Video\Alpine Run 07-30-18\Production\Alpine 07-30-18.mp4, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
src/libbluray/disc/disc.c:323: failed opening UDF image G:\Video\Alpine Run 07-30-18\Production\Alpine 07-30-18.mp4
src/libbluray/disc/disc.c:424: error opening file BDMV\index.bdmv
src/libbluray/disc/disc.c:424: error opening file BDMV\BACKUP\index.bdmv
[14:57:34] bd: not a bd - trying as a stream/file instead
libdvdnav: Using dvdnav version 5.0.3
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
[14:57:34] dvd: not a dvd - trying as a stream/file instead
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'G:\Video\Alpine Run 07-30-18\Production\Alpine 07-30-18.mp4':
  Metadata:
    major_brand     : mp42
    minor_version   : 0
    compatible_brands: isommp42
    creation_time   : 2018-07-31T15:16:44.000000Z
  Duration: 00:02:15.51, start: 0.000000, bitrate: 8246 kb/s
    Stream #0:0(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 189 kb/s (default)
    Metadata:
      creation_time   : 2018-07-31T15:16:44.000000Z
      handler_name    : Mainconcept MP4 Sound Media Handler
    Stream #0:1(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709), 1280x720 [SAR 1:1 DAR 16:9], 8049 kb/s, 59.94 fps, 59.94 tbr, 60k tbn, 119.88 tbc (default)
    Metadata:
      creation_time   : 2018-07-31T15:16:44.000000Z
      handler_name    : Mainconcept MP4 Video Media Handler
      encoder         : AVC Coding
[14:57:34] scan: decoding previews for title 1
[14:57:34] scan: audio 0x0: aac, rate=48000Hz, bitrate=189463 English (AAC LC) (2.0 ch)
[14:57:35] scan: 10 previews, 1280x720, 59.940 fps, autocrop = 0/0/0/0, aspect 16:9, PAR 1:1
[14:57:35] scan: supported video decoders: avcodec qsv
[14:57:35] libhb: scan thread found 1 valid title(s)
[14:57:35] Skipping subtitle scan.  No suitable subtitle tracks.
[14:57:35] starting job
[14:57:35] decomb filter thread started for segment 0
[14:57:35] decomb filter thread started for segment 1
[14:57:35] decomb filter thread started for segment 2
[14:57:35] decomb filter thread started for segment 3
[14:57:35] decomb filter thread started for segment 4
[14:57:35] decomb check thread started for segment 2
[14:57:35] decomb filter thread started for segment 6
[14:57:35] decomb filter thread started for segment 7
[14:57:35] decomb check thread started for segment 5
[14:57:35] decomb filter thread started for segment 9
[14:57:35] decomb filter thread started for segment 10
[14:57:35] decomb filter thread started for segment 11
[14:57:35] decomb check thread started for segment 0
[14:57:35] decomb check thread started for segment 1
[14:57:35] decomb filter thread started for segment 5
[14:57:35] decomb check thread started for segment 3
[14:57:35] decomb check thread started for segment 4
[14:57:35] decomb filter thread started for segment 8
[14:57:35] decomb check thread started for segment 6
[14:57:35] decomb check thread started for segment 7
[14:57:35] mask filter thread started for segment 5
[14:57:35] decomb check thread started for segment 9
[14:57:35] decomb check thread started for segment 10
[14:57:35] decomb check thread started for segment 11
[14:57:35] mask filter thread started for segment 0
[14:57:35] mask filter thread started for segment 1
[14:57:35] mask filter thread started for segment 2
[14:57:35] mask filter thread started for segment 3
[14:57:35] mask filter thread started for segment 4
[14:57:35] mask erode thread started for segment 1
[14:57:35] mask filter thread started for segment 6
[14:57:35] mask erode thread started for segment 3
[14:57:35] mask filter thread started for segment 8
[14:57:35] mask filter thread started for segment 9
[14:57:35] mask filter thread started for segment 10
[14:57:35] mask filter thread started for segment 11
[14:57:35] mask erode thread started for segment 0
[14:57:35] mask erode thread started for segment 8
[14:57:35] mask erode thread started for segment 2
[14:57:35] mask filter thread started for segment 7
[14:57:35] mask erode thread started for segment 4
[14:57:35] mask erode thread started for segment 5
[14:57:35] mask erode thread started for segment 6
[14:57:35] mask erode thread started for segment 7
[14:57:35] decomb check thread started for segment 8
[14:57:35] mask erode thread started for segment 9
[14:57:35] mask erode thread started for segment 10
[14:57:35] mask erode thread started for segment 11
[14:57:35] mask dilate thread started for segment 0
[14:57:35] mask dilate thread started for segment 1
[14:57:35] mask dilate thread started for segment 2
[14:57:35] mask dilate thread started for segment 3
[14:57:35] mask dilate thread started for segment 4
[14:57:35] mask dilate thread started for segment 5
[14:57:35] mask dilate thread started for segment 6
[14:57:35] mask dilate thread started for segment 7
[14:57:35] mask dilate thread started for segment 8
[14:57:35] mask dilate thread started for segment 9
[14:57:35] mask dilate thread started for segment 10
[14:57:35] yadif thread started for segment 3
[14:57:35] yadif thread started for segment 0
[14:57:35] yadif thread started for segment 1
[14:57:35] yadif thread started for segment 2
[14:57:35] mask dilate thread started for segment 11
[14:57:35] yadif thread started for segment 4
[14:57:35] yadif thread started for segment 5
[14:57:35] yadif thread started for segment 6
[14:57:35] yadif thread started for segment 10
[14:57:35] yadif thread started for segment 8
[14:57:35] yadif thread started for segment 9
[14:57:35] yadif thread started for segment 7
[14:57:35] work: sanitizing track 1 mixdown Dolby Pro Logic II to Stereo
[14:57:35] yadif thread started for segment 11
[14:57:35] work: only 1 chapter, disabling chapter markers
[14:57:35] job configuration:
[14:57:35]  * source
[14:57:35]    + G:\Video\Alpine Run 07-30-18\Production\Alpine 07-30-18.mp4
[14:57:35]    + title 1, chapter(s) 1 to 1
[14:57:35]    + container: mov,mp4,m4a,3gp,3g2,mj2
[14:57:35]    + data rate: 8246 kbps
[14:57:35]  * destination
[14:57:35]    + E:\Handbrake Output Files\Alpine 07-30-18.mp4
[14:57:35]    + container: MPEG-4 (libavformat)
[14:57:35]      + align initial A/V stream timestamps
[14:57:35]  * video track
[14:57:35]    + decoder: h264
[14:57:35]      + bitrate 8049 kbps
[14:57:35]    + filters
[14:57:35]      + 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)
[14:57:35]      + Decomb (mode=39)
[14:57:35]      + Framerate Shaper (mode=1:rate=27000000/450450)
[14:57:35]        + frame rate: 59.940 fps -> constant 59.940 fps
[14:57:35]      + Crop and Scale (width=1280:height=720:crop-top=0:crop-bottom=0:crop-left=0:crop-right=0)
[14:57:35]        + source: 1280 * 720, crop (0/0/0/0): 1280 * 720, scale: 1280 * 720
[14:57:35]    + Output geometry
[14:57:35]      + storage dimensions: 1280 x 720
[14:57:35]      + pixel aspect ratio: 1 : 1
[14:57:35]      + display dimensions: 1280 x 720
[14:57:35]    + encoder: H.264 (libx264)
[14:57:35]      + preset:  fast
[14:57:35]      + profile: main
[14:57:35]      + level:   3.1
[14:57:35]      + quality: 21.00 (RF)
[14:57:35]  * audio track 1
[14:57:35]    + decoder: English (AAC LC) (2.0 ch) (track 1, id 0x0)
[14:57:35]      + bitrate: 189 kbps, samplerate: 48000 Hz
[14:57:35]    + mixdown: Stereo
[14:57:35]    + dither: none
[14:57:35]    + encoder: AAC (libavcodec)
[14:57:35]      + bitrate: 160 kbps, samplerate: 48000 Hz
[14:57:35] sync: expecting 8122 video frames
[14:57:35] encavcodecaInit: Unknown avcodec option stereo_mode
[14:57:35] encx264: min-keyint: 60, keyint: 600
[14:57:35] encx264: encoding at constant RF 21.000000
[14:57:35] apply_h264_level [warning]: framerate (59.940) too high for level 3.1 at 1280x720 (max. 30.000)
[14:57:35] encx264: unparsed options: level=3.1:ref=2:8x8dct=0:weightp=1:subme=6:vbv-bufsize=14000:vbv-maxrate=14000:rc-lookahead=30
x264 [info]: using SAR=1/1
x264 [warning]: MB rate (215784) > level limit (108000)
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
x264 [info]: profile Main, level 3.1
[14:57:35] sync: first pts video is 0
[14:57:35] sync: "Chapter 1" (1) at frame 1 time 0
[14:57:35] sync: first pts audio 0x0 is 0
[14:58:51] reader: done. 1 scr changes
[14:58:51] work: average encoding speed for job is 105.924973 fps
[14:58:51] comb detect: heavy 8 | light 273 | uncombed 7841 | total 8122
[14:58:51] decomb: deinterlaced 8 | blended 273 | unfiltered 7841 | total 8122
[14:58:51] vfr: 8122 frames output, 0 dropped and 0 duped for CFR/PFR
[14:58:51] vfr: lost time: 0 (0 frames)
[14:58:51] vfr: gained time: 0 (0 frames) (0 not accounted for)
[14:58:51] aac-decoder done: 6352 frames, 0 decoder errors
[14:58:51] h264-decoder done: 8122 frames, 0 decoder errors
[14:58:51] sync: got 8122 frames, 8122 expected
[14:58:51] sync: framerate min 59.960 fps, max 59.960 fps, avg 59.940 fps
x264 [info]: frame I:16    Avg QP:21.82  size: 86493
x264 [info]: frame P:2212  Avg QP:23.48  size: 28147
x264 [info]: frame B:5894  Avg QP:26.91  size:  9882
x264 [info]: consecutive B-frames:  0.4%  5.5%  9.2% 84.9%
x264 [info]: mb I  I16..4: 34.4%  0.0% 65.6%
x264 [info]: mb P  I16..4: 16.7%  0.0% 11.7%  P16..4: 29.5% 16.1%  8.5%  0.0%  0.0%    skip:17.6%
x264 [info]: mb B  I16..4:  8.6%  0.0%  4.6%  B16..8: 27.1%  8.4%  0.5%  direct: 4.5%  skip:46.3%  L0:41.0% L1:47.5% BI:11.6%
x264 [info]: coded y,uvDC,uvAC intra: 53.4% 25.8% 2.9% inter: 15.4% 11.0% 0.1%
x264 [info]: i16 v,h,dc,p: 26% 26% 39% 10%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 24% 20% 30%  3%  6%  4%  6%  3%  4%
x264 [info]: i8c dc,h,v,p: 66% 19% 11%  3%
x264 [info]: Weighted P-Frames: Y:10.4% UV:3.0%
x264 [info]: ref P L0: 76.2% 23.8%
x264 [info]: ref B L0: 85.6% 14.4%
x264 [info]: ref B L1: 96.1%  3.9%
x264 [info]: kb/s:7196.19
[14:58:51] mux: track 0, 8122 frames, 121886616 bytes, 7195.26 kbps, fifo 2048
[14:58:51] mux: track 1, 6353 frames, 2756571 bytes, 162.73 kbps, fifo 2048
[14:58:51] libhb: work result = 0

# Encode Completed ...


User avatar
s55
HandBrake Team
Posts: 9217
Joined: Sun Dec 24, 2006 1:05 pm

Re: Mediainfo shows encoded file as VFR, when CFR is selected for 59.940 fps

Post by s55 » Fri Aug 03, 2018 10:16 pm

Media Info has known issues with mis-detecting this with HandBrake content due to the 90khz timebase we use. There is a small jitter that can occur that confuses it.

Eagle Six
Posts: 3
Joined: Fri Aug 03, 2018 9:28 pm

Re: Mediainfo shows encoded file as VFR, when CFR is selected for 59.940 fps

Post by Eagle Six » Fri Aug 03, 2018 10:47 pm

Thank You s55, do you know, or think, that Vegas Pro 15 has this same problem when it identifies the frame rate at 59.947 instead of 59.940?

User avatar
s55
HandBrake Team
Posts: 9217
Joined: Sun Dec 24, 2006 1:05 pm

Re: Mediainfo shows encoded file as VFR, when CFR is selected for 59.940 fps

Post by s55 » Fri Aug 03, 2018 10:51 pm

I don't use Vegas myself so can't really comment. I do know we have a fairly modest group of users using it. Some linger on the forums but you might get a better response on the Vegas forums.

I'm assuming the only reason your converting is to get CFR? Otherwise H.264 -> H.264 is adding an unnecessary generation of quality loss. There may be a better intermediate format that can be used rather than using HandBrake.

Eagle Six
Posts: 3
Joined: Fri Aug 03, 2018 9:28 pm

Re: Mediainfo shows encoded file as VFR, when CFR is selected for 59.940 fps

Post by Eagle Six » Fri Aug 03, 2018 11:08 pm

Actually I frame-serve out of Vegas pro to Handbrake for final delivery and would like CFR. The original source is usually something like ProRes or DNxHD. Occasionally the h.264 out of handbrake would go to another Vegas Pro user to use for whatever purpose and Vegas like constant rather the VFR. I haven't run into a specific problem, but was concerned as older version of Handbrake I have used in the past, if I remember correctly produced CFR at 59.940. Thank You for the information and your quick response.

Post Reply