Rpi: v4l2src + omxh264enc + tcpserversink

Jan Schmidt thaytan at noraisin.net
Sun Jun 21 19:56:27 PDT 2015



On 18/06/15 03:30, Krutskikh Ivan wrote:
> Ok, I've actually found a solution. 1) gst-omx from default rasbian
> wheezy does not work. I guess it's just too old. 2) Building gst-omx
> from head src also fails: gsteamer is unable to load both encoder or
> decoder. Maybe it's just broken, maybe gstreamer from wheezy is just too
> old to comply with it.

This usually means that there's not enough GPU memory - how much do you 
have allocated to GPU in /boot/config.txt? It may be that gst-omx from 
git master is allocating more buffers than previously, needing more GPU 
memory.

- Jan.

  3) gst-omx from
> http://vontaene.de/raspbian-updates/ does the trick with default
> settings. I'm not sure why, but that's the fact for now.
>
> 2015-06-05 6:39 GMT+03:00 Krutskikh Ivan <stein.hak at gmail.com
> <mailto:stein.hak at gmail.com>>:
>
>     I'm making a screencaster using epiphan dvi to usb and rpi. But I'll
>     keep that in mind, tnx.
>
>     2015-06-05 4:23 GMT+03:00 Jan Schmidt <thaytan at noraisin.net
>     <mailto:thaytan at noraisin.net>>:
>
>         On 05/06/15 05:56, Krutskikh Ivan wrote:
>
>             Oh... I should really try that out. Thanks!
>
>
>         If you're using the RPi internal camera, you can also try my
>         gst-rpicamsrc element, which uses the same method as raspivid to
>         capture and output H.264 directly, without going through gst-omx.
>
>         https://github.com/thaytan/gst-rpicamsrc
>
>         Cheers,
>         Jan.
>
>
>             2015-06-04 22:44 GMT+03:00 Tim Müller <tim at centricular.com
>             <mailto:tim at centricular.com>
>             <mailto:tim at centricular.com <mailto:tim at centricular.com>>>:
>
>
>                  On Thu, 2015-06-04 at 22:16 +0300, Krutskikh Ivan wrote:
>
>                  Hi,
>
>                  > Ok, after a lot of googling I've seemed to find out
>             the very viable
>                  > explanation on what is happening:
>                  >
>                  > "Short answer why your pipeline don't work now.
>                  > omxh264enc (h264 encoder) generate something call SPS
>             NAL.
>                  > This SPS NAL contain basic information as width,
>                  > height ,................ all basic information that
>             you neeed before
>                  > you start decoding something.
>                  > And this buffer is generated only ONCE at start.
>                  > And tcpserver dump this sps as you connect to server
>             after some time."
>                  >
>                  >
>                  > The source is
>
>              >https://www.raspberrypi.org/forums/viewtopic.php?f=38&t=6852&start=225
>                  >
>                  >
>                  > The are also some pathes to gst-omx attached. I would
>             try those after
>                  > weekend. I remember now that the same issue stoped me
>             from streaming
>                  > h264 from local files on the server...
>
>                  It sounds like you're running into
>
>             https://bugzilla.gnome.org/show_bug.cgi?id=706872
>
>                  which might only be fixed in git.
>
>                  You should also be able to use the h264parse element to
>             insert SPS/PPS
>                  regularly by setting config-interval=1 .
>
>                  Cheers
>                    -Tim
>
>                  --
>                  Tim Müller, Centricular Ltd - http://www.centricular.com
>
>                  _______________________________________________
>                  gstreamer-devel mailing list
>             gstreamer-devel at lists.freedesktop.org
>             <mailto:gstreamer-devel at lists.freedesktop.org>
>                  <mailto:gstreamer-devel at lists.freedesktop.org
>             <mailto:gstreamer-devel at lists.freedesktop.org>>
>             http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
>
>
>
>             _______________________________________________
>             gstreamer-devel mailing list
>             gstreamer-devel at lists.freedesktop.org
>             <mailto:gstreamer-devel at lists.freedesktop.org>
>             http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
>         _______________________________________________
>         gstreamer-devel mailing list
>         gstreamer-devel at lists.freedesktop.org
>         <mailto:gstreamer-devel at lists.freedesktop.org>
>         http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
>
>
>
>
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>


More information about the gstreamer-devel mailing list