[gst-devel] rtph264pay cannot connect to rtph264depay?

Carlos Molina cmdr at tid.es
Fri May 25 12:30:10 CEST 2007


hi,
I have the same problem with rtp/rtpdepay than previous mail and the 
output is display below. Someone know how to connect rtph264pay with 
rtph264depay? Because coding & decoding the video stream without rtp 
pay, it works.
Thanks in advance

/dataRepository/tv3d-7/gst/scripts$ 
/dataRepository/tv3d-7/v3dRoot/bin/gst-launch -v v4l2src 
device=/dev/video0 ! video/x-raw-yuv,width=640,height=480  ! 
ffmpegcolorspace ! x264enc ! rtph264pay ! rtph264depay ! ffdec_h264 ! 
ffmpegcolorspace ! ximagesink
Setting pipeline to PAUSED ...
/pipeline0/v4l2src0: queue-size = 2
/pipeline0/v4l2src0.src: caps = video/x-raw-yuv, format=(fourcc)YUY2, 
width=(int)640, height=(int)480, framerate=(fraction)10/1
Pipeline is live and does not need PREROLL ...
WARNING: from element /pipeline0/v4l2src0: The closest framerate from 
15/2 is 10/1, on device '/dev/video0'
Additional debug info:
v4l2src_calls.c(354): gst_v4l2src_set_capture (): /pipeline0/v4l2src0:
Updating framerate from 15/2 to 101
Setting pipeline to PLAYING ...
New clock: GstSystemClock
/pipeline0/capsfilter0.src: caps = video/x-raw-yuv, format=(fourcc)YUY2, 
width=(int)640, height=(int)480, framerate=(fraction)10/1
/pipeline0/capsfilter0.sink: caps = video/x-raw-yuv, 
format=(fourcc)YUY2, width=(int)640, height=(int)480, 
framerate=(fraction)10/1
/pipeline0/ffmpegcsp0.src: caps = video/x-raw-yuv, format=(fourcc)I420, 
framerate=(fraction)10/1, width=(int)640, height=(int)480
/pipeline0/ffmpegcsp0.sink: caps = video/x-raw-yuv, format=(fourcc)YUY2, 
width=(int)640, height=(int)480, framerate=(fraction)10/1
x264 [info]: using SAR=1/1
x264 [info]: using cpu capabilities MMX MMXEXT SSE SSE2
/pipeline0/x264enc0.src: caps = video/x-h264, format=(fourcc)I420, 
framerate=(fraction)10/1, width=(int)640, height=(int)480, 
codec_data=(buffer)014d4033ffe10018674d4033b9101407b6022000000300200000030291e3065401000468ee3c80
/pipeline0/x264enc0.sink: caps = video/x-raw-yuv, format=(fourcc)I420, 
framerate=(fraction)10/1, width=(int)640, height=(int)480
/pipeline0/rtph264pay0.src: caps = application/x-rtp, 
media=(string)video, payload=(int)96, clock-rate=(int)90000, 
encoding-name=(string)H264, ssrc=(guint)806232681, 
clock-base=(guint)1996102468, seqnum-base=(guint)24577
/pipeline0/rtph264pay0.sink: caps = video/x-h264, format=(fourcc)I420, 
framerate=(fraction)10/1, width=(int)640, height=(int)480, 
codec_data=(buffer)014d4033ffe10018674d4033b9101407b6022000000300200000030291e3065401000468ee3c80
/pipeline0/rtph264depay0.src: caps = video/x-h264
/pipeline0/rtph264depay0.sink: caps = application/x-rtp, 
media=(string)video, payload=(int)96, clock-rate=(int)90000, 
encoding-name=(string)H264, ssrc=(guint)806232681, 
clock-base=(guint)1996102468, seqnum-base=(guint)24577
/pipeline0/ffdec_h2640.sink: caps = video/x-h264

** (gst-launch-0.10:32709): CRITICAL **: gst_adapter_take_buffer: 
assertion `nbytes > 0' failed

(gst-launch-0.10:32709): GStreamer-CRITICAL **: gst_buffer_set_caps: 
assertion `buffer != NULL' failed

** (gst-launch-0.10:32709): CRITICAL **: gst_adapter_take_buffer: 
assertion `nbytes > 0' failed

(gst-launch-0.10:32709): GStreamer-CRITICAL **: gst_buffer_set_caps: 
assertion `buffer != NULL' failed
ERROR: from element /pipeline0/rtph264depay0: The stream is in the wrong 
format.
Additional debug info:
gstrtph264depay.c(528): gst_rtp_h264_depay_process (): 
/pipeline0/rtph264depay0:
NAL unit type 27 not supported yet
Execution ended after 3297461000 ns.
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
/pipeline0/ffdec_h2640.sink: caps = NULL
/pipeline0/rtph264depay0.src: caps = NULL
/pipeline0/rtph264depay0.sink: caps = NULL
/pipeline0/rtph264pay0.sink: caps = NULL
/pipeline0/rtph264pay0.src: caps = NULL
/pipeline0/x264enc0.src: caps = NULL
/pipeline0/x264enc0.sink: caps = NULL
/pipeline0/ffmpegcsp0.src: caps = NULL
/pipeline0/ffmpegcsp0.sink: caps = NULL
/pipeline0/capsfilter0.src: caps = NULL
/pipeline0/capsfilter0.sink: caps = NULL
/pipeline0/v4l2src0.src: caps = NULL
Setting pipeline to NULL ...
x264 [info]: slice I:2     Avg QP:15.50  size: 34780
x264 [info]: slice P:26    Avg QP:13.77  size: 25136
x264 [info]: mb I  I16..4: 45.1%  0.0% 54.9%
x264 [info]: mb P  I16..4: 15.5%  0.0%  0.0%  P16..4: 75.4%  0.0%  0.0%  
0.0%  0.0%    skip: 9.0%
x264 [info]: SSIM Mean Y:0.9929563
x264 [info]: kb/s:2066.0
FREEING pipeline ...


Chih-Wei Huang escribió:
> Hi,
> I'm trying the H.264 RTP support of GStreamer.
> I issued the following test command and got errors:
>
> gst-launch -v videotestsrc ! x264enc ! rtph264pay ! rtph264depay ! 
> ffdec_h264 ! videoscale ! video/x-raw-yuv,width=352,height=288 ! 
> ffmpegcolorspace ! ximagesink
>
> Setting pipeline to PAUSED ...
> /pipeline0/videotestsrc0.src: caps = video/x-raw-yuv, 
> format=(fourcc)I420, width=(int)320, height=(int)240, 
> framerate=(fraction)30/1
> Pipeline is PREROLLING ...
> x264 [info]: using SAR=1/1
> x264 [info]: using cpu capabilities MMX MMXEXT SSE SSE2
> /pipeline0/x264enc0.src: caps = video/x-h264, format=(fourcc)I420, 
> width=(int)320, height=(int)240, framerate=(fraction)30/1, 
> codec_data=(buffer)014d4033ffe10017674d403392540a0fd80880000003008000001e478c195001000468ee3c80
> /pipeline0/x264enc0.sink: caps = video/x-raw-yuv, format=(fourcc)I420, 
> width=(int)320, height=(int)240, framerate=(fraction)30/1
> /pipeline0/rtph264pay0.src: caps = application/x-rtp, 
> media=(string)video, payload=(int)96, clock-rate=(int)90000, 
> encoding-name=(string)H264, ssrc=(guint)3813824864, 
> clock-base=(guint)1524524483, seqnum-base=(guint)60327
> /pipeline0/rtph264pay0.sink: caps = video/x-h264, format=(fourcc)I420, 
> width=(int)320, height=(int)240, framerate=(fraction)30/1, 
> codec_data=(buffer)014d4033ffe10017674d403392540a0fd80880000003008000001e478c195001000468ee3c80
> /pipeline0/rtph264depay0.src: caps = video/x-h264
> /pipeline0/rtph264depay0.sink: caps = application/x-rtp, 
> media=(string)video, payload=(int)96, clock-rate=(int)90000, 
> encoding-name=(string)H264, ssrc=(guint)3813824864, 
> clock-base=(guint)1524524483, seqnum-base=(guint)60327
> ERROR: from element /pipeline0/rtph264depay0: The stream is in the wrong 
> format.
> Additional debug info:
> gstrtph264depay.c(528): gst_rtp_h264_depay_process (): 
> /pipeline0/rtph264depay0:
> NAL unit type 27 not supported yet
> ERROR: pipeline doesn't want to preroll.
> Setting pipeline to NULL ...
> /pipeline0/rtph264depay0.src: caps = NULL
> /pipeline0/rtph264depay0.sink: caps = NULL
> /pipeline0/rtph264pay0.sink: caps = NULL
> /pipeline0/rtph264pay0.src: caps = NULL
> /pipeline0/x264enc0.src: caps = NULL
> /pipeline0/x264enc0.sink: caps = NULL
> /pipeline0/videotestsrc0.src: caps = NULL
> x264 [info]: slice I:1     Avg QP:10.00  size:  6472
> x264 [info]: mb I  I16..4: 85.3%  0.0% 14.7%
> x264 [info]: kb/s:1553.3
> FREEING pipeline ...
>
>
> If I removed the rtph264pay & rtph264depay in the above pipeline,
> I could see the test image.
>
> All the gstreamer core, base and plugins are CVS 20070511,
> while the x264 is snapshot-20070322.
> The OS is Fedora 6.
>
> Any idea?
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>
>   

-- 
__________________________________________________

Carlos Molina del Rio
Telefonica I+D
Tel: (+34)933653064
Via Augusta 177,
08021 Barcelona
___________________________________________________





More information about the gstreamer-devel mailing list