[Live-devel] Encapsulating an ffmpeg transcoder

Ross Finlayson finlayson at live555.com
Wed Apr 11 11:52:34 PDT 2007


>I'm trying to transcode an RTP stream (MPEG2) on the fly via ffmpeg 
>(into MPEG4) and stream the result via RTP again.
>
>Which Sources/Sinks should I use? Is an RTPSource/Sink the right one?
>
>But what I'm basically missing is an idea, where exactly the ffmpeg 
>part has to be put. If I look at the test progs I think I should use 
>the FramedSource class, is that correct?

Yes - more precisely, you would need to write your own subclass of 
"FramedFilter" to do the transcoding.

I.e., your chain of objects would be:
	RTPSource(subclass) -> your FramedFilter subclass -> RTPSink(subclass)

>
>Do I have to modify (or write my own) FramedSource with an 
>encapsulated ffmpeg-transcoder?


Yes.

-- 

Ross Finlayson
Live Networks, Inc.
http://www.live555.com/


More information about the live-devel mailing list