[Live-devel] Still working on a h264 framer
Mike Gilorma
mike.gilorma at apogeelabs.com
Thu Jun 26 11:10:02 PDT 2008
Thanks Ross, setting the frameDuration to the number of frames per
second seemed to make things better. I guess I'll have to make that
more dynamic later on, but the good news is I'm streaming H.264!!!
the bad news?
My file doesn't keep playing, I modeled my test program after
testMPEG4VideoStreamer where it uses PassiveServerMediaSubsession and
continuously replays the file.
Also my stream works in VLC and Mplayer, but not Quicktime.
My main goal of writing the framer, parser, and test program is about
90% done. I think my next goal will be to write a
H264VideoFileServerMediaSubsession!
If anybody wants to help figure out those two problems, I've attached
all my code.
Many thanks to Ross, Jerry, and everybody else who helped out!!
On Wed, 2008-06-25 at 20:46 -0700, Ross Finlayson wrote:
> >I have re-written my framer based off the H263plusVideoFramer instead of
> >trying to subclass the MPEGVideoStreamParser. Now I can see that my
> >framer is parsing through the NAL units and that the H264RTPSink is
> >actually sending some packets out. The problem is that the file is
> >getting parsed too quickly and it seems as though the ethernet port
> >can't keep up.
>
> The problem is probably just that you're not setting
> "fDurationInMicroseconds" before calling
> "FramedSource::afterGetting()".
>
> If you're streaming from a file (as opposed to streaming from a live
> source), then it's *essential* that you set "fDurationInMicroseconds"
> correctly, so that the code knows how long to delay after sending
> each RTP packet.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: H264VideoRTPSink.cpp
Type: text/x-c++src
Size: 13678 bytes
Desc: not available
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20080626/3c9c6dab/attachment-0007.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: H264VideoStreamFramer.cpp
Type: text/x-c++src
Size: 6828 bytes
Desc: not available
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20080626/3c9c6dab/attachment-0008.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: H264VideoStreamParser.cpp
Type: text/x-c++src
Size: 4546 bytes
Desc: not available
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20080626/3c9c6dab/attachment-0009.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: H264VideoStreamParser.hh
Type: text/x-c++hdr
Size: 3706 bytes
Desc: not available
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20080626/3c9c6dab/attachment-0010.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: H264VideoRTPSink.hh
Type: text/x-c++hdr
Size: 4110 bytes
Desc: not available
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20080626/3c9c6dab/attachment-0011.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: H264VideoStreamFramer.hh
Type: text/x-c++hdr
Size: 1328 bytes
Desc: not available
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20080626/3c9c6dab/attachment-0012.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: H264Streamer.cpp
Type: text/x-c++src
Size: 4534 bytes
Desc: not available
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20080626/3c9c6dab/attachment-0013.bin>
More information about the live-devel
mailing list