Runtime issue with basic-tutorial-4.c mac M1
Running on mac mini M1, Ventura 13.4.1(c). FYI have renamed basic-tutorial-4.c to tut4.c locally for ease of use.
When running basic-tutorial-4 (tut4) — code compiles clean; generates errors execution:
. /tut4
Pipeline state changed from NULL to READY:
Pipeline state changed from READY to PAUSED:
Pipeline state changed from PAUSED to PLAYING:
Seeking is ENABLED from 0:00:00.000000000 to 0:00:52.250000000
Position 0:00:10.080000000 / 0:00:52.250000000
Reached 10s, performing seek...
Pipeline state changed from PAUSED to PAUSED:
Error received from element matroskademux0: Could not demultiplex stream.
Debugging information: ../subprojects/gst-plugins-good/gst/matroska/matroska-demux.c(5364): gst_matroska_demux_check_read_size (): /GstPlayBin:playbin/GstURIDecodeBin:uridecodebin0/GstDecodeBin:decodebin0/GstMatroskaDemux:matroskademux0:
reading large block of size 179617147 not supported; file might be corrupt.
%
PLEASE ADIVSE best fix asap - thanks.
Prep steps & compile, per GStreamer tutorial docs:
— set environment for pkg-config
Tell pkg-config where to find the .pc files
export PKG_CONFIG_PATH=/Library/Frameworks/GStreamer.framework/Versions/1.0/lib/pkgconfig
We will use the pkg-config provided by the GStreamer.framework
export PATH=/Library/Frameworks/GStreamer.framework/Versions/1.0/bin:$PATH
— Compile and link
gcc tut4.c -o tut4
pkg-config --cflags --libs gstreamer-1.0``
otool -L tut4 provide the following output
% otool -L tut4
tut4:
/opt/homebrew/opt/gstreamer/lib/libgstreamer-1.0.0.dylib (compatibility version 2205.0.0, current version 2205.0.0)
/opt/homebrew/opt/glib/lib/libgobject-2.0.0.dylib (compatibility version 7601.0.0, current version 7601.4.0)
/opt/homebrew/opt/glib/lib/libglib-2.0.0.dylib (compatibility version 7601.0.0, current version 7601.4.0)
/opt/homebrew/opt/gettext/lib/libintl.8.dylib (compatibility version 12.0.0, current version 12.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1319.100.3)
%