<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style>.EmailQuote {
BORDER-LEFT: #800000 2px solid; PADDING-LEFT: 4pt; MARGIN-LEFT: 1pt
}
</style><style id="owaParaStyle">P {
MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
</style>
</head>
<body ocsi="0" fPStyle="1">
<div style="FONT-FAMILY: Calibri; DIRECTION: ltr; COLOR: #000000; FONT-SIZE: 12pt">
<p>First thing to look at is packet loss....</p>
<p>With RTSP<a target="_blank"></a> it is server driven delivery, so once the session is started the server starts to fire the packets at the client. If you switch on the debugging on the UDP<a target="_blank"></a> src<a target="_blank"></a> and jitterbuffer<a target="_blank"></a>
you will see if there are any missing packets.</p>
<p> </p>
<p>I would be looking in this area first as you see the issue when the image is moving. With h264<a target="_blank"></a> the bitrate<a target="_blank"></a> will be fairly low when the image is static (have a look at the bitrate<a target="_blank"></a> in VLC<a target="_blank"></a>)
once the movement happens the bitrate<a target="_blank"></a> will shoot up as it will be adapting to the moving images.</p>
<p> </p>
<p>Can you change the MAX bitrate<a target="_blank"></a> on the camera to help debug ?</p>
<p> </p>
<p>Regards</p>
<p>Marc</p>
<div>
<p> </p>
<div style="FONT-FAMILY: Tahoma; FONT-SIZE: 13px">
<div>
<hr tabindex="-1">
</div>
</div>
</div>
<div>
<div id="x_divRplyFwdMsg"><font color="#000000" size="2" face="Tahoma"><b>From:</b> gstreamer-devel-bounces+marcmltd=marcm.co.uk@lists.freedesktop.org<a target="_blank"></a> [gstreamer-devel-bounces+marcmltd<a target="_blank"></a>=marcm.co.uk@lists.freedesktop.org<a target="_blank"></a>]
on behalf of bamboosso<a target="_blank"></a> [laski.maciej@gmail.com<a target="_blank"></a>]<br>
<b>Sent:</b> 10 December 2012 01:05<br>
<b>To:</b> gstreamer-devel@lists.freedesktop.org<a target="_blank"></a><br>
<b>Subject:</b> h264<a target="_blank"></a> stream form filesrc<a target="_blank"></a> vs<a target="_blank"></a> from live source (rtsp<a target="_blank"></a>). HD playback<br>
</font><br>
</div>
<div></div>
</div>
<font size="2"><span style="FONT-SIZE: 10pt">
<div class="PlainText">Hello.<br>
<br>
I'm trying to display video from rtsp<a target="_blank"></a> camera (SAMSUNG snz<a target="_blank"></a>-5200) with h264<a target="_blank"></a><br>
1280x1024<a target="_blank"></a> stream.<br>
First I record stream to file:<br>
<br>
gst<a target="_blank"></a>-launch -e rtspsrc<a target="_blank"></a><br>
location=rtsp://admin:4321@192.168.0.140:554/profile5/media.smp !<br>
gstrtpjitterbuffer<a target="_blank"></a> ! rtph264depay<a target="_blank"></a> ! legacyh264parse<a target="_blank"></a> access-unit=true<br>
output-format=0 ! mp4mux<a target="_blank"></a> ! filesink<a target="_blank"></a> location=test.mp4<a target="_blank"></a><br>
<br>
After that file is perfectly playable by totem, media player classic and<br>
this pipeline:<br>
<br>
gst<a target="_blank"></a>-launch -e filesrc<a target="_blank"></a> location=test.mp4<a target="_blank"></a> ! qtdemux<a target="_blank"></a> ! legacyh264parse<a target="_blank"></a> !<br>
mfw_vpudecoder<a target="_blank"></a> ! mfw_v4lsink<a target="_blank"></a><br>
<br>
So I assume, that this stream is playable on hardware that I use (freescale<a target="_blank"></a><br>
imx53qsb<a target="_blank"></a> with arm processor and hardware vpu<a target="_blank"></a> for media decoding)<br>
<br>
BUT... I try to display video directly from rtsp<a target="_blank"></a> stream:<br>
<br>
gst<a target="_blank"></a>-launch -e rtspsrc<a target="_blank"></a><br>
location=rtsp://admin:4321@192.168.0.140:554/profile5/media.smp !<br>
gstrtpjitterbuffer<a target="_blank"></a> ! rtph264depay<a target="_blank"></a> ! mfw_vpudecoder<a target="_blank"></a> ! mfw_v4lsink<a target="_blank"></a><br>
<br>
And there is hudge<a target="_blank"></a> delay and a lot of artefacts whet screen is moving. Every<br>
thing is ok when i<a target="_blank"></a> use lower resolution like 800x600<a target="_blank"></a>. But on 1024x768<a target="_blank"></a><br>
problem starts and getting worse on higher resolutions.<br>
<br>
I have tryed<a target="_blank"></a> a lot of configurations for jitterbuffer<a target="_blank"></a>, decoder,<br>
legacyh264parse<a target="_blank"></a>, and sink (sync=false).<br>
<br>
I think that it might be timestamping<a target="_blank"></a> problem, or buffers that goes to<br>
decoder sink are not representing correct frames.<br>
<br>
*What is difference with handling this stream from live source and from<br>
filesrc<a target="_blank"></a>???* - I think, that problem is in source.<br>
*Where should I start to search the error.*<br>
<br>
when I do not provide sync=false to mfw_v4lsink<a target="_blank"></a> I have this warning:<br>
----------------------------<br>
WARNING: from element<br>
/GstPipeline:pipeline0<a target="_blank"></a>/MFW_GST_V4LSINK_INFO_T:mfw_gst_v4lsink_info_t0<a target="_blank"></a>: A lot<br>
of buffers are being dropped.<br>
Additional debug info:<br>
gstbasesink.c<a target="_blank"></a>(2875): gst_base_sink_is_too_late<a target="_blank"></a> ():<br>
/GstPipeline:pipeline0<a target="_blank"></a>/MFW_GST_V4LSINK_INFO_T:mfw_gst_v4lsink_info_t0<a target="_blank"></a>:<br>
There may be a timestamping<a target="_blank"></a> problem, or this computer is too slow.<br>
----------------------------<br>
<br>
Also when I use export GST_DEBUG<a target="_blank"></a>=2,mfw_vpudecoder:4<a target="_blank"></a> I get this cyclic<br>
output:<br>
<br>
----------------------------<br>
0:00:16.001583376 7906 0x107b98<a target="_blank"></a> DEBUG mfw_vpudecoder<a target="_blank"></a><br>
mfw_gst_vpu_decoder.c:3466:mfw_gst_vpudec_src_event<a target="_blank"></a>: The time of decoding is<br>
1784 ms away the system time,Enable<a target="_blank"></a> L2<a target="_blank"></a> strategy<br>
0:00:16.001858001 7906 0x107b98<a target="_blank"></a> DEBUG mfw_vpudecoder<a target="_blank"></a><br>
mfw_gst_vpu_decoder.c:2787:mfw_gst_vpudec_render<a target="_blank"></a>: >>VPU_DEC<a target="_blank"></a>: Render buff 4,<br>
total:266<a target="_blank"></a><br>
0:00:16.001932876 7906 0x107b98<a target="_blank"></a> DEBUG mfw_vpudecoder<a target="_blank"></a><br>
mfw_gst_vpu_decoder.c:1527:mfw_gst_avc_fix_nalheader<a target="_blank"></a>: nal<a target="_blank"></a> found in avc<a target="_blank"></a> data<br>
0:00:16.013550626 7906 0x107b98<a target="_blank"></a> DEBUG mfw_vpudecoder<a target="_blank"></a><br>
mfw_gst_vpu_decoder.c:2745:mfw_gst_vpudec_render<a target="_blank"></a>: frame dropping factor is<br>
3.<br>
0:00:16.013701626 7906 0x107b98<a target="_blank"></a> DEBUG mfw_vpudecoder<a target="_blank"></a><br>
mfw_gst_vpu_decoder.c:2757:mfw_gst_vpudec_render<a target="_blank"></a>: Drop the frame before<br>
render it:6.status:2<a target="_blank"></a><br>
0:00:16.013784501 7906 0x107b98<a target="_blank"></a> DEBUG mfw_vpudecoder<a target="_blank"></a><br>
mfw_gst_vpu_decoder.c:1527:mfw_gst_avc_fix_nalheader<a target="_blank"></a>: nal<a target="_blank"></a> found in avc<a target="_blank"></a> data<br>
0:00:16.040830876 7906 0x107b98<a target="_blank"></a> DEBUG mfw_vpudecoder<a target="_blank"></a><br>
mfw_gst_vpu_decoder.c:2745:mfw_gst_vpudec_render<a target="_blank"></a>: frame dropping factor is<br>
3.<br>
0:00:16.041436876 7906 0x107b98<a target="_blank"></a> DEBUG mfw_vpudecoder<a target="_blank"></a><br>
mfw_gst_vpu_decoder.c:3466:mfw_gst_vpudec_src_event<a target="_blank"></a>: The time of decoding is<br>
1744 ms away the system time,Enable<a target="_blank"></a> L2<a target="_blank"></a> strategy<br>
--------------------------<br>
<br>
Does anyone has experiance<a target="_blank"></a> with HD playback from rtsp<a target="_blank"></a> stream.<br>
<br>
Regards<br>
Maciek<a target="_blank"></a><br>
<br>
<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://gstreamer-devel.966125.n4.nabble.com/h264-stream-form-filesrc-vs-from-live-source-rtsp-HD-playback-tp4657319.html" target="_blank">
http://gstreamer-devel.966125.n4.nabble.com/h264-stream-form-filesrc-vs-from-live-source-rtsp-HD-playback-tp4657319.html</a><br>
Sent from the GStreamer-devel<a target="_blank"></a> mailing list archive at Nabble.com<a target="_blank"></a>.<br>
_______________________________________________<br>
gstreamer-devel<a target="_blank"></a> mailing list<br>
gstreamer-devel@lists.freedesktop.org<a target="_blank"></a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
</div>
</span></font></div>
</body>
</html>