Page 1 of 1

convert wont accept image2pipe ppm format

Posted: 2015-09-15T17:43:38-07:00
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)

Re: convert wont accept image2pipe ppm format

Posted: 2015-09-15T17:46:03-07:00
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