Missin openh264enc plugin in Linux

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

Missin openh264enc plugin in Linux

kroketor
I have a c++ program in Windows that uses the openh264enc plugin and works correctly, but when i have translated it to linux, i found that openh264enc is not present in the system but i have the bad-plugins intalled, I did both installations at the same time two months ago and now i see that i have 1264 plugins in windows and 1187 in Linux.

How can i install or add openh264enc? What file or files contain the missing plugin?


root@Guardian:/home/guardian# gst-inspect-1.0 openh264enc
Nenhum elemento ou plug-in "openh264enc" (There is no element or plugin "openh264enc")

root@Guardian:/home/guardian# apt-cache search plugins-bad
libgstreamer-plugins-bad0.10-0 - GStreamer development files for libraries from the "bad" set
libgstreamer-plugins-bad0.10-dev - GStreamer development files for libraries from the "bad" set
libgstreamer-plugins-bad1.0-0 - GStreamer development files for libraries from the "bad" set
libgstreamer-plugins-bad1.0-dev - GStreamer development files for libraries from the "bad" set
yauap - simple command line audio player based on GStreamer
gstreamer0.10-plugins-bad-dbg - Plugins do GStreamer do conjunto "bad" (símbolos de depuração)
gstreamer1.0-plugins-bad-dbg - Plugins do GStreamer do conjunto "bad" (símbolos de depuração)
gstreamer1.0-plugins-bad-doc - Documentação do GStreamer para plugins do conjunto "bad"
gstreamer0.10-plugins-bad - extensões GStreamer do conjunto "ruim" (bad)
gstreamer1.0-plugins-bad - extensões GStreamer do conjunto "ruim" (bad)
gstreamer0.10-plugins-bad-doc - GStreamer documentation for plugins from the "bad" set

Thanks in advance.
Reply | Threaded
Open this post in threaded view
|

Re: Missin openh264enc plugin in Linux

Andres Gonzalez
Just an FYI, on linux,  x264enc (note the element name begins with the letter "x" and not "h") is available in the ulgy plugins. The x264enc element has tons of properties so you can tune it as you wish. I have not personally used  openh264enc so I cannot say how the two encoders compare. But x264enc has served my needs very well.

-Andres
Reply | Threaded
Open this post in threaded view
|

Re: Missing openh264enc plugin in Linux

kroketor
Thank you for your advice Andres.
Yes, you are right, the x264enc is present and i'm actually using it, but in my (short) experience in windows it creates biggers archives (double size) than the openh264 and i need to optimize the space in my project.
Reply | Threaded
Open this post in threaded view
|

Re: Missing openh264enc plugin in Linux

Sebastian Dröge-3
On Fri, 2016-08-19 at 07:32 -0700, kroketor wrote:
> Thank you for your advice Andres.
> Yes, you are right, the x264enc is present and i'm actually using it, but in
> my (short) experience in windows it creates biggers archives (double size)
> than the openh264 and i need to optimize the space in my project.

Check all the properties on it. It can basically create whatever you
want it to, it might just be that the default settings are different.


For openh264, you seem to be using Debian or a Debian derived
distribution. Currently Debian does not package openh264 at all, so the
plugin in the gst-plugins-bad package can also not be enabled.

You can build it yourself if needed though, there's nothing inherent in
it that it couldn't work on Linux. It does very well :)

--
Sebastian Dröge, Centricular Ltd · http://www.centricular.com
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

signature.asc (949 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Missing openh264enc plugin in Linux

Stephane Croci
Hello Sebastian,

I've generated libgstopenh264.so with openh264v1.5 for Ubuntu 16.04
openh264 v1.5 was generated from https://github.com/cisco/openh264 sources and lib installed under /usr/local/lib/ (libopenh264.so)

(Note that libgstopenh264 doesn't build against openh264 v1.6 : SM_AUTO_SLICE and SpatialLayerConfig.sSliceCfg are no longer defined).


But openh264 plugin isn't available =>
gst-inspect-1.0 .libs/libgstopenh264.so
(gst-inspect-1.0:15138): GStreamer-WARNING **: Failed to load plugin '.libs/libgstopenh264.so': .libs/libgstopenh264.so: undefined symbol: WelsCreateSVCEncoder
Impossible de charger le fichier de greffon : Opening module failed: .libs/libgstopenh264.so: undefined symbol: WelsCreateSVCEncoder

however lib entry is available =>
nm /usr/local/lib/libopenh264.so |grep WelsCreateSVCEncoder
0000000000075290 T WelsCreateSVCEncoder
I checked /usr/local/lib is well set in ldconfig as well as LD_LIBRARY_PATH, so libopenh264.so is available.

So, what did I miss ? How the plugin is supposed to do the link with libopenh264.so (I haven't see anything related in the build step) ?


Stéphane


Le 22/08/2016 à 07:59, Sebastian Dröge a écrit :
On Fri, 2016-08-19 at 07:32 -0700, kroketor wrote:
Thank you for your advice Andres.
Yes, you are right, the x264enc is present and i'm actually using it, but in
my (short) experience in windows it creates biggers archives (double size)
than the openh264 and i need to optimize the space in my project.
Check all the properties on it. It can basically create whatever you
want it to, it might just be that the default settings are different.


For openh264, you seem to be using Debian or a Debian derived
distribution. Currently Debian does not package openh264 at all, so the
plugin in the gst-plugins-bad package can also not be enabled.

You can build it yourself if needed though, there's nothing inherent in
it that it couldn't work on Linux. It does very well :)



_______________________________________________
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: Missing openh264enc plugin in Linux

Tim Müller
On Mon, 2016-08-22 at 15:04 +0200, Croci Stéphane wrote:

Hi Stéphane,

> (Note that libgstopenh264 doesn't build against openh264 v1.6 :
> SM_AUTO_SLICE and SpatialLayerConfig.sSliceCfg are no longer
> defined).

This should be fixed in 1.8.3. Is it not?

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: Missing openh264enc plugin in Linux

Stephane Croci
Hi Tim,

Sorry, I built 1.8.2 (as it's the version coming with Ubuntu 16.04)...
so, I guess it should work for 1.8.3 if it's been fixed :-)

Do you recommend to use 1.8.3 to workaround the main issue I got with
openh264 plugin ?

Stéphane


Le 22/08/2016 à 18:54, Tim Müller a écrit :

> On Mon, 2016-08-22 at 15:04 +0200, Croci Stéphane wrote:
>
> Hi Stéphane,
>>  
>> (Note that libgstopenh264 doesn't build against openh264 v1.6 :
>> SM_AUTO_SLICE and SpatialLayerConfig.sSliceCfg are no longer
>> defined).
> This should be fixed in 1.8.3. Is it not?
>
> Cheers
>   -Tim
>

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

Re: Missing openh264enc plugin in Linux

kroketor
In reply to this post by Sebastian Dröge-3
Thanks Sebastian, you are right, i'm using Debian. Thank you for the info, i was getting crazy seeking the openh264 plugin. I just tested the default settings with openh264 and x264enc so i suposse i will have to work with the settings in order to create smaller archives.