Please describe the problem in as much detail as possible:
After importing and compressing videos in Handbrake, videos are trimmed / shortened by a few frames. For instance, for a 25 fps video, the new converted video gets its first two frames "deleted", making it shorter than the original. This problem is concerning, indeed, it causes issues with Mocha, a motion tracking program I use for After Effects. The tracking data seems out of sync due to this problem. I tried other software with the same source, and it works with no issue.
What are the steps to reproduce this problem:
You can simply take any video, convert it with Handbrake, then import both original & converted videos into any editing program, and compare the length of both files in the timeline.
What version of HandBrake you are running:
Lastest version, 0.10.5
What operating system and version and you running (e.g. OSX 10.11, Windows 7, Ubuntu 14):
Windows 8.1
If there was any exception or error displayed, please copy it and paste it here:
(no error displayed)
Please include the scan or encode log:
Code: Select all
HandBrake 0.10.5.0 - 64bit Version
OS: Microsoft Windows NT 6.2.9200.0 - 64bit
CPU: Intel(R) Core(TM) i7-3632QM CPU @ 2.20GHz
Ram: 16202 MB,
GPU Information:
NVIDIA GeForce 710M - 9.18.13.2702
Intel(R) HD Graphics 4000 - 10.18.10.4276
Screen: 1920x1080
Temp Dir: C:\Users\Julien\AppData\Local\Temp\
Install Dir: C:\Program Files\Handbrake
Data Dir: C:\Users\Julien\AppData\Roaming\HandBrake Team\HandBrake\0.10.5.0
-------------------------------------------
CLI Query: -i "C:\Users\Julien\Desktop\C0051.MP4" -t 1 --angle 1 -c 1 -o "C:\Users\Julien\Desktop\C0051-1.mp4" -f mp4 -w 1920 --crop 0:0:0:0 --modulus 2 -e x264 -b 16000 -r 25 --cfr -a 1 -E av_aac -6 stereo -R Auto -B 192 -D 0 --gain 0 --audio-fallback ac3 --encoder-preset=faster --encoder-tune="film" --encoder-level="4.0" --encoder-profile=main --verbose=1 -P
[15:34:09] hb_init: starting libhb thread
HandBrake 0.10.5 (2016021100) - MinGW x86_64 - https://handbrake.fr
8 CPUs detected
Opening C:\Users\Julien\Desktop\C0051.MP4...
[15:34:09] CPU: Intel(R) Core(TM) i7-3632QM CPU @ 2.20GHz
[15:34:09] - Intel microarchitecture Ivy Bridge
[15:34:09] - logical processor count: 8
[15:34:09] OpenCL device #1: NVIDIA Corporation GeForce 710M
[15:34:09] - OpenCL version: 1.1 CUDA
[15:34:09] - driver version: 327.02
[15:34:09] - device type: GPU
[15:34:09] - supported: no
[15:34:09] OpenCL device #2: Intel(R) Corporation Intel(R) HD Graphics 4000
[15:34:09] - OpenCL version: 1.2
[15:34:09] - driver version: 10.18.10.4276
[15:34:09] - device type: GPU
[15:34:09] - supported: no
[15:34:09] Intel Quick Sync Video support: yes
[15:34:09] - Intel Media SDK hardware: API 1.11 (minimum: 1.3)
[15:34:09] - H.264 encoder: yes
[15:34:09] - preferred implementation: hardware (any)
[15:34:09] - H.265 encoder: no
[15:34:09] hb_scan: path=C:\Users\Julien\Desktop\C0051.MP4, title_index=1
libbluray/bdnav/index_parse.c:162: indx_parse(): error opening C:\Users\Julien\Desktop\C0051.MP4/BDMV/index.bdmv
libbluray/bdnav/index_parse.c:162: indx_parse(): error opening C:\Users\Julien\Desktop\C0051.MP4/BDMV/BACKUP/index.bdmv
libbluray/bluray.c:2182: nav_get_title_list(C:\Users\Julien\Desktop\C0051.MP4) failed
[15:34:09] 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
[15:34:10] dvd: not a dvd - trying as a stream/file instead
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'C:\Users\Julien\Desktop\C0051.MP4':
Metadata:
major_brand : XAVC
minor_version : 16785407
compatible_brands: XAVCmp42iso2
creation_time : 2016-07-14 19:43:11
Duration: 00:00:22.08, start: 0.000000, bitrate: 50480 kb/s
Stream #0.0(und): Video: h264 (High), yuv420p, 1920x1080 [PAR 1:1 DAR 16:9], 48737 kb/s, 25 fps, 25k tbn, 50 tbc (default)
Metadata:
creation_time : 2016-07-14 19:43:11
Stream #0.1(und): Audio: pcm_s16be, 48000 Hz, 2 channels, s16, 1536 kb/s (default)
Metadata:
creation_time : 2016-07-14 19:43:11
Stream #0.2(und): Data: rtmd / 0x646D7472, 204 kb/s (default)
Metadata:
creation_time : 2016-07-14 19:43:11
[15:34:10] scan: decoding previews for title 1
Scanning title 1 of 1, preview 1, 0.00 %
Scanning title 1 of 1, preview 1, 10.00 %
Scanning title 1 of 1, preview 1, 10.00 %[15:34:10] scan: audio 0x1: pcm_s16be, rate=48000Hz, bitrate=1536000 Unknown (pcm_s16be) (2.0 ch)
Scanning title 1 of 1, preview 2, 20.00 %
Scanning title 1 of 1, preview 3, 30.00 %
Scanning title 1 of 1, preview 5, 50.00 %
Scanning title 1 of 1, preview 7, 70.00 %
Scanning title 1 of 1, preview 8, 80.00 %
Scanning title 1 of 1, preview 9, 90.00 %
Scanning title 1 of 1, preview 10, 100.00 %[15:34:12] scan: 10 previews, 1920x1080, 25.000 fps, autocrop = 0/0/0/0, aspect 16:9, PAR 1:1
[15:34:12] libhb: scan thread found 1 valid title(s)
+ title 1:
+ stream: C:\Users\Julien\Desktop\C0051.MP4
+ duration: 00:00:22
+ size: 1920x1080, pixel aspect: 1/1, display aspect: 1.78, 25.000 fps
+ autocrop: 0/0/0/0
+ support opencl: no
+ support hwd: yes
+ chapters:
+ 1: cells 0->0, 0 blocks, duration 00:00:22
+ audio tracks:
+ 1, Unknown (pcm_s16be) (2.0 ch) (iso639-2: und)
+ subtitle tracks:
[15:34:12] 1 job(s) to process
[15:34:12] starting job
[15:34:12] sync: expecting 552 video frames
[15:34:12] job configuration:
[15:34:12] * source
[15:34:12] + C:\Users\Julien\Desktop\C0051.MP4
[15:34:12] + title 1, chapter(s) 1 to 1
[15:34:12] + container: mov,mp4,m4a,3gp,3g2,mj2
[15:34:12] + data rate: 50480 kbps
[15:34:12] * destination
[15:34:12] + C:\Users\Julien\Desktop\C0051-1.mp4
[15:34:12] + container: MPEG-4 (libavformat)
[15:34:12] * video track
[15:34:12] + decoder: h264
[15:34:12] + bitrate 48737 kbps
[15:34:12] + filters
[15:34:12] + Framerate Shaper (1:27000000:1080000)
[15:34:12] + frame rate: 25.000 fps -> constant 25.000 fps
[15:34:12] + Crop and Scale (1920:1080:0:0:0:0)
[15:34:12] + source: 1920 * 1080, crop (0/0/0/0): 1920 * 1080, scale: 1920 * 1080
[15:34:12] + dimensions: 1920 * 1080, mod 2
[15:34:12] + encoder: H.264 (libx264)
[15:34:12] + preset: faster
[15:34:12] + tune: film
[15:34:12] + profile: main
[15:34:12] + level: 4.0
[15:34:12] + bitrate: 16000 kbps, pass: 0
[15:34:12] * audio track 1
[15:34:12] + decoder: Unknown (pcm_s16be) (2.0 ch) (track 1, id 0x1)
[15:34:12] + bitrate: 1536 kbps, samplerate: 48000 Hz
[15:34:12] + mixdown: Stereo
[15:34:12] + encoder: AAC (libavcodec)
[15:34:12] + bitrate: 192 kbps, samplerate: 48000 Hz
[15:34:12] reader: first SCR 0 id 0x0 DTS -3600
[15:34:12] encx264: encoding at average bitrate 16000
[15:34:12] encx264: unparsed options: level=4.0:ref=2:deblock=-1,-1:8x8dct=0:weightp=1:subme=4:mixed-refs=0:psy-rd=1.00,0.15:vbv-bufsize=25000:vbv-maxrate=20000:rc-lookahead=20
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
x264 [info]: profile Main, level 4.0
[15:34:12] sync: first pts is 3600
[15:34:32] reader: done. 1 scr changes
[15:34:37] work: average encoding speed for job is 24.193188 fps
[15:34:37] sync: got 552 frames, 552 expected
[15:34:37] render: 552 frames output, 0 dropped and 0 duped for CFR/PFR
[15:34:37] render: lost time: 0 (0 frames)
[15:34:37] render: gained time: 0 (0 frames) (0 not accounted for)
[15:34:37] h264-decoder done: 552 frames, 0 decoder errors, 0 drops
x264 [info]: frame I:50 Avg QP:11.10 size:223663
x264 [info]: frame P:497 Avg QP:14.12 size: 66155
x264 [info]: frame B:5 Avg QP:14.12 size: 20299
x264 [info]: consecutive B-frames: 98.2% 1.8% 0.0% 0.0%
x264 [info]: mb I I16..4: 72.0% 0.0% 28.0%
x264 [info]: mb P I16..4: 42.3% 0.0% 7.8% P16..4: 24.2% 10.1% 2.9% 0.0% 0.0% skip:12.7%
x264 [info]: mb B I16..4: 3.7% 0.0% 0.6% B16..8: 34.8% 9.3% 0.4% direct:15.6% skip:35.5% L0:39.6% L1:51.6% BI: 8.8%
x264 [info]: coded y,uvDC,uvAC intra: 84.5% 70.1% 44.6% inter: 24.8% 28.1% 1.1%
x264 [info]: i16 v,h,dc,p: 21% 14% 51% 14%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 17% 17% 32% 6% 7% 5% 6% 4% 5%
x264 [info]: i8c dc,h,v,p: 58% 20% 18% 4%
x264 [info]: Weighted P-Frames: Y:0.0% UV:0.0%
x264 [info]: ref P L0: 84.7% 15.3%
x264 [info]: ref B L0: 84.6% 15.4%
x264 [info]: kb/s:16001.38
[15:34:37] pcm_s16be-decoder done: 0 frames, 0 decoder errors, 0 drops
[15:34:37] mux: track 0, 552 frames, 44163163 bytes, 16001.15 kbps, fifo 256
[15:34:37] mux: track 1, 1034 frames, 530119 bytes, 192.07 kbps, fifo 512
[15:34:38] libhb: work result = 0
Encode done!
HandBrake has exited.