-
-
Save anonymous/48e0586349d7156e8217 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
FILES="$1" | |
RESOLUTION="854x480" | |
BITRATE="400000" | |
# AUDIO_OPTS="-c:a libfaac -b:a 160000 -ac 2" | |
AUDIO_OPTS="-an" | |
VIDEO_OPTS="-s $RESOLUTION -c:v libx264 -b:v $BITRATE -vprofile | |
baseline -preset medium -x264opts level=41" | |
# OUTPUT_HLS="-hls_time 3 -hls_list_size 3 -hls_wrap 10 -start_number 1" | |
for f in $FILES | |
do | |
ffmpeg -i "$f" $AUDIO_OPTS $VIDEO_OPTS "$f""_""$BITRATE.mp4" | |
done | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment