PDA

View Full Version : recording avi/mpeg with linux



JanHH
06-20-2004, 07:06 PM
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

nrg
06-21-2004, 08:52 AM
Originally posted by JanHH:
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.

JanMaybe 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?

JanHH
06-21-2004, 10:37 AM
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

nrg
06-21-2004, 11:47 AM
Originally posted by JanHH:
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
JanNo, I don't mean that. I mean the avilib coming with transcode :)

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

there's "avilib" directory in that tarball.

Hope that helps.

JanHH
06-21-2004, 02:31 PM
Thanks.. I will try it.

Jan