<div dir="ltr">Hi Paulo.<div><br></div><div>I recently tested with that camera and I did not have that issues. </div><div><br></div><div>It seems u are having transport problems and the decoder is having problems to render.</div><div><br></div><div>Additionaly I am having some decoding quality issues with omx with an web cam. </div><div><br></div><div>Here is the post</div><div><br></div><div>"<span style="color:rgb(68,68,68);font-family:Calibri,sans-serif;font-size:15px;line-height:21.2999992370605px">Hi all,</span><span style="color:rgb(68,68,68);font-family:Calibri,sans-serif;font-size:15px;line-height:21.2999992370605px"> </span></div><div dir="ltr" style="line-height:21.2999992370605px;color:rgb(68,68,68);font-family:Calibri,sans-serif;font-size:15px"><br style="line-height:21.2999992370605px">I tried to find the <span id="ecxresult_box" class="" lang="en" style="line-height:21.2999992370605px">answer for my problem in the raspberry pi forum but without success. <br style="line-height:21.2999992370605px"><br style="line-height:21.2999992370605px"></span>Here is the post<br style="line-height:21.2999992370605px"><br style="line-height:21.2999992370605px">"Hi all,<br style="line-height:21.2999992370605px"><br style="line-height:21.2999992370605px">I am using Rpi and Gstreamer to stream my HD web cam with low latency. Currently I am using two different encoders for that purpose. With the omx I am getting some video quality issues and with x264 i am getting high CPU usage and low frequency. <br style="line-height:21.2999992370605px"><br style="line-height:21.2999992370605px">The following is the pipe with x264 encoder<a href="http://www.raspberrypi.org/forums/viewtopic.php?f=29&t=106455&p=734508#" target="_blank" style="line-height:21.2999992370605px;font-weight:inherit;color:rgb(0,104,207)"><br style="line-height:21.2999992370605px"></a><dl class="" style="line-height:21.2999992370605px"><dd style="line-height:21.2999992370605px"><code style="line-height:21.2999992370605px">gst-launch-1.0 -vv v4l2src ! videoscale !  videorate  ! videoconvert ! \<br style="line-height:21.2999992370605px">  video/x-raw,width=1280,height=720,framerate=30/1  ! x264enc bitrate=8000 ! \<br style="line-height:21.2999992370605px">h264parse !  rtph264pay pt=96 config-interval=1 ! udpsink host=$1 port=$2<br style="line-height:21.2999992370605px"></code></dd></dl><br style="line-height:21.2999992370605px">The following are pipelines with low latency but with quality issues, despite the value that is use in the bitrate property.<br style="line-height:21.2999992370605px"><dl class="" style="line-height:21.2999992370605px"><dd style="line-height:21.2999992370605px"><code style="line-height:21.2999992370605px">gst-launch-1.0 -vv v4l2src ! videoscale !  videorate  ! videoconvert ! \<br style="line-height:21.2999992370605px">  video/x-raw,width=720,height=480,framerate=30/1  ! omxh264enc inline-header=true periodicty-idr=1 ! \<br style="line-height:21.2999992370605px">video/x-h264,width=720,height=480,framerate=30/1,profile=high,target-bitrate=8000000,control-rate=variable,quant-i-frames=250 ! \<br style="line-height:21.2999992370605px">rtph264pay pt=96 ! udpsink host=$1 port=$2<br style="line-height:21.2999992370605px"><br style="line-height:21.2999992370605px">gst-launch-1.0 -vv v4l2src  \<br style="line-height:21.2999992370605px">image/jpeg,width=1280,height=720,framerate=30/1  ! jpegdec ! videoconvert  ! \<br style="line-height:21.2999992370605px">video/x-raw,width=1280,height=720  ! videorate !  omxh264enc inline-header=true periodicty-idr=1 ! \<br style="line-height:21.2999992370605px">video/x-h264,width=1280,height=720,framerate=30/1,profile=high,target-bitrate=5000000 ! \<br style="line-height:21.2999992370605px">rtph264pay pt=96 ! udpsink host=$1 port=$2<br style="line-height:21.2999992370605px"></code></dd></dl><br style="line-height:21.2999992370605px"><br style="line-height:21.2999992370605px">Would be really cool to have this working with OMX and understand what is needed to have better quality. <br style="line-height:21.2999992370605px"><br style="line-height:21.2999992370605px">Looking forward to have some clues from this community.<br style="line-height:21.2999992370605px"><br style="line-height:21.2999992370605px">Thanks in advance,<br style="line-height:21.2999992370605px">Joao M."<br style="line-height:21.2999992370605px"><br style="line-height:21.2999992370605px"></div><div><span style="color:rgb(68,68,68);font-family:Calibri,sans-serif;font-size:15px;line-height:21.2999992370605px">In the nutshell the x264 plugin has good quality but not enough fps and with omx encoder I am having some quality issues.</span><span style="color:rgb(68,68,68);font-family:Calibri,sans-serif;font-size:15px;line-height:21.2999992370605px"> </span>"</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Apr 7, 2015 at 4:35 PM, Paulo Neves <span dir="ltr"><<a href="mailto:ptsneves@gmail.com" target="_blank">ptsneves@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Thornton, Keith: I am not sure I understand what the difference is.<br>
The sample h264 that was successfully tested can be found in apple's<br>
site:<br>
<br>
<a href="http://a1408.g.akamai.net/5/1408/1388/2005110403/1a1a1ad948be278cff2d96046ad90768d848b41947aa1986/sample_iPod.m4v.zip" target="_blank">http://a1408.g.akamai.net/5/1408/1388/2005110403/1a1a1ad948be278cff2d96046ad90768d848b41947aa1986/sample_iPod.m4v.zip</a><br>
<br>
In the camera description page it says the camera does AVC h264 compression:<br>
<a href="http://www.logitech.com/en-gb/product/hd-pro-webcam-c920" target="_blank">http://www.logitech.com/en-gb/product/hd-pro-webcam-c920</a><br>
<br>
If you can tell me a way to peek at this information I can do it.<br>
<br>
Regarding the pipelines tried here are some examples, I am sorry I omitted them:<br>
<br>
I am streaming the camera video from a remote computer with the<br>
following pipeline:<br>
<br>
gst-launch-1.0 -v -e v4l2src device=/dev/video0 !<br>
video/x-h264,width=1920,height=1080,framerate=30/1 ! h264parse !<br>
rtph264pay pt=127 config-interval=8 ! udpsink host=192.168.1.109<br>
port=6000<br>
<br>
For the h264 video coming from the file the only thing that changes is<br>
the source of the video on the remote computer and the addition of the<br>
demuxer:<br>
<br>
gst-launch-1.0 -v -e filesrc location=~/Downloads/sample_iPod.m4v !<br>
qtdemux ! h264parse ! rtph264pay pt=127 config-interval=8 ! udpsink<br>
host=192.168.1.109 port=6000<br>
<br>
Receiving on the Raspberry PI (omx decoder) is done, for both cases<br>
through this pipeline:<br>
<br>
gst-launch-1.0 udpsrc port=6000 !  application/x-rtp, payload=127 !<br>
rtph264depay ! h264parse ! omxh264dec ! queue ! autovideosink<br>
sync=false<br>
<br>
To test that the omxh264dec works well with the omxh264enc i tried the<br>
following pipeline:<br>
<br>
gst-launch-1.0 videotestsrc ! omxh264enc ! h264parse ! omxh264dec !<br>
autovideosink sync=false<br>
<br>
To further test if different encoders would produce different<br>
renderings in a remote computer I encoded videotestsrc and apple's<br>
file(pipeline below) with x264enc:<br>
<br>
gst-launch-1.0 -v -e filesrc location=~/Downloads/sample_iPod.m4v !<br>
qtdemux ! h264parse ! avdec_h264 ! x264enc tune=zerolatency !<br>
rtph264pay pt=127 config-interval=1 ! queue ! udpsink<br>
host=192.168.1.109 port=6000<br>
<br>
In this test no corruption seemed to appear while preparing the<br>
pipelines for this email contrary to my previous email. I have not<br>
tried another movie with more scene change so this might be a fluke.<br>
<br>
In the following link you can also find a video of the corruption<br>
which I am talking about:<br>
<a href="https://youtu.be/JxOvCCan3Ro" target="_blank">https://youtu.be/JxOvCCan3Ro</a><br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
</blockquote></div><br></div>