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

Home » Public Forums » archive » Re: Cannot save 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
Re: Cannot save MPEG [message #18795] Sun, 06 February 2000 00:00
lsyrkin is currently offline  lsyrkin
Messages: 9
Registered: May 1999
Junior Member
David,

I opened a window just to see what I am putting into MPEG file.
The fragment could be:

FOR j=0, 31 DO BEGIN
READ_PICT,filnm,image
MPEG_PUT, mpegID, IMAGE=image, FRAME=j
ENDFOR

Does it make a difference?

Thank you,
Leonid.
In article <MPG.13067e4c3500ca7a989a0d@news.frii.com>,
davidf@dfanning.com (David Fanning) wrote:
> Leonid Syrkin (lsyrkin@yahoo.com) writes:
>
>> I am writing a very basic program for converting set of 32 PICT
files
>> into a MPEG file:
>>
>> FOR j=0, 31 DO BEGIN
>>> READ_PICT,filnm,image
>> Window, XSize=256, YSize=270
>> tvscl, image
>> MPEG_PUT, mpegID, IMAGE=image, FRAME=j
>> ENDFOR
>>
>> What is wrong in my programm?
>
> I'm guessing that what you meant to write was this:
>
> MPEG_PUT, mpegID, WINDOW=!D.Window, FRAME=j
>
> Otherwise, why open a window? :-)
>
> Cheers,
>
> David
> --
> David Fanning, Ph.D.
> Fanning Software Consulting
> Phone: 970-221-0438 E-Mail: davidf@dfanning.com
> Coyote's Guide to IDL Programming: http://www.dfanning.com/
> Toll-Free IDL Book Orders: 1-888-461-0155
>


Sent via Deja.com http://www.deja.com/
Before you buy.
Re: Cannot save MPEG [message #18796 is a reply to message #18795] Sat, 05 February 2000 00:00 Go to previous message
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
Leonid Syrkin (lsyrkin@yahoo.com) writes:

> I opened a window just to see what I am putting into MPEG file.
> The fragment could be:
>
> FOR j=0, 31 DO BEGIN
> READ_PICT,filnm,image
> MPEG_PUT, mpegID, IMAGE=image, FRAME=j
> ENDFOR
>
> Does it make a difference?

I don't know. It would make a difference if your image
was not exactly the size you declared in the MPEG_OPEN
command. I was looking for reasons why you couldn't
write the file. This was the only one that occurred
to me that I thought might be plausible. :-)

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
Re: Cannot save MPEG [message #18798 is a reply to message #18796] Sat, 05 February 2000 00:00 Go to previous message
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
Leonid Syrkin (lsyrkin@yahoo.com) writes:

> I am writing a very basic program for converting set of 32 PICT files
> into a MPEG file:
>
> FOR j=0, 31 DO BEGIN
>> READ_PICT,filnm,image
> Window, XSize=256, YSize=270
> tvscl, image
> MPEG_PUT, mpegID, IMAGE=image, FRAME=j
> ENDFOR
>
> What is wrong in my programm?

I'm guessing that what you meant to write was this:

MPEG_PUT, mpegID, WINDOW=!D.Window, FRAME=j

Otherwise, why open a window? :-)

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: editor in IDLDE 5.3 broken?
Next Topic: thresholding/color question

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

Current Time: Sat Oct 11 02:55:23 PDT 2025

Total time taken to generate the page: 0.15822 seconds