Can Handbrake be set for constant bit rate

General questions or discussion about HandBrake, Video and/or audio transcoding, trends etc.
Post Reply
krazeebrit
Posts: 1
Joined: Sat Oct 20, 2018 9:22 pm

Can Handbrake be set for constant bit rate

Post by krazeebrit »

Description of problem or question:
I am converting a .mov file to .mp4 on a PC (Windows 10) so that I can load it into a DAW (Cubase 9.5) for writing music to picture. I have set Handbrake to set the frame rate to be same as source + constant and the audio to auto passthru. I am also reducing the size of the video from 4k to 1080p.

According to mediainfo, the video file of the conversion is exactly the same as the source so I have no issue with the video conversion but the audio is vastly different. The audio from the source is 35s 480ms with the video being 35s 480ms. The conversion reports audio to be 5s 419ms but I am confused because I thought it should just pass the audio through without any changes. When I play the source, it does have just over 5 seconds of audio before it cuts to silence so I presume that's why the conversion reports it that way. Mediainfo shows the conversion as variable bit rate mode not constant bit rate mode as it does for the source so it seems like it's not passing the audio through without re-compressing and getting rid of the silence. I hope that makes sense.

If I run Handbrake with AAC (avcodec), which is the reported codec in the source file, the conversion reports 35s 563ms, which is still wrong.
As you can appreciate, when writing to picture, it is important that everything is synchronised. I wonder if I am doing something wrong.

Steps to reproduce the problem (If Applicable):

HandBrake version (e.g., 1.0.0):
1.1.2

Operating system and version (e.g., Ubuntu 16.04 LTS, macOS 10.13 High Sierra, Windows 10 Creators Update):
Windows 10 1803

HandBrake Activity Log ***required*** (see How-to get an activity log)

Code: Select all

HandBrake 1.1.2 (2018090500) - 64bit
OS: Microsoft Windows NT 10.0.17134.0 - 64bit
CPU: Intel(R) Core(TM) i9-7920X CPU @ 2.90GHz
Ram: 65203 MB, 
GPU Information:
  NVIDIA GeForce GTX 1080 - 25.21.14.1634
Screen: 3840x2160
Temp Dir: C:\Users\Laithar\AppData\Local\Temp\
Install Dir: C:\Program Files\HandBrake
Data Dir: C:\Users\Laithar\AppData\Roaming\HandBrake

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


# Starting Encode ...

[23:49:19] hb_init: starting libhb thread
[23:49:19] 1 job(s) to process
[23:49:19] json job:
{
  "Audio": {
    "AudioList": [
      {
        "DRC": 0.0,
        "Encoder": 1125984256,
        "Gain": 0.0,
        "Mixdown": -1,
        "NormalizeMixLevel": false,
        "Samplerate": 48000,
        "Track": 0,
        "DitherMethod": 0
      }
    ],
    "CopyMask": [
      1073807360,
      1073743872,
      1074003968,
      1073750016,
      1090519040,
      1074790400,
      1074266112,
      1107296256
    ],
    "FallbackEncoder": 65536
  },
  "Destination": {
    "ChapterList": [],
    "ChapterMarkers": false,
    "AlignAVStart": true,
    "File": "D:\\Downloads\\The Bench Assets\\The Bench Assets\\med00CH - Bench Short Film 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": "1"
        }
      }
    ]
  },
  "PAR": {
    "Num": 1,
    "Den": 1
  },
  "Metadata": {},
  "SequenceID": 0,
  "Source": {
    "Angle": 1,
    "Range": {
      "Type": "chapter",
      "Start": 1,
      "End": 1
    },
    "Title": 1,
    "Path": "D:\\Downloads\\The Bench Assets\\The Bench Assets\\med00CH - Bench Short Film v2.mov"
  },
  "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
    }
  }
}
[23:49:19] CPU: Intel(R) Core(TM) i9-7920X CPU @ 2.90GHz
[23:49:19]  - logical processor count: 24
[23:49:19] Intel Quick Sync Video support: no
[23:49:19] hb_scan: path=D:\Downloads\The Bench Assets\The Bench Assets\med00CH - Bench Short Film v2.mov, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
src/libbluray/disc/disc.c:323: failed opening UDF image D:\Downloads\The Bench Assets\The Bench Assets\med00CH - Bench Short Film v2.mov
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
[23:49:19] bd: not a bd - trying as a stream/file instead
libdvdnav: Using dvdnav version 6.0.0
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:49:19] dvd: not a dvd - trying as a stream/file instead
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'D:\Downloads\The Bench Assets\The Bench Assets\med00CH - Bench Short Film v2.mov':
  Metadata:
    major_brand     : qt
    minor_version   : 0
    compatible_brands: qt
    creation_time   : 2018-09-26 10:25:55
    album_artist    : Benk iMac Pro
    title           : med00CH - Bench Short Film v2
    keywords        : 1 Main,green
    description     : This video is about med00CH - Bench Short Film
  Duration: 00:00:35.54, start: 0.000000, bitrate: 19831 kb/s
    Stream #0:0(eng): Audio: aac (LC) [mp4a / 0x6134706D]
      48000 Hz, stereo, fltp, 21 kb/s (default)
    Metadata:
      creation_time   : 2018-09-26 10:25:55
      handler_name    : Core Media Data Handler
    Stream #0:1(und): Video: h264 (High) [avc1 / 0x31637661]
      yuv420p, tv, bt709/bt709/bt709
      3840x2160 [PAR 1:1 DAR 16:9], 19705 kb/s, PAR 1:1 DAR 16:9
      25 fps, 25 tbn (default)
    Metadata:
      creation_time   : 2018-09-26 10:25:55
      handler_name    : Core Media Data Handler
      encoder         : H.264
    Stream #0:2(und): Data: tmcd / 0x64636D74 (default)
    Metadata:
      creation_time   : 2018-09-26 10:25:55
      handler_name    : Core Media Data Handler
    Stream #0:3: Video: mjpeg
      yuvj420p, pc, bt470bg/unknown/unknown
      3840x2160 [PAR 72:72 DAR 16:9]
      90k tbn
[23:49:19] scan: decoding previews for title 1
[23:49:19] scan: audio 0x0: aac, rate=48000Hz, bitrate=21372 English (AAC) (2.0 ch)
[23:49:20] scan: 10 previews, 3840x2160, 25.000 fps, autocrop = 0/0/0/0, aspect 16:9, PAR 1:1
[23:49:20] scan: supported video decoders: avcodec qsv
[23:49:21] libhb: scan thread found 1 valid title(s)
[23:49:21] Skipping subtitle scan.  No suitable subtitle tracks.
[23:49:21] starting job
[23:49:21] Auto Passthru: allowed codecs are AAC, AC3, E-AC3, TrueHD, DTS, DTS-HD, MP3, FLAC
[23:49:21] Auto Passthru: fallback is AAC (avcodec)
[23:49:21] Auto Passthru: using AAC Passthru for track 1
[23:49:21] job configuration:
[23:49:21]  * source
[23:49:21]    + D:\Downloads\The Bench Assets\The Bench Assets\med00CH - Bench Short Film v2.mov
[23:49:21]    + title 1, chapter(s) 1 to 1
[23:49:21]    + container: mov,mp4,m4a,3gp,3g2,mj2
[23:49:21]    + data rate: 19831 kbps
[23:49:21]  * destination
[23:49:21]    + D:\Downloads\The Bench Assets\The Bench Assets\med00CH - Bench Short Film v2.mp4
[23:49:21]    + container: MPEG-4 (libavformat)
[23:49:21]      + align initial A/V stream timestamps
[23:49:21]  * video track
[23:49:21]    + decoder: h264
[23:49:21]      + bitrate 19705 kbps
[23:49:21]    + filters
[23:49:21]      + Framerate Shaper (mode=1)
[23:49:21]        + frame rate: 25.000 fps -> constant 25.000 fps
[23:49:21]      + Crop and Scale (width=1920:height=1080:crop-top=0:crop-bottom=0:crop-left=0:crop-right=0)
[23:49:21]        + source: 3840 * 2160, crop (0/0/0/0): 3840 * 2160, scale: 1920 * 1080
[23:49:21]    + Output geometry
[23:49:21]      + storage dimensions: 1920 x 1080
[23:49:21]      + pixel aspect ratio: 1 : 1
[23:49:21]      + display dimensions: 1920 x 1080
[23:49:21]    + encoder: H.264 (libx264)
[23:49:21]      + preset:  fast
[23:49:21]      + profile: main
[23:49:21]      + level:   4.0
[23:49:21]      + quality: 22.00 (RF)
[23:49:21]  * audio track 1
[23:49:21]    + decoder: English (AAC) (2.0 ch) (track 1, id 0x0)
[23:49:21]      + bitrate: 21 kbps, samplerate: 48000 Hz
[23:49:21]    + AAC Passthru
[23:49:21] sync: expecting 888 video frames
[23:49:21] encx264: encoding at constant RF 22.000000
[23:49:21] 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 AVX512
x264 [info]: profile Main, level 4.0
[23:49:21] sync: first pts video is 0
[23:49:21] sync: Chapter 1 at frame 1 time 0
[23:49:21] sync: first pts audio 0x0 is 0
[23:49:29] reader: done. 1 scr changes
[AVBSFContext @ 000002aa880e2b20] Input packet too small
avformatMux: track 1 av_bsf_receive_packet failed
Last error repeated 1411 times
avformatMux: track 1 av_bsf_receive_packet failed
[AVBSFContext @ 000002aa880e2b20] Input packet too small
|
| Deleted numerous of the same lines to reduce the log
|
[AVBSFContext @ 000002aa880e2b20] Input packet too small
[23:49:30] work: average encoding speed for job is 96.162903 fps
[23:49:30] vfr: 887 frames output, 0 dropped and 0 duped for CFR/PFR
[23:49:30] vfr: lost time: 0 (0 frames)
[23:49:30] vfr: gained time: 0 (0 frames) (0 not accounted for)
[23:49:30] aac-decoder done: 1666 frames, 0 decoder errors
[23:49:30] h264-decoder done: 887 frames, 0 decoder errors
[23:49:30] sync: got 887 frames, 888 expected
[23:49:30] sync: framerate min 25.000 fps, max 25.000 fps, avg 25.000 fps
x264 [info]: frame I:8     Avg QP:13.94  size:134514
x264 [info]: frame P:229   Avg QP:16.96  size:  8755
x264 [info]: frame B:650   Avg QP:19.97  size:  3361
x264 [info]: consecutive B-frames:  1.5%  2.0%  1.4% 95.2%
x264 [info]: mb I  I16..4: 49.8%  0.0% 50.2%
x264 [info]: mb P  I16..4:  3.9%  0.0%  1.8%  P16..4: 18.6%  3.3%  2.3%  0.0%  0.0%    skip:70.1%
x264 [info]: mb B  I16..4:  1.5%  0.0%  0.8%  B16..8:  5.0%  1.3%  0.1%  direct: 2.5%  skip:88.9%  L0:48.5% L1:48.4% BI: 3.1%
x264 [info]: coded y,uvDC,uvAC intra: 40.0% 21.3% 4.7% inter: 2.3% 2.9% 0.0%
x264 [info]: i16 v,h,dc,p: 29% 51% 11%  9%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 10% 46% 15%  3%  5%  2%  9%  2%  8%
x264 [info]: i8c dc,h,v,p: 72% 21%  6%  1%
x264 [info]: Weighted P-Frames: Y:0.0% UV:0.0%
x264 [info]: ref P L0: 71.4% 28.6%
x264 [info]: ref B L0: 74.1% 25.9%
x264 [info]: ref B L1: 90.4%  9.6%
x264 [info]: kb/s:1187.30
[23:49:31] mux: track 0, 887 frames, 5265317 bytes, 1183.22 kbps, fifo 1024
[23:49:31] mux: track 1, 1666 frames, 94952 bytes, 21.34 kbps, fifo 2048
[23:49:31] libhb: work result = 0

# Encode Completed ...


Post Reply