Force ffmpeg delegation of certain file extensions

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
viseztrance
Posts: 2
Joined: 2015-04-03T04:54:42-07:00
Authentication code: 6789

Force ffmpeg delegation of certain file extensions

Post by viseztrance »

Hi everyone,

I'm using the convert command to generate thumbnails for certain files (both images and videos).

For instance

Code: Select all

convert some-file.mov[0] output.png
This works by delegating the request to ffmpeg. Unfortunately, it appears to be tied to the input extension. For example, the following will throw an error:

Code: Select all

some-file.mkv[0] output.png
If I were to rename the file extension from mkv to mov, the command would be executed successfully, generating the file. So the file is supported, except that imagemagick, doesn't know it.

I'm unsure on how to proceed. Is there a flag to force the ffmpeg delegation for certain file extensions? Or is there a way to register certain file extensions as supported?
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Force ffmpeg delegation of certain file extensions

Post by magick »

Try this:
  • convert mpeg:some-file.mkv[0] output.png
viseztrance
Posts: 2
Joined: 2015-04-03T04:54:42-07:00
Authentication code: 6789

Re: Force ffmpeg delegation of certain file extensions

Post by viseztrance »

This worked great. Thank you!
Post Reply