[Live-devel] Two questions
Bill Russell
bill at odic.com
Tue Dec 16 17:29:23 PST 2003
Hi -
I am streaming mpeg-4 to Quicktime from my embedded system in which I
ported the Live server to. The problem is that the video seems to go in
bursts. About every couple seconds. it will read a block of about
140-150Kbytes (fMaxSize) then blast out a bunch of frames. As seen from
quicktime, the video will run for a couple seconds, stop for a couple, and
repeat. I am not sure if its a porting issue, but is this to be expected if
fMaxSize is left to its default? Would setting fPreferredSize to a smaller
value smooth things out?
Also, about every 20sec I get a block of several
"MPEG4VideoStreamParser::parse() EXCEPTION" messages. Is this normal? What
does that mean? It doesn't seem related to the above issue.
Bill
At 10:51 PM 11/26/2003 -0800, you wrote:
>> I think my encoder just sends plain JPEG frames since I can display
>> them individually as .jpg files. Will plain JPEG work?
>
>Yes, sort of. However, the data that your "JPEGVideoSource" subclass
>returns (in your "doGetNextFrame()" implementation) will be the JPEG frame
>data that occurs *after the JPEG header*. (This is because the JPEG
>header is not included in the RTP packet; instead, a special header - made
>up from the "type", "qFactor", "width" and "height" values - is used instead.)
>
>> If so, what should the 'type' be?
>
>Probably 1.
>
>> If this won't work, its OK because I am now streaming to Quicktime -
>> the only problem being that there's a blank display. I figured its
>> either the wrong type field (currently just left as 0) or plain JPEG
>> won't work.
>
>As noted above, the JPEG data that's included in JPEG/RTP packets does
>*not* include the standard JPEG header. (See RFC 2435.)
>
>>If it won't, I will just move on to getting MPEG4 working, which was my
>>original goal anyway. At least having a streaming server working
>>hopefully is 90% of the battle.
>
>As always, if you are interested in paid consulting support (to have
>LIVE.COM help you with your product), please let me know (by separate email).
>
>
> 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