Skip to content

Commit

Permalink
3.0.026
Browse files Browse the repository at this point in the history
  • Loading branch information
chapmanjacobd committed Nov 18, 2024
1 parent 217f9c5 commit a26c3ef
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ To stop playing press Ctrl+C in either the terminal or mpv
<details><summary>List all subcommands</summary>

$ library
library (v3.0.025; 91 subcommands)
library (v3.0.026; 91 subcommands)

Create database subcommands:
╭─────────────────┬──────────────────────────────────────────╮
Expand Down
2 changes: 1 addition & 1 deletion xklb/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from xklb.utils import argparse_utils, iterables
from xklb.utils.log_utils import log

__version__ = "3.0.025"
__version__ = "3.0.026"

progs = {
"Create database subcommands": {
Expand Down
4 changes: 3 additions & 1 deletion xklb/mediafiles/process_ffmpeg.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def process_path(args, path, **kwargs):
if kwargs:
args = args_override(args, kwargs)

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

path, output_path = devices.clobber(args, path, output_path)
if path is None:
Expand Down Expand Up @@ -171,6 +171,8 @@ def process_path(args, path, **kwargs):
ff_opts.extend(["-vf", f"scale={args.max_width}:-2"])
elif height > (args.max_height * (1 + args.max_height_buffer)):
ff_opts.extend(["-vf", f"scale=-2:{args.max_height}"])
else: # make sure input raster is even for YUV_420 colorspace
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"])

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

0 comments on commit a26c3ef

Please sign in to comment.