sintel trailer video doesn't come out but only the sound comes out

H Jumogehn jumogehn at gmail.com
Sun Feb 19 10:59:41 UTC 2023


Hello,

I am newbie about gstreamer.
I just installed gstreamer on my MacOS via this
<https://gstreamer.freedesktop.org/download/#macos:~:text=current%20stable%20version)-,1.22.0%20runtime%20installer,-1.22.0%20development%20installer>
and this
<https://gstreamer.freedesktop.org/data/pkg/osx/1.22.0/gstreamer-1.0-devel-1.22.0-universal.pkg>
.
And then I installed glib and glib-networking via brew install.
Then I git cloned gst-docs <https://github.com/GStreamer/gst-docs.git>.

And then I added some variable settings in ~/.zshrc as shown below:

export
PATH="$PATH:/Library/Frameworks/GStreamer.framework/Versions/Current/bin"

export GST_DEBUG="*:2"


export
PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/Library/Frameworks/GStreamer.framework/Versions/1.0/lib/pkgconfig

export
GIO_EXTRA_MODULES=/Library/Frameworks/GStreamer.framework/Libraries/gio/modules/

And finally I was able to compile the example code -
gst-docs/examples/tutorials/basic-tutorial-1.c

The makefile I use is as shown below:

CFLAGS= \

       -I/opt/homebrew/Cellar/glib/2.74.5/include/glib-2.0 \

       -I/opt/homebrew/Cellar/glib/2.74.5/lib/glib-2.0/include


all:

gcc -o basic-tutorial-1 \

${CFLAGS} \

`pkg-config --cflags gstreamer-plugins-base-1.0` \

basic-tutorial-1.c \

`pkg-config --libs gstreamer-plugins-base-1.0`


clean:

rm basic-tutorial-1


So I was able to compile the example as found the binary - basic-tutorial-1
And I tested this binary. But this only plays audio. The video doesn't come
out.

So I tried the gst-launch as shown below:

gst-launch-1.0 playbin uri=
https://www.freedesktop.org/software/gstreamer-sdk/data/media/sintel_trailer-480p.webm

This produces video and audio both be played very well.

I'd like to know what I missed to make basic-tutorial-1 produces video also.

These doesn't appear any error or warning..

Can someone help me?

I am on Macbook Pro Ventura 13.0.1


And I found a file - /Library/Frameworks/GStreamer.framework/
Versions/1.0/share/gstreamer/gst-env

And I found the variable settings in this file seemed important. How am I
supposed to use this file? Isn't this file related with my problem?

Thank you very much!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20230219/8dea98b5/attachment.htm>


More information about the gstreamer-devel mailing list