recording avi/mpeg with linux

Hi,

I know there are already some older threads about this, but none of them seems to help me with this, and maybe, there are some updates.

My boss needs videos, created from the scene my 3d engine renders. This could be done with writing each frame to an image file and later make a video out of these, or, much better, directly create the video file with the engine.

The video has to be an uncompressed avi, or mpeg-1 (if the quality is sufficient).

I have already implemented some solutions, but none of them really work.

  • avifile (http://avifile.sourceforge.net): Only seems to be able to write divx5 videos and the SetQuality()-calls does not seem to have any effect. So this is rather not suffient.

  • mpeg2encode: Simply doesn’t work (creates an mpeg file but this seems to be broken)

  • mpeg_encode: works but the quality is awful, and also, takes very long to encode the file.

My boss thinks about directly writing an avi file without any library which I guess is possible but rather complicated.

Any further ideas? As the title says, it has to be linux.

Thanks :-))))

Jan

Originally posted by JanHH:
[b]Hi,

I know there are already some older threads about this, but none of them seems to help me with this, and maybe, there are some updates.

Jan[/b]
Maybe you should try avilib… it comes with transcode. If I remember correctly, you can write AVI’s with that.

avilib is really easy to use for decoding MPEG4 stuff… avilib+xvid is not many lines of code.

If it doesn’t work, then I suggest you to check the sources of other programs that write AVI files… maybe mencoder etc.

Or maybe try libquicktime?

do you mean this?

http://www.mathworks.com/matlabcentral/fileexchange/loadFile.do?objectId=3133

There seem to be several avilib’s around when searching with google, do you have an url?

Thanks
Jan

Originally posted by JanHH:
[b]do you mean this?

http://www.mathworks.com/matlabcentral/fileexchange/loadFile.do?objectId=3133

There seem to be several avilib’s around when searching with google, do you have an url?

Thanks
Jan[/b]
No, I don’t mean that. I mean the avilib coming with transcode :slight_smile:

http://zebra.fh-weingarten.de/~transcode/pre/transcode-0.6.12.tar.gz

there’s “avilib” directory in that tarball.

Hope that helps.

Thanks… I will try it.

Jan