[Android] [Appsink] [Appsrc] Strange behavior when displaying the receiving raw data via appsrc

sofien rahmouni sofien.rahmouni at gmail.com
Mon Mar 9 16:01:18 UTC 2020


Hello Nicolas, 
I fixed my issue , it's was about the mtu value not setted in the rtp
payload *rtph264pay *: 
// Sample Send data APPSINK
            data->pipeline = gst_parse_launch(
                    "ahcsrc device=1 ! video/x-raw,format=(string)NV21 ! tee
name=t t. ! queue ! autovideosink sync=false t. ! queue ! video/x-raw, 
width=320, height=240 ! videoconvert ! x264enc bitrate=500 key-int-max=1 !
rtph264pay mtu=500 ! appsink name=callback_read_buffer_sink
emit-signals=true",
                    &error);

and the passed value from java

                        DatagramPacket dp = new DatagramPacket(msg,
msg.length);
                        ds.receive(dp);
                        //Send received frame data to native Gstreamer part
                       
nativeReceiveVideoData(Arrays.copyOf(dp.getData(),dp.getLength()));
 
but now i'm facing a new problem is video freez after some seconds, let's
see the log i found a warning about the timestamp and the rtpjitterbuffer
plugin.

here is my log : 

03-09 15:29:49.363 22611-23151/com.valeo.voyagexr.demo
W/GStreamer+rtpjitterbuffer: 0:00:06.172550115 0x96c44a90
../gst/rtpmanager/rtpjitterbuffer.c:573:calculate_skew delta - skew:
0:00:04.165608667 too big, reset skew
03-09 15:30:03.743 22611-23151/com.valeo.voyagexr.demo
W/GStreamer+rtpjitterbuffer: 0:00:20.553730886 0x96c44a90
../gst/rtpmanager/rtpjitterbuffer.c:573:calculate_skew delta - skew:
0:00:01.019369667 too big, reset skew
03-09 15:30:03.888 22611-23148/com.valeo.voyagexr.demo
W/GStreamer+videodecoder: 0:00:20.701839732 0x96c44600
../gst-libs/gst/video/gstvideodecoder.c:2762:gst_video_decoder_prepare_finish_frame:<avdec_h264-0>
decreasing timestamp (0:00:17.161949336 < 0:00:17.622133705)
03-09 15:30:03.918 22611-23148/com.valeo.voyagexr.demo
W/GStreamer+videodecoder: 0:00:20.731212155 0x96c44600
../gst-libs/gst/video/gstvideodecoder.c:2762:gst_video_decoder_prepare_finish_frame:<avdec_h264-0>
decreasing timestamp (0:00:17.102651188 < 0:00:17.622133705)
03-09 15:30:04.008 22611-23148/com.valeo.voyagexr.demo
W/GStreamer+videodecoder: 0:00:20.819416962 0x96c44600
../gst-libs/gst/video/gstvideodecoder.c:2762:gst_video_decoder_prepare_finish_frame:<avdec_h264-0>
decreasing timestamp (0:00:16.986666736 < 0:00:17.622133705)


Could you please see the reason of this freeze 

Thanks in advance of your help

Best Regards,
Sofien




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


More information about the gstreamer-devel mailing list