[FFmpeg-devel] how to test MMS over TCP protocol in ffmpeg

zhentan feng spyfeng
Thu Mar 4 16:37:00 CET 2010


Hi

On Thu, Mar 4, 2010 at 10:59 PM, Ronald S. Bultje <rsbultje at gmail.com>wrote:

> Hi,
>
> On Thu, Mar 4, 2010 at 4:23 AM, zhentan feng <spyfeng at gmail.com> wrote:
> > Is this the method for testing the code ok?
>
> Yes. But I'm surprised the code didn't work to begin with. Did you
> change the original patch, or is this the original one? AFAIK, many
> iPhone apps successfully use this patch (e.g. [1]). I was hoping the
> patch would work already.
>
> [...]


I have 3 version MMS  patches:
(1) you sent to me several weeks ago.
I rip out mmsh code without functional modified based on this patch focusing
on mmst.
I just copied the related code to one file, and write it like URLProtocol
implemented files.
so my primary version mmst.c is huge because lots of mms state to be
maintained.

(2) from this link
http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/2007-January/020937.html
(3) from this link
http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/2007-August/033812.html

(1) and (3) almost are the same code, but (2) has a little difference with
the others.

As to getting response from the server:
(2) do something like this:
 read_bytes(mms, mms->incoming_buffer, len) ----->then call
url_read(mms->mms_hd, buffer, length_to_read);

however (1) and (3) do something like this:
get_buffer(&mms->incoming_io_buffer, mms->incoming_buffer, 8)
they get data directly from incoming_io_buffer, so the returned result is
error.

I'll modify the code according to (2) and try it again.
zhentan
-- 
Best wishes~



More information about the ffmpeg-devel mailing list