On pet, 2006-06-09 at 11:00 -0400, Joe Stewart wrote:
> So, I'm motivated to put some serious work into a libavformat-based MPEG-PS 
> encoder, but I need help, mostly in getting the rough framework designed. 
> Anyone else working on this want to collaborate?

you get a framework by copying fileogg.h and .C to filempegps.h/C ...
then you just throw out all ogg specific parts and put mpeg in... then
you add all the necessary options to file.C/.h

it should basically be the same thing ... have two different streams
created by write_frames and write_samples (in ogg we can use internal
stream implementation, you will probably have to write your own simple
package queue)

then you just rewrite flush_ogg with something that multiplexes mpeg-PS
from those two streams.. probably using libavformat or something written
by hand.

Actually muxers usually have to work around player's quirks, so it is
hard to write something absolutely robust. for OGG we needed quite some
experts and a few iterations to get it right (thanks go out to j^ and
mikes)... so if you can try to abuse libavformat, i haven't looked at it
yet, so it might not be the blessing we count on ... if it is not...
try to observe what other mpeg muxers do and copy & paste :)

bye
andraz 


_______________________________________________
Cinelerra mailing list
[email protected]
https://init.linpro.no/mailman/skolelinux.no/listinfo/cinelerra

Reply via email to