Synchronizing two MPEG-4 streams
Posted: 17 Nov 2008 09:50
Hi!
I'm developing an application that should be able to play two different MPEG-4 streams next to each other. In addition, the two streams should be synchronized (i.e. they should both display frame #n at the same time).
I've used wxWidgets and libVLC to create the GUI and play the videos, but my challenge now is the sync. As of now, I use the libvlc_media_player_play() command to first start playing video 1 and then video 2. This causes a slight delay for video 2 compared to video 1, a delay which may vary slightly each time I run the application.
Does anyone know if I would be able to solve this task using libvlc, or does anyone know of any other way to do this (not including libvlc at all)?
Thank you for your help!
I'm developing an application that should be able to play two different MPEG-4 streams next to each other. In addition, the two streams should be synchronized (i.e. they should both display frame #n at the same time).
I've used wxWidgets and libVLC to create the GUI and play the videos, but my challenge now is the sync. As of now, I use the libvlc_media_player_play() command to first start playing video 1 and then video 2. This causes a slight delay for video 2 compared to video 1, a delay which may vary slightly each time I run the application.
Does anyone know if I would be able to solve this task using libvlc, or does anyone know of any other way to do this (not including libvlc at all)?
Thank you for your help!