Page 1 of 1

ImageMagick, FFMPEG and Pov-Ray features

Posted: 2016-09-14T03:17:02-07:00
by berserk
Hello there.
I would like to know more about ImageMagick used in combination with FFMPEG and Pov-Ray.
and in detail:

1) Can it import and export images?
2) Can it generate images?
3) Can it manipulate images? (adding filters, cropping, composing, etc)
4) Can it capture images from scanner and/or webcam?
5) Can it do ASCII-Art, OCR, Trace?
6) Can a 2D surface be extruded?
7) Can a raster image be used as a sound? (maybe like a spectrum or so)
8) Can a raster image be inserted in a video?
9) Can it do vector graphics?
10) Can it import and export SVG files?
11) Can it rasterize a vector image?
12) Can it do vector animations?
13) Can it generate 3D geometry?
14) Can it add 3D modifyers? (like twist, tape, bend, etc)
15) Can it import and export 3D geometry? (like .obj or so)
16) Can it render 3D graphics?
17) Can it do 3D animations?
18) Can it synthesize audio?
19) Can it do audio processing? (like delay, flanger, and so)
20) Can it cut and join audio?
21) Can it import and export rendered audio? (like .wav, .mp3, and so)
22) Can it capture audio from a microphone?
23) Can it convert an audio stream to a raster image?
24) Can it mux or demux video?
25) Can it generate a video file?
26) Can it export a video file?
27) Can it cut and join video?
28) Can it do video compositing? (like adding a filter to a whole video)
29) Can it capture a video from webcam or the desktop?
30) Can it extract or insert video frames?
31) Can a video be used as a texture for a 3D surface?
32) Can a raster image be used as the texture for a 3D surface?

Thanks in advance for any help.

Bye, Marco.

Re: ImageMagick and FFMPEG features

Posted: 2016-09-14T03:32:09-07:00
by snibgo
ImageMagick is a raster image processor, for 2-D images.

I have converted sound into 1-D images, then used IM to process them, and convert back into sound. (This was for correlating sound tracks.)

IM isn't a vector image processor. It can convert vector to raster, and process that.

IM isn't a video processor. It can (via ffmpeg) read frames from videos and process them, and (via ffmpeg) assemble videos.

IM isn't a 3D processor. A 3D processor can use images created by IM.

Re: ImageMagick, FFMPEG and Pov-Ray features

Posted: 2016-09-14T03:34:48-07:00
by berserk
Yes, but my question is about using IM in combination with FFMPEG and povray.

Re: ImageMagick, FFMPEG and Pov-Ray features

Posted: 2016-09-14T03:44:24-07:00
by snibgo
My website has examples of using IM with POV-ray.

I haven't published my work with ffmpeg, but the principles are simple: a video is a number (possibly a large number) of still images. IM can process those frames in a large number of ways. I have written a video editor that uses IM and ffmpeg and SoX and Csound to do all the usual video editing tasks.

Re: ImageMagick, FFMPEG and Pov-Ray features

Posted: 2016-09-14T03:47:22-07:00
by berserk
Thanks for your help. after a little research I found answer to most of my questions. the only unanswered are:

1) Can it capture images from scanner and/or webcam? (not from the webcam, not from the scanner)
2) Can it do OCR? (no)
3) Can a 2D surface be extruded? (PovRay can handle this)
4) Can a raster image be used as a sound? (maybe like a spectrum or so) (I don't know)
5) Can it do vector animations? (no)
6) Can it generate 3D geometry? (PovRay can handle this)
7) Can it add 3D modifyers? (like twist, tape, bend, etc) (PovRay can handle this)
8) Can it synthesize audio? (SoX is needed)
9) Can it capture audio from a microphone? (FFMPEG handles this)
10) Can it convert an audio stream to a raster image? (SoX can)
11) Can it capture a video from webcam or the desktop? (FFMPEG can)
12) Can a video be used as a texture for a 3D surface? (I don't know)

Thanks in advance for any help.

Bye, Marco.

Re: ImageMagick, FFMPEG and Pov-Ray features

Posted: 2016-09-14T03:57:12-07:00
by snibgo
I've already answered most of those questions. IM doesn't do OCR.

Re: ImageMagick, FFMPEG and Pov-Ray features

Posted: 2016-09-14T04:01:52-07:00
by berserk
Ok for ocr, but you didn't answer anything.
Questions are about using IM with povray and FFMPEG.
In example you didn't tell me if can IM capture images from scanner or webcam.

Re: ImageMagick, FFMPEG and Pov-Ray features

Posted: 2016-09-14T05:05:07-07:00
by berserk
So after a little more research I found answers to more questions.
no
1) Can it capture images from scanner and/or webcam?
2) Can it do OCR?
3) Can it do vector animations?
4) Can it import and export 3D geometry? (like .obj or so)

don't know
1) Can a raster image be used as a sound? (maybe like a spectrum or so)
2) Can it capture audio from a microphone?
3) Can a video be used as a texture for a 3D surface?

Note those questions are not about ImageMagick alone, but with ffmpeg, povray and sox.

Bye, Marco.

Re: ImageMagick, FFMPEG and Pov-Ray features

Posted: 2016-09-14T05:55:40-07:00
by snibgo
IM can read a scanner, via the delegate "scanimage".

If ffmpeg can read your webcam, then IM can read it via fmpeg.

Re: ImageMagick, FFMPEG and Pov-Ray features

Posted: 2016-09-14T06:03:46-07:00
by berserk
Thanks a lot for your help. I greatly appreciate it.

The only unanswered question remaining is:

1) Can a video be used as a texture for a 3D surface?

But is related to PovRay.

Re: ImageMagick, FFMPEG and Pov-Ray features

Posted: 2016-09-14T07:00:43-07:00
by snibgo
snibgo wrote:If ffmpeg can read your webcam, then IM can read it via ffmpeg.
I've never done this, so I had to figure it out.

I added a line to delegates.xml:

Code: Select all

<delegate decode="webcm" command=""c:/im/ImageMagick-6.9.5-3-Q16/ffmpeg.exe" -f dshow -i video="HP Truevision HD" -vframes %S -vcodec pam -an -f rawvideo -y "%o""/>
ffmpeg isn't in my path, so I included it. My laptop's camera is "HP Truevision HD".

Then this command ...

Code: Select all

convert -verbose webcm:[60-65] -resize 10% -append metimes6.jpg
... captures 6 frames, shrinks them and appends them:
Image
berserk wrote:1) Can a video be used as a texture for a 3D surface?
Yes, of course it can.

Re: ImageMagick, FFMPEG and Pov-Ray features

Posted: 2016-09-14T07:03:52-07:00
by berserk
Thanks a lot

Re: ImageMagick, FFMPEG and Pov-Ray features

Posted: 2016-09-14T12:32:48-07:00
by berserk
I mantained a list of questions with answers in my homepage.
Please, visit it at: http://bisentertainment.altervista.org/ ... oject.html

Thanks in advance.
Bye, Marco.