mirror of
https://github.com/vdr-projects/vdr.git
synced 2025-03-01 10:50:46 +00:00
Made the 'pic2mpg' script of the 'pictures' plugin work with relative paths
This commit is contained in:
@@ -7,11 +7,12 @@
|
||||
#
|
||||
# See the README file for copyright information and how to reach the author.
|
||||
#
|
||||
# $Id: pic2mpg 1.3 2008/02/24 22:00:18 kls Exp $
|
||||
# $Id: pic2mpg 1.4 2008/02/29 14:34:22 kls Exp $
|
||||
|
||||
## TODO implement HDTV (1920 x 1080)
|
||||
|
||||
use File::Path;
|
||||
use File::Spec;
|
||||
use Getopt::Std;
|
||||
use Image::Size;
|
||||
|
||||
@@ -87,8 +88,8 @@ if (-f $ARGV[0]) {
|
||||
|
||||
die "$0: mixed directory and file ('$ARGV[0]' <-> '$ARGV[1]')\n" unless !-e $ARGV[1] || -d $ARGV[1];
|
||||
|
||||
$PICDIR = $ARGV[0];
|
||||
$MPGDIR = $ARGV[1];
|
||||
$PICDIR = File::Spec->rel2abs($ARGV[0]);
|
||||
$MPGDIR = File::Spec->rel2abs($ARGV[1]);
|
||||
|
||||
# Convert pictures to mpegs:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user