13 lines
291 B
Bash
Executable File
13 lines
291 B
Bash
Executable File
#!/bin/sh
|
|
echo "Media to convert to h.264"
|
|
echo "--------------------"
|
|
for i in `ls`
|
|
do
|
|
OUTPUTh264=`ffmpeg -i $i 2>&1 | egrep 'h264'`
|
|
OUTPUTh265=`ffmpeg -i $i 2>&1 | egrep 'hevc'`
|
|
if [[ ( -z "$OUTPUTh264" ) && ( -z "$OUTPUTh265" ) ]]; then
|
|
echo " "
|
|
echo $i
|
|
fi
|
|
done
|