Skip to content

Commit a26c3ef

Browse files
committed
3.0.026
1 parent 217f9c5 commit a26c3ef

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

.github/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ To stop playing press Ctrl+C in either the terminal or mpv
9999
<details><summary>List all subcommands</summary>
100100

101101
$ library
102-
library (v3.0.025; 91 subcommands)
102+
library (v3.0.026; 91 subcommands)
103103

104104
Create database subcommands:
105105
╭─────────────────┬──────────────────────────────────────────╮

xklb/__main__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
from xklb.utils import argparse_utils, iterables
66
from xklb.utils.log_utils import log
77

8-
__version__ = "3.0.025"
8+
__version__ = "3.0.026"
99

1010
progs = {
1111
"Create database subcommands": {

xklb/mediafiles/process_ffmpeg.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def process_path(args, path, **kwargs):
6262
if kwargs:
6363
args = args_override(args, kwargs)
6464

65-
output_path = web.gen_output_path(args, path, target_extension=".av1.mkv")
65+
output_path = web.gen_output_path(args, path, target_extension=".XXXXXXX") # max target ext len
6666

6767
path, output_path = devices.clobber(args, path, output_path)
6868
if path is None:
@@ -171,6 +171,8 @@ def process_path(args, path, **kwargs):
171171
ff_opts.extend(["-vf", f"scale={args.max_width}:-2"])
172172
elif height > (args.max_height * (1 + args.max_height_buffer)):
173173
ff_opts.extend(["-vf", f"scale=-2:{args.max_height}"])
174+
else: # make sure input raster is even for YUV_420 colorspace
175+
ff_opts.extend(["-vf", "pad='if(mod(iw,2),iw+1,iw)':'if(mod(ih,2),ih+1,ih)':(ow-iw)/2:(oh-ih)/2:black"])
174176

175177
elif album_art_stream:
176178
ff_opts.extend(["-map", "0:v", "-c:v", "copy"])

0 commit comments

Comments
 (0)