initial commit of bin scripts into git
This commit is contained in:
24
convert_isos_to_plex
Executable file
24
convert_isos_to_plex
Executable file
@@ -0,0 +1,24 @@
|
||||
#!/bin/bash
|
||||
|
||||
for i in /myth/videos/Movies/*
|
||||
do
|
||||
echo $i
|
||||
|
||||
movie_iso_name=`basename $i`
|
||||
movie_base="${movie_iso_name%.*}"
|
||||
|
||||
if [ -f /myth/opt/storage/movies/$movie_base.mp4 ]
|
||||
then
|
||||
echo "$move_base.mp4 already exists, skipping..."
|
||||
continue
|
||||
fi
|
||||
|
||||
sudo mount $i /mnt/test
|
||||
vd=`ls -d /mnt/test/[Vv][Ii][Dd][Ee][Oo]_[Tt][Ss]`
|
||||
echo vd=$vd
|
||||
vt_num=`find $vd -size +1000M | head -n1 | cut -f3 -d_`
|
||||
echo vt=$vt_num
|
||||
vobs=`ls $vd/*${vt_num}_[1-9]*.[Vv][Oo][Bb]`
|
||||
cat $vobs | ffmpeg -i - -codec copy -target pal-dvd /myth/opt/storage/movies/$movie_base.mp4
|
||||
sudo umount /mnt/test
|
||||
done
|
||||
Reference in New Issue
Block a user