View Single Post
Old 08-27-2012, 04:23 AM   #179
icantbebothered
Penguin
icantbebothered ought to be getting tired of karma fortunes by now.icantbebothered ought to be getting tired of karma fortunes by now.icantbebothered ought to be getting tired of karma fortunes by now.icantbebothered ought to be getting tired of karma fortunes by now.icantbebothered ought to be getting tired of karma fortunes by now.icantbebothered ought to be getting tired of karma fortunes by now.icantbebothered ought to be getting tired of karma fortunes by now.icantbebothered ought to be getting tired of karma fortunes by now.icantbebothered ought to be getting tired of karma fortunes by now.icantbebothered ought to be getting tired of karma fortunes by now.icantbebothered ought to be getting tired of karma fortunes by now.
 
icantbebothered's Avatar
 
Posts: 1,017
Karma: 4742434
Join Date: Jul 2012
Device: Kindle Touch 5.3.2.1
Quote:
Originally Posted by Titano View Post
An extension would have to take into account different files names if you didn't want to rename files. Maybe writing a shell script with something like this that runs from xterm or the like would be better.
Code:
clear
echo "GeekMasters Video Player
"
cd /mnt/us/Videos
ls -w 1 *.gz
echo "
What do you want to play? (File name without .gmv.gz)"
read video
echo Playing $video
sleep 1
zcat ./$video.gmv.gz|/mnt/us/gmplay
Then you just put all your files in a folder called 'Videos' and put gmplay in /mnt/us.
I actually thought of the video extension being a submenu, with all the videos and gmplay in the bin. Then there would be more than one shel scipts, and they would look something like this:

#!/bin/bash

zcat ./gmvid(or whatever the video is called).gmv.gz | ./gmplay

And the menu.json would include several items, and their actions would be shell scripts in the bin directory.
icantbebothered is offline   Reply With Quote