Problem with appsink and omxh264dec

vmk veereshkadsani at gmail.com
Wed Aug 8 11:37:37 UTC 2018


Hi,

I am new to gstreamer.
I am transmitting data from from one rcar board to other.
sender side application works fine.

sender
appsrc name=src ! videoconvert ! video/x-raw,format=I420 ! omxh264enc
target-bitrate=3000000 control-rate=2 ! rtph264pay config-interval=1 pt=96 !
udpsink name=sink host=x.x.x.x port=xxxx

I have receiver side aplication with following pipeline

receiver
udpsrc port=xxxx caps="application/x-rtp, media=(string)video,
clock-rate=(int)90000, encoding-name=(string)H264, payload=(int)96" !
rtph264depay ! h264parse ! omxh264dec ! appsink name=mysink
emit-signals=true

The problem is I get only 3 frames on receiver side

if the pipeline on commandline as follows I get continous frames.
gst-launch-1.0 -v udpsrc port=xxxx caps="application/x-rtp,
media=(string)video, clock-rate=(int)90000, encoding-name=(string)H264,
payload=(int)96" ! rtph264depay ! h264parse ! omxh264dec ! waylandsink.

If i run the the same pipeline on commandline also i get only 3 frames.
gst-launch-1.0 -v udpsrc port=xxxx caps="application/x-rtp,
media=(string)video, clock-rate=(int)90000, encoding-name=(string)H264,
payload=(int)96" ! rtph264depay ! h264parse ! omxh264dec ! appsink

0:00:00.326078504  1922     0x2f0e9060 DEBUG                appsink
../../../../git/gst-libs/gst/app/gstappsink.c:897:gst_app_sink_getcaps:<appsink0>
got caps (NULL)
0:00:00.326206905  1922     0x2f0e9060 DEBUG                appsink
../../../../git/gst-libs/gst/app/gstappsink.c:897:gst_app_sink_getcaps:<appsink0>
got caps (NULL)
Setting pipeline to PAUSED ...
0:00:00.327387469  1922     0x2f0e9060 DEBUG                appsink
../../../../git/gst-libs/gst/app/gstappsink.c:609:gst_app_sink_start:<appsink0>
starting
Pipeline is live and does not need PREROLL ...
0:00:00.467561950  1922     0x2f0db1e0 DEBUG                appsink
../../../../git/gst-libs/gst/app/gstappsink.c:897:gst_app_sink_getcaps:<appsink0>
got caps (NULL)
/GstPipeline:pipeline0/GstUDPSrc:udpsrc0.GstPad:src: caps =
application/x-rtp, media=(string)video, clock-rate=(int)90000,
encoding-name=(string)H264, payload=(int)96
/GstPipeline:pipeline0/GstRtpH264Depay:rtph264depay0.GstPad:sink: caps =
application/x-rtp, media=(string)video, clock-rate=(int)90000,
encoding-name=(string)H264, payload=(int)96
Setting pipeline to PLAYING ...
New clock: GstSystemClock
/GstPipeline:pipeline0/GstRtpH264Depay:rtph264depay0.GstPad:src: caps =
video/x-h264, stream-format=(string)avc, alignment=(string)au,
codec_data=(buffer)0142e016ffe1000c6742e016da0320f68078a13501000468ce
0:00:34.040870722  1922     0x2f0db1e0 DEBUG                appsink
../../../../git/gst-libs/gst/app/gstappsink.c:897:gst_app_sink_getcaps:<appsink0>
got caps (NULL)
/GstPipeline:pipeline0/GstH264Parse:h264parse0.GstPad:sink: caps =
video/x-h264, stream-format=(string)avc, alignment=(string)au,
codec_data=(buffer)0142e016ffe1000c6742e016da0320f68078a13501000468ce07e2e
0:00:34.041386364  1922     0x2f0db1e0 DEBUG                appsink
../../../../git/gst-libs/gst/app/gstappsink.c:897:gst_app_sink_getcaps:<appsink0>
got caps (NULL)
/GstPipeline:pipeline0/GstH264Parse:h264parse0.GstPad:src: caps =
video/x-h264, stream-format=(string)byte-stream, alignment=(string)au,
level=(string)2.2, profile=(string)constrained-baseline, width=(ine
0:00:34.042246647  1922     0x2f0db1e0 DEBUG                appsink
../../../../git/gst-libs/gst/app/gstappsink.c:897:gst_app_sink_getcaps:<appsink0>
got caps (NULL)
/GstPipeline:pipeline0/GstOMXH264Dec-omxh264dec:omxh264dec-omxh264dec0.GstPad:sink:
caps = video/x-h264, stream-format=(string)byte-stream,
alignment=(string)au, level=(string)2.2, profile=(string)constre
0:00:34.091747805  1922 0xffff800028f0 DEBUG                appsink
../../../../git/gst-libs/gst/app/gstappsink.c:897:gst_app_sink_getcaps:<appsink0>
got caps (NULL)
0:00:34.091841045  1922 0xffff800028f0 DEBUG                appsink
../../../../git/gst-libs/gst/app/gstappsink.c:647:gst_app_sink_setcaps:<appsink0>
receiving CAPS
/GstPipeline:pipeline0/GstOMXH264Dec-omxh264dec:omxh264dec-omxh264dec0.GstPad:src:
caps = video/x-raw, format=(string)NV12, width=(int)800, height=(int)480,
interlace-mode=(string)progressive, pixel-aspe1
/GstPipeline:pipeline0/GstAppSink:appsink0.GstPad:sink: caps = video/x-raw,
format=(string)NV12, width=(int)800, height=(int)480,
interlace-mode=(string)progressive, pixel-aspect-ratio=(fraction)1/1, chr1
0:00:34.092316007  1922 0xffff800028f0 DEBUG                appsink
../../../../git/gst-libs/gst/app/gstappsink.c:665:gst_app_sink_event:<appsink0>
receiving SEGMENT
0:00:34.092465888  1922 0xffff800028f0 DEBUG                appsink
../../../../git/gst-libs/gst/app/gstappsink.c:730:gst_app_sink_preroll:<appsink0>
setting preroll buffer 0xffff800169e0
0:00:34.092988010  1922 0xffff800028f0 DEBUG                appsink
../../../../git/gst-libs/gst/app/gstappsink.c:819:gst_app_sink_render:<appsink0>
activating pad caps video/x-raw, format=(string)NV12, 1
0:00:34.093083170  1922 0xffff800028f0 DEBUG                appsink
../../../../git/gst-libs/gst/app/gstappsink.c:823:gst_app_sink_render:<appsink0>
pushing render buffer 0xffff800169e0 on queue (0)
0:00:34.093172331  1922 0xffff800028f0 DEBUG                appsink
../../../../git/gst-libs/gst/app/gstappsink.c:823:gst_app_sink_render:<appsink0>
pushing render buffer 0xffff8001c910 on queue (1)
0:00:34.093236051  1922 0xffff800028f0 DEBUG                appsink
../../../../git/gst-libs/gst/app/gstappsink.c:823:gst_app_sink_render:<appsink0>
pushing render buffer 0xffff8001c090 on queue (2)
 
stops here...


I have GStreamer 1.10.2. What might be the issue
Thanks in Advance



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/


More information about the gstreamer-devel mailing list