3
# FILE NAME: enc2firefox.sh
5
# Encodes (mp4/x264) videos so they can be played in firefox.
9
# * Removed an eval that made no sense.
10
# * Added FJ mode for those spicy memes.
21
echo "enc2firefox.sh -- Make Videos Playable in Firefox"
23
echo "-i <input video file> Input Video File."
25
echo "-o <output video file> Output Video File"
26
echo " (.mp4 will be added to the end)."
28
echo "-m output webm instead"
29
echo " (Will change ending to .webm)."
31
echo "-f Use FJ settings. Low bandwith, small size."
32
echo " (Will append .mp4 to the end)."
38
ffmpeg -i "$__IN_NAME"\
49
ffmpeg -i "$__IN_NAME"\
62
ffmpeg -i "$__IN_NAME"\
73
echo "Try --help or -h."
118
if [ ! -e "$__IN_NAME" ]
120
echo "missing input audio. Please provide."
124
if [ $__OUT_NAME == "" ]
126
echo "missing output file name. Please provide."
131
if [ $__USE_WEBM = true ]
133
if [ $__IN_NAME = $__OUT_NAME.webm ]
135
echo "Filenames can't be the same."
139
elif [ $__USE_FJ = true ]
141
if [ $__IN_NAME = $__OUT_NAME.mp4 ]
143
echo "Filenames can't be the same."
148
if [ $__IN_NAME = $__OUT_NAME.mp4 ]
150
echo "Filenames can't be the same."