videopipe 432 B

12345678910111213
  1. #!/bin/sh
  2. # output file can be viewed in normie video players and "apps"
  3. # Usage: videopipe [input file] [output file]
  4. [ ! -f "$1" ] && echo "Error: file '$1' not found" && exit 1
  5. if [ -z "$2" ]; then
  6. outputbase="videopiped-${1%.*}"
  7. else
  8. outputbase="${2%.*}"
  9. fi
  10. ffmpeg -i "$1" -codec:v libx264 -crf 26 -bf 2 -flags +cgop -pix_fmt yuv420p -codec:a aac -strict -2 -b:a 384k -r:a 48000 -movflags faststart "$outputbase.mp4"