gstreamer elements are processed in a random order?!

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

gstreamer elements are processed in a random order?!

hammerwerfer
Hi,

I am creating a pipeline to concatenate two audio files:with the following gst command:
  cmd = "concat name=c ! queue ! audioconvert ! wavenc ! filesink location=/tmp/output.wav filesrc location=/tmp/first.mp3 ! decodebin ! c. filesrc location=/tmp/second.mp3 ! decodebin ! c."
  pipeline = Gst.parse_launch(cmd)

This works quite well for me but the order of the input files is random. i always execute the same command but sometimes "first.mp3" comes first and sometimes it comes on the second place. Are the elements organized internally in a dictionary/map? Is there kind of "rank" or "priority" property to order the filesrc elements?

Regards,
Jens
Reply | Threaded
Open this post in threaded view
|

how to convert bmp images to vedio using gstreamer

asmaster

Hi,

I need to to convert some bmp images to vedio, their contect is continous, I haven't used gstreamer before.
So could some one give me a roadmap how to achive it. Some as using appsrc->videoparse->??->??->ximagesink ?
Thank you very much!


--
Best Regards,
Tom



 


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

Re: gstreamer elements are processed in a random order?!

Vnd
In reply to this post by hammerwerfer

Instead of using two filesrc use "multifilesrc" plugin.
For multifile sink file names to be indexed properly.
Reply | Threaded
Open this post in threaded view
|

Re: gstreamer elements are processed in a random order?!

Sebastian Dröge-3
In reply to this post by hammerwerfer
On Do, 2016-02-25 at 13:39 -0800, hammerwerfer wrote:

> Hi,
>
> I am creating a pipeline to concatenate two audio files:with the following
> gst command:
>
>
> This works quite well for me but the order of the input files is random. i
> always execute the same command but sometimes "first.mp3" comes first and
> sometimes it comes on the second place. Are the elements organized
> internally in a dictionary/map? Is there kind of "rank" or "priority"
> property to order the filesrc elements?
There is no pipeline in your mail, that part is missing. I see that
you're using nabble, don't use that for writing mails to this list as
it often corrupts mails, like dropping content.

--
Sebastian Dröge, Centricular Ltd · http://www.centricular.com


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

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

Aw: Re: gstreamer elements are processed in a random order?!

hammerwerfer
Oh ok. This is my pipeline command:
 
  cmd = "concat name=c ! queue ! audioconvert ! wavenc ! filesink location=/tmp/output.wav filesrc location=/tmp/first.mp3 ! decodebin ! c. filesrc location=/tmp/second.mp3 ! decodebin ! c."
  pipeline = Gst.parse_launch(cmd)
 
@vinod: If i see multifilesrc correctly it needs numbered filenames. Ok i could rename my source files first, but i would prefer using them directly
 
 
Gesendet: Freitag, 26. Februar 2016 um 08:11 Uhr
Von: "Sebastian Dröge" <[hidden email]>
An: "Discussion of the development of and with GStreamer" <[hidden email]>
Betreff: Re: gstreamer elements are processed in a random order?!
On Do, 2016-02-25 at 13:39 -0800, hammerwerfer wrote:
> Hi,
>
> I am creating a pipeline to concatenate two audio files:with the following
> gst command:
>
>
> This works quite well for me but the order of the input files is random. i
> always execute the same command but sometimes "first.mp3" comes first and
> sometimes it comes on the second place. Are the elements organized
> internally in a dictionary/map? Is there kind of "rank" or "priority"
> property to order the filesrc elements?

There is no pipeline in your mail, that part is missing. I see that
you're using nabble, don't use that for writing mails to this list as
it often corrupts mails, like dropping content.

--
Sebastian Dröge, 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: how to convert bmp images to vedio using gstreamer

Vivia Nikolaidou
In reply to this post by asmaster
Hi Tom,

Looks like multifilesrc is what you need. Take a look at it:
gst-inspect-1.0 multifilesrc. For example, I have this directory:
$ ls -1
IMG_7529.JPG
IMG_7530.JPG
IMG_7531.JPG
IMG_7532.JPG
IMG_7533.JPG
IMG_7534.JPG

In here, I run this pipeline:
gst-launch-1.0 multifilesrc location="IMG_%04d.JPG" index=7529 !
decodebin ! autovideosink

And it creates a slideshow based on these files. If you want to look
at more properties, take a look at:
gst-inspect-1.0 multifilesrc


On 26 February 2016 at 05:19, 王晓逸 <[hidden email]> wrote:

>
> Hi,
>
> I need to to convert some bmp images to vedio, their contect is continous, I
> haven't used gstreamer before.
> So could some one give me a roadmap how to achive it. Some as using
> appsrc->videoparse->??->??->ximagesink ?
> Thank you very much!
>
>
> --
> Best Regards,
> Tom
>
>
>
>
>
>
> _______________________________________________
> 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: Aw: Re: gstreamer elements are processed in a random order?!

Sebastian Dröge-3
In reply to this post by hammerwerfer
On Fr, 2016-02-26 at 13:58 +0100, [hidden email] wrote:
> Oh ok. This is my pipeline command:
>  
>   cmd = "concat name=c ! queue ! audioconvert ! wavenc ! filesink
> location=/tmp/output.wav filesrc location=/tmp/first.mp3 ! decodebin
> ! c. filesrc location=/tmp/second.mp3 ! decodebin ! c."
>   pipeline = Gst.parse_launch(cmd)

Build your pipeline not from a gst-launch pipeline string, then it will
work. concat will output the files in the order in which you requested
the sink pads on it.

gst-launch is also not completely random, but IIRC it links everything
from end to beginning.

--
Sebastian Dröge, Centricular Ltd · http://www.centricular.com


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

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

Aw: Re: Re: gstreamer elements are processed in a random order?!

hammerwerfer
Thanks a lot that worked. First i only add filesrc and decodebin element for the first file. In my pad_added handler i link the pad and add the elements for the next file and so on. Then all source are processed in the right order.
 
Gesendet: Freitag, 26. Februar 2016 um 19:32 Uhr
Von: "Sebastian Dröge" <[hidden email]>
An: "Discussion of the development of and with GStreamer" <[hidden email]>
Betreff: Re: Aw: Re: gstreamer elements are processed in a random order?!
On Fr, 2016-02-26 at 13:58 +0100, [hidden email] wrote:
> Oh ok. This is my pipeline command:
>  
>   cmd = "concat name=c ! queue ! audioconvert ! wavenc ! filesink
> location=/tmp/output.wav filesrc location=/tmp/first.mp3 ! decodebin
> ! c. filesrc location=/tmp/second.mp3 ! decodebin ! c."
>   pipeline = Gst.parse_launch(cmd)

Build your pipeline not from a gst-launch pipeline string, then it will
work. concat will output the files in the order in which you requested
the sink pads on it.

gst-launch is also not completely random, but IIRC it links everything
from end to beginning.

--
Sebastian Dröge, 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