Skip to content

Commit

Permalink
layout
Browse files Browse the repository at this point in the history
  • Loading branch information
dmarx committed Oct 7, 2022
1 parent 2f23770 commit 3ce2dbc
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Video_Killed_The_Radio_Star_Defusion.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -1139,15 +1139,17 @@
"if input_audio:\n",
" cmd_in += ['-i', str(input_audio)]\n",
"\n",
"# @markdown `upscale`: Naively (lanczos interpolation) upscale video 2x. This can be a way to force\n",
"# @markdown services like youtube to deliver your video without mangling it with compression\n",
"# @markdown artifacts. Thanks [@gandamu_ml](https://twitter.com/gandamu_ml) for this trick!\n",
"upscale = False # @param {type:'boolean'}\n",
"if upscale:\n",
" height=storyboard.params.height\n",
" width=storyboard.params.width\n",
" cmd_out = ['-vf', f'scale={2*width}x{2*height}:flags=lanczos'] + cmd_out\n",
"\n",
"# @markdown `upscale`: Naively (lanczos interpolation) upscale video 2x. This can be a way to force\n",
"# @markdown services like youtube to deliver your video without mangling it with compression\n",
"# @markdown artifacts. Thanks [@gandamu_ml](https://twitter.com/gandamu_ml) for this trick!\n",
"\n",
"\n",
"cmd = cmd_in + cmd_out\n",
"\n",
"p = Popen(cmd, stdin=PIPE)\n",
Expand Down

0 comments on commit 3ce2dbc

Please sign in to comment.