[gstreamer-bugs] [Bug 604913] New: rtph264pay/NALU/rtph264depay

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Fri Dec 18 06:37:08 PST 2009


https://bugzilla.gnome.org/show_bug.cgi?id=604913
  GStreamer | gst-plugins-good | 0.10.17

           Summary: rtph264pay/NALU/rtph264depay
    Classification: Desktop
           Product: GStreamer
           Version: 0.10.17
        OS/Version: All
            Status: UNCONFIRMED
          Severity: major
          Priority: Normal
         Component: gst-plugins-good
        AssignedTo: gstreamer-bugs at lists.sourceforge.net
        ReportedBy: marc.leeman at gmail.com
         QAContact: gstreamer-bugs at lists.sourceforge.net
      GNOME target: ---
     GNOME version: ---


I am trying to convert an RTSP source H264 to RTP H264 with re-payloading.

The NALU are received in the rtsp headers and are passed to rtph264pay

gst-launch -v rtspsrc
location=rtsp://10.3.0.159/axis-media/media.amp?videocodec=h264 debug=True !
rtph264depay ! queue ! rtph264pay
sprop-parameter-sets="Z0IAKeKQFoe2BqwYBBuHiRFQ,aM48gA==" scan-mode=2 ! udpsink
host=226.226.226.100 port=2222

The sprop-parameter-sets are obtained on a previous run.

starting the decoding is done with:
gst-launch -v udpsrc uri=udp://226.226.226.100:2222 caps="application/x-rtp,
clock-rate=(int)90000" ! rtph264depay ! queue2  ! decodebin ! ffmpegcolorspace
name=lcolour ! xvimagesink force-aspect-ratio=True sync=True

When the decoder is started before the repackaging; the decoder can pick in on
the stream and decodes correctly.

However, when the decoder is started on an existing stream; it is never able to
decode the stream.

The original hardware encoder is an AXIS Q7401 Video Encoder and since the NALU
is passed in RTSP and not in the video stream; we assumed this was the cause.

Initially I thought that the NALU was only passed once; but by running with
GST_DEBUG=*rtph264pay*:5; these seem to be passed regularly:

0:00:08.441315436 19067      0x11407c0 DEBUG             rtph264pay
gstrtph264pay.c:480:gst_rtp_h264_pay_decode_nal: NAL: 0 2 1 Len = 953
0:00:08.441325583 19067      0x11407c0 DEBUG             rtph264pay
gstrtph264pay.c:574:gst_rtp_h264_pay_payload_nal:<rtph264pay0> Processing
Buffer with NAL TYPE=1
0:00:08.441335195 19067      0x11407c0 DEBUG             rtph264pay
gstrtph264pay.c:580:gst_rtp_h264_pay_payload_nal:<rtph264pay0> NAL Unit fit in
one packet datasize=953 mtu=1400
0:00:08.478817110 19067      0x11407c0 DEBUG             rtph264pay
gstrtph264pay.c:456:gst_rtp_h264_pay_decode_nal: NAL payload len=1016
0:00:08.478825387 19067      0x11407c0 DEBUG             rtph264pay
gstrtph264pay.c:480:gst_rtp_h264_pay_decode_nal: NAL: 0 2 1 Len = 1016
0:00:08.478834491 19067      0x11407c0 DEBUG             rtph264pay
gstrtph264pay.c:574:gst_rtp_h264_pay_payload_nal:<rtph264pay0> Processing
Buffer with NAL TYPE=1
0:00:08.478844317 19067      0x11407c0 DEBUG             rtph264pay
gstrtph264pay.c:580:gst_rtp_h264_pay_payload_nal:<rtph264pay0> NAL Unit fit in
one packet datasize=1016 mtu=1400
0:00:08.509316843 19067      0x11407c0 DEBUG             rtph264pay
gstrtph264pay.c:456:gst_rtp_h264_pay_decode_nal: NAL payload len=1021
0:00:08.509325078 19067      0x11407c0 DEBUG             rtph264pay
gstrtph264pay.c:480:gst_rtp_h264_pay_decode_nal: NAL: 0 2 1 Len = 1021
0:00:08.509334329 19067      0x11407c0 DEBUG             rtph264pay
gstrtph264pay.c:574:gst_rtp_h264_pay_payload_nal:<rtph264pay0> Processing
Buffer with NAL TYPE=1
0:00:08.509344233 19067      0x11407c0 DEBUG             rtph264pay
gstrtph264pay.c:580:gst_rtp_h264_pay_payload_nal:<rtph264pay0> NAL Unit fit in
one packet datasize=1021 mtu=1400
0:00:08.541318572 19067      0x11407c0 DEBUG             rtph264pay
gstrtph264pay.c:456:gst_rtp_h264_pay_decode_nal: NAL payload len=18017
0:00:08.541326813 19067      0x11407c0 DEBUG             rtph264pay
gstrtph264pay.c:480:gst_rtp_h264_pay_decode_nal: NAL: 0 3 5 Len = 18017
0:00:08.541335917 19067      0x11407c0 DEBUG             rtph264pay
gstrtph264pay.c:574:gst_rtp_h264_pay_payload_nal:<rtph264pay0> Processing
Buffer with NAL TYPE=5
0:00:08.541361968 19067      0x11407c0 DEBUG             rtph264pay
gstrtph264pay.c:635:gst_rtp_h264_pay_payload_nal:<rtph264pay0> NAL Unit DOES
NOT fit in one packet datasize=18017 mtu=1400
0:00:08.578306974 19067      0x11407c0 DEBUG             rtph264pay
gstrtph264pay.c:456:gst_rtp_h264_pay_decode_nal: NAL payload len=1354
0:00:08.578315458 19067      0x11407c0 DEBUG             rtph264pay
gstrtph264pay.c:480:gst_rtp_h264_pay_decode_nal: NAL: 0 2 1 Len = 1354
0:00:08.578324391 19067      0x11407c0 DEBUG             rtph264pay
gstrtph264pay.c:574:gst_rtp_h264_pay_payload_nal:<rtph264pay0> Processing
Buffer with NAL TYPE=1
0:00:08.578334219 19067      0x11407c0 DEBUG             rtph264pay
gstrtph264pay.c:580:gst_rtp_h264_pay_payload_nal:<rtph264pay0> NAL Unit fit in
one packet datasize=1354 mtu=1400
0:00:08.609319216 19067      0x11407c0 DEBUG             rtph264pay
gstrtph264pay.c:456:gst_rtp_h264_pay_decode_nal: NAL payload len=1064
0:00:08.609329153 19067      0x11407c0 DEBUG             rtph264pay
gstrtph264pay.c:480:gst_rtp_h264_pay_decode_nal: NAL: 0 2 1 Len = 1064
0:00:08.609338137 19067      0x11407c0 DEBUG             rtph264pay
gstrtph264pay.c:574:gst_rtp_h264_pay_payload_nal:<rtph264pay0> Processing
Buffer with NAL TYPE=1
0:00:08.609347710 19067      0x11407c0 DEBUG             rtph264pay
gstrtph264pay.c:580:gst_rtp_h264_pay_payload_nal:<rtph264pay0> NAL Unit fit in
one packet datasize=1064 mtu=1400
0:00:08.641333959 19067      0x11407c0 DEBUG             rtph264pay
gstrtph264pay.c:456:gst_rtp_h264_pay_decode_nal: NAL payload len=1050

-- 
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.




More information about the Gstreamer-bugs mailing list