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

Home » Public Forums » archive » Re: MP4/Animated GIF/JPEG woes....(Windows, IDL 8.1)
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: MP4/Animated GIF/JPEG woes....(Windows, IDL 8.1) [message #76869 is a reply to message #76868] Mon, 11 July 2011 10:30 Go to previous messageGo to previous message
Daft Pict is currently offline  Daft Pict
Messages: 8
Registered: March 2007
Junior Member
I am using IDLffVideoWrite in 8.1 and I tweaked the example code from
the help file.
I'm sure it's something silly I'm doing due to lack of sleep - it's a
FUN project!!!!

here's a code snippet...

<complicated display construction in a loop through all images
omitted>
;----------------------------------------------------------- -------------
; Read back display

rgbFrame=tvrd(/true)
frame=tvrd()
;----------------------------------------------------------- -------------
; First image initialises everything

if (i eq 0) then begin
t=size(rgbFrame)
width = t[2]
height = t[3]
frames = nFiles
fps = 2

; Create object and initialize video/audio streams (make sure earlier
file deleted)
file_delete,movFile,/allow_nonexistent
oVid = IDLffVideoWrite(movFile)
vidStream = oVid.AddVideoStream(width, height, fps)
endif
;----------------------------------------------------------- -------------
; Add display frame to output streams

time = oVid.Put(vidStream, rgbFrame)
write_gif,gifFile,frame,R_curr, G_curr, B_curr,/
multiple,delay_time=100
write_jpeg,jpgFile,rgbFrame,/true
endfor
;----------------------------------------------------------- -------------
; Close the files

oVid.Cleanup
write_gif,gifFile,/close
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: IDL workbench video on youtube
Next Topic: Re: Weighted correlation

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

Current Time: Wed Oct 08 20:05:55 PDT 2025

Total time taken to generate the page: 0.06609 seconds