Image.sh
Aus VDR Wiki
(Unterschied zwischen Versionen)
(M) |
Hulk (Diskussion | Beiträge) K |
||
| (18 dazwischenliegende Versionen von 13 Benutzern werden nicht angezeigt) | |||
| Zeile 1: | Zeile 1: | ||
| − | <pre>#!/bin/sh | + | Skript vom [[image-plugin]]. |
| + | |||
| + | {{Box Datei | [[Struktur|$PATH]]/image.sh | | ||
| + | <pre> | ||
| + | #!/bin/sh | ||
# | # | ||
| − | # pregenerate images in | + | # image.sh |
| + | # | ||
| + | # source: vdr-plugin image | ||
| + | # | ||
| + | # pregenerate images in background | ||
| + | # | ||
| + | # add this line to your imagecmds.conf: | ||
| + | # folgende zeile in die imagecmds.conf eintragen: | ||
| + | # | ||
| + | # Pregenerate this folder and below : /path_to_this_script/image.sh | ||
| + | # | ||
| + | # setup: | ||
| + | # | ||
| + | # Remove temporary files yes | ||
| + | # Loesche temporaere Dateien ja | ||
| + | # | ||
| + | # config: | ||
| + | # | ||
| + | # image.Housekeeping = 0 | ||
| + | |||
| + | screen -dm sh -c " \ | ||
| + | find "${1%/*}" -follow -type f \ | ||
| + | -name "*\.[jJbBtTpPmM][pPmMiInN][gGpPeEfFmM]" \ | ||
| + | -exec imageplugin.sh {} '/tmp/image{}.pnm' 688 544 0 0 0 \;" | ||
| + | </pre> | ||
| + | }} | ||
| − | + | [[Kategorie:Skripte]] | |
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
Aktuelle Version vom 18. August 2013, 14:13 Uhr
Skript vom image-plugin.
$PATH/image.sh
#!/bin/sh
#
# image.sh
#
# source: vdr-plugin image
#
# pregenerate images in background
#
# add this line to your imagecmds.conf:
# folgende zeile in die imagecmds.conf eintragen:
#
# Pregenerate this folder and below : /path_to_this_script/image.sh
#
# setup:
#
# Remove temporary files yes
# Loesche temporaere Dateien ja
#
# config:
#
# image.Housekeeping = 0
screen -dm sh -c " \
find "${1%/*}" -follow -type f \
-name "*\.[jJbBtTpPmM][pPmMiInN][gGpPeEfFmM]" \
-exec imageplugin.sh {} '/tmp/image{}.pnm' 688 544 0 0 0 \;"