I am trying to encode a video, while cutting off parts of the beginning and ending via the frames selection (seconds work but are too coarse). Handbrake doesn't seem to be calculating frames correcting. The video source is 100 fps (even though the scan log says 16.25 for some reason). If I select frames 100 to 600, that should be 6 seconds (and HandBrake displays 6 seconds for the duration). But when the encoding is complete, the result is 39 seconds.
I tried using mergemkv to remux it to an mkv before feeding it to HandBrake, but that gets even worse. Using this as a source, the duration is also way off (So, I went back the the original avi source).
The source is a screen capture of a public domain, silent, B&W film. I am trying to crop it and reduce the frame rate in half.
Thanks.
What are the steps to reproduce this problem:
See above.
What version of HandBrake you are running:
Nightly 20160119192635-2eef744
What operating system and version and you running (e.g. OSX 10.11, Windows 7, Ubuntu 14):
Windows 7 64-bit
If there was any exception or error displayed, please copy it and paste it here:
N/A
Please include the scan or encode log:
Code: Select all
HandBrake Nightly 20160119192635-2eef744-master (2016012101) - 64bit Version
OS: Microsoft Windows NT 6.1.7601 Service Pack 1 - 64bit
CPU: Intel(R) Core(TM) i7-3820 CPU @ 3.60GHz
Ram: 32717 MB,
GPU Information:
AMD Radeon R9 200 / HD 7900 Series - 15.201.1151.0
Screen: 1920x1200
Temp Dir: C:\Users\Xenos\AppData\Local\Temp\
Install Dir: C:\Program Files\Handbrake
Data Dir: C:\Users\Xenos\AppData\Roaming\HandBrake Team\HandBrake\0.0.0.0
-------------------------------------------
# Starting Scan ...
[15:01:05] CPU: Intel(R) Core(TM) i7-3820 CPU @ 3.60GHz
[15:01:05] - Intel microarchitecture Sandy Bridge
[15:01:05] - logical processor count: 8
[15:01:05] OpenCL device #1: Advanced Micro Devices, Inc. Tahiti
[15:01:05] - OpenCL version: 1.2 AMD-APP (1800.11)
[15:01:05] - driver version: 1800.11 (VM)
[15:01:05] - device type: GPU
[15:01:05] - supported: YES
[15:01:05] Intel Quick Sync Video support: no
[15:01:05] hb_scan: path=D:\Download\Staging\test1.avi, title_index=0
udfread ERROR: ECMA 167 Volume Recognition failed
src/libbluray/disc/disc.c:251: failed opening UDF image D:\Download\Staging\test1.avi
src/libbluray/disc/disc.c:332: error opening file BDMV\index.bdmv
src/libbluray/disc/disc.c:332: error opening file BDMV\BACKUP\index.bdmv
[15:01:05] 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:01:05] dvd: not a dvd - trying as a stream/file instead
Input #0, avi, from 'D:\Download\Staging\test1.avi':
Duration: 00:22:48.59, start: 0.000000, bitrate: 1120 kb/s
Stream #0.0: Video: mpeg4 (Advanced Simple Profile), yuv420p, 1280x1016 [PAR 1:1 DAR 160:127], 16.25 fps, 100 tbn, 100 tbc
[15:01:05] scan: decoding previews for title 1
[15:01:06] scan: 10 previews, 1280x1016, 100.000 fps, autocrop = 0/0/0/0, aspect 1.26:1, PAR 1:1
[15:01:06] libhb: scan thread found 1 valid title(s)
# Scan Finished ...
Code: Select all
HandBrake Nightly 20160119192635-2eef744-master (2016012101) - 64bit Version
OS: Microsoft Windows NT 6.1.7601 Service Pack 1 - 64bit
CPU: Intel(R) Core(TM) i7-3820 CPU @ 3.60GHz
Ram: 32717 MB,
GPU Information:
AMD Radeon R9 200 / HD 7900 Series - 15.201.1151.0
Screen: 1920x1200
Temp Dir: C:\Users\Xenos\AppData\Local\Temp\
Install Dir: C:\Program Files\Handbrake
Data Dir: C:\Users\Xenos\AppData\Roaming\HandBrake Team\HandBrake\0.0.0.0
-------------------------------------------
# Starting Encode ...
[15:09:19] 1 job(s) to process
[15:09:19] json job:
{
"Audio": {
"AudioList": [],
"CopyMask": [
1073807360,
1073743872,
1074003968,
1073750016,
1090519040,
1074790400,
1074266112,
1107296256
],
"FallbackEncoder": 2048
},
"Destination": {
"ChapterList": [
{
"Name": "Chapter 1"
}
],
"ChapterMarkers": true,
"File": "D:\\Download\\Staging\\test1.mkv",
"Mp4Options": {
"IpodAtom": false,
"Mp4Optimize": false
},
"Mux": 2097152
},
"Filters": {
"FilterList": [
{
"ID": 5,
"Settings": "1:27000000:540000"
},
{
"ID": 12
},
{
"ID": 10,
"Settings": "720:542:154:276:342:158"
}
]
},
"PAR": {
"Num": 3523,
"Den": 3516
},
"Metadata": {},
"SequenceID": 0,
"Source": {
"Angle": 1,
"Range": {
"Type": "frame",
"Start": 100,
"End": 600
},
"Title": 1,
"Path": "D:\\Download\\Staging\\test1.avi"
},
"Subtitle": {
"Search": {
"Burn": false,
"Default": false,
"Enable": false,
"Forced": false
},
"SubtitleList": []
},
"Video": {
"Encoder": 65536,
"Level": "4.1",
"TwoPass": false,
"Turbo": false,
"ColorMatrixCode": 0,
"Options": "",
"Preset": "slow",
"Profile": "high",
"Quality": 20.0,
"Tune": "film",
"OpenCL": false,
"HWDecode": false,
"QSV": {
"Decode": true,
"AsyncDepth": 0
}
}
}
[15:09:19] CPU: Intel(R) Core(TM) i7-3820 CPU @ 3.60GHz
[15:09:19] - Intel microarchitecture Sandy Bridge
[15:09:19] - logical processor count: 8
[15:09:19] OpenCL device #1: Advanced Micro Devices, Inc. Tahiti
[15:09:19] - OpenCL version: 1.2 AMD-APP (1800.11)
[15:09:19] - driver version: 1800.11 (VM)
[15:09:19] - device type: GPU
[15:09:19] - supported: YES
[15:09:19] Intel Quick Sync Video support: no
[15:09:19] hb_scan: path=D:\Download\Staging\test1.avi, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
src/libbluray/disc/disc.c:251: failed opening UDF image D:\Download\Staging\test1.avi
src/libbluray/disc/disc.c:332: error opening file BDMV\index.bdmv
src/libbluray/disc/disc.c:332: error opening file BDMV\BACKUP\index.bdmv
[15:09:19] 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:09:19] dvd: not a dvd - trying as a stream/file instead
Input #0, avi, from 'D:\Download\Staging\test1.avi':
Duration: 00:22:48.59, start: 0.000000, bitrate: 1120 kb/s
Stream #0.0: Video: mpeg4 (Advanced Simple Profile), yuv420p, 1280x1016 [PAR 1:1 DAR 160:127], 16.25 fps, 100 tbn, 100 tbc
[15:09:19] scan: decoding previews for title 1
[15:09:20] scan: 10 previews, 1280x1016, 100.000 fps, autocrop = 0/0/0/0, aspect 1.26:1, PAR 1:1
[15:09:20] libhb: scan thread found 1 valid title(s)
[15:09:20] starting job
[15:09:20] Grayscale thread started for segment 0
[15:09:20] Grayscale thread started for segment 1
[15:09:20] Grayscale thread started for segment 2
[15:09:20] Grayscale thread started for segment 3
[15:09:20] Grayscale thread started for segment 4
[15:09:20] Grayscale thread started for segment 7
[15:09:20] work: only 1 chapter, disabling chapter markers
[15:09:20] job configuration:
[15:09:20] * source
[15:09:20] + D:\Download\Staging\test1.avi
[15:09:20] + title 1, frames 100 to 700
[15:09:20] + container: avi
[15:09:20] + data rate: 1120 kbps
[15:09:20] * destination
[15:09:20] + D:\Download\Staging\test1.mkv
[15:09:20] + container: Matroska (libavformat)
[15:09:20] * video track
[15:09:20] + decoder: mpeg4
[15:09:20] + filters
[15:09:20] + Framerate Shaper (1:27000000:540000)
[15:09:20] + frame rate: 100.000 fps -> constant 50.000 fps
[15:09:20] + Crop and Scale (720:542:154:276:342:158)
[15:09:20] + source: 1280 * 1016, crop (154/276/342/158): 780 * 586, scale: 720 * 542
[15:09:20] Grayscale thread started for segment 6
[15:09:20] + Grayscale (default settings)
[15:09:20] + Output geometry
[15:09:20] + storage dimensions: 720 x 542
[15:09:20] + pixel aspect ratio: 3523 : 3516
[15:09:20] + display dimensions: 721 x 542
[15:09:20] + encoder: H.264 (libx264)
[15:09:20] + preset: slow
[15:09:20] + tune: film
[15:09:20] + profile: high
[15:09:20] + level: 4.1
[15:09:20] Grayscale thread started for segment 5
[15:09:20] + quality: 20.00 (RF)
[15:09:20] sync: expecting 601 video frames
[15:09:20] encx264: min-keyint: 100, keyint: 1000
[15:09:20] encx264: encoding at constant RF 20.000000
[15:09:20] encx264: unparsed options: level=4.1:ref=5:deblock=-1,-1:b-adapt=2:subme=8:psy-rd=1,0.15:direct=auto:vbv-maxrate=62500:me=umh:vbv-bufsize=78125:rc-lookahead=50
x264 [info]: using SAR=3523/3516
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
x264 [info]: profile High, level 4.1
[15:09:20] reader: first SCR 0 id 0x0 DTS 0
[15:09:21] sync: first pts is 605700
[15:09:32] sync: reached 601 frames, exiting early
[15:09:34] work: average encoding speed for job is 51.596607 fps
[15:09:34] render: 1972 frames output, 0 dropped and 1371 duped for CFR/PFR
[15:09:34] render: lost time: 0 (0 frames)
[15:09:34] render: gained time: 0 (0 frames) (0 not accounted for)
[15:09:34] mpeg4-decoder done: 1253 frames, 0 decoder errors, 0 drops
[15:09:34] sync: got 601 frames, 601 expected
x264 [info]: frame I:14 Avg QP:13.74 size: 11874
x264 [info]: frame P:571 Avg QP:17.88 size: 4810
x264 [info]: frame B:1387 Avg QP:22.33 size: 544
x264 [info]: consecutive B-frames: 2.3% 7.7% 11.9% 78.1%
x264 [info]: mb I I16..4: 13.1% 63.5% 23.3%
x264 [info]: mb P I16..4: 2.7% 6.6% 0.8% P16..4: 21.7% 8.6% 3.3% 0.0% 0.0% skip:56.2%
x264 [info]: mb B I16..4: 0.2% 0.3% 0.0% B16..8: 14.7% 1.2% 0.1% direct: 0.4% skip:83.1% L0:46.7% L1:50.0% BI: 3.3%
x264 [info]: 8x8 transform intra:64.3% inter:70.8%
x264 [info]: direct mvs spatial:99.5% temporal:0.5%
x264 [info]: coded y,uvDC,uvAC intra: 40.5% 0.0% 0.0% inter: 5.2% 0.0% 0.0%
x264 [info]: i16 v,h,dc,p: 47% 33% 8% 13%
x264 [info]: i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 31% 14% 24% 4% 5% 6% 6% 5% 5%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 38% 19% 15% 4% 5% 6% 5% 4% 4%
x264 [info]: i8c dc,h,v,p: 100% 0% 0% 0%
x264 [info]: Weighted P-Frames: Y:23.3% UV:0.0%
x264 [info]: ref P L0: 56.3% 8.8% 14.5% 7.1% 7.8% 4.7% 0.8%
x264 [info]: ref B L0: 73.9% 11.9% 8.1% 6.0%
x264 [info]: ref B L1: 97.6% 2.4%
x264 [info]: kb/s:743.81
[15:09:34] mux: track 0, 1972 frames, 3666726 bytes, 743.38 kbps, fifo 2048
[15:09:34] libhb: work result = 0
# Encode Completed ...