#!/bin/bash



# for file in *.mp4; do
doit() {
	file=$1
	out=$(ffmpeg -v error -i "$file" -f null - 2>&1); 
	if [ "$out" = ""  ]; then
		echo $out
		echo $file
		echo "looks good"
	else
		echo $out && echo $file && rm $file
	fi
}
# done
export -f doit
parallel doit ::: *.mp4
