Gstreamer Filter

740 views
Skip to first unread message

bra...@collabramusic.com

unread,
Feb 9, 2016, 11:26:06 AM2/9/16
to kurento
I'm trying to create a gstreamer filter using the following code:

pipeline.create('GStreamerFilter', {command: 'videorate ! video/x-raw,framerate=25/1'}, (err, videorateFilter) => { });

However doing so generates the following error:

{ [Error: GStreamer filter cannot be created: no element "video"] code: 40001, data: { type: 'MARSHALL_ERROR' } }



I tried to do so using two different filters as well, like below, but that didn't work either.

pipeline.create('GStreamerFilter', {command: 'videorate ! video/x-raw,framerate=25/1'}, (err, videorateFilter) => { });

pipeline.create('GStreamerFilter', {command: 'video/x-raw,framerate=25/1'}, (err, videoFilter) => { });


We're using the RecorderEndpoint to record the video, and I'm trying to make sure the created video has a consistent framerate becuase we were running into issues with Chrome playing back .webm's with drastically changing frame rates.


Any input is much appreciated. Thanks!

Ivan Gracia

unread,
Feb 15, 2016, 3:13:02 PM2/15/16
to Kurento Public
Check that command in GStreamer, as that error is what the library spits to us. Probably the syntax is wrong.

Ivan Gracia



--
You received this message because you are subscribed to the Google Groups "kurento" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kurento+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

David Fernandez Lopez

unread,
Feb 16, 2016, 4:15:46 AM2/16/16
to kur...@googlegroups.com
Hi,

First of all, you only can create one GStreamer element in a GStreamerFilter.

If you would like to create a videorate you should use command: 'videorate'

If you would like to modify the GStreamer caps, you should use a capsfilter element, e.g  command: 'capsfilter caps=video/x-raw,framerate=25/1'

Regards.
David.
--
David Fernández López

David Robison

unread,
Mar 3, 2017, 8:10:54 AM3/3/17
to kurento, bra...@collabramusic.com
Did you ever figure this out? I'm having a similar problem. Thanks. David

Ayaan

unread,
Mar 2, 2018, 2:36:47 PM3/2/18
to kurento
Did you figure this out? We are on the same boat. Thanks.

Israel Robotnick

unread,
Jun 30, 2020, 11:47:14 AM6/30/20
to kurento
David's answer fixed it for me
Reply all
Reply to author
Forward
0 new messages