Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)
Paste
Pasted as Bash by erikano ( 15 years ago )
#!/usr/bin/env bash
# summarize_movie_audio_text.sh, version 0.2
# This script assumes that you have catalogued your mkv-contained movies in
# directories that bare the same name as the mkv-file and, if present, the
# srt-file. E.g.:
#
# Name.of.Movie.Release/
# Name.of.Movie.Release.mkv
# Name.of.Movie.Release.srt
summarize() {
for i in $( ls $1/ ) ; do
echo $1/$i
ls $1/$i/ | grep -q $i.srt
if [ $? -eq 0 ] ; then
echo " srt: Found"
else
echo " srt: Not found"
fi
echo " Embedded audio:" $( mediainfo "--Inform=Audio; %Language%" $1/$i/$i.mkv )
echo " Embedded text: " $( mediainfo "--Inform=Text; %Language%" $1/$i/$i.mkv )
done
}
if [ $# -eq 0 ] ; then
summarize $( pwd )
else
for j in $@ ; do
summarize $j
done
fi
Revise this Paste