Remove legacy width argument

This commit is contained in:
Neale Pickett 2023-02-28 22:11:46 -07:00
parent a64d28279e
commit ddb6b491a4
1 changed files with 0 additions and 9 deletions

9
h264
View File

@ -8,7 +8,6 @@ Usage: $0 [OPTIONS...] SRC [SRC...]
Re-encodes to h.264. Re-encodes to h.264.
Output will be written to \$SRC.h264.mp4 Output will be written to \$SRC.h264.mp4
-width W Rescale to no wider than W
-height H Rescale to no taller than H -height H Rescale to no taller than H
-1080p Rescale to no bigger than 1080p -1080p Rescale to no bigger than 1080p
-720p Rescale to no bigger than 720p -720p Rescale to no bigger than 720p
@ -21,34 +20,26 @@ This is due to some odd interaction between
ffmpeg, h264_v4l2m2m, and mp4. ffmpeg, h264_v4l2m2m, and mp4.
EOD EOD
width=iw
height=ih height=ih
codec=h264_v4l2m2m codec=h264_v4l2m2m
bitrate="-b:v 2048k" bitrate="-b:v 2048k"
while true; do while true; do
case "$1" in case "$1" in
-width|--width)
width=$1
shift
;;
-height|--height) -height|--height)
height=$1 height=$1
shift shift
;; ;;
-1080p|--1080p) -1080p|--1080p)
width=1920
height=1080 height=1080
bitrate="-b:v 2048k" bitrate="-b:v 2048k"
shift shift
;; ;;
-720p|--720p) -720p|--720p)
width=1280
height=720 height=720
bitrate="-b:v 3000k" bitrate="-b:v 3000k"
shift shift
;; ;;
-480p|--480p) -480p|--480p)
width=640
height=480 height=480
bitrate="-b:v 512k" bitrate="-b:v 512k"
shift shift