Convert .h264 video with ffmpeg
13 Oct 2016This bash script will make new copies of all .h264 files in the current working directory
- Output files will have 15 frames-per-second (-r 15)
- Output files will be placed in /mp4/ directory
- Output files will be renamed with .mp4 extension
#!/bin/bash
#INPUT="$1"
mkdir mp4
for file in *.h264 ; do
filename="${file%.*}"
echo $filename
ffmpeg -r 15 -i "$file" -vcodec copy "mp4/$file.mp4"
sleep 3
done