rtph264vpay; Single NAL Unit mode from Annex B of H264 specification

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

rtph264vpay; Single NAL Unit mode from Annex B of H264 specification

Farah

Hey

I'm looking at the Annex B of the H.264 specification and want to know how exactly is it currently implemented in gstreamer payloaders like rtph264vpay etc.

As it seems from my experience, the Single NAL unit mode as given in RFC3894 doesnt work. I see that even when I encode from the H264 encoder using slice modes and all settings are such that only one slice goes into one NAL unit, even then, my RTP packet given by rtph264vpay is larger by tens of times than it should be. This happens because the rtp payloader combines several NAL units into one RTP packet. I think, therefore, that the payloader doesnt implement the Single NAL unit mode (which should be the default more as stated in RFC 3894) and puts several NAL units in one RTP Packet. Can anyone please help verify this?

Also, is there a way I could get the Single NAL unit mode to work? Am I missing something here?



------------------------------------------------------------------------------


_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: rtph264vpay; Single NAL Unit mode from Annex B of H264 specification

Marco Ballesio
Hi,

On Wed, May 26, 2010 at 4:21 PM, Farah Akhtar <[hidden email]> wrote:

>
> Hey
>
> I'm looking at the Annex B of the H.264 specification and want to know how
> exactly is it currently implemented in gstreamer payloaders like rtph264vpay
> etc.
>
> As it seems from my experience, the Single NAL unit mode as given in RFC3894
> doesnt work. I see that even when I encode from the H264 encoder using slice
> modes and all settings are such that only one slice goes into one NAL unit,
> even then, my RTP packet given by rtph264vpay is larger by tens of times
> than it should be. This happens because the rtp payloader combines several
> NAL units into one RTP packet. I think, therefore, that the payloader doesnt
> implement the Single NAL unit mode (which should be the default more as
> stated in RFC 3894) and puts several NAL units in one RTP Packet. Can anyone
> please help verify this?

for better results, try setting a reasonable mtu in the payloader
(e.g. mtu=256). 1400 will pack together NALS according to the RFC (I
guess you actually meant 3984)

Regards

>
> Also, is there a way I could get the Single NAL unit mode to work? Am I
> missing something here?
>
>
>
> ------------------------------------------------------------------------------
>
>
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>
>

------------------------------------------------------------------------------

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel