I'm using (or trying t use) RMagick for the first time.
I need to play back video files - (there's a vast library of .avi files) and I get the following:
vid = ImageList.new("video_data/... long_file_name... .avi")
Magick::ImageMagickError Exception: Not enough pixel data `video_data/... long_file_name... .avi'.
The files all play happily enough through a browser when called directly but I need to do it programmatically.
I've tried googling to no avail. Can anybody point me in the right direction?
thanks
Martin
Newbie getting an exception straight away
Re: Newbie getting an exception straight away
I've seen that exception before in an out-of-memory condition. Is the AVI file very long? That method call will read the entire file into memory and convert it to ImageMagick's internal format. Do you plan on modifying the individual frames? If not, and you're just trying to play the AVI's, there's probably programs that are better-suited.
Re: Newbie getting an exception straight away
Thanks for the reply.
The files are a couple of MB. No, I'm not going to do any modification. The only thing I wanted to do is show a thumbnail and play the file, so I'll look at other solutions.
The files are a couple of MB. No, I'm not going to do any modification. The only thing I wanted to do is show a thumbnail and play the file, so I'll look at other solutions.