diff options
| author | Greg Frost <gregfrost1@bigpond.com> | 2009-08-15 05:31:58 (GMT) |
|---|---|---|
| committer | Greg Frost <gregfrost1@bigpond.com> | 2009-08-15 05:31:58 (GMT) |
| commit | ac3fcc84dfa0692cf2b11a04d7266da47c2ff89c (patch) | |
| tree | f86d811d39857cab00585406f6dcade718f06d72 /abs/core-testing/linhes-scripts/scripts/shootscreens.sh | |
| parent | 119437a1508554051d060f88530263f3eb2204fb (diff) | |
| download | linhes_pkgbuild-ac3fcc84dfa0692cf2b11a04d7266da47c2ff89c.zip linhes_pkgbuild-ac3fcc84dfa0692cf2b11a04d7266da47c2ff89c.tar.gz linhes_pkgbuild-ac3fcc84dfa0692cf2b11a04d7266da47c2ff89c.tar.bz2 | |
linhes-scripts: repackage so src package contains files
Diffstat (limited to 'abs/core-testing/linhes-scripts/scripts/shootscreens.sh')
| -rwxr-xr-x | abs/core-testing/linhes-scripts/scripts/shootscreens.sh | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/abs/core-testing/linhes-scripts/scripts/shootscreens.sh b/abs/core-testing/linhes-scripts/scripts/shootscreens.sh deleted file mode 100755 index 7b1260c..0000000 --- a/abs/core-testing/linhes-scripts/scripts/shootscreens.sh +++ /dev/null @@ -1,37 +0,0 @@ -#!/bin/bash - -# Written by Bob Igo from the MythTV Store at http://MythiC.TV -# Email: bob@stormlogic.com -# -# If you run into problems with this script, please send me email - -# This code generates screenshots (cover files) for all videos in -# MythTV's videometadata table that do not have covers associated with them. - -if [ "$1" == "1" ]; then - OSD=1 -else - OSD=0 -fi - -> /tmp/shooter.log -{ - percentage=0 - # Change IFS to be a newline so that filenames with spaces will be handled properly. - IFS=$'\n' - vidcount=`mysql -u root mythconverg -B -e "select filename from videometadata where coverfile=\"No Cover\";" | wc -l` - increment=$(expr 100 / $vidcount) - for vid in `mysql -u root mythconverg -B -e "select filename from videometadata where coverfile=\"No Cover\";" | grep -v -e "^filename$"` - do - if [ $OSD == 1 ]; then - osd_cat --barmode=percentage --percentage=$percentage --pos=middle --align=center --color=white --text="Generating Video Thumbnails..." --font=$FONT --shadow=3 --color=yellow --delay=0 & - percentage=$(expr $percentage + $increment) - fi - - screenshooter.sh -v $vid - done - if [ $OSD == 1 ]; then - killall -9 osd_cat - osd_cat --barmode=percentage --percentage=100 --pos=middle --align=center --color=white --text="Video Thumbnails Generated!" --font=$FONT --shadow=3 --color=yellow --delay=3 & - fi -}
\ No newline at end of file |
