[vdr] vdr-pictures and pic2mpg

Klaus Schmidinger Klaus.Schmidinger at cadsoft.de
Fri Feb 29 15:35:37 CET 2008


On 02/25/08 19:59, Stefan Wagner wrote:
> Klaus Schmidinger <Klaus.Schmidinger at cadsoft.de> wrote:
>>> stefan at mona:/media/daten/burn$ pic2mpg -v 1 /media/daten/burn/ /media/daten/burn/dest/
>>> ./dscn0015.jpg -> /media/daten/burn/dest//./dscn0015.jpg.mpg
>>> ./DSCN00051.JPG -> /media/daten/burn/dest//./DSCN00051.JPG.mpg
>>>
>>> but wen i call the script with relative paths:
>>> stefan at mona:/media/daten/burn$ pic2mpg -v 1 ./ dest/
>>> ./dscn0015.jpg -> dest//./dscn0015.jpg.mpg
>>> ./DSCN00051.JPG -> dest//./DSCN00051.JPG.mpg
>>> removing ./DSCN00051.JPG.mpg
>>> removing ./dscn0015.jpg.mpg
>>> dest/: No such file or directory
>>>
>>> why will the script remove the files?
>>> they are in dest/ before ending script.
>> From the README file:
>>
>> Just don't make the destination directory a subdirectory of
>> the source directory, because this would surely lead to problems.
> 
> ok, but with relative paths it don't works.
> 
> stefan at mona:~/tests$ ls
> dest  source
> stefan at mona:/tmp$ pic2mpg -v 1 source dest
> ./DSCN2155.JPG -> dest/./DSCN2155.JPG.mpg
> ./DSCN2154.JPG -> dest/./DSCN2154.JPG.mpg
> removing ./DSCN2155.JPG.mpg
> removing ./DSCN2154.JPG.mpg
> dest: Datei oder Verzeichnis nicht gefunden
> 
> the script will create a dest dir in source (/tmp/source/dest/) and
> delete the files after finishing.
> 
> the script only works with absolute paths correctly.

Please try the attached patch.

Klaus
-------------- next part --------------
A non-text attachment was scrubbed...
Name: vdr-1.5.16-pictures.diff
Type: text/x-patch
Size: 524 bytes
Desc: not available
Url : http://www.linuxtv.org/pipermail/vdr/attachments/20080229/8a27435d/attachment.bin 


More information about the vdr mailing list