x265enc element not working

Matthew Figueroa mfigueroa at mak.com
Tue Jun 5 15:35:09 UTC 2018


Hi All,

I'm attempting to add x265 support to my build of Gstreamer 1.14.0 for
Windows.  For my build I used the cerbero build system.

I've built libx265 version 2.8 from
https://bitbucket.org/multicoreware/x265/wiki/Home

I then added the "--enable-x265" configuration option to my
gst-plugins-bad-1.0 build.  It successfully compiled and linked the
libgstx265.dll plugin.


However, when I attempt to run "gst-inpect-1.0.exe x265enc" it silently
exits without printing any information.

I increased my GST_DEBUG value to 4 and generated the following output.

0:00:00.000070985  4804 00000000026C4000 INFO                GST_INIT
gst.c:586:init_pre: Initializing GStreamer Core Library version 1.14.0
0:00:00.000280164  4804 00000000026C4000 INFO                GST_INIT
gst.c:587:init_pre: Using library installed in
C:\MinGW\msys\1.0\home\mfigueroa\cerbero\build\dist\windows_x86_64\lib
0:00:00.000579962  4804 00000000026C4000 INFO                GST_INIT
gstmessage.c:127:_priv_gst_message_initialize: init messages
0:00:00.001066285  4804 00000000026C4000 INFO                GST_INIT
gstcontext.c:84:_priv_gst_context_initialize: init contexts
0:00:00.013493195  4804 00000000026C4000 INFO      GST_PLUGIN_LOADING
gstplugin.c:317:_priv_gst_plugin_initialize: registering 0 static plugins
0:00:00.013640451  4804 00000000026C4000 INFO      GST_PLUGIN_LOADING
gstplugin.c:225:gst_plugin_register_static: registered static plugin
"staticelements"
0:00:00.013683118  4804 00000000026C4000 INFO      GST_PLUGIN_LOADING
gstplugin.c:227:gst_plugin_register_static: added static plugin
"staticelements", result: 1
0:00:00.029492389  4804 00000000026C4000 INFO            GST_REGISTRY
gstregistry.c:1727:ensure_current_registry: reading registry cache:
C:\Users\mfigueroa\AppData\Local\Microsoft\Windows\INetCache\gstreamer-1.0\registry.x86_64.bin
0:00:00.047124615  4804 00000000026C4000 INFO            GST_REGISTRY
gstregistrybinary.c:621:priv_gst_registry_binary_read_cache: loaded
C:\Users\mfigueroa\AppData\Local\Microsoft\Windows\INetCache\gstreamer-1.0\registry.x86_64.bin
in 0.017548 seconds
0:00:00.047933014  4804 00000000026C4000 INFO            GST_REGISTRY
gstregistry.c:1583:scan_and_update_registry: Validating plugins from
registry cache:
C:\Users\mfigueroa\AppData\Local\Microsoft\Windows\INetCache\gstreamer-1.0\registry.x86_64.bin
0:00:00.064807438  4804 00000000026C4000 INFO            GST_REGISTRY
gstregistry.c:1332:gst_registry_scan_path_level:<registry0> cached info for
C:\MinGW\msys\1.0\home\mfigueroa\cerbero\build\dist\windows_x86_64\lib\gstreamer-1.0\libgstgio.dll
is stale
0:00:00.075415923  4804 00000000026C4000 INFO      GST_PLUGIN_LOADING
gstplugin.c:901:_priv_gst_plugin_load_file_for_registry: plugin
"C:\MinGW\msys\1.0\home\mfigueroa\cerbero\build\dist\windows_x86_64\lib\gstreamer-1.0\libgstgio.dll"
loaded
0:00:00.079417515  4804 00000000026C4000 INFO            GST_REGISTRY
gstregistry.c:1332:gst_registry_scan_path_level:<registry0> cached info for
C:\MinGW\msys\1.0\home\mfigueroa\cerbero\build\dist\windows_x86_64\lib\gstreamer-1.0\libgstlibav.dll
is stale
0:00:00.122814662  4804 00000000026C4000 INFO            GST_TYPEFIND
gsttypefind.c:72:gst_type_find_register: registering typefind function for
avtype_avs
0:00:00.122904148  4804 00000000026C4000 INFO            GST_TYPEFIND
gsttypefind.c:72:gst_type_find_register: registering typefind function for
avtype_bfstm
0:00:00.122961918  4804 00000000026C4000 INFO            GST_TYPEFIND
gsttypefind.c:72:gst_type_find_register: registering typefind function for
avtype_brstm
0:00:00.123037056  4804 00000000026C4000 INFO            GST_TYPEFIND
gsttypefind.c:72:gst_type_find_register: registering typefind function for
avtype_daud
0:00:00.123110307  4804 00000000026C4000 INFO            GST_TYPEFIND
gsttypefind.c:72:gst_type_find_register: registering typefind function for
avtype_ea
0:00:00.123174495  4804 00000000026C4000 INFO            GST_TYPEFIND
gsttypefind.c:72:gst_type_find_register: registering typefind function for
avtype_ffm
0:00:00.123244347  4804 00000000026C4000 INFO            GST_TYPEFIND
gsttypefind.c:72:gst_type_find_register: registering typefind function for
avtype_4xm
0:00:00.123334589  4804 00000000026C4000 INFO            GST_TYPEFIND
gsttypefind.c:72:gst_type_find_register: registering typefind function for
avtype_gxf
0:00:00.123403686  4804 00000000026C4000 INFO            GST_TYPEFIND
gsttypefind.c:72:gst_type_find_register: registering typefind function for
avtype_idcin
0:00:00.123471273  4804 00000000026C4000 INFO            GST_TYPEFIND
gsttypefind.c:72:gst_type_find_register: registering typefind function for
avtype_ipmovie
0:00:00.123621927  4804 00000000026C4000 INFO            GST_TYPEFIND
gsttypefind.c:72:gst_type_find_register: registering typefind function for
avtype_mm
0:00:00.123768428  4804 00000000026C4000 INFO            GST_TYPEFIND
gsttypefind.c:72:gst_type_find_register: registering typefind function for
avtype_mmf
0:00:00.123977608  4804 00000000026C4000 INFO            GST_TYPEFIND
gsttypefind.c:72:gst_type_find_register: registering typefind function for
avtype_nsv
0:00:00.124040664  4804 00000000026C4000 INFO            GST_TYPEFIND
gsttypefind.c:72:gst_type_find_register: registering typefind function for
avtype_nut
0:00:00.124191695  4804 00000000026C4000 INFO            GST_TYPEFIND
gsttypefind.c:72:gst_type_find_register: registering typefind function for
avtype_film_cpk
0:00:00.124257017  4804 00000000026C4000 INFO            GST_TYPEFIND
gsttypefind.c:72:gst_type_find_register: registering typefind function for
avtype_smk
0:00:00.124321961  4804 00000000026C4000 INFO            GST_TYPEFIND
gsttypefind.c:72:gst_type_find_register: registering typefind function for
avtype_sol
0:00:00.124388792  4804 00000000026C4000 INFO            GST_TYPEFIND
gsttypefind.c:72:gst_type_find_register: registering typefind function for
avtype_psxstr
0:00:00.124498290  4804 00000000026C4000 INFO            GST_TYPEFIND
gsttypefind.c:72:gst_type_find_register: registering typefind function for
avtype_vmd
0:00:00.124591175  4804 00000000026C4000 INFO            GST_TYPEFIND
gsttypefind.c:72:gst_type_find_register: registering typefind function for
avtype_wc3movie
0:00:00.124657629  4804 00000000026C4000 INFO            GST_TYPEFIND
gsttypefind.c:72:gst_type_find_register: registering typefind function for
avtype_wsaud
0:00:00.124717664  4804 00000000026C4000 INFO            GST_TYPEFIND
gsttypefind.c:72:gst_type_find_register: registering typefind function for
avtype_wsvqa
0:00:00.124794313  4804 00000000026C4000 INFO            GST_TYPEFIND
gsttypefind.c:72:gst_type_find_register: registering typefind function for
avtype_yuv4mpegpipe
0:00:00.130479156  4804 00000000026C4000 INFO      GST_PLUGIN_LOADING
gstplugin.c:901:_priv_gst_plugin_load_file_for_registry: plugin
"C:\MinGW\msys\1.0\home\mfigueroa\cerbero\build\dist\windows_x86_64\lib\gstreamer-1.0\libgstlibav.dll"
loaded
0:00:00.151170535  4804 00000000026C4000 WARN      GST_PLUGIN_LOADING
gstplugin.c:527:gst_plugin_register_func: plugin
"C:\MinGW\msys\1.0\home\mfigueroa\cerbero\build\dist\windows_x86_64\lib\gstreamer-1.0\validate\libgstvalidatessim.dll"
failed to initialise
0:00:00.151372540  4804 00000000026C4000 INFO            GST_REGISTRY
gstregistry.c:1694:scan_and_update_registry: Registry cache changed.
Writing new registry cache
0:00:00.151404635  4804 00000000026C4000 INFO            GST_REGISTRY
gstregistrybinary.c:369:priv_gst_registry_binary_write_cache: Building
binary registry cache image
0:00:00.165439657  4804 00000000026C4000 INFO            GST_REGISTRY
gstregistrybinary.c:401:priv_gst_registry_binary_write_cache: Writing
binary registry cache
0:00:00.275705074  4804 00000000026C4000 INFO            GST_REGISTRY
gstregistry.c:1703:scan_and_update_registry: Registry cache written
successfully
0:00:00.275751516  4804 00000000026C4000 INFO            GST_REGISTRY
gstregistry.c:1762:ensure_current_registry: registry reading and updating
done, result = 1
0:00:00.275782100  4804 00000000026C4000 INFO                GST_INIT
gst.c:807:init_post: GLib runtime version: 2.54.3
0:00:00.275824011  4804 00000000026C4000 INFO                GST_INIT
gst.c:809:init_post: GLib headers version: 2.54.3
0:00:00.275851575  4804 00000000026C4000 INFO                GST_INIT
gst.c:810:init_post: initialized GStreamer successfully
0:00:00.276977895  4804 00000000026C4000 INFO                 x265enc
gstx265enc.c:1258:plugin_init: x265 build: 160
0:00:00.277030757  4804 00000000026C4000 INFO      GST_PLUGIN_LOADING
gstplugin.c:901:_priv_gst_plugin_load_file_for_registry: plugin
"C:\MinGW\msys\1.0\home\mfigueroa\cerbero\build\dist\windows_x86_64\lib\gstreamer-1.0\libgstx265.dll"
loaded
0:00:00.277086261  4804 00000000026C4000 INFO     GST_ELEMENT_FACTORY
gstelementfactory.c:361:gst_element_factory_create: creating element
"x265enc"
0:00:00.277251641  4804 00000000026C4000 INFO        GST_ELEMENT_PADS
gstelement.c:670:gst_element_add_pad:<GstVideoEncoder at 00000000027A28D0>
adding pad 'sink'
0:00:00.277292797  4804 00000000026C4000 INFO        GST_ELEMENT_PADS
gstelement.c:670:gst_element_add_pad:<GstVideoEncoder at 00000000027A28D0>
adding pad 'src'


I'm not sure why it exits here silently.  I can inspect the x264 encoder
and that works as expected.

Is there something I'm missing?  Do I need to rebuild any other gstreamer
libraries or plugins to get the x265 encoder to function?

Thank you for the help.

Matt

-- 

*Matthew Figueroa * |  Senior Software Developer
*VT MÄK  | *150 Cambridge Park Drive, Third Floor, Cambridge, MA 02140
T: +1.617.876.8085 x123 <%2B1.617.876.8085>  |  F: +1.617.876.0032  |
 C:+1.781.603.4419
mfigueroa at mak.com  |  www.mak.com



[image: Linked In: company/MAK] <http://www.linkedin.com/company/mak> [image:
Twitter: #!/vtmak] <https://twitter.com/VTMAK>  <https://vimeo.com/vtmak>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20180605/df17b700/attachment.html>


More information about the gstreamer-devel mailing list