[Live-devel] Two questions
Ross Finlayson
finlayson at live.com
Wed Nov 26 22:51:26 PST 2003
> 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/>
More information about the live-devel
mailing list