You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This error was reported by a user of the imager package, but it's not to do with the R side of things and it has me stumped.
The original issue is here: dahtah/imager#3.
On an OS X system, a call to load() fails on a MPEG-1 video even though the user has installed ffmpeg, imagemagick and graphicsmagick. The video loads fine on all systems I've tried so far (it's here: https://github.com/dahtah/imager/blob/master/inst/extdata/tennis_sif.mpeg)
Here's the CImg error:
convert: delegate failed "ffmpeg" -nostdin -v -1 -i "%i" -vframes %S -vcodec pam -an -f rawvideo -y "%u.pam" 2> "%Z"' @ error/delegate.c/InvokeDelegate/1332. convert: unable to open image/var/tmp/magick-25902iqF0P0m51egQ.pam': No such file or directory @ error/blob.c/OpenBlob/2695.
convert: no images defined `pnm:-' @ error/convert.c/ConvertImageCommand/3230.
sh: mpeg2decode: command not found
gm convert: Unable to open file (/var/folders/70/d3g1lc394k163j9bw8h68f8c0000gn/T/gmtK8MYB*.ppm) [No such file or directory].
gm convert: Unable to open file (/var/folders/70/d3g1lc394k163j9bw8h68f8c0000gn/T/gmh4FOq5).
Error: [instance(0,0,0,0,0x0,non-shared)] CImg::load(): Failed to recognize format of file '/Users/kruny1001/Library/R/3.2/library/imager/extdata/tennis_sif.mpeg'.
The text was updated successfully, but these errors were encountered:
Works for me with the provided video file on Ubuntu Linux, using ffmpeg.
I cannot tell much about the issue. Maybe The OP should try to read his video with ffmpeg alone, to see if this works. And if it works, that could mean ffmpeg is not found by CImg (is it in the $PATH ?).
Does the bug happen with an older version of CImg maybe ?
There are many possibilities. The fact that it doesn't work with convert at the very end does not surprise me too much, but if ffmpeg is installed, I see no reasons why it couldn't handle the file.
Another solution would be to enable the OpenCV library when compiling CImg, as it can be used to read/write video files as well, in a more "native" way (without an external system call to ffmpeg). I've tried this solution too, to read the provided video, and it works well too.
This error was reported by a user of the imager package, but it's not to do with the R side of things and it has me stumped.
The original issue is here: dahtah/imager#3.
On an OS X system, a call to load() fails on a MPEG-1 video even though the user has installed ffmpeg, imagemagick and graphicsmagick. The video loads fine on all systems I've tried so far (it's here: https://github.com/dahtah/imager/blob/master/inst/extdata/tennis_sif.mpeg)
Here's the CImg error:
convert: delegate failed "ffmpeg" -nostdin -v -1 -i "%i" -vframes %S -vcodec pam -an -f rawvideo -y "%u.pam" 2> "%Z"' @ error/delegate.c/InvokeDelegate/1332. convert: unable to open image/var/tmp/magick-25902iqF0P0m51egQ.pam': No such file or directory @ error/blob.c/OpenBlob/2695.
convert: no images defined `pnm:-' @ error/convert.c/ConvertImageCommand/3230.
sh: mpeg2decode: command not found
gm convert: Unable to open file (/var/folders/70/d3g1lc394k163j9bw8h68f8c0000gn/T/gmtK8MYB*.ppm) [No such file or directory].
gm convert: Unable to open file (/var/folders/70/d3g1lc394k163j9bw8h68f8c0000gn/T/gmh4FOq5).
Error: [instance(0,0,0,0,0x0,non-shared)] CImg::load(): Failed to recognize format of file '/Users/kruny1001/Library/R/3.2/library/imager/extdata/tennis_sif.mpeg'.
The text was updated successfully, but these errors were encountered: