Framerate changes, even when set to 'Same as Source'.

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
Inexplicabro
Posts: 5
Joined: Thu Mar 15, 2018 10:22 am

Framerate changes, even when set to 'Same as Source'.

Post by Inexplicabro »

Description of problem or question:
I have a Sony HDR-CX240 video camera. After transferring a video file to my computer and trying to convert it to .mp4 using handbrake, the frame rate seems to change, even though the framerate is set to 'Same as Source'.

Steps to reproduce the problem (If Applicable):
In my video camera's settings, the framerate is set to 50i. In handbrake I used the default 1080p fast preset but changed the framerate to 'Same as Source'. But the framerate still seems to change. Here are the two files (original footage and encoded video): https://drive.google.com/open?id=1oRNpO ... b1BGkjEujH

Please download the videos in the link above and see if you can feel a change in the fps like I did.

HandBrake version 1.1.1

Operating system and version:
Windows 10 Pro Version 1803, OS Build 17134.228

Code: Select all

HandBrake 1.1.1 (2018061800) - 64bit
OS: Microsoft Windows NT 10.0.17134.0 - 64bit
CPU: Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz
Ram: 8103 MB, 
GPU Information:
  AMD Radeon HD 7300 Series - 15.301.1901.0
  Intel(R) HD Graphics 4600 - 20.19.15.4835
Screen: 1920x1080
Temp Dir: C:\Users\HP\AppData\Local\Temp\
Install Dir: C:\Program Files\HandBrake
Data Dir: C:\Users\HP\AppData\Roaming\HandBrake Team\HandBrake\1.1.1.0

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


# Starting Encode ...

[18:10:43] hb_init: starting libhb thread
[18:10:43] 1 job(s) to process
[18:10:43] json job:
{
  "Audio": {
    "AudioList": [
      {
        "Bitrate": 160,
        "DRC": 0.0,
        "Encoder": 65536,
        "Gain": 0.0,
        "Mixdown": 4,
        "NormalizeMixLevel": false,
        "Samplerate": 48000,
        "Track": 0,
        "DitherMethod": 0
      }
    ],
    "CopyMask": [
      1073807360,
      1073743872,
      1074003968,
      1073750016,
      1090519040,
      1074790400,
      1074266112,
      1107296256
    ],
    "FallbackEncoder": 2048
  },
  "Destination": {
    "ChapterList": [
      {
        "Name": "Chapter 1"
      }
    ],
    "ChapterMarkers": true,
    "AlignAVStart": true,
    "File": "E:\\projects\\youtube\\controller review\\footage\\encoded.mp4",
    "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": "12",
          "height": "1068",
          "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": "E:\\projects\\youtube\\controller review\\footage\\original.MTS"
  },
  "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,
    "HWDecode": false,
    "QSV": {
      "Decode": false,
      "AsyncDepth": 0
    }
  }
}
[18:10:43] CPU: Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz
[18:10:43]  - Intel microarchitecture Haswell
[18:10:43]  - logical processor count: 8
[18:10:43] Intel Quick Sync Video support: yes
[18:10:43]  - Intel Media SDK hardware: API 1.20 (minimum: 1.3)
[18:10:43]  - H.264 encoder: yes
[18:10:43]     - preferred implementation: hardware (any) via D3D11
[18:10:43]     - capabilities (hardware):  breftype icq+la+i+downs vsinfo opt1 opt2+mbbrc+extbrc+trellis+ib_adapt+nmpslice
[18:10:43]  - H.265 encoder: no
[18:10:43] hb_scan: path=E:\projects\youtube\controller review\footage\original.MTS, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
src/libbluray/disc/disc.c:323: failed opening UDF image E:\projects\youtube\controller review\footage\original.MTS
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
[18:10:43] 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
[18:10:43] dvd: not a dvd - trying as a stream/file instead
[18:10:43] file is MPEG Transport Stream with 192 byte packets offset 4 bytes
[18:10:43] Found the following PIDS
[18:10:43]     Video PIDS :
[18:10:43]       0x1011 type H.264 (0x1b)
[18:10:43]     Audio PIDS :
[18:10:43]       0x1100 type AC3 (0x81)
[18:10:43]     Subtitle PIDS :
[18:10:43]       0x1200 type PGS Subtitle (0x90)
[18:10:43]     Other PIDS :
[18:10:43]       0x1001 type Unknown (0xff) (PCR)
[18:10:43] stream id 0x1100 (type 0x81 substream 0x0) audio 0x1100
[18:10:43] stream id 0x1200 (type 0x90 substream 0x0) subtitle 0x1200
[18:10:44] hb_ts_stream_getPEStype: EOF while searching for PID 0x1011
[18:10:44] hb_ts_stream_getPEStype: EOF while searching for PID 0x1011
[18:10:44] hb_ts_stream_getPEStype: EOF while searching for PID 0x1011
[18:10:44] hb_ts_stream_getPEStype: EOF while searching for PID 0x1011
[18:10:44] stream doesn't seem to have video IDR frames
[18:10:44] scan: decoding previews for title 1
[18:10:44] file is MPEG Transport Stream with 192 byte packets offset 4 bytes
[18:10:44] scan: audio 0x1100: ac3, rate=48000Hz, bitrate=256000 Unknown (AC3) (2.0 ch)
[18:10:45] stream: 10 good frames, 0 errors (0%)
[18:10:45] scan: 10 previews, 1920x1080, 25.000 fps, autocrop = 12/0/0/0, aspect 16:9, PAR 1:1
[18:10:45] scan: supported video decoders: avcodec qsv
[18:10:45] libhb: scan thread found 1 valid title(s)
[18:10:45] starting job
[18:10:45] decomb filter thread started for segment 0
[18:10:45] decomb filter thread started for segment 1
[18:10:45] decomb filter thread started for segment 2
[18:10:45] decomb filter thread started for segment 3
[18:10:45] decomb filter thread started for segment 4
[18:10:45] decomb filter thread started for segment 5
[18:10:45] decomb filter thread started for segment 6
[18:10:45] decomb filter thread started for segment 7
[18:10:45] decomb check thread started for segment 0
[18:10:45] decomb check thread started for segment 1
[18:10:45] decomb check thread started for segment 2
[18:10:45] decomb check thread started for segment 3
[18:10:45] decomb check thread started for segment 4
[18:10:45] decomb check thread started for segment 5
[18:10:45] decomb check thread started for segment 6
[18:10:45] decomb check thread started for segment 7
[18:10:45] mask filter thread started for segment 0
[18:10:45] mask filter thread started for segment 1
[18:10:45] mask filter thread started for segment 2
[18:10:45] mask filter thread started for segment 3
[18:10:45] mask filter thread started for segment 4
[18:10:45] mask filter thread started for segment 5
[18:10:45] mask dilate thread started for segment 4
[18:10:45] mask filter thread started for segment 7
[18:10:45] mask erode thread started for segment 0
[18:10:45] mask erode thread started for segment 1
[18:10:45] mask erode thread started for segment 2
[18:10:45] mask erode thread started for segment 3
[18:10:45] mask erode thread started for segment 4
[18:10:45] mask erode thread started for segment 5
[18:10:45] mask erode thread started for segment 6
[18:10:45] mask erode thread started for segment 7
[18:10:45] mask dilate thread started for segment 0
[18:10:45] mask dilate thread started for segment 1
[18:10:45] work: only 1 chapter, disabling chapter markers
[18:10:45] job configuration:
[18:10:45]  * source
[18:10:45]    + E:\projects\youtube\controller review\footage\original.MTS
[18:10:45]    + title 1, chapter(s) 1 to 1
[18:10:45]  * destination
[18:10:45]    + E:\projects\youtube\controller review\footage\encoded.mp4
[18:10:45]    + container: MPEG-4 (libavformat)
[18:10:45]      + align initial A/V stream timestamps
[18:10:45]  * video track
[18:10:45]    + decoder: h264
[18:10:45]      + bitrate 200 kbps
[18:10:45]    + filters
[18:10:45]      + 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)
[18:10:45] mask dilate thread started for segment 2
[18:10:45]      + Decomb (mode=39)
[18:10:45]      + Framerate Shaper (mode=0)
[18:10:45]        + frame rate: same as source (around 25.000 fps)
[18:10:45] mask dilate thread started for segment 3
[18:10:45]      + Crop and Scale (width=1920:height=1068:crop-top=12:crop-bottom=0:crop-left=0:crop-right=0)
[18:10:45]        + source: 1920 * 1080, crop (12/0/0/0): 1920 * 1068, scale: 1920 * 1068
[18:10:45]    + Output geometry
[18:10:45]      + storage dimensions: 1920 x 1068
[18:10:45]      + pixel aspect ratio: 1 : 1
[18:10:45]      + display dimensions: 1920 x 1068
[18:10:45]  * Foreign Audio Search: Render/Burn-in, Forced Only
[18:10:45]    + subtitle, Unknown [PGS] (track 2, id 0x1200, Picture)
[18:10:45] mask filter thread started for segment 6
[18:10:45] mask dilate thread started for segment 5
[18:10:45] mask dilate thread started for segment 6
[18:10:45] mask dilate thread started for segment 7
[18:10:45] yadif thread started for segment 0
[18:10:45] file is MPEG Transport Stream with 192 byte packets offset 4 bytes
[18:10:45] yadif thread started for segment 1
[18:10:45] yadif thread started for segment 2
[18:10:45] yadif thread started for segment 3
[18:10:45] yadif thread started for segment 4
[18:10:45] yadif thread started for segment 5
[18:10:45] yadif thread started for segment 6
[18:10:45] yadif thread started for segment 7
[18:10:45] sync: expecting 393 video frames
[18:10:45] hb_ts_stream_decode - eof
[18:10:45] reader: done. 2 scr changes
[18:10:45] work: average encoding speed for job is 0.000000 fps
[18:10:45] comb detect: heavy 0 | light 0 | uncombed 0 | total 0
[18:10:45] decomb: deinterlaced 0 | blended 0 | unfiltered 0 | total 0
[18:10:45] vfr: lost time: 0 (0 frames)
[18:10:45] vfr: gained time: 0 (0 frames) (0 not accounted for)
[18:10:45] stream: 390 good frames, 0 errors (0%)
[18:10:45] sync: got 0 frames, 393 expected
[18:10:45] Subtitle track 2 (id 0x1200) 'Unknown [PGS]': 30 hits (0 forced)
[18:10:45] No candidate detected during subtitle scan
[18:10:45] starting job
[18:10:45] decomb filter thread started for segment 0
[18:10:45] decomb filter thread started for segment 1
[18:10:45] decomb check thread started for segment 3
[18:10:45] decomb filter thread started for segment 3
[18:10:45] mask filter thread started for segment 1
[18:10:45] decomb filter thread started for segment 5
[18:10:45] decomb filter thread started for segment 6
[18:10:45] mask filter thread started for segment 6
[18:10:45] decomb check thread started for segment 0
[18:10:45] decomb check thread started for segment 1
[18:10:45] decomb check thread started for segment 2
[18:10:45] mask erode thread started for segment 5
[18:10:45] mask erode thread started for segment 7
[18:10:45] decomb check thread started for segment 5
[18:10:45] decomb check thread started for segment 6
[18:10:45] mask dilate thread started for segment 3
[18:10:45] mask filter thread started for segment 0
[18:10:45] decomb filter thread started for segment 4
[18:10:45] mask filter thread started for segment 2
[18:10:45] mask filter thread started for segment 3
[18:10:45] mask filter thread started for segment 4
[18:10:45] mask filter thread started for segment 5
[18:10:45] decomb filter thread started for segment 7
[18:10:45] mask filter thread started for segment 7
[18:10:45] mask erode thread started for segment 0
[18:10:45] work: track 1, dithering not supported by codec
[18:10:45] mask erode thread started for segment 1
[18:10:45] mask erode thread started for segment 2
[18:10:45] mask erode thread started for segment 3
[18:10:45] work: only 1 chapter, disabling chapter markers
[18:10:45] job configuration:
[18:10:45]  * source
[18:10:45]    + E:\projects\youtube\controller review\footage\original.MTS
[18:10:45]    + title 1, chapter(s) 1 to 1
[18:10:45]  * destination
[18:10:45] mask erode thread started for segment 4
[18:10:45]    + E:\projects\youtube\controller review\footage\encoded.mp4
[18:10:45]    + container: MPEG-4 (libavformat)
[18:10:45]      + align initial A/V stream timestamps
[18:10:45]  * video track
[18:10:45]    + decoder: h264
[18:10:45]      + bitrate 200 kbps
[18:10:45]    + filters
[18:10:45] decomb filter thread started for segment 2
[18:10:45]      + 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)
[18:10:45]      + Decomb (mode=39)
[18:10:45] mask erode thread started for segment 6
[18:10:45]      + Framerate Shaper (mode=0)
[18:10:45]        + frame rate: same as source (around 25.000 fps)
[18:10:45]      + Crop and Scale (width=1920:height=1068:crop-top=12:crop-bottom=0:crop-left=0:crop-right=0)
[18:10:45]        + source: 1920 * 1080, crop (12/0/0/0): 1920 * 1068, scale: 1920 * 1068
[18:10:45]    + Output geometry
[18:10:45] decomb check thread started for segment 4
[18:10:45] mask dilate thread started for segment 0
[18:10:45]      + storage dimensions: 1920 x 1068
[18:10:45]      + pixel aspect ratio: 1 : 1
[18:10:45] mask dilate thread started for segment 1
[18:10:45]      + display dimensions: 1920 x 1068
[18:10:45]    + encoder: H.264 (libx264)
[18:10:45]      + preset:  fast
[18:10:45]      + profile: main
[18:10:45]      + level:   4.0
[18:10:45]      + quality: 22.00 (RF)
[18:10:45]  * audio track 1
[18:10:45]    + decoder: Unknown (AC3) (2.0 ch) (track 1, id 0x1100)
[18:10:45] mask dilate thread started for segment 2
[18:10:45]      + bitrate: 256 kbps, samplerate: 48000 Hz
[18:10:45]    + mixdown: Stereo
[18:10:45]    + encoder: AAC (libavcodec)
[18:10:45]      + bitrate: 160 kbps, samplerate: 48000 Hz
[18:10:45] decomb check thread started for segment 7
[18:10:45] mask dilate thread started for segment 4
[18:10:45] file is MPEG Transport Stream with 192 byte packets offset 4 bytes
[18:10:45] mask dilate thread started for segment 5
[18:10:45] mask dilate thread started for segment 6
[18:10:45] mask dilate thread started for segment 7
[18:10:45] yadif thread started for segment 0
[18:10:45] yadif thread started for segment 1
[18:10:45] yadif thread started for segment 2
[18:10:45] yadif thread started for segment 3
[18:10:45] yadif thread started for segment 4
[18:10:45] yadif thread started for segment 5
[18:10:45] yadif thread started for segment 6
[18:10:45] yadif thread started for segment 7
[18:10:45] sync: expecting 393 video frames
[18:10:45] encx264: encoding at constant RF 22.000000
[18:10:45] encx264: unparsed options: level=4.0:ref=2:8x8dct=0:weightp=1:subme=6:vbv-bufsize=25000:vbv-maxrate=20000:rc-lookahead=30
x264 [info]: using SAR=1/1
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
x264 [info]: profile Main, level 4.0
[18:10:45] sync: first pts video is 0
[18:10:45] sync: first pts audio 0x1100 is 0
[18:11:03] hb_ts_stream_decode - eof
[18:11:03] reader: done. 2 scr changes
[18:11:10] work: average encoding speed for job is 18.344732 fps
[18:11:10] comb detect: heavy 388 | light 0 | uncombed 1 | total 389
[18:11:10] decomb: deinterlaced 388 | blended 0 | unfiltered 1 | total 389
[18:11:10] vfr: lost time: 0 (0 frames)
[18:11:10] vfr: gained time: 0 (0 frames) (0 not accounted for)
[18:11:10] stream: 390 good frames, 0 errors (0%)
[18:11:10] ac3-decoder done: 488 frames, 0 decoder errors
[18:11:10] h264-decoder done: 389 frames, 0 decoder errors
[18:11:10] sync: got 389 frames, 393 expected
[18:11:10] sync: framerate min 12.500 fps, max 25.000 fps, avg 24.936 fps
x264 [info]: frame I:12    Avg QP:19.75  size: 93435
x264 [info]: frame P:100   Avg QP:22.79  size: 42537
x264 [info]: frame B:277   Avg QP:23.49  size: 24496
x264 [info]: consecutive B-frames:  4.1%  2.1%  2.3% 91.5%
x264 [info]: mb I  I16..4: 23.1%  0.0% 76.9%
x264 [info]: mb P  I16..4:  3.8%  0.0%  6.6%  P16..4: 52.9% 17.5% 11.8%  0.0%  0.0%    skip: 7.4%
x264 [info]: mb B  I16..4: 13.4%  0.0%  0.4%  B16..8: 36.9% 10.0%  0.2%  direct:23.9%  skip:15.2%  L0:50.3% L1:43.9% BI: 5.7%
x264 [info]: coded y,uvDC,uvAC intra: 51.9% 48.0% 2.5% inter: 25.4% 40.4% 0.0%
x264 [info]: i16 v,h,dc,p: 24% 18% 38% 21%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 25% 16% 24%  7%  7%  6%  6%  5%  4%
x264 [info]: i8c dc,h,v,p: 64% 15% 19%  2%
x264 [info]: Weighted P-Frames: Y:7.0% UV:3.0%
x264 [info]: ref P L0: 58.8% 41.2%
x264 [info]: ref B L0: 77.6% 22.4%
x264 [info]: ref B L1: 91.8%  8.2%
x264 [info]: kb/s:6220.04
[18:11:10] mux: track 0, 389 frames, 12159933 bytes, 6219.91 kbps, fifo 512
[18:11:10] mux: track 1, 733 frames, 312671 bytes, 159.93 kbps, fifo 1024
[18:11:10] libhb: work result = 0

# Encode Completed ...
Last edited by Inexplicabro on Sun Sep 23, 2018 4:06 am, edited 2 times in total.
mduell
Veteran User
Posts: 8206
Joined: Sat Apr 21, 2007 8:54 pm

Re: Framerate changes, even when set to 'Same as Source'.

Post by mduell »

Your input is 25fps (50i) and your output is 25fps, so there's no framerate change here.
Inexplicabro
Posts: 5
Joined: Thu Mar 15, 2018 10:22 am

Re: Framerate changes, even when set to 'Same as Source'.

Post by Inexplicabro »

mduell wrote: Tue Aug 28, 2018 5:50 pm Your input is 25fps (50i) and your output is 25fps, so there's no framerate change here.
Yeah I know, I used a program called 'Media Info' and it also said that both files were 25fps. But it feels to me like the framerate has changed. If you have time please download the two videos that I have given as a google drive link:https://drive.google.com/open?id=1oRNpO ... b1BGkjEujH and see if you can feel a difference in the framerate. Thanks for the reply.
Last edited by Inexplicabro on Sun Sep 23, 2018 4:07 am, edited 1 time in total.
Inexplicabro
Posts: 5
Joined: Thu Mar 15, 2018 10:22 am

Re: Framerate changes, even when set to 'Same as Source'.

Post by Inexplicabro »

mduell wrote: Tue Aug 28, 2018 5:50 pm Your input is 25fps (50i) and your output is 25fps, so there's no framerate change here.
Also I just noticed something. When using 'Media Info', there is a difference between the two files. The original is "CBAC/2 Ref Frames" and the encode video is "CBAC/4 Ref Frames". I don't know what these are or if they make a difference. Here are two screenshots:

Image
Image
mduell
Veteran User
Posts: 8206
Joined: Sat Apr 21, 2007 8:54 pm

Re: Framerate changes, even when set to 'Same as Source'.

Post by mduell »

Reference frames are a minor technical detail of the encoding that aren't causing any playback differences.
Inexplicabro
Posts: 5
Joined: Thu Mar 15, 2018 10:22 am

Re: Framerate changes, even when set to 'Same as Source'.

Post by Inexplicabro »

If you have time, can anyone please download the two videos in this google drive link:
https://drive.google.com/open?id=1oRNpO ... b1BGkjEujH

Then please watch it and see if you can feel a difference in the framerate like I did, and if you know how, please tell me how to fix it.
User avatar
BradleyS
Moderator
Posts: 1860
Joined: Thu Aug 09, 2007 12:16 pm

Re: Framerate changes, even when set to 'Same as Source'.

Post by BradleyS »

Seems the same to me at a glance. Is it possible your display or playback device has motion smoothing turned on?
Post Reply