Building Gstreamer with rust support

Rodrigo Santos rsantos at sequence.film
Tue Nov 1 15:12:09 UTC 2022


Sebastian,



Thanks for the response, finally I was able to build it. 



However I'm running into another issue. I can successfully load the devenv target by running "ninja -C builddir devenv". From that env, ges-launch-1.0 fails to resolve URIs. For instance:



*******************************************************************************************************************************************************************
[main] rodsantos at LAPTOP-8G8CM6GI:~/workspace/gstreamer/builddir$ ges-launch-1.0 +clip file:///home/rodsantos/workspace/sequence/gst-nle-playground/media/IMG_3117.MOV 

Press 'k' to see a list of keyboard shortcuts.

0:00:00.115209303   495 0x55ee626fbc30 ERROR                    ges ges-uri-asset.c:726:ges_uri_clip_asset_request_sync: Got an error requesting asset: Stream file:///home/rodsantos/workspace/sequence/gst-nle-playground/media/IMG_3117.MOV discovering failed (error code: 5)

Error loading asset file:///home/rodsantos/workspace/sequence/gst-nle-playground/media/IMG_3117.MOV: Stream file:///home/rodsantos/workspace/sequence/gst-nle-playground/media/IMG_3117.MOV discovering failed (error code: 5)



Error loading asset file:///home/rodsantos/workspace/sequence/gst-nle-playground/media/IMG_3117.MOV: Stream file:///home/rodsantos/workspace/sequence/gst-nle-playground/media/IMG_3117.MOV discovering failed (error code: 5)



0:00:00.115441103   495 0x55ee626fbc30 ERROR                    ges ges-structured-interface.c:509:_ges_get_asset_from_timeline: There was an error requesting the asset with id file:///home/rodsantos/workspace/sequence/gst-nle-playground/media/IMG_3117.MOV and type GESUriClip (Stream file:///home/rodsantos/workspace/sequence/gst-nle-playground/media/IMG_3117.MOV discovering failed (error code: 5))

0:00:00.115539403   495 0x55ee626fbc30 ERROR                    ges ges-command-line-formatter.c:777:_load: Could not execute: clip, asset-id=(string)file:///home/rodsantos/workspace/sequence/gst-nle-playground/media/IMG_3117.MOV, type=(string)GESUriClip;, error: Stream file:///home/rodsantos/workspace/sequence/gst-nle-playground/media/IMG_3117.MOV discovering failed (error code: 5)



ERROR: Could not create timeline because: Stream file:///home/rodsantos/workspace/sequence/gst-nle-playground/media/IMG_3117.MOV discovering failed (error code: 5)





0:00:00.115881003   495 0x55ee626fbc30 ERROR                default ges-launcher.c:1138:_create_pipeline: Could not create the timeline

*******************************************************************************************************************************************************************





But if I run gst-launch-1.0 using that very same URI from within the devenv the pipeline works:



*******************************************************************************************************************************************************************

[main] rodsantos at LAPTOP-8G8CM6GI:~/workspace/gstreamer/builddir$ gst-launch-1.0 uridecodebin uri=file:///home/rodsantos/workspace/sequence/gst-nle-playground/media/IMG_3117.MOV ! autovideosink 

Setting pipeline to PAUSED ...

Pipeline is PREROLLING ...

Got context from element 'autovideosink0': gst.gl.GLDisplay=context, gst.gl.GLDisplay=(GstGLDisplay)"\(GstGLDisplayWayland\)\ gldisplaywayland0";

Redistribute latency...

Redistribute latency...

Missing element: meta/x-gst-fourcc-mebx decoder

WARNING: from element /GstPipeline:pipeline0/GstURIDecodeBin:uridecodebin0: No decoder available for type 'meta/x-gst-fourcc-mebx'.

Additional debug info:

../subprojects/gst-plugins-base/gst/playback/gsturidecodebin.c(982): unknown_type_cb (): /GstPipeline:pipeline0/GstURIDecodeBin:uridecodebin0

Missing element: meta/x-gst-fourcc-mebx decoder

WARNING: from element /GstPipeline:pipeline0/GstURIDecodeBin:uridecodebin0: No decoder available for type 'meta/x-gst-fourcc-mebx'.

Additional debug info:

../subprojects/gst-plugins-base/gst/playback/gsturidecodebin.c(982): unknown_type_cb (): /GstPipeline:pipeline0/GstURIDecodeBin:uridecodebin0

Redistribute latency...

Pipeline is PREROLLED ...0 %)

Setting pipeline to PLAYING ...

Redistribute latency...

New clock: GstSystemClock

Got EOS from element "pipeline0".

Execution ended after 0:00:03.001920816

Setting pipeline to NULL ...

Freeing pipeline ..

*******************************************************************************************************************************************************************





When I exit devenv and run the ges-launch command, again using the same URI, everyting works:



*******************************************************************************************************************************************************************

rodsantos at LAPTOP-8G8CM6GI:~/workspace/gstreamer$ ges-launch-1.0 +clip file:///home/rodsantos/workspace/sequence/gst-nle-playground/media/IMG_3117.MOV 

Press 'k' to see a list of keyboard shortcuts.



Timeline description: `+track audio +track video +clip file:///home/rodsantos/workspace/sequence/gst-nle-playground/media/IMG_3117.MOV d=3.000000 n=uriclip0`

====================



  layer 0:

  --------

    - Clip from: 'file:///home/rodsantos/workspace/sequence/gst-nle-playground/media/IMG_3117.MOV' [∋Quicktime, ♫MPEG-4 AAC, ▶H.264 (High Profile)]

        start=0:00:00.000000000 duration=0:00:03.001666666



AL lib: (EE) ALCplaybackAlsa_open: Could not open playback device 'default': No such file or directory

<position: 0:00:02.910085556 duration: 0:00:03.001666666/>

Done

*******************************************************************************************************************************************************************





I'm running Ubuntu using WSL2 on Windows. Any insights? 




Rodrigo Santos








---- On Tue, 01 Nov 2022 06:22:35 -0300 Sebastian Dröge via gstreamer-devel <gstreamer-devel at lists.freedesktop.org> wrote ---



On Tue, 2022-11-01 at 01:02 -0300, Rodrigo Santos via gstreamer-devel wrote:

I have libpango1.0-dev version 1.50.6+ds-2.



I'm sending attached the build and meson logs.



PS: ninja.log is the output of the ninja -C builddir command, other log files are build artifacts generated by meson and ninja.





Did you install libpango1.0-dev after the first build try?

It looks like it would be using the system version, but your build directory contains another version and that's the one with the broken pkg-config file.



Maybe try removing the whole build directory and then running things again.



Also you might want to install gobject-introspection from your distro too, as well as many other packages.

It's building a lot of things as part of GStreamer now that you could easily get from your distro.



-- 

Sebastian Dröge, Centricular Ltd · https://www.centricular.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20221101/16975efb/attachment.htm>


More information about the gstreamer-devel mailing list