Playing next file after another

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

Playing next file after another

Sakurazuka
Hi.

In my pipeline mixing music with input from microphone. I have queue of file paths. I want to open next file after first is finished. How should I do that?

I'm using filesrc. Even when I set pipeline to Ready or Null after first track I got the same warning:

** (<unknown>:5232): WARNING **: Changing the `location' property on filesrc when a file is open is not supported.

How should I close file then?
Reply | Threaded
Open this post in threaded view
|

Re: Playing next file after another

Ralph
Sakurazuka wrote
Hi.

In my pipeline mixing music with input from microphone. I have queue of file paths. I want to open next file after first is finished. How should I do that?

I'm using filesrc. Even when I set pipeline to Ready or Null after first track I got the same warning:

** (<unknown>:5232): WARNING **: Changing the `location' property on filesrc when a file is open is not supported.

How should I close file then?
You should intercept the "about-to-finish" signal and change the URI in the event handler.  I don't have any working example at hand, but I'm pretty sure you should be able to find one after a few minutes of googling.
Reply | Threaded
Open this post in threaded view
|

Re: Playing next file after another

rossana
Sorry I come intho this conversation, but I had a similar problem. I got an error when I did it with video files, it advices me that I can't change the state of the pipeline. I tryed to pause and set play after setting the URI, but then I got a segmentation faul error.
Thanks

Rossana

2012/1/17 Ralph <[hidden email]>

Sakurazuka wrote
>
> Hi.
>
> In my pipeline mixing music with input from microphone. I have queue of
> file paths. I want to open next file after first is finished. How should I
> do that?
>
> I'm using filesrc. Even when I set pipeline to Ready or Null after first
> track I got the same warning:
>
> ** (<unknown>:5232): WARNING **: Changing the `location' property on
> filesrc when a file is open is not supported.
>
> How should I close file then?
>

You should intercept the "about-to-finish" signal and change the URI in the
event handler.  I don't have any working example at hand, but I'm pretty
sure you should be able to find one after a few minutes of googling.

--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/Playing-next-file-after-another-tp4303264p4303538.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.
_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel


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

Re: Playing next file after another

Sakurazuka
In reply to this post by Ralph
Thanks for advice, I'll check it out. Although I think changing uri may be possible only while using playbin.
Reply | Threaded
Open this post in threaded view
|

Re: Playing next file after another

rossana
If it works for you I'd like to know how you did it, thanks
Rossana

2012/1/17 Sakurazuka <[hidden email]>
Thanks for advice, I'll check it out. Although I think changing uri may be
possible only while using playbin.

--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/Playing-next-file-after-another-tp4303264p4304339.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.
_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel


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

Re: Playing next file after another

Stefan Sauer
In reply to this post by rossana
On 01/17/2012 06:59 PM, Rossana Guerra wrote:
Sorry I come intho this conversation, but I had a similar problem. I got an error when I did it with video files, it advices me that I can't change the state of the pipeline. I tryed to pause and set play after setting the URI, but then I got a segmentation faul error.

if you get a segfault, then repeat running your code under gdb and paste the backtrace here.

Stefan
Thanks

Rossana

2012/1/17 Ralph <[hidden email]>

Sakurazuka wrote
>
> Hi.
>
> In my pipeline mixing music with input from microphone. I have queue of
> file paths. I want to open next file after first is finished. How should I
> do that?
>
> I'm using filesrc. Even when I set pipeline to Ready or Null after first
> track I got the same warning:
>
> ** (<unknown>:5232): WARNING **: Changing the `location' property on
> filesrc when a file is open is not supported.
>
> How should I close file then?
>

You should intercept the "about-to-finish" signal and change the URI in the
event handler.  I don't have any working example at hand, but I'm pretty
sure you should be able to find one after a few minutes of googling.

--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/Playing-next-file-after-another-tp4303264p4303538.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.
_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

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


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