anything-scripts

Disposable scripts to fix day to day problems.
git clone git://soucy.cc/anything-scripts.git
Log | Files | Refs

ffmpeg-mov-to-mp4 (401B)


      1 #!/bin/bash
      2 
      3 inputMov=$1
      4 
      5 if hash ffmpeg 2>/dev/null; then
      6     # If there's no 2nd argument
      7     # use the name of the input
      8     if [ -z "$2" ]; then
      9         outputMpeg="${inputMov%.*}.mp4"
     10     else
     11         outputMpeg=$2
     12     fi
     13 
     14     ffmpeg -i "$inputMov" -vcodec copy -acodec copy "$outputMpeg"
     15 else
     16     echo "- Sorry But You must Install *ffmpeg*."
     17     echo "- Please Visit <https://ffmpeg.org/>."
     18 fi