<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p><br>
</p>
<br>
<div class="moz-cite-prefix">On 2018年10月10日 13:40, Nicolas Dufresne
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAKQmDh_GOBqmRNbr6MiUO-gvbv48S0=0pK83t109rWAO-jahkw@mail.gmail.com">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<div dir="auto">
<div><br>
<div class="gmail_extra"><br>
<div class="gmail_quote">Le 9 oct. 2018 23 h 42, "Dengke Du"
<<a href="mailto:dengke.du@windriver.com"
moz-do-not-send="true">dengke.du@windriver.com</a>> a
écrit :<br type="attribution">
<blockquote class="quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">Hi all<br>
<br>
Gstreamer version: 1.14.2<br>
<br>
My device info: v4l2-ctl --list-formats<br>
<br>
ioctl: VIDIOC_ENUM_FMT<br>
Index : 0<br>
Type : Video Capture<br>
Pixel Format: 'YUYV'<br>
Name : YUYV 4:2:2<br>
<br>
Index : 1<br>
Type : Video Capture<br>
Pixel Format: 'MJPG' (compressed)<br>
Name : Motion-JPEG<br>
<br>
Raspberry zero wifi as a server side:<br>
<br>
runing: GST_DEBUG=3 test-launch "( v4l2src !
image/jpeg ! jpegdec ! <br>
x264enc tune=zerolatency ! rtph264pay name=pay0 pt=96 )"<br>
</blockquote>
</div>
</div>
</div>
<div dir="auto"><br>
</div>
<div dir="auto">You are doing capture, software decode, software
encode on a single thread, on the slowest PI. You should look
forward using raw capture and omxh264enc, or doing directly
encoded capture using rpicamsrc.</div>
</div>
</blockquote>
<br>
Thanks, but my device was USB camera, not raspberrypi camera module,
does rpicamsrc working?<br>
<br>
<blockquote type="cite"
cite="mid:CAKQmDh_GOBqmRNbr6MiUO-gvbv48S0=0pK83t109rWAO-jahkw@mail.gmail.com">
<div dir="auto">
<div dir="auto"><br>
</div>
<div dir="auto">
<div class="gmail_extra">
<div class="gmail_quote">
<blockquote class="quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Ubuntu 16.04 as a client side:<br>
<br>
runing: gst-launch-1.0 rtspsrc
location=<a class="moz-txt-link-rfc2396E" href="rtsp://rasp-ip:8554/test">"rtsp://rasp-ip:8554/test"</a> <br>
latency=0 ! rtph264depay ! decodebin ! videoconvert !
ximagesink<br>
<br>
The server side show the following:<br>
<br>
--------------------------------------------------------------------------------------<br>
<br>
root@raspberrypi0-wifi:~# GST_DEBUG=3 test-launch "(
v4l2src ! <br>
image/jpeg ! jpegdec ! x264enc tune=zerolatency !
rtph264pay name=pay0 <br>
pt=96 )"<br>
stream ready at <a class="moz-txt-link-freetext" href="rtsp://">rtsp://</a><a
href="http://127.0.0.1:8554/test" rel="noreferrer
noreferrer" target="_blank" moz-do-not-send="true">127.0.0.1:8554/test</a><br>
0:01:30.683202000 305 0xb4e0ee90 FIXME
videodecoder <br>
gstvideodecoder.c:933:gst_video_decoder_drain_out:<jpegdec0>
Sub-class <br>
should implement drain()<br>
0:01:30.718953000 305 0xb4e0ee90 WARN
v4l2bufferpool <br>
gstv4l2bufferpool.c:790:gst_v4l2_buffer_pool_start:<v4l2src0:pool:src>
<br>
Uncertain or not enough buffers, enabling copy threshold<br>
0:01:31.065635000 305 0xb4e0ee90 FIXME
videodecoder <br>
gstvideodecoder.c:933:gst_video_decoder_drain_out:<jpegdec0>
Sub-class <br>
should implement drain()<br>
0:01:32.019512000 305 0x1ba0290 FIXME
rtspmedia <br>
rtsp-media.c:3835:gst_rtsp_media_suspend: suspend for
dynamic pipelines <br>
needs fixing<br>
0:01:32.035965000 305 0x1ba0290 FIXME
rtspmedia <br>
rtsp-media.c:3835:gst_rtsp_media_suspend: suspend for
dynamic pipelines <br>
needs fixing<br>
0:01:32.038393000 305 0x1ba0290 WARN
rtspmedia <br>
rtsp-media.c:3861:gst_rtsp_media_suspend: media
0xb5c2f1c0 was not prepared<br>
0:01:32.106016000 305 0x1ba0290 FIXME
rtspclient <br>
rtsp-client.c:1646:handle_play_request:<GstRTSPClient@0x1ca0878>
Add <br>
support for seek style (null)<br>
0:01:32.109618000 305 0x1ba0290 FIXME
rtspmedia <br>
rtsp-media.c:2434:gst_rtsp_media_seek_full:<GstRTSPMedia@0xb5c2f1c0>
<br>
Handle going back to 0 for none live not seekable
streams.<br>
0:01:44.798303000 305 0xb4e0ee90 WARN
v4l2src <br>
gstv4l2src.c:911:gst_v4l2src_create:<v4l2src0>
Timestamp does not <br>
correlate with any clock, ignoring driver timestamps<br>
0:01:44.800910000 305 0xb4e0ee90 WARN
v4l2src <br>
gstv4l2src.c:976:gst_v4l2src_create:<v4l2src0>
lost frames detected: <br>
count = 22 - ts: 0:00:14.088149667<br>
0:01:48.783236000 305 0xb4e0ee90 WARN
v4l2src <br>
gstv4l2src.c:976:gst_v4l2src_create:<v4l2src0>
lost frames detected: <br>
count = 59 - ts: 0:00:18.072994667<br>
0:01:50.959261000 305 0xb4e0ee90 WARN
v4l2src <br>
gstv4l2src.c:976:gst_v4l2src_create:<v4l2src0>
lost frames detected: <br>
count = 74 - ts: 0:00:20.249009667<br>
--------------------------------------------------------------------------------------<br>
<br>
The client side doesn't show any images.<br>
<br>
If the server on another ubuntu 16.04 machines, the
client side can show <br>
normally.<br>
<br>
Why the v4l2src lost frames on raspberry?<br>
<br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org"
target="_blank" rel="noreferrer"
moz-do-not-send="true">gstreamer-devel@lists.freedesktop.org</a><br>
<a
href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel"
rel="noreferrer noreferrer" target="_blank"
moz-do-not-send="true">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
</blockquote>
</div>
<br>
</div>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
gstreamer-devel mailing list
<a class="moz-txt-link-abbreviated" href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a>
<a class="moz-txt-link-freetext" href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a>
</pre>
</blockquote>
<br>
</body>
</html>