[Live-devel] x264 nal unist and H264VideoStreamDiscreteFramer
Фазлеев Максим
Anarchist666 at yandex.ru
Sun Jan 22 01:55:50 PST 2012
If I set to 1, then there SIGSEGV and output:
referenceCount = 1
nals[i].i_type = 7
newFrameSize = 23 fTo[0]&0x1F = 7
nals[i].i_type = 8
newFrameSize = 4 fTo[0]&0x1F = 8
nals[i].i_type = 6
newFrameSize = 571 fTo[0]&0x1F = 5
nals[i].i_type = 5
newFrameSize = 39523 fTo[0]&0x1F = 8
referenceCount = 0
If I set to 0, then output:
referenceCount = 1
nals[i].i_type = 5
newFrameSize = 39565 fTo[0]&0x1F = 5
nals[i].i_type = 1
newFrameSize = 8263 fTo[0]&0x1F = 1
nals[i].i_type = 1
newFrameSize = 5403 fTo[0]&0x1F = 1
nals[i].i_type = 5
newFrameSize = 13161 fTo[0]&0x1F = 5
nals[i].i_type = 1
newFrameSize = 4298 fTo[0]&0x1F = 1
nals[i].i_type = 1
newFrameSize = 3844 fTo[0]&0x1F = 1
nals[i].i_type = 5
newFrameSize = 13416 fTo[0]&0x1F = 5
nals[i].i_type = 1
newFrameSize = 3557 fTo[0]&0x1F = 1
..
Sources is attached.
22.01.2012, 11:30, "Ross Finlayson" <finlayson at live555.com>:
>> There is also an option: int b_repeat_headers; /* put SPS/PPS before each keyframe */. It should be set in 0?
>
> I suggest setting this to 1, to ensure that the downstream "H264VideoStreamDiscreteFramer" gets to see the SPS and PPS NAL units at least once. (This is important, otherwise the RTSP server won't be able to compute the proper 'configuration' string to put in the stream's SDP description.)
>
> Ross.
>
> _______________________________________________
> live-devel mailing list
> live-devel at lists.live555.com
> http://lists.live555.com/mailman/listinfo/live-devel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: config.h
Type: application/octet-stream
Size: 9193 bytes
Desc: not available
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20120122/5bbdd5cd/attachment-0006.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: H264VideoCamServerMediaSubsession.cpp
Type: application/octet-stream
Size: 3750 bytes
Desc: not available
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20120122/5bbdd5cd/attachment-0007.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: H264VideoCamServerMediaSubsession.hh
Type: application/octet-stream
Size: 1189 bytes
Desc: not available
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20120122/5bbdd5cd/attachment-0008.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: H264VideoCamSource.cpp
Type: application/octet-stream
Size: 8731 bytes
Desc: not available
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20120122/5bbdd5cd/attachment-0009.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: H264VideoCamSource.hh
Type: application/octet-stream
Size: 1542 bytes
Desc: not available
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20120122/5bbdd5cd/attachment-0010.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: main.cpp
Type: application/octet-stream
Size: 2740 bytes
Desc: not available
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20120122/5bbdd5cd/attachment-0011.obj>
More information about the live-devel
mailing list