Filebrowser-commands.conf
Aus VDR Wiki
(Unterschied zwischen Versionen)
(+ interne links) |
K |
||
(12 dazwischenliegende Versionen von 6 Benutzern werden nicht angezeigt) | |||
Zeile 5: | Zeile 5: | ||
{{Box Datei | [[Struktur|$VDRCONFIG]]/plugins/filebrowser/commands.conf | | {{Box Datei | [[Struktur|$VDRCONFIG]]/plugins/filebrowser/commands.conf | | ||
<pre> | <pre> | ||
− | cp:*:cp -r %M %D:br | + | cp -r:*:cp -r %M %D:br |
mv:*:mv %M %D:br | mv:*:mv %M %D:br | ||
− | mkdir:*:mkdir %D:s | + | mkdir -p:*:mkdir -p %D:s |
− | rm?:*:rm -rf %m:br | + | rm -rf?:*:rm -rf %m:br |
− | ln:*:ln -vfs %M %D:s | + | ln -vfs:*:ln -vfs %M %D:s |
cat:*:cat %f:r | cat:*:cat %f:r | ||
− | tail:*:tail -f %f | + | tail -f:*:tail -f %f |
file:*:file %f:r | file:*:file %f:r | ||
size:*:du -chs %f:r | size:*:du -chs %f:r | ||
mount:!grep -E '[^[%:blank%:]]*[[%:blank%:]]*'%f'[[%:blank%:]]+' /etc/fstab >&1 >/dev/null:mount %f:r | mount:!grep -E '[^[%:blank%:]]*[[%:blank%:]]*'%f'[[%:blank%:]]+' /etc/fstab >&1 >/dev/null:mount %f:r | ||
umount:!grep -E '[^[%:blank%:]]*[[%:blank%:]]*'%f'[[%:blank%:]]+' /etc/mtab >&1 >/dev/null:umount %f:r | umount:!grep -E '[^[%:blank%:]]*[[%:blank%:]]*'%f'[[%:blank%:]]+' /etc/mtab >&1 >/dev/null:umount %f:r | ||
− | execute | + | execute:+(*.pl|*.sh):%f:r |
− | playlist:*: | + | playlist:*:find %M -follow -type f > /tmp/playlist:br |
untar:+(*.bz2|*.BZ2):tar -C "$(dirname %f)" --use-compress-program=bzip2 -vxf %f:r | untar:+(*.bz2|*.BZ2):tar -C "$(dirname %f)" --use-compress-program=bzip2 -vxf %f:r | ||
untar:+(*.gz|*.GZ|*.tgz|.*TGZ):tar -C "$(dirname %f)" --use-compress-program=gzip -vxf %f:r | untar:+(*.gz|*.GZ|*.tgz|.*TGZ):tar -C "$(dirname %f)" --use-compress-program=gzip -vxf %f:r | ||
unrar:+(*.rar|*.RAR):unrar -y e %f "$(dirname %f)":r | unrar:+(*.rar|*.RAR):unrar -y e %f "$(dirname %f)":r | ||
− | unrar | + | unrar pin:+(*.rar|*.RAR):unrar -p%p -y e %f "$(dirname %f)":r |
unzip:+(*.zip|*.ZIP):unzip -o %f -d "$(dirname %f)":r | unzip:+(*.zip|*.ZIP):unzip -o %f -d "$(dirname %f)":r | ||
− | unzip | + | unzip pin:+(*.zip|*.ZIP):unzip -o -P%p %f -d "$(dirname %f)":r |
− | avi2mpg:*.avi:ffmpeg -i %f -s 720x576 -b 6000 -vcodec mpeg2video -acodec mp2 -ab 224 -ar 48000 -ac 2 % | + | avi2mpg:*.avi:ffmpeg -i %f -s 720x576 -b 6000 -vcodec mpeg2video -acodec mp2 -ab 224 -ar 48000 -ac 2 %D.mpg:r |
− | vdr2mp3:*.vdr:ffmpeg - | + | vdr2mp3:*.vdr:FIFO=/tmp/vdr2mp3.$RANDOM; mkfifo $FIFO; cat %M > $FIFO & nice -n 10 ffmpeg -f mpeg -i $FIFO -acodec mp3 -ab 192 -ar 44100 %D.mp3:r |
+ | vdr2ipod:*.vdr:FIFO=/tmp/vdr2ipod.$RANDOM; mkfifo $FIFO; cat %M > $FIFO & nice -n 10 ffmpeg -f mpeg -i $FIFO -vcodec xvid -s 320x240 -b 850 -acodec aac -ac 2 -ab 64 -ar 44100 -f mp4 %D.m4v:r | ||
+ | vdr2psp:*.vdr:FIFO=/tmp/vdr2psp.$RANDOM; mkfifo $FIFO; cat %M > $FIFO & nice -n 10 ffmpeg -f mpeg -i $FIFO -acodec aac -ab 128 -vcodec mpeg4 -b 1200 -ar 24000 -mbd 2 -flags +4mv+trell -aic 2 -cmp 2 -subcmp 2 -s 368x192 -r 30000/1001 -title X -f psp %D.mp4:r | ||
+ | burn:*:growisofs -Z /dev/dvd -J -R %m:r | ||
+ | burn multisession:*:growisofs -M /dev/dvd -J -R %m:r | ||
</pre> | </pre> | ||
}} | }} | ||
− | Passende '''othercommands.conf''' zur '''commands.conf'''. | + | Passende '''[[filebrowser-othercommands.conf|othercommands.conf]]''' zur '''commands.conf'''. |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
[[Kategorie:Konfigurationsdateien]] | [[Kategorie:Konfigurationsdateien]] |
Aktuelle Version vom 8. April 2008, 16:17 Uhr
Konfigurationsdatei des filebrowser-plugins.
Beispiele.
$VDRCONFIG/plugins/filebrowser/commands.conf
cp -r:*:cp -r %M %D:br mv:*:mv %M %D:br mkdir -p:*:mkdir -p %D:s rm -rf?:*:rm -rf %m:br ln -vfs:*:ln -vfs %M %D:s cat:*:cat %f:r tail -f:*:tail -f %f file:*:file %f:r size:*:du -chs %f:r mount:!grep -E '[^[%:blank%:]]*[[%:blank%:]]*'%f'[[%:blank%:]]+' /etc/fstab >&1 >/dev/null:mount %f:r umount:!grep -E '[^[%:blank%:]]*[[%:blank%:]]*'%f'[[%:blank%:]]+' /etc/mtab >&1 >/dev/null:umount %f:r execute:+(*.pl|*.sh):%f:r playlist:*:find %M -follow -type f > /tmp/playlist:br untar:+(*.bz2|*.BZ2):tar -C "$(dirname %f)" --use-compress-program=bzip2 -vxf %f:r untar:+(*.gz|*.GZ|*.tgz|.*TGZ):tar -C "$(dirname %f)" --use-compress-program=gzip -vxf %f:r unrar:+(*.rar|*.RAR):unrar -y e %f "$(dirname %f)":r unrar pin:+(*.rar|*.RAR):unrar -p%p -y e %f "$(dirname %f)":r unzip:+(*.zip|*.ZIP):unzip -o %f -d "$(dirname %f)":r unzip pin:+(*.zip|*.ZIP):unzip -o -P%p %f -d "$(dirname %f)":r avi2mpg:*.avi:ffmpeg -i %f -s 720x576 -b 6000 -vcodec mpeg2video -acodec mp2 -ab 224 -ar 48000 -ac 2 %D.mpg:r vdr2mp3:*.vdr:FIFO=/tmp/vdr2mp3.$RANDOM; mkfifo $FIFO; cat %M > $FIFO & nice -n 10 ffmpeg -f mpeg -i $FIFO -acodec mp3 -ab 192 -ar 44100 %D.mp3:r vdr2ipod:*.vdr:FIFO=/tmp/vdr2ipod.$RANDOM; mkfifo $FIFO; cat %M > $FIFO & nice -n 10 ffmpeg -f mpeg -i $FIFO -vcodec xvid -s 320x240 -b 850 -acodec aac -ac 2 -ab 64 -ar 44100 -f mp4 %D.m4v:r vdr2psp:*.vdr:FIFO=/tmp/vdr2psp.$RANDOM; mkfifo $FIFO; cat %M > $FIFO & nice -n 10 ffmpeg -f mpeg -i $FIFO -acodec aac -ab 128 -vcodec mpeg4 -b 1200 -ar 24000 -mbd 2 -flags +4mv+trell -aic 2 -cmp 2 -subcmp 2 -s 368x192 -r 30000/1001 -title X -f psp %D.mp4:r burn:*:growisofs -Z /dev/dvd -J -R %m:r burn multisession:*:growisofs -M /dev/dvd -J -R %m:r
Passende othercommands.conf zur commands.conf.