30 lines
519 B
Bash
30 lines
519 B
Bash
#!/bin/bash
|
|
|
|
if [ "$#" -ne 1 ]; then
|
|
echo "usage ts2mp4.sh [path to vdr recordings]";
|
|
exit 1;
|
|
fi
|
|
|
|
if [ ! -d $1 ]; then
|
|
echo "vdr recordings directory not valid: $1";
|
|
exit 1;
|
|
fi
|
|
|
|
echo "vdr recordings directory: $1";
|
|
|
|
echo "changing into vdr recordings directory '$1'";
|
|
cd $1;
|
|
|
|
echo `pwd`
|
|
|
|
for i in %*; do
|
|
cd $i;
|
|
for j in *.rec; do
|
|
cd $j;
|
|
MOVIENAME=$(sed -n -e 's/^T \(.*\)$/\1/p' info);
|
|
echo "'$MOVIENAME' is ready for transcoding"
|
|
cd ..;
|
|
done
|
|
cd ..;
|
|
done
|