Hello,
'identify -format %m' deletes file if it's empty and have .mp4 extension
➜ ~ identify -format %m, /Users/kgorin/identify_test.mp4
identify: delegate failed `"ffmpeg" -v -1 -i "%i" -vframes %S -vcodec pam -an -f rawvideo -y "%u.pam" 2> "%Z"' @ error/delegate.c/InvokeDelegate/1314.
identify: unable to open image `/var/tmp/magick-7964QEfqjIQPe8um.pam': No such file or directory @ error/blob.c/OpenBlob/2701.
And after that file gets deleted from a disk. Is that a bug?
OS X 10.10, installed with homebrew
➜ ~ identify
Version: ImageMagick 6.9.0-3 Q16 x86_64 2015-01-09 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2015 ImageMagick Studio LLC
Features: DPC Modules
Delegates (built-in): bzlib freetype jng jpeg ltdl lzma png xml zlib
'identify -format %m' deletes file after delegate failure
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: 'identify -format %m' deletes file after delegate failure
You need to install the ffmpeg delegate library for IM to detect the magic value for an mpeg video or to process (read/write) one.
Your list of delegates does not include that.
I am on a Mac and do the following using MacPorts. See viewtopic.php?f=1&t=21502&p=88202&hilit ... rts#p88202
My delegates are the following, though you don't need them all.
Your list of delegates does not include that.
You also do not have delegates for tiff or ghostscript (ps and pdf formats)Delegates (built-in): bzlib freetype jng jpeg ltdl lzma png xml zlib
I am on a Mac and do the following using MacPorts. See viewtopic.php?f=1&t=21502&p=88202&hilit ... rts#p88202
My delegates are the following, though you don't need them all.
Code: Select all
Delegates (built-in): bzlib cairo fftw fontconfig freetype gslib jbig jng jp2 jpeg lcms lqr ltdl lzma openexr png ps rsvg tiff webp x xml zlib
Re: 'identify -format %m' deletes file after delegate failure
I get why it can't identify the file, but deleting the file is definitely not expected behaviour, isn't it?
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: 'identify -format %m' deletes file after delegate failure
No, I would not expect that it would delete your file.
Does that work without deleting the file?
This is not correct syntax. There should be no comma. Tryidentify -format %m, /Users/kgorin/identify_test.mp4
Code: Select all
identify -format "%m" "/Users/kgorin/identify_test.mp4"
Re: 'identify -format %m' deletes file after delegate failure
We can reproduce the problem you posted and have a patch in ImageMagick 6.9.0-8 Beta available by sometime tomorrow. Thanks.
Re: 'identify -format %m' deletes file after delegate failure
That's a typo, works the same.fmw42 wrote:No, I would not expect that it would delete your file.
This is not correct syntax. There should be no comma. Tryidentify -format %m, /Users/kgorin/identify_test.mp4
Thanks!magick wrote:We can reproduce the problem you posted and have a patch in ImageMagick 6.9.0-8 Beta available by sometime tomorrow. Thanks.