GStreamer on Qt for iOS

Luis francesco.moscara at gmail.com
Tue May 18 09:04:55 UTC 2021


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/


More information about the gstreamer-devel mailing list