[Live-devel] FW: Convert H263 framed stream to.avi media file?

Mikhail Y. Bogunov, TXL Russia Mikhail.Y.Bogunov at techsell.ru
Tue Apr 19 11:54:55 PDT 2005


Thank you very much, for the answers!

So if I understand right, I need to:
1) Create a subclass of FramedSource that will read my file frame by frame
2) Create a SDP description for passing it to MediaSession::createNew() and then I could link this session to AVIFileSink

But how should I connect my subclass of FramedSource to the session?
Will this be enough for achieving my goal? 

/Mike
-----Original Message-----
From: live-devel-bounces at ns.live.com [mailto:live-devel-bounces at ns.live.com] On Behalf Of Ross Finlayson
Sent: Tuesday, April 19, 2005 2:57 AM
To: LIVE.COM Streaming Media - development & use
Subject: Re: [Live-devel] FW: Convert H263 framed stream to.avi media file?


>I have an H263 framed stream coming from other program that I currently 
>save in my own format, containing timings and frame sizes
>Is it possible to encapsulate such a stream into any known media file 
>format (.avi or something) using LiveMedia?

No - not without writing new code.

>šI examined the test programs and I see that openRTSP can record an avi 
>file from the RTPstream. But in my case I don't have any rtp connection, I 
>just want to use a raw framed file as a source and pass it to AVIFileSink. 
>But it seems that I need a session to do that. And a session uses rtp.

That's right - "AVIFileSink" was designed to record incoming RTP 
streams.  If you were to create a SDP description that described a 
(hypothetical) H.263 RTP stream, then you could pass that to 
"MediaSession::createNew()" to create a "MediaSession" object (that you 
could then use to create an "AVIFileSink").  That wouldn't quite be enough 
to make "AVIFileSink" work for you, though, because it wouldn't have a data 
source.

>Btw, I can use the FramedFileSource class

Well, not by itself, because that's an abstract base class.

>  if you could tell me the structure of file that it expects on enter, 
> because I can simply change the structure(format) or the raw file that my 
> other program generates.

You would need to write a new class (a subclass of "FramedSource") that 
delivers - from your input source - discrete H.263 frames.


	Ross Finlayson
	LIVE.COM
	<http://www.live.com/>


_______________________________________________
live-devel mailing list
live-devel at lists.live.com
http://lists.live.com/mailman/listinfo/live-devel



More information about the live-devel mailing list