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 |
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 |
In reply to this post by hammerwerfer
Instead of using two filesrc use "multifilesrc" plugin. For multifile sink file names to be indexed properly. |
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? 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 |
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 |
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 |
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 |
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 |
Free forum by Nabble | Edit this page |