Robert Cudmore    archive    tags    search    software


Convert .h264 video with ffmpeg

This bash script will make new copies of all .h264 files in the current working directory

#!/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
Tags: video

©2020. Robert Cudmore.