gst-build success but missing h264 encode/decode elements

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

gst-build success but missing h264 encode/decode elements

Mohammad Bhuyan
Greetings,

I have built GStreamer using gst-build (uses meson and ninja) on Raspbian
platform.

It was a fresh install of Raspbian (Basic). Also, I did not change any
gst-build config.

The build was ok after meeting some basic dependency issues like flex, bison
etc. Given the build uses '/usr/local' as install prefix, I had to configure
the corresponding path for ldconfig

After the build, I have tested that a basic test pipeline is working. I used
'gst-launch-1.0 videotestsrc ! autovideosink'

My problem is that I need x264enc element (or equivalent) to build a
pipeline and my GStreamer installation doesn't seem to have it. Maybe my
build/install didn't produce that element or gstreamer? My understanding is
that it is probably expected as I took a fresh install of Raspbian which
probably lacked dependency for x264* elements.

I did notice that OpenH264 was built part of GStreamer, thus I expected that
OpenH264 enc/dec elements should be there. But using gst-inspect I don't
seem to see them.


My questions are:

1. For H264 encoding/decoding which elements are preferred - OpenH264 vs
x264?

2. How do I make my gst-build produce those plugins? What dependencies must
I install before my build?

3. Is it possible that my build actually produced those plugins but my path
setup is not current for GStreamer to see them?

4. In regards to question (2) above, where is the documentation for
dependencies for plugins/elements?

Regards,

Mohammad





--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: gst-build success but missing h264 encode/decode elements

David Ing
Plugins are only built when relevant dependencies are met (in terms of your package manager).  Here are some docker containers associated with regular builds:  https://gitlab.freedesktop.org/gstreamer/gst-ci/tree/master/docker

Also I figured out the exact set of packages for Ubuntu 18.04:  https://github.com/Panopto/gst-conan/blob/master/distros/ubuntu-18.04/debians-build.txt
  • Includes libx264-dev
I'm not sure what packages are required for Raspberry Pi but hopefully this helps.



On Tue, Mar 12, 2019 at 3:10 PM Mohammad Bhuyan <[hidden email]> wrote:
Greetings,

I have built GStreamer using gst-build (uses meson and ninja) on Raspbian
platform.

It was a fresh install of Raspbian (Basic). Also, I did not change any
gst-build config.

The build was ok after meeting some basic dependency issues like flex, bison
etc. Given the build uses '/usr/local' as install prefix, I had to configure
the corresponding path for ldconfig

After the build, I have tested that a basic test pipeline is working. I used
'gst-launch-1.0 videotestsrc ! autovideosink'

My problem is that I need x264enc element (or equivalent) to build a
pipeline and my GStreamer installation doesn't seem to have it. Maybe my
build/install didn't produce that element or gstreamer? My understanding is
that it is probably expected as I took a fresh install of Raspbian which
probably lacked dependency for x264* elements.

I did notice that OpenH264 was built part of GStreamer, thus I expected that
OpenH264 enc/dec elements should be there. But using gst-inspect I don't
seem to see them.


My questions are:

1. For H264 encoding/decoding which elements are preferred - OpenH264 vs
x264?

2. How do I make my gst-build produce those plugins? What dependencies must
I install before my build?

3. Is it possible that my build actually produced those plugins but my path
setup is not current for GStreamer to see them?

4. In regards to question (2) above, where is the documentation for
dependencies for plugins/elements?

Regards,

Mohammad





--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: gst-build success but missing h264 encode/decode elements

Antonio Ospite-2
In reply to this post by Mohammad Bhuyan
On Tue, 12 Mar 2019 17:03:30 -0500 (CDT)
Mohammad Bhuyan <[hidden email]> wrote:

> Greetings,
>
> I have built GStreamer using gst-build (uses meson and ninja) on Raspbian
> platform.
>
> It was a fresh install of Raspbian (Basic). Also, I did not change any
> gst-build config.
>
[...]

> I did notice that OpenH264 was built part of GStreamer, thus I expected that
> OpenH264 enc/dec elements should be there. But using gst-inspect I don't
> seem to see them.
>
>
> My questions are:
>
> 1. For H264 encoding/decoding which elements are preferred - OpenH264 vs
> x264?
>
> 2. How do I make my gst-build produce those plugins? What dependencies must
> I install before my build?
>

On a Debian system you can install the build-dependencies of the
official GStreamer packages like so:

$ sudo apt-get build-dep gstreamer1.0-plugins-good

And gst-build will pick them up if you reconfigure it.

To figure out what GStreamer package you want to target you can look
at reverse dependencies, e.g.:

$ apt-cache rdepends libx264-155 | grep gstreamer

> 3. Is it possible that my build actually produced those plugins but my path
> setup is not current for GStreamer to see them?
>
> 4. In regards to question (2) above, where is the documentation for
> dependencies for plugins/elements?
>
> Regards,
>
> Mohammad
>

Ciao,
   Antonio

--
Antonio Ospite
https://ao2.it
https://twitter.com/ao2it

A: Because it messes up the order in which people normally read text.
   See http://en.wikipedia.org/wiki/Posting_style
Q: Why is top-posting such a bad thing?
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel