Filebrowser-commands.conf

Aus VDR Wiki
(Unterschied zwischen Versionen)
Wechseln zu: Navigation, Suche
(M (plugin erkennt die medien von alleine mp3-mplayer >= 0.9.15pre5))
Zeile 26: Zeile 26:
 
avi2mpg:*.avi:ffmpeg -i %f -s 720x576 -b 6000 -vcodec mpeg2video -acodec mp2 -ab 224 -ar 48000 -ac 2 %f.mpg:r
 
avi2mpg:*.avi:ffmpeg -i %f -s 720x576 -b 6000 -vcodec mpeg2video -acodec mp2 -ab 224 -ar 48000 -ac 2 %f.mpg:r
 
vdr2mp3:*.vdr:ffmpeg -i %f -acodec mp3 -ab 192 -ar 44100 %f.mp3:r
 
vdr2mp3:*.vdr:ffmpeg -i %f -acodec mp3 -ab 192 -ar 44100 %f.mp3:r
 +
</pre>
 +
}}
 +
 +
Passende '''othercommands.conf''' zur '''commands.conf'''.
 +
 +
{{Box Datei | $VDRCONFIG/plugins/filebrowser/othercommands.conf |
 +
<pre>
 +
cp
 +
mv
 +
mkdir
 +
rm
 +
ln
 +
cat
 +
tail
 +
file
 +
size
 +
mount
 +
umount
 +
execute
 +
playlist
 +
untar
 +
unrar
 +
unrar p
 +
unzip
 +
unzip p
 +
avi2mpg
 +
vdr2mp3
 +
-------
 +
Threads
 +
Sources
 +
View
 +
Play
 
</pre>
 
</pre>
 
}}
 
}}
  
 
[[Kategorie:Konfigurationsdateien]]
 
[[Kategorie:Konfigurationsdateien]]

Version vom 13. April 2006, 18:35 Uhr

Konfigurationsdatei des filebrowser-plugins.

Beispiele.

Datei
$VDRCONFIG/plugins/filebrowser/commands.conf
cp:*:cp -r %M %D:br
mv:*:mv %M %D:br
mkdir:*:mkdir %D:s
rm?:*:rm -rf %m:br
ln:*:ln -vfs %M %D:s
cat:*:cat %f:r
tail:*: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:*:for p in %M ; do echo ${p/#\/\///} ; done > /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 p:+(*.rar|*.RAR):unrar -p"$(basename %D)" -y e %f "$(dirname %f)":r
unzip:+(*.zip|*.ZIP):unzip -o %f -d "$(dirname %f)":r
unzip p:+(*.zip|*.ZIP):unzip -o -P"$(basename %D)" %f -d "$(dirname %f)":r
avi2mpg:*.avi:ffmpeg -i %f -s 720x576 -b 6000 -vcodec mpeg2video -acodec mp2 -ab 224 -ar 48000 -ac 2 %f.mpg:r
vdr2mp3:*.vdr:ffmpeg -i %f -acodec mp3 -ab 192 -ar 44100 %f.mp3:r


Passende othercommands.conf zur commands.conf.

Datei
$VDRCONFIG/plugins/filebrowser/othercommands.conf
cp
mv
mkdir
rm
ln
cat
tail
file
size
mount
umount
execute
playlist
untar
unrar
unrar p
unzip
unzip p
avi2mpg
vdr2mp3
-------
Threads
Sources
View
Play