How to play a list of MP4 files succesively

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

How to play a list of MP4 files succesively

BING SHUANG

Hi,
     I am working on a project needs to play several MP4 files succesively, which should be played continuously (succesively as it was only one file).
     Is it possible for this functions in gstreamer?
     I know there is a plugin named "applehlssrc" for playing .m3u8 playlist contains a list of ".ts" stream, so I want to know is there such a plugin can support a playlist contains a list of MP4 files/streams and play succesively? Which kind of playlist will it be?  
     Or how can I design a plugin in gstreamer for supporting suck kind of functions?

     I am newer in gstreamer and I really need your help.
     Thank you very much!

 

Best Regards!

 

双兵/Bing Shuang

--

LG Electronics (Shanghai) R&D Center

Tel: 021-5854 0114 - 8203

Fax: 021-5854 0102

E-mail: [hidden email]

 


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

Re: How to play a list of MP4 files succesively

Stefan Sauer
Am 09.06.2011 10:30, schrieb BING SHUANG:
> Hi,
>      I am working on a project needs to play several MP4 files succesively,
> which should be played continuously (succesively as it was only one file).
>      Is it possible for this functions in gstreamer?
>      I know there is a plugin named "applehlssrc" for playing .m3u8 playlist
> contains a list of ".ts" stream, so I want to know is there such a plugin can
> support a playlist contains a list of MP4 files/streams and play succesively?
> Which kind of playlist will it be?  

GStreamer won't do the playlist handling. But please have a look at gap-less
playback in playin2 ("about-to-finish" signal). You should be able to implement
your case with that.

Stefan

>      Or how can I design a plugin in gstreamer for supporting suck kind of
> functions?
>
>      I am newer in gstreamer and I really need your help.
>      Thank you very much!
>
>  
>
> Best Regards!
>
>  
>
> 双兵/Bing Shuang
>
> --
>
> LG Electronics (Shanghai) R&D Center
>
> Tel: 021-5854 0114 - 8203
>
> Fax: 021-5854 0102
>
> E-mail: [hidden email]
>
>  
>
>
>
> _______________________________________________
> 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: How to play a list of MP4 files succesively

bigbilly
Thank you for your reply.
I have build a simple player to process the "about-to-finish" signal, the player uses playbin2 to build a pipeline and filesrc element to source the MP4 files.
I used two mp4 files for testing the gapless playback, and the mp4 video can play succesively except some problems:
1. there is no audio for the second clip
2. when the second clip start, the play position value get with function "gst_element_query_position" keeps the value equaling to the duration of first clip, which means it can not get the real play position of the second clip
3. if I do a seek operation during the playing of the second mp4, the audio will come and play position value will be the real position

So, could you please give me some more advices, thank you very much!

Reply | Threaded
Open this post in threaded view
|

Re:Re: How to play a list of MP4 files succesively

bigbilly
In reply to this post by Stefan Sauer
Thank you for your reply.
I have build a simple player to process the "about-to-finish" signal, the player uses playbin2 to build a pipeline and filesrc element to source the MP4 files.
I used two mp4 files for testing the gapless playback, and the mp4 video can play succesively except some problems:
1. there is no audio for the second clip
2. when the second clip start, the play position value get with function "gst_element_query_position" keeps the value equaling to the duration of first clip, which means it can not get the real play position of the second clip
3. if I do a seek operation during the playing of the second mp4, the audio will come and play position value will be the real position

So, could you please give me some more advices, thank you very much!


--
Best Regards!

Billy Shuang
 

在2011-06-09 19:36:00,"Stefan Kost" <[hidden email]> 写道:
>Am 09.06.2011 10:30, schrieb BING SHUANG:
>> Hi,
>>      I am working on a project needs to play several MP4 files succesively,
>> which should be played continuously (succesively as it was only one file).
>>      Is it possible for this functions in gstreamer?
>>      I know there is a plugin named "applehlssrc" for playing .m3u8 playlist
>> contains a list of ".ts" stream, so I want to know is there such a plugin can
>> support a playlist contains a list of MP4 files/streams and play succesively?
>> Which kind of playlist will it be?  
>
>GStreamer won't do the playlist handling. But please have a look at gap-less
>playback in playin2 ("about-to-finish" signal). You should be able to implement
>your case with that.
>
>Stefan
>
>>      Or how can I design a plugin in gstreamer for supporting suck kind of
>> functions?
>> 
>>      I am newer in gstreamer and I really need your help.
>>      Thank you very much!
>> 
>>  
>> 
>> Best Regards!
>> 
>>  
>> 

>> 
>>  
>> 
>> 
>> 
>> _______________________________________________
>> 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
Reply | Threaded
Open this post in threaded view
|

Re: How to play a list of MP4 files succesively

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

Re: How to play a list of MP4 files succesively

bigbilly
hi, Stefan Kost,
Thank you very much for you reply of my questions!
And can you give me further support on the problems I found later that I have posted above?
Thank you!