Frame rate mode not converting to constant

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
Yawnny
Posts: 15
Joined: Thu May 18, 2017 5:53 am

Frame rate mode not converting to constant

Post by Yawnny »

Please detail your question or problem in as much detail as possible:

Hey all,
I've been trying to convert files so that they have a constant framerate.

Without a constant framerate audio and video are out of sync when imported in Adobe Premier.
I select the file(s) and under video choose Framerate (FPS) 30, Video Codec: H.264. and click on Encode.
It seems like the encode works no problem.. but then I'll look at the file with MediaInfo and it still shows Frame rate mode: Variable.

Video files not being converted to Constant Framerate and I can't figure out what I'm doing wrong.

Any help is much appreciated.

Tell us about your environment. What version of HandBrake? What version of Windows are you running. etc.

Handbrake V. 1.0.7
Windows 10

If there was any exception or error displayed, please copy it and paste it here:

No error messages

Please include the scan or encode log:

This is a long from a scan that's finished 5 files.. still working on 8 more.. but I noticed the 5 that have been created are still Variable framerate.

Code: Select all

HandBrake 1.0.7 (2017040900) - 64bit
OS: Microsoft Windows NT 10.0.14393.0 - 64bit
CPU: Intel(R) Core(TM) i7-4770K CPU @ 3.50GHz
Ram: 16289 MB,
GPU Information:
  NVIDIA GeForce GTX 980 Ti - 22.21.13.8165
Screen: 3840x2160
Temp Dir: C:\Users\Yawnny\AppData\Local\Temp\
Install Dir: C:\Program Files\HandBrake
Data Dir: C:\Users\Yawnny\AppData\Roaming\HandBrake Team\HandBrake\1.0.7.0
 
-------------------------------------------
 
 
# Starting Encode ...
 
[23:51:04] hb_init: starting libhb thread
[23:51:04] 1 job(s) to process
[23:51:04] json job:
{
  "Audio": {
    "AudioList": [
      {
        "Bitrate": 160,
        "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": [
      {
        "Name": "Chapter 1"
      }
    ],
    "ChapterMarkers": true,
    "File": "C:\\Users\\Yawnny\\Videos\\Cjayride\\Jayriding With A Hangover - 5 11 2017 [part 1 Of 2] -720p H264-118kbits Aac-6.m4v",
    "Mp4Options": {
      "IpodAtom": false,
      "Mp4Optimize": false
    },
    "Mux": 131072
  },
  "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": "2",
          "rate": "27000000/900000"
        }
      }
    ]
  },
  "PAR": {
    "Num": 1,
    "Den": 1
  },
  "Metadata": {},
  "SequenceID": 0,
  "Source": {
    "Angle": 1,
    "Range": {
      "Type": "chapter",
      "Start": 1,
      "End": 1
    },
    "Title": 6,
    "Path": "C:\\Users\\Yawnny\\Videos\\Cjayride\\toBeEncoded\\Jayriding with a Hangover - 5_11_2017 [Part 1 of 2] -720p_h264-118kbits_aac.mp4"
  },
  "Subtitle": {
    "Search": {
      "Burn": true,
      "Default": false,
      "Enable": true,
      "Forced": true
    },
    "SubtitleList": []
  },
  "Video": {
    "Encoder": 65536,
    "Level": "4.0",
    "TwoPass": false,
    "Turbo": false,
    "ColorMatrixCode": 0,
    "Options": "",
    "Preset": "fast",
    "Profile": "main",
    "Quality": 22.0,
    "OpenCL": false,
    "HWDecode": false,
    "QSV": {
      "Decode": false,
      "AsyncDepth": 0
    }
  }
}
[23:51:04] CPU: Intel(R) Core(TM) i7-4770K CPU @ 3.50GHz
[23:51:04]  - Intel microarchitecture Haswell
[23:51:04]  - logical processor count: 8
[23:51:04] Intel Quick Sync Video support: no
[23:51:04] hb_scan: path=C:\Users\Yawnny\Videos\Cjayride\toBeEncoded\Jayriding with a Hangover - 5_11_2017 [Part 1 of 2] -720p_h264-118kbits_aac.mp4, title_index=6
udfread ERROR: ECMA 167 Volume Recognition failed
src/libbluray/disc/disc.c:274: failed opening UDF image C:\Users\Yawnny\Videos\Cjayride\toBeEncoded\Jayriding with a Hangover - 5_11_2017 [Part 1 of 2] -720p_h264-118kbits_aac.mp4
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
[23:51:04] 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
[23:51:04] dvd: not a dvd - trying as a stream/file instead
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'C:\Users\Yawnny\Videos\Cjayride\toBeEncoded\Jayriding with a Hangover - 5_11_2017 [Part 1 of 2] -720p_h264-118kbits_aac.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    title           : Jayriding with a Hangover - 5/11/2017 [Part 1 of 2]
    artist          : CJayride
    date            : 2017
    encoder         : Lavf55.49.100
    comment         : https://www.twitch.tv/videos/141654668
  Duration: 04:38:02.05, start: 0.000000, bitrate: 2130 kb/s
    Stream #0:0(und): Video: h264 (Main) [avc1 / 0x31637661]
      yuv420p, 1280x720 [PAR 1:1 DAR 16:9], 1991 kb/s
      29.97 fps, 90k tbn (default)
    Metadata:
      handler_name    : VideoHandler
    Stream #0:1(und): Audio: aac (LC) [mp4a / 0x6134706D]
      44100 Hz, stereo, fltp, 127 kb/s (default)
    Metadata:
      handler_name    : SoundHandler
[23:51:04] scan: decoding previews for title 6
[23:51:04] scan: audio 0x1: aac, rate=44100Hz, bitrate=127707 Unknown (AAC) (2.0 ch)
[23:51:04] scan: 10 previews, 1280x720, 28.470 fps, autocrop = 0/0/0/0, aspect 16:9, PAR 1:1
[23:51:04] scan: supported video decoders: avcodec qsv
[23:51:04] libhb: scan thread found 1 valid title(s)
[23:51:04] Skipping subtitle scan.  No suitable subtitle tracks.
[23:51:04] starting job
[23:51:04] decomb filter thread started for segment 0
[23:51:04] decomb filter thread started for segment 1
[23:51:04] decomb check thread started for segment 0
[23:51:04] decomb filter thread started for segment 3
[23:51:04] decomb filter thread started for segment 4
[23:51:04] decomb filter thread started for segment 5
[23:51:04] mask filter thread started for segment 3
[23:51:04] mask filter thread started for segment 6
[23:51:04] decomb filter thread started for segment 2
[23:51:04] decomb check thread started for segment 1
[23:51:04] decomb check thread started for segment 2
[23:51:04] mask erode thread started for segment 7
[23:51:04] decomb check thread started for segment 4
[23:51:04] decomb check thread started for segment 5
[23:51:04] decomb check thread started for segment 6
[23:51:04] mask dilate thread started for segment 6
[23:51:04] mask filter thread started for segment 0
[23:51:04] mask filter thread started for segment 1
[23:51:04] mask filter thread started for segment 2
[23:51:04] decomb filter thread started for segment 6
[23:51:04] work: track 1, dithering not supported by codec
[23:51:04] mask filter thread started for segment 4
[23:51:04] work: only 1 chapter, disabling chapter markers
[23:51:04] job configuration:
[23:51:04]  * source
[23:51:04]    + C:\Users\Yawnny\Videos\Cjayride\toBeEncoded\Jayriding with a Hangover - 5_11_2017 [Part 1 of 2] -720p_h264-118kbits_aac.mp4
[23:51:04]    + title 6, chapter(s) 1 to 1
[23:51:04] mask filter thread started for segment 5
[23:51:04]    + container: mov,mp4,m4a,3gp,3g2,mj2
[23:51:04]    + data rate: 2130 kbps
[23:51:04]  * destination
[23:51:04]    + C:\Users\Yawnny\Videos\Cjayride\Jayriding With A Hangover - 5 11 2017 [part 1 Of 2] -720p H264-118kbits Aac-6.m4v
[23:51:04]    + container: MPEG-4 (libavformat)
[23:51:04]  * video track
[23:51:04]    + decoder: h264
[23:51:04] decomb filter thread started for segment 7
[23:51:04]      + bitrate 1991 kbps
[23:51:04]    + filters
[23:51:04]      + 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)
[23:51:04] mask filter thread started for segment 7
[23:51:04]      + Decomb (mode=39)
[23:51:04]      + Framerate Shaper (mode=2:rate=27000000/900000)
[23:51:04] mask erode thread started for segment 0
[23:51:04]        + frame rate: 28.470 fps -> peak rate limited to 30.000 fps
[23:51:04]      + Crop and Scale (width=1280:height=720:crop-top=0:crop-bottom=0:crop-left=0:crop-right=0)
[23:51:04]        + source: 1280 * 720, crop (0/0/0/0): 1280 * 720, scale: 1280 * 720
[23:51:04] mask erode thread started for segment 1
[23:51:04]    + Output geometry
[23:51:04]      + storage dimensions: 1280 x 720
[23:51:04]      + pixel aspect ratio: 1 : 1
[23:51:04]      + display dimensions: 1280 x 720
[23:51:04]    + encoder: H.264 (libx264)
[23:51:04]      + preset:  fast
[23:51:04]      + profile: main
[23:51:04]      + level:   4.0
[23:51:04]      + quality: 22.00 (RF)
[23:51:04]  * audio track 1
[23:51:04]    + decoder: Unknown (AAC) (2.0 ch) (track 1, id 0x1)
[23:51:04] mask erode thread started for segment 2
[23:51:04]      + bitrate: 127 kbps, samplerate: 44100 Hz
[23:51:04]    + mixdown: Stereo
[23:51:04] mask erode thread started for segment 3
[23:51:04]    + encoder: AAC (libavcodec)
[23:51:04]      + bitrate: 160 kbps, samplerate: 44100 Hz
[23:51:04] mask erode thread started for segment 4
[23:51:04] mask erode thread started for segment 5
[23:51:04] mask erode thread started for segment 6
[23:51:04] decomb check thread started for segment 3
[23:51:04] mask dilate thread started for segment 0
[23:51:04] mask dilate thread started for segment 1
[23:51:04] mask dilate thread started for segment 2
[23:51:04] mask dilate thread started for segment 3
[23:51:04] mask dilate thread started for segment 4
[23:51:04] mask dilate thread started for segment 5
[23:51:04] decomb check thread started for segment 7
[23:51:04] mask dilate thread started for segment 7
[23:51:04] yadif thread started for segment 0
[23:51:04] yadif thread started for segment 1
[23:51:04] yadif thread started for segment 2
[23:51:04] yadif thread started for segment 3
[23:51:04] yadif thread started for segment 4
[23:51:04] yadif thread started for segment 5
[23:51:04] yadif thread started for segment 6
[23:51:04] yadif thread started for segment 7
[23:51:04] sync: expecting 474945 video frames
[23:51:04] encx264: min-keyint: 28, keyint: 280
[23:51:04] encx264: encoding at constant RF 22.000000
[23:51:04] encx264: unparsed options: vbv-bufsize=25000:level=4.0:rc-lookahead=30:ref=2:vbv-maxrate=20000:subme=6:8x8dct=0:weightp=1
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
[23:51:04] sync: first pts video is 0
[23:51:04] sync: "Chapter 1" (1) at frame 1 time 0
[23:51:04] sync: first pts audio 0x1 is 1440
[23:51:09] sync: video time went backwards 35 ms, dropped 1 frames. PTS 1385190
[23:51:31] sync: video time went backwards 35 ms, dropped 1 frames. PTS 7907855
[23:53:16] sync: video time went backwards 35 ms, dropped 1 frames. PTS 42674532
[23:58:30] sync: video time went backwards 35 ms, dropped 1 frames. PTS 124382994
 
[00:00:09] sync: video time went backwards 35 ms, dropped 1 frames. PTS 145019939
[00:06:01] sync: video time went backwards 35 ms, dropped 1 frames. PTS 212909878

Thanks all for the help!
User avatar
BradleyS
Moderator
Posts: 1860
Joined: Thu Aug 09, 2007 12:16 pm

Re: Frame rate mode not converting to constant

Post by BradleyS »

Code: Select all

[23:51:04]        + frame rate: 28.470 fps -> peak rate limited to 30.000 fps
In addition to specifying 30 fps, you also must set the mode to Constant. Otherwise, HandBrake operates in Peak mode, which means variable frame rate up to the peak limit (capped).
Yawnny
Posts: 15
Joined: Thu May 18, 2017 5:53 am

Re: Frame rate mode not converting to constant

Post by Yawnny »

Hm. I didn't even notice that in the log.

The odd thing is I DO have constant checked..
Any ideas what would be causing HandBrake to ignore my selection?

Thanks for the help.
User avatar
BradleyS
Moderator
Posts: 1860
Joined: Thu Aug 09, 2007 12:16 pm

Re: Frame rate mode not converting to constant

Post by BradleyS »

If you are encoding more than one video, you will want to save a new custom preset with your settings. Adding multiple titles to the queue uses the selected preset.
Yawnny
Posts: 15
Joined: Thu May 18, 2017 5:53 am

Re: Frame rate mode not converting to constant

Post by Yawnny »

I think this may be my problem. I'll try again when I get home.

I'll keep you posted. Thanks Bradley!
User avatar
BradleyS
Moderator
Posts: 1860
Joined: Thu Aug 09, 2007 12:16 pm

Re: Frame rate mode not converting to constant

Post by BradleyS »

:)
Post Reply