GStreamer on Qt for iOS
Matthew Waters
ystreet00 at gmail.com
Thu May 20 09:39:15 UTC 2021
Are you missing
https://gitlab.freedesktop.org/gstreamer/gst-examples/-/blob/master/playback/player/ios/GstPlay/gst_ios_init.m
<https://gitlab.freedesktop.org/gstreamer/gst-examples/-/blob/master/playback/player/ios/GstPlay/gst_ios_init.m>
and the corresponding .h file? Everything is linked in statically on
iOS and you need to manually declare and register each GStreamer plugin
you want to use.
Cheers
-Matt
On 18/5/21 7:04 pm, Luis via gstreamer-devel wrote:
> Thanks for the hint.
>
> I've made smoe progress.
>
> So far I've managed to correctly link the library and successfully run the
> project in the Simulator, but when I try to create GStreamer elements it
> *fails* at runtime.
>
> Here it is my .pro
>
> #iOS
> INCLUDEPATH +=
> /Users/user/Library/Developer/GStreamer/iPhone.sdk/GStreamer.framework/Headers
> LIBS += -F /Users/user/Library/Developer/GStreamer/iPhone.sdk -framework
> GStreamer
>
> LIBS +=
> -L/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/lib
> -liconv
>
> QMAKE_IOS_DEPLOYMENT_TARGET = 12.0
>
> # Universal target (iPhone and iPad)
> QMAKE_APPLE_TARGETED_DEVICE_FAMILY = 1,2
>
> QMAKE_APPLE_DEVICE_ARCHS = arm64
> QMAKE_APPLE_SIMULATOR_ARCHS = x86_64
>
>
>
> And here it is where the application fails:
>
> data.pipeline = gst_pipeline_new ("pipeline");
> qDebug() << "pipeline" << data.pipeline;
>
> data.udpsrc = gst_element_factory_make("udpsrc", NULL);
> data.rtph264depay = gst_element_factory_make("rtph264depay", NULL);
> data.avdec_h264 = gst_element_factory_make("avdec_h264", NULL);
> data.videoconvert = gst_element_factory_make("videoconvert", NULL);
> data.videoflip = gst_element_factory_make ("videoflip", NULL);
>
> qDebug() << "udpsrc" << data.udpsrc;
> qDebug() << "rtph264depay" << data.rtph264depay;
> qDebug() << "avdec_h264" << data.avdec_h264;
> qDebug() << "videoconvert" << data.videoconvert;
> qDebug() << "videoflip" << data.videoflip;
>
>
>
> *All the calls to gst_element_factory_make return null.*
>
> Additional Info
>
> Qt 5.15.2
> Xcode 12.5
> Develop on Big Sur
>
> Any ideas?
>
> Thanks
>
>
>
>
>
>
> --
> Sent from: http://gstreamer-devel.966125.n4.nabble.com/
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature
Type: application/pgp-signature
Size: 495 bytes
Desc: OpenPGP digital signature
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20210520/b9d5d971/attachment.sig>
More information about the gstreamer-devel
mailing list