Movie-Selector
Video Software
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

Changelog:

11 years ago

Added a Headline in the Script to replace "Xdialog"

11 years ago

jaimevalero

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

11 years ago

TOD

Thx for improving my work!!

Good job.

cu

TOD

Report

11 years ago

jaimevalero

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

11 years ago

jpetso

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

Supporters

Recent Donations

Be the first to donate
Filename Version Description Filetype Packagetype License Downloads Date Filesize Install
Score 53%
53.00 Likes
47 Dislikes

0 Supporters for Movie-Selector:

Recent Donations:

Be the first to donate
show all
Details
version
1.1
updated Nov 22 2005
added Oct 08 2005
downloads
page views 277
support TOD
For The Product
Movie-Selector
5 - 10 - 25 - 50 - 100 - 200 - 500