Cannot save MPEG [message #18809] |
Sat, 05 February 2000 00:00 |
lsyrkin
Messages: 9 Registered: May 1999
|
Junior Member |
|
|
I am writing a very basic program for converting set of 32 PICT files
into a MPEG file:
Pro PictToMpeg
mpegID = MPEG_OPEN([256,270]) ;
FOR j=0, 31 DO BEGIN
filnm =
STRING('/export/home/lsyrkin/PICT/ABCD_'+STRTRIM(j+1,2)+'.pi ct')
READ_PICT,filnm,image
Window, XSize=256, YSize=270
tvscl, image
MPEG_PUT, mpegID, IMAGE=image, FRAME=j
ENDFOR
MPEG_SAVE, mpegID ;Save the MPEG sequence in the file
MPEG_CLOSE, mpegID ;Close the MPEG sequence
END
It gives me a message:
% IDLGRMPEG::SAVE: Couldn't create MPEG output file idl.mpg
% Execution halted at: MPEG_SAVE 39
/export/home/rsi/idl_5.2/lib/mpeg_save.pro
% PICTTOMPEG 22
/export/home/rsi/idl_5.2/myfiles/PictToMpeg.pro
% $MAIN$
What is wrong in my programm?
Thanks in advance,
Leonid Syrkin.
Sent via Deja.com http://www.deja.com/
Before you buy.
|
|
|