comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » MPEG
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
MPEG [message #3118] Mon, 14 November 1994 23:08 Go to next message
dean is currently offline  dean
Messages: 55
Registered: March 1993
Member
> This is also of interest to me. I understand the points about creating GIF
> files and converting them to PPM. What do you use then to convert it to
> MPEG? If I had the name, I could probably find it with xarchie.

I used IDL to write out my images as GIF. Then I used the PBMplus util
GIFtoPPM to make a PPM file.

The UNIX program I used is MPEG_ENCODE on a SUN workstation. Another
person gave me the EXE and he couldn't remember the FTP site. I located
CMPEG10 and DMPEG10 with ARCHIE. They are DOS programs that will take a
PPM or Targa file and make a MPEG animation sequence. The UNIX program,
MPEG_ENCODE takes a series of PPM files and converts them to MPEG. I
found CMPEG easier to use, but it only handle small files. MPEG_ENCODE
handles larger files, but very difficult to use. I was lucky to find
someone that toyed with MPEG_ENCODE before.

Kelly Dean
CSU/CIRA

P.S. Additional information about MPEG can be found from the USER GROUP
COMP.GRAPHICS.....
Re: MPEG [message #3188 is a reply to message #3118] Fri, 18 November 1994 17:30 Go to previous messageGo to next message
cboyd is currently offline  cboyd
Messages: 3
Registered: November 1994
Junior Member
In article <3a9mos$tfb@yuma.ACNS.ColoState.EDU>, dean@phobos.cira.colostate.edu writes:
|>
|> >This is also of interest to me. I understand the points about creating GIF
|> >files and converting them to PPM. What do you use then to convert it to
|> >MPEG? If I had the name, I could probably find it with xarchie.
|>
|> I used IDL to write out my images as GIF. Then I used the PBMplus util
|> GIFtoPPM to make a PPM file.
|>
Hi! Can anybody reading this data help me understand how to read band interleavddata with idl. I want to examine satellite images in this format. Thank You.
Re: MPEG [message #29898 is a reply to message #3118] Sat, 23 March 2002 09:02 Go to previous messageGo to next message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Ron Koiles (rkoiles1@attbi.com) writes:

> I have a canon power shot s10 camera. It takes pictures and I can see
> that the format they are in is .jpg.
>
> In order to make a CD that will play on my DVD player (and TV Screen)
> I need to get the jpg extension to a mpeg extension.
>
> How in the world is that done??

I presume you want to make an MPEG movie out of a sequence
of JPEG images. Is this correct? There is a (fairly dated)
article on how to create MPEG movies on my web page:

http://www.dfanning.com/tips/how_mpeg.html

The example uses a 3D data set and creates it's own
24-image from each frame of the data. You won't have
to go to this trouble, since each of your JPEG images
is probably 24-bit already. You will add your JPEG
images to the MPEG object (using MPEG_Put) directly.

Cheers,

David
--
David W. Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438, E-mail: david@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
Re: mpeg [message #32297 is a reply to message #3118] Thu, 26 September 2002 08:25 Go to previous messageGo to next message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Reimar Bauer (R.Bauer@fz-juelich.de) writes:

> Is it possible by objects to read in mpeg files ?

Not with IDL-supplied objects. :-)

Cheers,

David

--
David W. Fanning, Ph.D.
Fanning Software Consulting, Inc.
Phone: 970-221-0438, E-mail: david@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
Re: mpeg [message #35248 is a reply to message #3118] Thu, 22 May 2003 17:52 Go to previous messageGo to next message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Mark Hadfield (m.hadfield@niwa.co.nz) writes:

> I agree entirely. (That you need to clean up your act.)

It was that penis joke that was really over the top,
wasn't it? :-(

I just couldn't help myself. I was reading that description
of his computer and I was getting a ... well, never mind.

Cheers,

David

P.S. Let's just say when you get to be my age you take your
fun where you can get it. :-)

--
David W. Fanning, Ph.D.
Fanning Software Consulting, Inc.
Phone: 970-221-0438, E-mail: david@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
Re: mpeg [message #35250 is a reply to message #3118] Thu, 22 May 2003 14:44 Go to previous messageGo to next message
Mark Hadfield is currently offline  Mark Hadfield
Messages: 783
Registered: May 1995
Senior Member
"David Fanning" <david@dfanning.com> wrote in message
news:MPG.1936aa46109cd14a989bad@news.frii.com...
> David Chevrier (David.Chevrier@noaa.gov) writes:
>
>> hi - i know its possible to create mpegs using 5.6, but how about
>> reading them in. i'm trying to do something like open an mpeg and
>> take a jpeg snapshot of that mpeg at certain time intervals... say one
>> jpeg per second of mpeg. any idea if this can be done in idl?
>
> Oh, I'm sure it *can* be done in IDL. But if your question
> is really "Is it worth my time to do it in IDL?", then I think
> the answer is "No". (The answer is probably "Hell no", but I'm
> trying to clean up my act a little bit.)

I agree entirely. (That you need to clean up your act.)

> Get yourself a good MPEG player that can stop the movie
> where you want it and a good screen shot utility. There
> are lots for free or for little money on the web. You
> will be a LOT happier. :-)

For this sort of thing, I tend to favour ImageMagick, which is a
cross-platform suite of largely command-line tools. It supports what it
calls "delegates" for formats that it doesn't understand natively and last
time I looked it bundled simple MPEG endoder and decoder delegates.

http://www.imagemagick.org/

--

Mark Hadfield "Ka puwaha te tai nei, Hoea tatou"
m.hadfield@niwa.co.nz
National Institute for Water and Atmospheric Research (NIWA)
Re: mpeg [message #35255 is a reply to message #3118] Thu, 22 May 2003 11:44 Go to previous messageGo to next message
Rick Towler is currently offline  Rick Towler
Messages: 821
Registered: August 1998
Senior Member
"David Chevrier" wrote in message...
> hi - i know its possible to create mpegs using 5.6, but how about
> reading them in. i'm trying to do something like open an mpeg and
> take a jpeg snapshot of that mpeg at certain time intervals... say one
> jpeg per second of mpeg. any idea if this can be done in idl?


Take a look at Ronn Kling's IDL2AVI .dlm available on his website
www.kilvarock.com. It is a windows only dlm which provides an interface to
the video for windows API. You can read and write MPEG files if they have
been encoded in the AVI file format. I know at least one person has had a
problem with IDL2AVI and winXP but this never was resolved on the list so I
don't know where it stands. I have been meaning to try it myself on XP but
just haven't had the time.

If you are encoding these files yourself and they are scientific animations
then you may want to consider a codec better suited for the task such as the
ligos Indeo Video 5 codec or the Sorenson codec which ships with QuickTime
pro.

If you take David's advice, some of the best MPEG players you can get for
the PC are the DVD players that often come bundled with your PC. PowerDVD
or WinDVD. I just don't know if they play MPEG-1 encoded files.

-Rick
Re: mpeg [message #35258 is a reply to message #3118] Thu, 22 May 2003 09:35 Go to previous messageGo to next message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
David Chevrier (David.Chevrier@noaa.gov) writes:

> hi - i know its possible to create mpegs using 5.6, but how about
> reading them in. i'm trying to do something like open an mpeg and
> take a jpeg snapshot of that mpeg at certain time intervals... say one
> jpeg per second of mpeg. any idea if this can be done in idl?

Oh, I'm sure it *can* be done in IDL. But if your question
is really "Is it worth my time to do it in IDL?", then I think
the answer is "No". (The answer is probably "Hell no", but I'm
trying to clean up my act a little bit.)

Get yourself a good MPEG player that can stop the movie
where you want it and a good screen shot utility. There
are lots for free or for little money on the web. You
will be a LOT happier. :-)

Cheers,

David
--
David W. Fanning, Ph.D.
Fanning Software Consulting, Inc.
Phone: 970-221-0438, E-mail: david@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
Mpeg-1(2) reading [message #35469 is a reply to message #35255] Fri, 20 June 2003 07:30 Go to previous messageGo to next message
oleg.kornilov is currently offline  oleg.kornilov
Messages: 2
Registered: June 2003
Junior Member
> Take a look at Ronn Kling's IDL2AVI .dlm available on his website
> www.kilvarock.com. It is a windows only dlm which provides an interface to
> the video for windows API. You can read and write MPEG files if they have
> been encoded in the AVI file format.

Although IDL2AVI routine can't read MPEG-1(2) or QT directly, you can
use free 'frame server' Avisynth
(http://www.math.berkeley.edu/~benrg/avisynth.html)
that allow reading MPEG or QT from programs that can read just AVI.
You can also download this from RSI user-contributed library -> Data
readers and writers -> avi.zip at
(http://www.rsinc.com/codebank/search.asp?FID=139)
For writing Mpeg-1(2) with IDL2AVI you can use DVMPEG (I think even
demo) from
(http://www.darvision.com). After installation it appends mpeg-1(2)
codek to multimedia subsystem, so you can create mpeg like AVI.
Oleg
Re: Mpeg-1(2) reading [message #35555 is a reply to message #35469] Fri, 20 June 2003 12:47 Go to previous message
Rick Towler is currently offline  Rick Towler
Messages: 821
Registered: August 1998
Senior Member
"Haje Korth" wrote in message...

> It seems this message had been ripped from the original thread,
> so the context was not clear to me.

Hi Haje. Yes it was a little disconnected. I just remembered the post so I
knew where Oleg was coming from.

> As you know I recompiled your AVI2IDL for IDL 5.6 and managed to
> produce MPEG-4 (DIVX) files with it. I just hate the box that pops
> up to chose the codec. But I am not a good enough c-programmer to
> change this. :-)
>
> The problem with MPEG-1 (included in IDL) is that the quality is
> rather poor for scientific presentations, so I really like your
> solution!


I like it too! But credit goes to Oleg and Ronn. Oleg did the original
coding and Ronn rolled it into a DLM.

I have had success with the divX encoder too. I had a short animated line
plot which ranged from 3-5MB using the Indeo and Cinepack encoders and was
only 600k with superior quality using the divX encoder. Not too bad.

-Rick
Re: Mpeg-1(2) reading [message #35556 is a reply to message #35469] Fri, 20 June 2003 12:02 Go to previous message
Haje Korth is currently offline  Haje Korth
Messages: 651
Registered: May 1997
Senior Member
Rick,
It seems this message had been ripped from the original thread, so the
context was not clear to me. As you know I recompiled your AVI2IDL for IDL
5.6 and managed to produce MPEG-4 (DIVX) files with it. I just hate the box
that pops up to chose the codec. But I am not a good enough c-programmer to
change this. :-)
The problem with MPEG-1 (included in IDL) is that the quality is rather poor
for scientific presentations, so I really like your solution!

Haje


"Rick Towler" <rtowler@u.washington.edu> wrote in message
news:bcvidj$1v8m$1@nntp6.u.washington.edu...
>
> "Haje Korth" wrote in message...
>
>> I don't understand where the problem with MPEG is? IDL can write MPEG
>> and the license for it is free. Just give RSI a call. This is what
>> we did and we received our license addition promptly.
>
> I had mentioned that IDL2AVI can read/write MPEG files. This isn't
entirely
> true and Oleg was correcting my statement. You can read/write MPEG-4
files
> using only IDL2AVI but not MPEG-1 or 2.
>
> -Rick
>
>
>
>> "Oleg Kornilov" wrote in message...
>>>> Take a look at Ronn Kling's IDL2AVI .dlm available on his website
>>>> www.kilvarock.com. It is a windows only dlm which provides an
> interface
>> to
>>>> the video for windows API. You can read and write MPEG files if
they
>> have
>>>> been encoded in the AVI file format.
>>>
>>> Although IDL2AVI routine can't read MPEG-1(2) or QT directly, you can
>>> use free 'frame server' Avisynth
>>> (http://www.math.berkeley.edu/~benrg/avisynth.html)
>>> that allow reading MPEG or QT from programs that can read just AVI.
>>> You can also download this from RSI user-contributed library -> Data
>>> readers and writers -> avi.zip at
>>> (http://www.rsinc.com/codebank/search.asp?FID=139)
>>> For writing Mpeg-1(2) with IDL2AVI you can use DVMPEG (I think even
>>> demo) from
>>> (http://www.darvision.com). After installation it appends mpeg-1(2)
>>> codek to multimedia subsystem, so you can create mpeg like AVI.
>>> Oleg
>>
>>
>
>
Re: Mpeg-1(2) reading [message #35559 is a reply to message #35469] Fri, 20 June 2003 11:05 Go to previous message
Rick Towler is currently offline  Rick Towler
Messages: 821
Registered: August 1998
Senior Member
"Haje Korth" wrote in message...

> I don't understand where the problem with MPEG is? IDL can write MPEG
> and the license for it is free. Just give RSI a call. This is what
> we did and we received our license addition promptly.

I had mentioned that IDL2AVI can read/write MPEG files. This isn't entirely
true and Oleg was correcting my statement. You can read/write MPEG-4 files
using only IDL2AVI but not MPEG-1 or 2.

-Rick



> "Oleg Kornilov" wrote in message...
>>> Take a look at Ronn Kling's IDL2AVI .dlm available on his website
>>> www.kilvarock.com. It is a windows only dlm which provides an
interface
> to
>>> the video for windows API. You can read and write MPEG files if they
> have
>>> been encoded in the AVI file format.
>>
>> Although IDL2AVI routine can't read MPEG-1(2) or QT directly, you can
>> use free 'frame server' Avisynth
>> (http://www.math.berkeley.edu/~benrg/avisynth.html)
>> that allow reading MPEG or QT from programs that can read just AVI.
>> You can also download this from RSI user-contributed library -> Data
>> readers and writers -> avi.zip at
>> (http://www.rsinc.com/codebank/search.asp?FID=139)
>> For writing Mpeg-1(2) with IDL2AVI you can use DVMPEG (I think even
>> demo) from
>> (http://www.darvision.com). After installation it appends mpeg-1(2)
>> codek to multimedia subsystem, so you can create mpeg like AVI.
>> Oleg
>
>
Re: Mpeg-1(2) reading [message #35567 is a reply to message #35469] Fri, 20 June 2003 08:57 Go to previous message
Haje Korth is currently offline  Haje Korth
Messages: 651
Registered: May 1997
Senior Member
I don't understand where the problem with MPEG is? IDL can write MPEG and
the license for it is free. Just give RSI a call. This is what we did and we
received our license addition promptly.

Haje


"Oleg Kornilov" <oleg.kornilov@mail.ru> wrote in message
news:9cc22753.0306200630.46c73ba8@posting.google.com...
>> Take a look at Ronn Kling's IDL2AVI .dlm available on his website
>> www.kilvarock.com. It is a windows only dlm which provides an interface
to
>> the video for windows API. You can read and write MPEG files if they
have
>> been encoded in the AVI file format.
>
> Although IDL2AVI routine can't read MPEG-1(2) or QT directly, you can
> use free 'frame server' Avisynth
> (http://www.math.berkeley.edu/~benrg/avisynth.html)
> that allow reading MPEG or QT from programs that can read just AVI.
> You can also download this from RSI user-contributed library -> Data
> readers and writers -> avi.zip at
> (http://www.rsinc.com/codebank/search.asp?FID=139)
> For writing Mpeg-1(2) with IDL2AVI you can use DVMPEG (I think even
> demo) from
> (http://www.darvision.com). After installation it appends mpeg-1(2)
> codek to multimedia subsystem, so you can create mpeg like AVI.
> Oleg
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: IDLWAVE and commenting out sections
Next Topic: conflict between widget_draw and plot objects

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 09:23:02 PDT 2025

Total time taken to generate the page: 0.00868 seconds