gstreamer 1.0 uninstalled link to & use external x264enc

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

gstreamer 1.0 uninstalled link to & use external x264enc

vanderhoffer
I have installed latest `gstreamer uninstalled` via git and have it in,

`/home/ec2-user/gst/master/`

to launch `GST` I use, `cd /home/ec2-user/gst; ./gst-master; myGstProg`. When I test for `x264enc` I get not found.

    [ec2-user@xxxxxx master]$ gst-inspect-1.0 x264enc
    No such element or plugin 'x264enc'


As part of our normal dev build we have compiled and installed both `gst` and `x264enc`,

    [ec2-user@xxxxxx ~]$ gst-inspect-1.0 x264enc
    Factory Details:
      Rank                     primary (256)
      Long-name                x264enc
      Klass                    Codec/Encoder/Video
      Description              H264 Encoder
      Author                   Josef Zlomek <josef.zlomek@itonis.tv>, Mark Nauwelaerts <mnauw@users.sf.net>
   
    Plugin Details:
      Name                     x264
      Description              libx264-based H264 plugins
      Filename                 /home/myBin/lib/gstreamer-1.0/libgstx264.so

Compiling the source, no problems are reported, however when running the program at `gst_element_factory_make ("x264enc", "myX264"); we get,

    GStreamer-CRITICAL **: gst_bin_add: assertion 'GST_IS_ELEMENT (element)' failed


At first I copied `/home/myBin/lib/gstreamer-1.0/libgstx264.so` to `/home/ec2-user/gst/test_libs/libgstx264.so` and added`LD_LIBRARY_PATH=/home/ec2-user/gst/test_libs:$LD_LIBRARY_PATH` to `master/gstreamer/scripts/gst-uninstalled`

How/what do I update under the `/home/ec2-user/gst` to include the `x264enc` element?
Reply | Threaded
Open this post in threaded view
|

Re: gstreamer 1.0 uninstalled link to & use external x264enc

Tim Müller
Hi,

> At first I copied `/home/myBin/lib/gstreamer-1.0/libgstx264.so` to
> `/home/ec2-user/gst/test_libs/libgstx264.so` and
> added`LD_LIBRARY_PATH=/home/ec2-user/gst/test_libs:$LD_LIBRARY_PATH`
> to
> `master/gstreamer/scripts/gst-uninstalled`
>
> /*How/what do I update under the `/home/ec2-user/gst` to include the
> `x264enc` element?*/

I would recommend you make sure that the x264 plugin is actually built
when you configure/build gst-plugins-ugly, instead of copying around
plugins installed from package.

If it's not built you're probably missing the x264 library development
headers (x264-devel or libx264-dev package).

If you installed libx264 from source you may need to export
PKG_CONFIG_PATH=/usr/local/lib/pkgconfig  to make configure find libs
in it.

Cheers
 -Tim

--
Tim Müller, Centricular Ltd - http://www.centricular.com
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: gstreamer 1.0 uninstalled link to & use external x264enc

vanderhoffer
Thanks Tim,

I decided just to rebuild the latest GIT into a full build as I have automated scripts that preinstall x264/5 etc from source. So the dev headers are not in the custom dir. This worked as expected.

I will try to debug at another time.

Thx
Art