If you convert a video to h265 and use the AMD hardware encoder (H265 AMD VCE) you lose the ability to skip/jump to any point in the video. I had the same problem, when I tried doing these conversion with plain ffmpeg on the command line and someone the net suggested adding -gops_per_idr 1 to the settings. This indeed fixes the problem with ffmpeg, but sadly not if I add that inside handbrake. The default of 60 seems to much maybe, but I am no expert, so really do not have a clue here.
So, is there a way to add that setting in the encoder with handbrake as well, and if so, how? Or in general, I did not find a usefull list of options I could use.
for reference, the video part of the (working) ffmpeg commandline looks like this:
Code: Select all
-c:v hevc_amf -profile:v main -profile_tier:v main -level:v 4.0 -quality quality -gops_per_idr 1
just encode a video and use "H265 AMD VCE" for the encoder. You would need a recent AMD graphics card and drivers.
HandBrake version (e.g., 1.0.0):
1.2.0
Operating system and version (e.g., Ubuntu 16.04 LTS, macOS 10.13 High Sierra, Windows 10 Creators Update):
Windows 10 1809
HandBrake Activity Log ***required*** (see How-to get an activity log)
Code: Select all
HandBrake 1.2.0 (2018121700)
OS: Microsoft Windows NT 10.0.17763.0
Ram: 16323 MB,
GPU Information:
Radeon RX 570 Series - 25.20.15011.1004
Screen: 1920x1200
Temp Dir: C:\Users\xyz\AppData\Local\Temp\
Install Dir: C:\Program Files\HandBrake
Data Dir: C:\Users\xyz\AppData\Roaming\HandBrake
-------------------------------------------
# Starting Encode ...
[15:33:36] hb_init: starting libhb thread
[15:33:36] 1 job(s) to process
[15:33:36] json job:
{
"Audio": {
"AudioList": [
{
"Bitrate": 384,
"DRC": 0.0,
"Encoder": "av_aac",
"Gain": 0.0,
"Mixdown": 7,
"NormalizeMixLevel": false,
"Samplerate": 0,
"Track": 0,
"DitherMethod": 0
},
{
"Bitrate": 160,
"DRC": 0.0,
"Encoder": "av_aac",
"Gain": 0.0,
"Mixdown": 4,
"NormalizeMixLevel": false,
"Samplerate": 0,
"Track": 2,
"DitherMethod": 0
}
],
"CopyMask": [
"copy:aac",
"copy:ac3",
"copy:dtshd",
"copy:dts",
"copy:eac3",
"copy:flac",
"copy:mp3",
"copy:truehd"
],
"FallbackEncoder": "ac3"
},
"Destination": {
"ChapterList": [
{
"Name": "Chapter 1"
},
{
"Name": "Chapter 2"
},
{
"Name": "Chapter 3"
},
{
"Name": "Chapter 4"
},
{
"Name": "Chapter 5"
},
{
"Name": "Chapter 6"
},
{
"Name": "Chapter 7"
},
{
"Name": "Chapter 8"
},
{
"Name": "Chapter 9"
},
{
"Name": "Chapter 10"
},
{
"Name": "Chapter 11"
}
],
"ChapterMarkers": true,
"AlignAVStart": false,
"File": "C:\\Video\\handbrake_001_h265_30_main4_qualmax.mkv",
"Mp4Options": {
"IpodAtom": false,
"Mp4Optimize": false
},
"Mux": "mkv"
},
"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": "0"
}
}
]
},
"PAR": {
"Num": 1,
"Den": 1
},
"Metadata": {},
"SequenceID": 0,
"Source": {
"Angle": 1,
"Range": {
"Type": "chapter",
"Start": 1,
"End": 11
},
"Title": 1,
"Path": "D:\\Video\\source.mkv"
},
"Subtitle": {
"Search": {
"Burn": false,
"Default": false,
"Enable": false,
"Forced": false
},
"SubtitleList": [
{
"Burn": false,
"Default": false,
"Forced": false,
"ID": 1,
"Offset": 0,
"Track": 0
}
]
},
"Video": {
"Encoder": "vce_h265",
"Level": "4.0",
"TwoPass": false,
"Turbo": false,
"ColorMatrixCode": 0,
"Options": "",
"Preset": "quality",
"Profile": "main",
"Quality": 30.0,
"QSV": {
"Decode": true,
"AsyncDepth": 0
}
}
}
[15:33:36] CPU: Intel(R) Core(TM) i5-9600K CPU @ 3.70GHz
[15:33:36] - Intel microarchitecture Kaby Lake
[15:33:36] - logical processor count: 6
[15:33:36] Intel Quick Sync Video support: yes
[15:33:36] - Intel Media SDK hardware: API 1.27 (minimum: 1.3)
[15:33:36] - H.264 encoder: yes
[15:33:36] - preferred implementation: hardware (any) via D3D11
[15:33:36] - capabilities (hardware): breftype vsinfo opt1 opt2+mbbrc+extbrc+trellis+ib_adapt+nmpslice
[15:33:36] - H.265 encoder: no
[15:33:36] hb_scan: path=D:\Video\source.mkv, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
src/libbluray/disc/disc.c:323: failed opening UDF image D:\Video\source.mkv
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
[15:33:37] 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
[15:33:37] dvd: not a dvd - trying as a stream/file instead
Input #0, matroska,webm, from 'D:\Video\source.mkv':
Metadata:
title : The X-Files, Season 1 Disc 1
encoder : libmakemkv v1.14.2 (1.3.5/1.4.7) win(x64-release)
creation_time : 2019-02-09T14:15:39.000000Z
Duration: 00:44:14.78, start: 0.000000, bitrate: 30777 kb/s
Chapter #0:0: start 0.000000, end 174.966458
Metadata:
title : Chapter 01
Chapter #0:1: start 174.966458, end 419.210458
Metadata:
title : Chapter 02
Chapter #0:2: start 419.210458, end 623.831542
Metadata:
title : Chapter 03
Chapter #0:3: start 623.831542, end 1023.355667
Metadata:
title : Chapter 04
Chapter #0:4: start 1023.355667, end 1518.308458
Metadata:
title : Chapter 05
Chapter #0:5: start 1518.308458, end 1776.816708
Metadata:
title : Chapter 06
Chapter #0:6: start 1776.816708, end 2015.388375
Metadata:
title : Chapter 07
Chapter #0:7: start 2015.388375, end 2123.371250
Metadata:
title : Chapter 08
Chapter #0:8: start 2123.371250, end 2534.198333
Metadata:
title : Chapter 09
Chapter #0:9: start 2534.198333, end 2622.703417
Metadata:
title : Chapter 10
Chapter #0:10: start 2622.703417, end 2654.777125
Metadata:
title : Chapter 11
Stream #0:0(eng): Video: h264 (High), yuv420p(progressive), 1920x1080 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc
Metadata:
BPS-eng : 24782839
DURATION-eng : 00:44:14.777125000
NUMBER_OF_FRAMES-eng: 63651
NUMBER_OF_BYTES-eng: 8224113943
SOURCE_ID-eng : 001011
_STATISTICS_WRITING_APP-eng: MakeMKV v1.14.2 win(x64-release)
_STATISTICS_WRITING_DATE_UTC-eng: 2019-02-09 14:15:39
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
Stream #0:1(eng): Audio: dts (DTS-HD MA), 48000 Hz, 5.1(side), s32p (24 bit) (default)
Metadata:
title : Surround 5.1
BPS-eng : 3679997
DURATION-eng : 00:44:14.784000000
NUMBER_OF_FRAMES-eng: 248886
NUMBER_OF_BYTES-eng: 1221199808
SOURCE_ID-eng : 001100
_STATISTICS_WRITING_APP-eng: MakeMKV v1.14.2 win(x64-release)
_STATISTICS_WRITING_DATE_UTC-eng: 2019-02-09 14:15:39
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
Stream #0:2(eng): Audio: dts (DTS), 48000 Hz, 5.1(side), fltp, 1536 kb/s
Metadata:
title : Surround 5.1
BPS-eng : 1509000
DURATION-eng : 00:44:14.784000000
NUMBER_OF_FRAMES-eng: 248886
NUMBER_OF_BYTES-eng: 500758632
SOURCE_ID-eng : 001100
_STATISTICS_WRITING_APP-eng: MakeMKV v1.14.2 win(x64-release)
_STATISTICS_WRITING_DATE_UTC-eng: 2019-02-09 14:15:39
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
Stream #0:3(deu): Audio: dts (DTS), 48000 Hz, stereo, fltp, 768 kb/s
Metadata:
title : Stereo
BPS-eng : 768000
DURATION-eng : 00:44:14.784000000
NUMBER_OF_FRAMES-eng: 248886
NUMBER_OF_BYTES-eng: 254859264
SOURCE_ID-eng : 001103
_STATISTICS_WRITING_APP-eng: MakeMKV v1.14.2 win(x64-release)
_STATISTICS_WRITING_DATE_UTC-eng: 2019-02-09 14:15:39
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
Stream #0:4(eng): Subtitle: hdmv_pgs_subtitle
Metadata:
BPS-eng : 33936
DURATION-eng : 00:42:45.917520833
NUMBER_OF_FRAMES-eng: 940
NUMBER_OF_BYTES-eng: 10884660
SOURCE_ID-eng : 001201
_STATISTICS_WRITING_APP-eng: MakeMKV v1.14.2 win(x64-release)
_STATISTICS_WRITING_DATE_UTC-eng: 2019-02-09 14:15:39
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
[15:33:37] scan: decoding previews for title 1
[15:33:37] scan: audio 0x1: dca, rate=48000Hz, bitrate=1 English (DTS-HD MA) (5.1 ch)
[15:33:37] scan: audio 0x2: dca, rate=48000Hz, bitrate=1536000 English (DTS) (5.1 ch)
[15:33:37] scan: audio 0x3: dca, rate=48000Hz, bitrate=768000 Deutsch (DTS) (2.0 ch) (Lt/Rt)
[15:33:38] scan: 10 previews, 1920x1080, 23.976 fps, autocrop = 0/0/0/0, aspect 16:9, PAR 1:1
[15:33:38] scan: supported video decoders: avcodec qsv
[15:33:38] libhb: scan thread found 1 valid title(s)
[15:33:38] starting job
[15:33:38] job configuration:
[15:33:38] * source
[15:33:38] + D:\Video\source.mkv
[15:33:38] + title 1, chapter(s) 1 to 11
[15:33:38] + container: matroska,webm
[15:33:38] + data rate: 30777 kbps
[15:33:38] * destination
[15:33:38] + C:\Video\handbrake_001_h265_30_main4_qualmax.mkv
[15:33:38] + container: Matroska (libavformat)
[15:33:38] + chapter markers
[15:33:38] * video track
[15:33:38] + decoder: h264_qsv
[15:33:38] + filters
[15:33:38] + Framerate Shaper (mode=0)
[15:33:38] + frame rate: same as source (around 23.976 fps)
[15:33:38] + Crop and Scale (width=1920:height=1080:crop-top=0:crop-bottom=0:crop-left=0:crop-right=0)
[15:33:38] + source: 1920 * 1080, crop (0/0/0/0): 1920 * 1080, scale: 1920 * 1080
[15:33:38] + Output geometry
[15:33:38] + storage dimensions: 1920 x 1080
[15:33:38] + pixel aspect ratio: 1 : 1
[15:33:38] + display dimensions: 1920 x 1080
[15:33:38] + encoder: H.265 (AMD VCE)
[15:33:38] + preset: quality
[15:33:38] + profile: main
[15:33:38] + level: 4.0
[15:33:38] + quality: 30.00 (QP)
[15:33:38] + color profile: 1-1-1
[15:33:38] * subtitle track 1, English [PGS] (track 0, id 0x4, Picture) -> Passthrough
[15:33:38] * audio track 1
[15:33:38] + decoder: English (DTS-HD MA) (5.1 ch) (track 1, id 0x1)
[15:33:38] + samplerate: 48000 Hz
[15:33:38] + mixdown: 5.1 Channels
[15:33:38] + dither: none
[15:33:38] + encoder: AAC (libavcodec)
[15:33:38] + bitrate: 384 kbps, samplerate: 48000 Hz
[15:33:38] * audio track 2
[15:33:38] + decoder: Deutsch (DTS) (2.0 ch) (Lt/Rt) (track 3, id 0x3)
[15:33:38] + bitrate: 768 kbps, samplerate: 48000 Hz
[15:33:38] + mixdown: Stereo
[15:33:38] + dither: none
[15:33:38] + encoder: AAC (libavcodec)
[15:33:38] + bitrate: 160 kbps, samplerate: 48000 Hz
[15:33:38] sync: expecting 63650 video frames
[15:33:38] encavcodecInit: H.265 (AMD VCE)
[15:33:38] encavcodec: encoding at QP 30.00
[15:33:38] encavcodec: encoding with stored aspect 1/1
[15:33:39] sync: first pts audio 0x1 is 0
[15:33:39] sync: first pts audio 0x3 is 0
[15:33:42] sync: first pts subtitle 0x4 is 4887360
# Encode Stopped
[15:34:13] work: average encoding speed for job is 0.000000 fps
[15:34:13] vfr: lost time: 0 (0 frames)
[15:34:13] vfr: gained time: 0 (0 frames) (0 not accounted for)
[15:34:13] dca-decoder done: 64561 frames, 0 decoder errors
[15:34:13] dca-decoder done: 64556 frames, 0 decoder errors
[15:34:13] h264_qsv-decoder done: 0 frames, 16509 decoder errors
[15:34:13] sync: got 0 frames, 63650 expected
[15:34:14] mux: track 0, 0 frames, 0 bytes, 0.00 kbps, fifo 8
[15:34:14] mux: track 1, 32179 frames, 32869255 bytes, 383.03 kbps, fifo 32768
[15:34:14] mux: track 2, 32179 frames, 13738692 bytes, 160.10 kbps, fifo 32768
[15:34:14] mux: track 3, 230 frames, 2530601 bytes, 29.49 kbps, fifo 256
[15:34:14] libhb: work result = 1
# Encode Completed ...