[Live-devel] Live Streaming Mpeg4 with ffmpeg
Ross Finlayson
finlayson at live555.com
Fri Jun 12 00:21:07 PDT 2009
>Hi all.
>First my compliments for all your work, is very very great! ;-)
>I'm writing a Framer for accessing Live RAW images copied in SHM memory by
>another application.
>I use ffMpeg for encoding in MPEG4 (CODEC_ID_MPEG4)
>I've created my Media SubSession for this scope whit these two methods:
>
>FramedSource* MyMediaSubsession::createNewStreamSource(unsigned
>clientSessionId, unsigned& estBitrate) {
>...
>// ffmpegStreamFramer is my implementation of a ffMpeg framer for MPEG4
>InputSource = ffmpegStreamFramer::createNew(env, UrlParams);
>return MPEG4VideoStreamFramer::createNew(env, InputSource);
Note that if your encoder is delivering discrete MPEG-4 video frames
(i.e., one frame at a time), rather than an unstructured byte stream,
then you should use "MPEG4VideoStreamDiscreteFramer" rather than
"MPEG4VideoStreamFramer".
--
Ross Finlayson
Live Networks, Inc.
http://www.live555.com/
More information about the live-devel
mailing list