Quantcast

videosink on iOS

classic Classic list List threaded Threaded
7 messages Options
jjh
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

videosink on iOS

jjh
Hi,

I'm trying to follow the ios tutorials for gstreamer 1.2.3. However, I
can't find a working way to display video. autovideosink does not seem
to result in something capable of display.

i.e This pipeline succeeds "gst_parse_launch("videotestsrc ! warptv !
videoconvert ! autovideosink", &error);"
but

video_sink = gst_bin_get_by_interface(GST_BIN(pipeline),
GST_TYPE_VIDEO_OVERLAY);

returns nil.

The only way I've been able to get a video overlay is with "playbin"
but I don't want to play media. Does the iOS gstreamer now have a
functioning videosink (I know earlier versions did not).

I apologize if this has already been answered somewhere. I searched
the list archives.

Thanks,
Jonny
_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
jjh
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: videosink on iOS

jjh
I also posted this question on stackoverlow if anyone prefers to answer there.
https://stackoverflow.com/questions/22465227/videosink-on-gstreamer-1-2-3-ios

J

On Mon, Mar 17, 2014 at 11:50 AM, Jonathan Hunt
<[hidden email]> wrote:

> Hi,
>
> I'm trying to follow the ios tutorials for gstreamer 1.2.3. However, I
> can't find a working way to display video. autovideosink does not seem
> to result in something capable of display.
>
> i.e This pipeline succeeds "gst_parse_launch("videotestsrc ! warptv !
> videoconvert ! autovideosink", &error);"
> but
>
> video_sink = gst_bin_get_by_interface(GST_BIN(pipeline),
> GST_TYPE_VIDEO_OVERLAY);
>
> returns nil.
>
> The only way I've been able to get a video overlay is with "playbin"
> but I don't want to play media. Does the iOS gstreamer now have a
> functioning videosink (I know earlier versions did not).
>
> I apologize if this has already been answered somewhere. I searched
> the list archives.
>
> Thanks,
> Jonny
_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: videosink on iOS

Sebastian Dröge-3
In reply to this post by jjh
On Mo, 2014-03-17 at 11:50 -0700, Jonathan Hunt wrote:

> Hi,
>
> I'm trying to follow the ios tutorials for gstreamer 1.2.3. However, I
> can't find a working way to display video. autovideosink does not seem
> to result in something capable of display.
>
> i.e This pipeline succeeds "gst_parse_launch("videotestsrc ! warptv !
> videoconvert ! autovideosink", &error);"
> but
>
> video_sink = gst_bin_get_by_interface(GST_BIN(pipeline),
> GST_TYPE_VIDEO_OVERLAY);
>
> returns nil.
>
> The only way I've been able to get a video overlay is with "playbin"
> but I don't want to play media. Does the iOS gstreamer now have a
> functioning videosink (I know earlier versions did not).
>
> I apologize if this has already been answered somewhere. I searched
> the list archives.
There is a working videosink, eglglessink. And autovideosink will also
autoplug that one. For it to work you'll need to provide it with a
"window" handle to render to as it's not possible to do that from inside
the sink. On iOS you'll have to provide an CEAGLLayer.

You can either set it on the sink in the very beginning with the
GstVideoOverlay interface or at the very latest when you get the
prepare-window-handle message on a sync (!) bus handler.

--
Sebastian Dröge, Centricular Ltd - http://www.centricular.com
Expertise, Straight from the Source

_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

signature.asc (968 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: videosink on iOS

LeoY
Hi,

Thank you for being so proactive that we read many of your answers.
I hope my question did not asked somewhere as I tried to search.

We are developing iOS app to receive a video stream. We are able to run an example using eglglessink in the package 1.2.x , but not autovideosink.

However, it could not retrieve video sink in packages 1.3.x , 1.4.x , 1.5.x. (We tried eglglessink, autovideosink, ximagesink... etc)
Do you know what is the available video sink used packages 1.4.x or 1.5.x?

Thank you in advance.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: videosink on iOS

LeoY
Hi,

We found in other message and are trying to use glimagesink.
The video sink error has been gone, but it comes with the following error:

       Could not create display. user specified (NULL) (platform:(NULL)), creating dummy

Do you know how should the platform be specified?

Thank you very much.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: videosink on iOS

Nicolas Dufresne-3
In reply to this post by LeoY
Le mardi 28 juillet 2015 à 10:47 -0700, Leo Yeung a écrit :
>
> However, it could not retrieve video sink in packages 1.3.x , 1.4.x ,
> 1.5.x.
> (We tried eglglessink, autovideosink, ximagesink... etc)
> Do you know what is the available video sink used packages 1.4.x or
> 1.5.x?

Since 1.4, the sink used for iOS and Android is now named glimagesink.

cheers,
Nicolas

p.s. ignore 1.3, it's a dead development branch, just like 1.5 is
development branch toward future 1.6
_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

signature.asc (188 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: videosink on iOS

Durgesh
In reply to this post by Sebastian Dröge-3
Hi
 I getting same error in gstreamer in ios
it return null on pipeline object

pipeline = gst_parse_launch("udpsrc host=192.168.7.45 port=5000 ! application/x-rtp, payload=96 ! rtpjitterbuffer ! rtph264depay ! avdec_h264 ! autovideosink sync=false text-overlay=false", &error);

or Error no element in udpsrc
Loading...