Converting VFR to CFR

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
liorparsi
Posts: 2
Joined: Sun Dec 03, 2017 7:50 am

Converting VFR to CFR

Post by liorparsi »

Hi
i have some captured PAL VHS to files that recorded in VFR
the VFR cuses audio out of sync
I’m trying to convert them to CFR using hand break 1.0.7 but can’t get the audio to sync
can someone please advise me the correct setting to convert?

here is the media info

Stream 0
Type: video
Codec: h264
Codec profile: High
FourCC: avc1
Duration: 00:29:20
Width: 640
Height: 480
Sample aspect ratio: 1920:1920
Display aspect ratio: 4:3
Pixel format: yuv420p
Frame rate: 24.88 fps
Bit rate: 2224 kb/s
Meta info:
handler_name: VideoHandler
creation_time: 2017-11-10 10:31:36
language: eng

Stream 1
Type: audio
Codec: aac
FourCC: mp4a
Duration: 00:29:20
Bit rate: 221 kb/s
Sample rate: 48000 Hz
Sample format: s16
Channel: 2
Meta info:
handler_name: SoundHandler
creation_time: 2017-11-10 10:31:36
language: eng
rollin_eng
Veteran User
Posts: 4854
Joined: Wed May 04, 2011 11:06 pm

Re: Converting VFR to CFR

Post by rollin_eng »

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

https://handbrake.fr/docs/en/latest/hel ... y-log.html
liorparsi
Posts: 2
Joined: Sun Dec 03, 2017 7:50 am

Re: Converting VFR to CFR

Post by liorparsi »

I'm Sorry I forgot to mention, when i use V1.0.7 the process stuck at 99.98%
the only time i could complete the Encoding is when using Nightly build (2017113001)

this is the activity log from V1.0.7 (stuck at 99.98%)

Code: Select all

HandBrake 1.0.7 (2017040900) - 64bit
OS: Microsoft Windows NT 10.0.15063.0 - 64bit
CPU: Intel(R) Core(TM) i7-3770 CPU @ 3.40GHz
Ram: 16257 MB,
GPU Information:
  Intel(R) HD Graphics 4000 - 10.18.10.4358
Screen: 1920x1080
Temp Dir: C:\Users\Liorc\AppData\Local\Temp\
Install Dir: C:\Program Files\HandBrake
Data Dir: C:\Users\Liorc\AppData\Roaming\HandBrake Team\HandBrake\1.0.7.0
 
-------------------------------------------
 
 
# Starting Encode ...
 
[14:48:03] hb_init: starting libhb thread
[14:48:03] 1 job(s) to process
[14:48:03] 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\\Liorc\\Desktop\\mamanG.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": "0",
          "height": "480",
          "width": "640"
        }
      },
      {
        "ID": 6,
        "Settings": {
          "mode": "1",
          "rate": "27000000/1080000"
        }
      }
    ]
  },
  "PAR": {
    "Num": 1,
    "Den": 1
  },
  "Metadata": {},
  "SequenceID": 0,
  "Source": {
    "Angle": 1,
    "Range": {
      "Type": "chapter",
      "Start": 1,
      "End": 1
    },
    "Title": 1,
    "Path": "C:\\Users\\Liorc\\Desktop\\30.11\\מסיבה לממנג'י בישראל 4.93.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
    }
  }
}
[14:48:03] CPU: Intel(R) Core(TM) i7-3770 CPU @ 3.40GHz
[14:48:03]  - Intel microarchitecture Ivy Bridge
[14:48:03]  - logical processor count: 8
[14:48:03] Intel Quick Sync Video support: yes
[14:48:03]  - Intel Media SDK hardware: API 1.11 (minimum: 1.3)
[14:48:03]  - H.264 encoder: yes
[14:48:03]     - preferred implementation: hardware (any)
[14:48:03]     - capabilities (hardware):  vsinfo opt1 opt2+extbrc+ib_adapt+nmpslice
[14:48:03]  - H.265 encoder: no
[14:48:03] hb_scan: path=C:\Users\Liorc\Desktop\30.11\מסיבה לממנג'י בישראל 4.93.mp4, title_index=1
src/libbluray/disc/disc.c:274: failed opening UDF image C:\Users\Liorc\Desktop\30.11\׳ž׳¡׳™׳‘׳” ׳œ׳ž׳ž׳ ׳’'׳™ ׳‘׳™׳©׳¨׳׳œ 4.93.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
[14:48:03] 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
[14:48:03] dvd: not a dvd - trying as a stream/file instead
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'C:\Users\Liorc\Desktop\30.11\׳ž׳¡׳™׳‘׳” ׳œ׳ž׳ž׳ ׳’'׳™ ׳‘׳™׳©׳¨׳׳œ 4.93.mp4':
  Metadata:
    major_brand     : M4V
    minor_version   : 1
    compatible_brands: M4V M4A mp42isom
    creation_time   : 2017-11-28 12:37:55
    date            : 2017-11-28
    title           : ׳ž׳¡׳™׳‘׳” ׳œ׳ž׳ž׳ ׳’'׳™ ׳‘׳™׳©׳¨׳׳œ 4.93
    description     :
  Duration: 01:50:31.53, start: 0.000000, bitrate: 2007 kb/s
    Stream #0:0(eng): Video: h264 (High) [avc1 / 0x31637661]
      yuv420p, tv, smpte170m/smpte170m/smpte170m
      640x480 [PAR 1920:1920 DAR 4:3], 1780 kb/s
      21.33 fps, 29970 tbn (default)
    Metadata:
      creation_time   : 2017-11-28 12:37:55
      handler_name    : VideoHandler
      encoder         : H.264/AVC
    Stream #0:1(eng): Audio: aac (LC) [mp4a / 0x6134706D]
      48000 Hz, stereo, fltp, 219 kb/s (default)
    Metadata:
      creation_time   : 2017-11-28 12:37:55
      handler_name    : SoundHandler
    Stream #0:2: Video: png
      bgra, pc, 512x748
      90k tbn
[14:48:03] scan: decoding previews for title 1
[14:48:03] scan: audio 0x1: aac, rate=48000Hz, bitrate=219171 English (AAC) (2.0 ch)
[14:48:03] scan: 10 previews, 640x480, 23.121 fps, autocrop = 0/0/0/0, aspect 4:3, PAR 1920:1920
[14:48:03] scan: supported video decoders: avcodec qsv
[14:48:03] libhb: scan thread found 1 valid title(s)
[14:48:03] Skipping subtitle scan.  No suitable subtitle tracks.
[14:48:03] starting job
[14:48:03] decomb filter thread started for segment 0
[14:48:03] decomb filter thread started for segment 1
[14:48:03] decomb filter thread started for segment 2
[14:48:03] decomb filter thread started for segment 3
[14:48:03] decomb filter thread started for segment 4
[14:48:03] decomb filter thread started for segment 5
[14:48:03] decomb filter thread started for segment 7
[14:48:03] decomb filter thread started for segment 6
[14:48:03] decomb check thread started for segment 2
[14:48:03] mask filter thread started for segment 3
[14:48:03] decomb check thread started for segment 6
[14:48:03] decomb check thread started for segment 0
[14:48:03] mask erode thread started for segment 0
[14:48:03] decomb check thread started for segment 4
[14:48:03] decomb check thread started for segment 1
[14:48:03] decomb check thread started for segment 5
[14:48:03] mask filter thread started for segment 0
[14:48:03] mask filter thread started for segment 1
[14:48:03] mask erode thread started for segment 4
[14:48:03] decomb check thread started for segment 3
[14:48:03] mask erode thread started for segment 7
[14:48:03] mask filter thread started for segment 5
[14:48:03] mask filter thread started for segment 6
[14:48:03] mask filter thread started for segment 7
[14:48:03] mask dilate thread started for segment 5
[14:48:03] mask erode thread started for segment 1
[14:48:03] mask erode thread started for segment 2
[14:48:03] mask erode thread started for segment 3
[14:48:03] mask filter thread started for segment 2
[14:48:03] mask erode thread started for segment 5
[14:48:03] yadif thread started for segment 6
[14:48:03] work: track 1, dithering not supported by codec
[14:48:03] mask filter thread started for segment 4
[14:48:03] mask dilate thread started for segment 0
[14:48:03] work: only 1 chapter, disabling chapter markers
[14:48:03] job configuration:
[14:48:03]  * source
[14:48:03]    + C:\Users\Liorc\Desktop\30.11\מסיבה לממנג'י בישראל 4.93.mp4
[14:48:03]    + title 1, chapter(s) 1 to 1
[14:48:03]    + container: mov,mp4,m4a,3gp,3g2,mj2
[14:48:03]    + data rate: 2007 kbps
[14:48:03]  * destination
[14:48:03]    + C:\Users\Liorc\Desktop\mamanG.mp4
[14:48:03]    + container: MPEG-4 (libavformat)
[14:48:03]  * video track
[14:48:03]    + decoder: h264
[14:48:03]      + bitrate 1780 kbps
[14:48:03]    + filters
[14:48:03] mask dilate thread started for segment 1
[14:48:03] mask dilate thread started for segment 2
[14:48:03]      + 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:48:03]      + Decomb (mode=39)
[14:48:03]      + Framerate Shaper (mode=1:rate=27000000/1080000)
[14:48:03]        + frame rate: 23.121 fps -> constant 25.000 fps
[14:48:03]      + Crop and Scale (width=640:height=480:crop-top=0:crop-bottom=0:crop-left=0:crop-right=0)
[14:48:03] mask dilate thread started for segment 3
[14:48:03]        + source: 640 * 480, crop (0/0/0/0): 640 * 480, scale: 640 * 480
[14:48:03]    + Output geometry
[14:48:03]      + storage dimensions: 640 x 480
[14:48:03]      + pixel aspect ratio: 1 : 1
[14:48:03]      + display dimensions: 640 x 480
[14:48:03]    + encoder: H.264 (libx264)
[14:48:03] mask dilate thread started for segment 4
[14:48:03]      + preset:  fast
[14:48:03]      + profile: main
[14:48:03]      + level:   4.0
[14:48:03]      + quality: 22.00 (RF)
[14:48:03]  * audio track 1
[14:48:03]    + decoder: English (AAC) (2.0 ch) (track 1, id 0x1)
[14:48:03]      + bitrate: 219 kbps, samplerate: 48000 Hz
[14:48:03] decomb check thread started for segment 7
[14:48:03]    + mixdown: Stereo
[14:48:03]    + encoder: AAC (libavcodec)
[14:48:03] mask dilate thread started for segment 6
[14:48:03]      + bitrate: 160 kbps, samplerate: 48000 Hz
[14:48:03] mask dilate thread started for segment 7
[14:48:03] yadif thread started for segment 0
[14:48:03] yadif thread started for segment 1
[14:48:03] yadif thread started for segment 2
[14:48:03] yadif thread started for segment 3
[14:48:03] yadif thread started for segment 4
[14:48:03] yadif thread started for segment 5
[14:48:03] mask erode thread started for segment 6
[14:48:03] yadif thread started for segment 7
[14:48:03] sync: expecting 153325 video frames
[14:48:03] encx264: encoding at constant RF 22.000000
[14:48:03] encx264: unparsed options: level=4.0:rc-lookahead=30:vbv-maxrate=20000:ref=2:8x8dct=0:weightp=1:subme=6:vbv-bufsize=25000
x264 [info]: using SAR=1/1
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
x264 [info]: profile Main, level 4.0
[14:48:03] sync: first pts video is 0
[14:48:03] sync: "Chapter 1" (1) at frame 1 time 0
[14:48:03] sync: first pts audio 0x1 is 9598
[14:49:48] sync: audio 0x1 time went backwards 21 ms, dropped 1 frames. PTS 56964517
[14:50:08] sync: audio 0x1 time went backwards 21 ms, dropped 1 frames. PTS 67943079
[14:55:55] sync: audio 0x1 time went backwards 21 ms, dropped 1 frames. PTS 253908553
[14:55:58] sync: audio 0x1 time went backwards 21 ms, dropped 1 frames. PTS 255717153
[14:56:12] sync: audio 0x1 time went backwards 21 ms, dropped 1 frames. PTS 263015066
[14:56:14] sync: audio 0x1 time went backwards 21 ms, dropped 1 frames. PTS 264489678
[15:00:51] sync: audio 0x1 time went backwards 21 ms, dropped 1 frames. PTS 412166458
Post Reply