appsrc not working with GST_APP_STREAM_TYPE_RANDOM_ACCESS

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

appsrc not working with GST_APP_STREAM_TYPE_RANDOM_ACCESS

Mikl
Hello,

I have pipeline:
appsrc ! videoconvert ! jpegenc ! matroskamux ! filesink

It is working only if appsrc stream type is GST_APP_STREAM_TYPE_STREAM

i am doing this so:
gst_app_src_set_stream_type((GstAppSrc*)appsrc, GST_APP_STREAM_TYPE_STREAM);

GST_APP_STREAM_TYPE_SEEKABLE
and
GST_APP_STREAM_TYPE_RANDOM_ACCESS

is not working: pipeline is not starting.
status = gst_element_set_state(_pipeline, GST_STATE_PLAYING);

Is anyboby know, it is normal so?

Mikl
Reply | Threaded
Open this post in threaded view
|

Re: appsrc not working with GST_APP_STREAM_TYPE_RANDOM_ACCESS

Tim Müller
On Fri, 2016-10-14 at 05:34 -0700, Mikl wrote:

Hi,

> I have pipeline:
> appsrc ! videoconvert ! jpegenc ! matroskamux ! filesink
>
> It is working only if appsrc stream type is
> /GST_APP_STREAM_TYPE_STREAM/
> and GST_APP_STREAM_TYPE_RANDOM_ACCESS
> is not working: pipeline is not starting.
> status = gst_element_set_state(_pipeline, GST_STATE_PLAYING);
> Is anyboby know, it is normal so?

Yes, none of these elements work in pull mode, and RANDOM_ACCESS
doesn't really make sense here. What are you trying to achieve?

Cheers
 -Tim

--
Tim Müller, Centricular Ltd - http://www.centricular.com
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: appsrc not working with GST_APP_STREAM_TYPE_RANDOM_ACCESS

Mikl

I was hopping to gain the speed during playback later.


(this topic is related to my another one http://gstreamer-devel.966125.n4.nabble.com/Speed-up-seek-td4680047.html)


As you can read here

https://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base-libs/html/gst-plugins-base-libs-appsrc.html#GstAppStreamType


GST_APP_STREAM_TYPE_STREAM

No seeking is supported in the stream, such as a live stream.

 

GST_APP_STREAM_TYPE_SEEKABLE

The stream is seekable but seeking might not be very fast, such as data from a webserver.

 

GST_APP_STREAM_TYPE_RANDOM_ACCESS

The stream is seekable and seeking is fast, such as in a local file.

 

Mikl


From: gstreamer-devel <[hidden email]> on behalf of Tim Müller <[hidden email]>
Sent: Friday, October 14, 2016 3:48:12 PM
To: [hidden email]
Subject: Re: appsrc not working with GST_APP_STREAM_TYPE_RANDOM_ACCESS
 
On Fri, 2016-10-14 at 05:34 -0700, Mikl wrote:

Hi,

> I have pipeline:
> appsrc ! videoconvert ! jpegenc ! matroskamux ! filesink
>
> It is working only if appsrc stream type is
> /GST_APP_STREAM_TYPE_STREAM/
> and GST_APP_STREAM_TYPE_RANDOM_ACCESS
> is not working: pipeline is not starting.
> status = gst_element_set_state(_pipeline, GST_STATE_PLAYING);
> Is anyboby know, it is normal so?

Yes, none of these elements work in pull mode, and RANDOM_ACCESS
doesn't really make sense here. What are you trying to achieve?

Cheers
 -Tim

--
Tim Müller, Centricular Ltd - http://www.centricular.com
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: appsrc not working with GST_APP_STREAM_TYPE_RANDOM_ACCESS

Tim Müller
On Fri, 2016-10-14 at 13:55 +0000, Michael Yarochkin wrote:

Hi,

> I was hopping to gain the speed during playback later.

This is only about how appsrc is scheduled, it won't make any
difference to how the file is created or the seeking speed in the file
later.

You don't seek here in appsrc. You just produce buffers and these
buffers will be encoded and written to file.

Cheers
 -Tim

--
Tim Müller, Centricular Ltd - http://www.centricular.com
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel