[gst-devel] mpeg->divx prototype
Joshua N Pritikin
vishnu at pobox.com
Tue May 20 20:40:07 CEST 2003
i got tired of waiting and wrote a C program for the transcoding
that just encodes PCM audio in the AVI. The reason i need
a C program is because i want to capture only a short interval
of the MPEG, for example from 2000.4 seconds to 2008.2 seconds.
i am able to seek the media so the first frame on the AVI
is as wanted, however, i'm having trouble finalizing the AVI.
How do i tell the pipeline, "OK enough"? i tried PAUSING
the pipeline and sending events to different places. i noticed
that PAUSE itself causes avimux to write the header, however,
going to PAUSE and then exit(0) doesn't work. i tried
sending a NEW_MEDIA event. i tried EOS. Nothing really worked
and i got strange errors (or no errors), but mplayer complained
that the AVI file header was wrong.
Can you give me a clue about how to close down the pipeline
gracefully so the AVI file is properly finalized?
Victory to the Divine Mother!! after all,
More information about the gstreamer-devel