Can handbrake retain video transparency when converting from webm to hevc?
Steps to reproduce the problem (If Applicable):
Select a webm with transparency as source.
Encode as H.265.
Result: output file is on a black background instead of a transparent one.
HandBrake version (e.g., 1.0.0):
1.4.1
Operating system and version (e.g., Ubuntu 16.04 LTS, macOS 10.13 High Sierra, Windows 10 Creators Update):
Windows 10
HandBrake Activity Log ***required*** (see How-to get an activity log)
Code: Select all
HandBrake 1.4.1 (2021081500)
OS: Microsoft Windows NT 10.0.19043.0
CPU: Intel(R) Core(TM) i5-6600K CPU @ 3.50GHz
Ram: 16344 MB,
GPU Information:
NVIDIA GeForce GTX 1080 - 27.21.14.5671
Screen: 2560x1600
Temp Dir: C:\Users\Peter\AppData\Local\Temp\
Install Dir: C:\Program Files\HandBrake\
Data Dir: C:\Users\Peter\AppData\Roaming\HandBrake
-------------------------------------------
# Starting Encode ...
[21:54:53] base preset: Fast 1080p30 (Modified)
Remote Process started with Process ID: 27400 using port: 8037. Max Allowed Instances: 1
Worker: Starting HandBrake Engine ...
Worker: Starting Web Server on port 8037 ...
Worker: Disconnected worker monitoring enabled!
[21:54:53] Compile-time hardening features are enabled
[21:54:53] hb_init: starting libhb thread
[21:54:53] Starting work at: Mon Sep 20 21:54:53 2021
[21:54:53] 1 job(s) to process
[21:54:53] json job:
{
"Audio": {
"AudioList": [
{
"Bitrate": 128,
"DRC": 0,
"Encoder": "av_aac",
"Gain": 0,
"Mixdown": 4,
"NormalizeMixLevel": false,
"Samplerate": 0,
"Track": 0,
"DitherMethod": 0
}
],
"CopyMask": [
"copy:aac",
"copy:ac3",
"copy:dtshd",
"copy:dts",
"copy:eac3",
"copy:flac",
"copy:mp3",
"copy:truehd",
"copy:mp2"
],
"FallbackEncoder": "ac3"
},
"Destination": {
"ChapterList": [
{
"Name": "Chapter 1"
}
],
"ChapterMarkers": true,
"AlignAVStart": false,
"File": "C:\\dev\\itype-assets\\assets\\assets\\videos\\upshot\\tst\\test2.mp4",
"Mp4Options": {
"IpodAtom": false,
"Mp4Optimize": false
},
"Mux": "av_mp4"
},
"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": 13,
"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": "C:\\dev\\itype-assets\\assets\\assets\\videos\\upshot\\module1\\NP_6A.webm"
},
"Subtitle": {
"Search": {
"Burn": true,
"Default": false,
"Enable": true,
"Forced": true
},
"SubtitleList": []
},
"Video": {
"Encoder": "nvenc_h265",
"Level": "auto",
"TwoPass": false,
"Turbo": false,
"ColorMatrixCode": 0,
"Options": "",
"Preset": "medium",
"Profile": "auto",
"Quality": 22,
"QSV": {
"Decode": false
}
}
}
[21:54:53] CPU: Intel(R) Core(TM) i5-6600K CPU @ 3.50GHz
[21:54:53] - Intel microarchitecture Skylake
[21:54:53] - logical processor count: 4
[21:54:53] Intel Quick Sync Video support: no
[21:54:53] hb_scan: path=C:\dev\itype-assets\assets\assets\videos\upshot\module1\NP_6A.webm, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
src/libbluray/disc/disc.c:333: failed opening UDF image C:\dev\itype-assets\assets\assets\videos\upshot\module1\NP_6A.webm
src/libbluray/disc/disc.c:437: error opening file BDMV\index.bdmv
src/libbluray/disc/disc.c:437: error opening file BDMV\BACKUP\index.bdmv
src/libbluray/bluray.c:2646: nav_get_title_list(C:\dev\itype-assets\assets\assets\videos\upshot\module1\NP_6A.webm\) failed
[21:54:53] bd: not a bd - trying as a stream/file instead
libdvdread: Encrypted DVD support unavailable.
libdvdrealibdvdread: DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed
d: Can't open file VIDEO_TS.IFO.
libdvdnav: vm: vm: failed to read VIDEO_TS.IFO
[21:54:53] dvd: not a dvd - trying as a stream/file instead
Input #0, matroska,webm, from 'C:\dev\itype-assets\assets\assets\videos\upshot\module1\NP_6A.webm':
Metadata:
encoder : libwebm-0.2.1.0
creation_time : 2021-02-03T10:18:21.000000Z
Duration: 00:00:26.38, start: -0.007000, bitrate: 440 kb/s
Stream #0:0(eng): Video: vp9 (Profile 0), yuv420p(tv), 1920x1080, SAR 1:1 DAR 16:9, 24 fps, 24 tbr, 1k tbn, 1k tbc (default)
Metadata:
alpha_mode : 1
Stream #0:1(eng): Audio: opus, 48000 Hz, stereo, fltp (default)
[21:54:53] scan: decoding previews for title 1
[21:54:53] scan: audio 0x1: opus, rate=48000Hz, bitrate=1 English (Opus) (2.0 ch)
[21:54:54] scan: 10 previews, 1920x1080, 24.000 fps, autocrop = 0/0/0/0, aspect 16:9, PAR 1:1, color profile: 1-1-1
[21:54:54] libhb: scan thread found 1 valid title(s)
[21:54:54] Skipping subtitle scan. No suitable subtitle tracks.
[21:54:54] Starting Task: Encoding Pass
[21:54:54] Skipping crop/scale filter
[21:54:54] work: track 1, dithering not supported by codec
[21:54:54] work: only 1 chapter, disabling chapter markers
[21:54:54] job configuration:
[21:54:54] * source
[21:54:54] + C:\dev\itype-assets\assets\assets\videos\upshot\module1\NP_6A.webm
[21:54:54] + title 1, chapter(s) 1 to 1
[21:54:54] + container: matroska,webm
[21:54:54] + data rate: 440 kbps
[21:54:54] * destination
[21:54:54] + C:\dev\itype-assets\assets\assets\videos\upshot\tst\test2.mp4
[21:54:54] + container: MPEG-4 (libavformat)
[21:54:54] * video track
[21:54:54] + decoder: vp9 8-bit
[21:54:54] + filters
[21:54:54] + 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)
[21:54:54] + Decomb (mode=39)
[21:54:54] + Framerate Shaper (mode=1)
[21:54:54] + frame rate: 24.000 fps -> constant 24.000 fps
[21:54:54] + Output geometry
[21:54:54] + storage dimensions: 1920 x 1080
[21:54:54] + pixel aspect ratio: 1 : 1
[21:54:54] + display dimensions: 1920 x 1080
[21:54:54] + encoder: H.265 (NVEnc)
[21:54:54] + preset: medium
[21:54:54] + profile: auto
[21:54:54] + level: auto
[21:54:54] + quality: 22.00 (CQ)
[21:54:54] + color profile: 1-1-1
[21:54:54] * audio track 1
[21:54:54] + decoder: English (Opus) (2.0 ch) (track 1, id 0x1)
[21:54:54] + samplerate: 48000 Hz
[21:54:54] + mixdown: Stereo
[21:54:54] + encoder: AAC (libavcodec)
[21:54:54] + bitrate: 128 kbps, samplerate: 48000 Hz
[21:54:54] sync: expecting 633 video frames
[21:54:54] encavcodecInit: H.265 (Nvidia NVENC)
[21:54:54] encavcodec: encoding at rc=vbr, multipass=fullres, 22.00
[21:54:54] encavcodec: encoding with stored aspect 1/1
[21:54:54] sync: first pts video is 0
[21:54:54] sync: "Chapter 1" (1) at frame 1 time 0
[21:54:54] sync: first pts audio 0x1 is 540
[21:54:58] reader: done. 1 scr changes
[21:54:59] work: average encoding speed for job is 138.201187 fps
[21:54:59] comb detect: heavy 11 | light 6 | uncombed 616 | total 633
[21:54:59] decomb: deinterlaced 11 | blended 6 | unfiltered 616 | total 633
[21:54:59] vfr: 633 frames output, 0 dropped and 0 duped for CFR/PFR
[21:54:59] vfr: lost time: 0 (0 frames)
[21:54:59] vfr: gained time: 0 (0 frames) (0 not accounted for)
[21:54:59] opus-decoder done: 660 frames, 0 decoder errors
[21:54:59] vp9-decoder done: 633 frames, 0 decoder errors
[21:54:59] sync: got 633 frames, 633 expected
[21:54:59] sync: framerate min 24.000 fps, max 24.000 fps, avg 24.000 fps
[21:54:59] mux: track 0, 633 frames, 2660493 bytes, 805.70 kbps, fifo 1024
[21:54:59] mux: track 1, 1237 frames, 405073 bytes, 122.67 kbps, fifo 2048
[21:54:59] Finished work at: Mon Sep 20 21:54:59 2021
[21:54:59] libhb: work result = 0
# Job Completed!