Synchronising audio/video playback across multiple pipelines

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

Synchronising audio/video playback across multiple pipelines

David Liu
Hi,

I'd like to time-synchronise media playback across multiple pipelines for a project that I'm working on, e.g. to play/pause/seek multiple video files simultaneously. I have two ideas in mind for how this might work:

1. Set each pipeline to PLAYING/PAUSED state separately, and then manually set the base and start times of each pipeline to the same values. The documentation for the gst_element_set_start_time method suggests this approach, but it's not clear exactly how to go about it.

2. Subclass GstSystemClock and create a custom monotonic clock that can be paused and restarted by my application. To change the pipeline state, the application would (a) pause the clock, (b) change the state of each pipeline, (c) resume the clock.

Are either of these approaches 'correct'? Or is there a better way to go about this? Thanks for your help!


Cheers,

- Dave L


------------------------------------------------------------------------------
This SF.net email is sponsored by

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Synchronising audio/video playback across multiple pipelines

vincentzhu
Hi, People:

I hit the same problem now, is there any solution about this satuation?

Thanks!