Movie-Selector
Video
Score 53%
Description:

Hi

This a small Video-Selection-Script.

You give him the Videopaths Names and Filenames and then you can easy watch them every time.

I have made this Script for my ET-video collection so i don't have to navigate to the videos and start them by hand.

The Script use xine.

Install
--------

1. Open the Script with a Texteditor

2. Change /mnt/datenhd/video/ET-Videos to the path where your videos are placed.

3. Change the name of the Videofile for example : xine borntobealive.avi to
xine YOUR_VIDEOFILE.XX

3. Change the displayed Name for example: 1 "Born to be Alive" \
to 1 "MY_NEW_NAME" \

4. When finished it looks like:

1 "MY_NEW_NAME" \

1) #
cd YOUR_PATH_TO_VIDEOS && xine MY_NEW_NAME.avi
;;

The Name at 1 should describe the Video Name for place 1)

The numbers belong together.

Just test it.

This Script is made for Gamer who have an huge Game video collection and so they can it start easy.

No liability is assumed for damages to hard and software !!

Feedbacks are welcome.

cu

TOD
Last changelog:

12 years ago

Added a Headline in the Script to replace "Xdialog"

jaimevalero

12 years ago

It seems a great idea a movie selector app, but I dont like to enter the paths of my entire simpsons collections manually.
So I wrote an update of the script.

For using it:
Just change the path where your videos are. (VIDEO_PATH) and the extension of your videos (VIDEO_EXTENSION)


I hope you will find useful too!






##################################
#!/bin/bash



#INSERT HERE YOUR VIDEO PATH
VIDEO_PATH=/mnt/descargado/bajados
#INSERT HERE THE EXTENSION FOR THE VIDEOS
VIDEO_EXTENSION=avi

#NAME OF THE TEMP_FILE TO EXECUTE
TEMPFILE=/tmp/parte




# Remove temporal files
rm $TEMPFILE



echo "set -xv ">> $TEMPFILE

echo "#\!/bin/bash ">> $TEMPFILE
echo "# Führt vordefinierte Befehle aus. ">> $TEMPFILE
echo "# Temporäre Datei für die Ergebnisse ">> $TEMPFILE

echo "">> $TEMPFILE

echo "tempdatei=/tmp/etmov.tmp.\$\$ ">> $TEMPFILE

# Dialogfenster
echo "Xdialog --backtitle ET-Moviselektor --title "Play your Video" --menu "Wählen das Video" 0 0 0 \\" >> $TEMPFILE


for i in ${VIDEO_PATH}/*.${VIDEO_EXTENSION}; do
if test -f "$i"; then
J=`expr $J + 1`
echo -n $J \" `basename "$i"` \" \\ >> $TEMPFILE


fi

done
J=`expr $J + 1`
echo $J \"\" \\ >> $TEMPFILE


echo "2> \$tempdatei " >> $TEMPFILE


echo "eingabe=\$(cat \$tempdatei) " >> $TEMPFILE

echo "#Auswerten " >> $TEMPFILE

echo "echo \"Sie haben ausgewählt: \$eingabe\" " >> $TEMPFILE



echo " case \$eingabe in " >> $TEMPFILE


# The case structure

for i in ${VIDEO_PATH}/*.${VIDEO_EXTENSION}; do
if test -f "$i"; then
echo " " >> $TEMPFILE
K=`expr $K + 1`
echo -n $K\) \# >> $TEMPFILE
echo " " >> $TEMPFILE
echo xine \"$i\" >> $TEMPFILE
echo \;\; >> $TEMPFILE
#echo " " >> $TEMPFILE

fi
done


echo esac >> $TEMPFILE

# Aufräumen
echo "rm -f \$tempdatei " >> $TEMPFILE


# Dialogfenster

#echo "$J \"\" \ ">> $TEMPFILE
echo "2> \$tempdatei ">> $TEMPFILE

# Execute the file we have created
sh $TEMPFILE

rm $TEMPFILE


exit

Report

C

TOD

12 years ago

Thx for improving my work!!

Good job.

cu

TOD

Report

jaimevalero

12 years ago

Thx to you. That was my first try, now I think I can contribute in bigger projects here at the Linux world.

Any sugerences ?

Report

jpetso

12 years ago

Oh my god, Benjamin Meyer was right! This might not be the exact equivalent of what he predicted here: http://www.kdedevelopers.org/node/1624 but maybe he's got a point in saying KDE still needs a movie manager.

Report

12 years ago

Added a Headline in the Script to replace "Xdialog"

product-maker 17 20

File (click to download) Version Description Filetype Packagetype License Downloads Date Filesize OCS-Install DL
Details
version
1.1
updated Nov 22 2005
added Oct 08 2005
downloads today
0
page views today 0