convert wont accept image2pipe ppm format

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
utnuc
Posts: 12
Joined: 2014-09-17T06:41:13-07:00
Authentication code: 6789

convert wont accept image2pipe ppm format

Post by utnuc »

I'm trying to grab the first frame of a video using ffmpeg and pipe it to convert to process:

Code: Select all

ffmpeg -i 001.mp4 -y -t 00:00:01 -vframes 1 -f image2pipe -vcodec ppm  | convert - out.jpg
But it throws an error:
convert.im6: no decode delegate for this image format `/tmp/magick-95YoBo1i' @ error/constitute.c/ReadImage/544.
convert.im6: no images defined `out.jpg' @ error/convert.c/ConvertImageCommand/3044.
I've tried changing the -vcodec to image2 to no avail. What gives?

Thanks in advance.
(Using ImageMagick 6.7.7-10 on Ubuntu Server 32-bit)
utnuc
Posts: 12
Joined: 2014-09-17T06:41:13-07:00
Authentication code: 6789

Re: convert wont accept image2pipe ppm format

Post by utnuc »

just figured it out:

Code: Select all

ffmpeg -i 001.mp4 -y -t 00:00:01 -vframes 1 -f image2pipe -vcodec ppm - | convert - out.jpg
Post Reply