|
Re: Error help [message #77170 is a reply to message #77169] |
Fri, 12 August 2011 11:03   |
KH
Messages: 9 Registered: August 2011
|
Junior Member |
|
|
On Aug 12, 10:53 am, KH <kh...@advsys.net> wrote:
> Hello,
>
> I received the following error when trying to create a movie.
>
> IDLFFVIDEOWRITE::PUT: Error opening codec for stream 0.
>
> It is very odd, because I had been using my program to generate some
> animations and then it stopped working.
> I did not change any of the input files or the code itself, just an
> option to alter the number of frames per second. Is this an IDL (8.1)
> problem, or an issue with my system (Windows XP - 32 bit - that has
> been a bit flaky lately)? I even rebooted my computer with hopes that
> might solve the problem and still it is not working.
>
> Thanks for your assistance,
> Kim
PS I received the command when trying to execute the following:
time = oVid.Put(vidStream, IMG)
Where IMG is the image array.
Thanks again,
Kim
|
|
|
|
Re: Error help [message #77444 is a reply to message #77238] |
Mon, 29 August 2011 17:16  |
AndrewM
Messages: 5 Registered: July 2011
|
Junior Member |
|
|
On Aug 15, 9:05 am, KH <kh...@advsys.net> wrote:
> On Aug 12, 2:16 pm, Brian Wolven <brian.wol...@gmail.com> wrote:
>
>> If you change the frames per second back to the original value does it work again?
>
> Brian,
> Actually changing the frames per second does some very odd things.
> The original FPS was 15 and that still works. I get theerrorwhen I
> use 3 FPS, but it works when the FPS is 1 or 5. The other oddity is
> when the FPS is 2 or 4, I am able to create the animation, but all of
> the images are a dark green with an occasional pixelated stripe or
> two. Why would changing the FPS cause so many problems?
> Thanks,
> Kim
Unfortunately, a lot of video codecs and players can be rather picky
about different combinations of settings in non-obvious ways. You
could fill a book with all the nuances of using every codec that's
supported by the FFmpeg library (which IDL uses to output video).
In my testing, using extremely low framerates (<5) often leads to
problems or poor results. In cases where you want such a low
framerate, I would suggest simply outputting each frame multiple
times. You'll likely find that the file size costs are much lower
than you might expect.
For example, I took the surfaceVideo_ex example from the docs and
changed it to output two identical-looking videos. The first at 5 FPS
and outputting each frame just once, and the second at 30 FPS and
outputting each frame six times. The first came out to 8,903 KB, and
the second 9,035 KB- only about 1.5% bigger!
-Andrew
ITTVIS
|
|
|