Discussion:
jpg to mpg?
(too old to reply)
Todd7
2003-07-02 19:50:32 UTC
Permalink
Can gimp be used to convert a bunch of jpg pictures to a mpg video? If so,
how, if not do you know of any open source project that does?
Henrik Carlqvist
2003-07-03 18:28:15 UTC
Permalink
Post by Todd7
Can gimp be used to convert a bunch of jpg pictures to a mpg video?
As far as I know gimp is not able to save mpeg video. However, it is able
to save animated gifs. At least this applies to gimp 1.2.
Post by Todd7
if not do you know of any open source project that does?
The convert program which is a part of ImageMagick could do this.

You could also use transcode which is another open source program.

Another program is mencoder which comes with mplayer.

regards Henrik
--
The address in the header is only to prevent spam. My real address is:
hc2(at)uthyres.com Examples of addresses which go to spammers:
***@affarslitteratur.se ***@hotmail.com ***@localhost
Phil Harper
2003-07-04 00:55:21 UTC
Permalink
i don't recall being able to produce animations in
CinePaint/FilmGIMP(which isn't a GNU program with a GIMP feel, but a
primative GIMP release with high colour depth support) it saves out to
some strange formats, but none were videos last time i looked, may
have changed by now though...

it's used in holywood for work on massively high-res frames of film,
not to generate MPEG videos.

indeed both GIMP 1.2 and 1.3 can export to animated GIF(256c limit
though), and possibly MNG(but i haven't tracked down a plug-in).

MEncoder can produce MJPEG from static frames in sequence, so may be
your best bet, nice documentation here
http://mp.dev.hu/DOCS/encoding.html
You may be able to do this with cinepaint, a GNU program with a GIMP
feel. It's apparently used in hollywood to alter, repair, manipulate
multiple frames of a motion picture file.
On Thu, 03 Jul 2003 20:28:15 +0200, "Henrik Carlqvist"
Post by Henrik Carlqvist
Post by Todd7
Can gimp be used to convert a bunch of jpg pictures to a mpg video?
As far as I know gimp is not able to save mpeg video. However, it is able
to save animated gifs. At least this applies to gimp 1.2.
Post by Todd7
if not do you know of any open source project that does?
The convert program which is a part of ImageMagick could do this.
You could also use transcode which is another open source program.
Another program is mencoder which comes with mplayer.
regards Henrik
Spamless
2003-07-05 09:53:04 UTC
Permalink
Post by Phil Harper
i don't recall being able to produce animations in
CinePaint/FilmGIMP(which isn't a GNU program with a GIMP feel, but a
primative GIMP release with high colour depth support) it saves out to
some strange formats, but none were videos last time i looked, may
have changed by now though...
it's used in holywood for work on massively high-res frames of film,
not to generate MPEG videos.
indeed both GIMP 1.2 and 1.3 can export to animated GIF(256c limit
though), and possibly MNG(but i haven't tracked down a plug-in).
MEncoder can produce MJPEG from static frames in sequence, so may be
your best bet, nice documentation here
http://mp.dev.hu/DOCS/encoding.html
I often do an animation (titles and others) in Gimp's GAP
and, at the end, change the files (frames) to jpeg.

mplayer/mencoder can read multiple JPEG files as a movie
and encode (usually I use a named pipe, since otherwise
it is too large, called stream.yuv and use mplayer to
output to yuv which automatically writes to file
stream.yuv, and cat that named pipe into yuvscaler
to set it up for burning to an (S)VCD).
Spamless
2003-07-10 23:06:01 UTC
Permalink
Post by Phil Harper
i don't recall being able to produce animations in
CinePaint/FilmGIMP(which isn't a GNU program with a GIMP feel, but a
primative GIMP release with high colour depth support) it saves out to
some strange formats, but none were videos last time i looked, may
have changed by now though...
it's used in holywood for work on massively high-res frames of film,
not to generate MPEG videos.
indeed both GIMP 1.2 and 1.3 can export to animated GIF(256c limit
though), and possibly MNG(but i haven't tracked down a plug-in).
They also (if you have loaded a file with name something_0001.[type])
have a video item on the <IMAGE> toolbar (right click on the image)
which can invoke mpeg_encode or mpeg2encode. mpeg2encode suffices
(you will then also have the option to create mpeg1). You would first
have to convert the images to ppm format (images [something]_0001.[type]
[something]_0002.[type], etc.: use the Frames_Convert option and give
the extension ppm) then the VIDEO|ENCODE to mpeg2 will - not encode.
It will create a parameter file for encoding the files and a tiny
script you can run (it will optionally run it, but sometimes it
could not find it). All it does is run:

mpeg2encode paramter_file movie_name

(I have had problems playing an mpeg2 encoded file created from
ppm images on mplayer .90rc5 - it plays ok, but cannot stop! The
last frame locks up mplayer - it is not the format for if I use
"mplayer -frames 20 [movie.name]" so it does not reach the last
frame, it still locks up when it tries to stop.
I haven't had problems when using mplayer to play a sequence
of jpegs while sending the output to stream.yuv, a named pipe,
and "cat"ting that into yuvscaler and them mpeg2encode for SVCD
format (size, fps, etc.))

So ... mpeg2encode, but it may take some time to work out the
command line switches or parameter file format for encoding.
You can use GIMP to create that parameter file.
Post by Phil Harper
MEncoder can produce MJPEG from static frames in sequence, so may be
your best bet, nice documentation here
http://mp.dev.hu/DOCS/encoding.html
It can encode them into may different formats.

Todd7
2003-07-04 02:41:15 UTC
Permalink
Thanks for all the suggestions. I found a freeware program that does it
all nicely, called Slide Show Movie Maker.
Post by Todd7
Can gimp be used to convert a bunch of jpg pictures to a mpg video?
If so, how, if not do you know of any open source project that does?
Spamless
2003-07-09 19:24:19 UTC
Permalink
Post by Todd7
Can gimp be used to convert a bunch of jpg pictures to a mpg video? If so,
how, if not do you know of any open source project that does?
Are they the same size? The frames in a "movie"?

Do you want to animate/move them around during an animated
title?

mplayer can read/display a sequence of JPG images as a movie.
To burn to a (S)VCD ([Super] Video CD) you will need a sound
file (it can be all silence, but you need the sound file)
and vcdimager.

mencoder can encode the sequence of jpgs to various formats.

To create a video cd, I use mplayer with a named pipe for
YUV output and "cat" that into transcode to set it up
for mpeg2 and then use vcdimager/cdrdao to create the SVCD.

Gimp does have an interface if you have the right libraries,
however.

Gimp's GAP plugin (gimp animation plugin) takes a sequence
of files named whatever_0001.xcf, whatever_0002.xcf, etc.
(you can try *.jpg but to make full use of GAP you would
have to convert to xcf, for example, if you want to add
layers with extra animation or move one image over another
and create animation frames from that action).

Load the first file. (whatever_0001.xcf). Right click.
On the toolbar choose VIDEO. There is an encode option.

For example, the mpeg2 encode says you must first convert
from jpg or xcf to ppm or yuv format (there is an option
for FRAMES_CONVERT). mpeg1 encode says jpeg format will
work (you would not have to convert the frames).

This is just an interface to the mpeg encoder programmes
which must be installed (so it is not really GIMP that
does the conversion, but it can invoke a converter).

In other words ... it can be done :-)

(I use Gimp's GAP sometimes to create animated titles
and use mplayer/transcode/vcdimager to put them
on SVCDs)
Continue reading on narkive:
Loading...