GNOME Bugzilla – Bug 104185
ESDSINK does not sync
Last modified: 2004-12-22 21:47:04 UTC
i've compiled gstreamer/gst-plugins with no opt flags and used esdsink but my mpeg are not sync'ing. command: gst-launch --gst-scheduler=opt filesrc location="/home/mathew/Downloads/video/mpeg/beautifulvid.mpeg" ! mpegdemux video_%02d! { queue ! mpeg2dec ! xvideosink } mpegdemux0.audio_%02d! { queue ! mad ! esdsink } I've tried to add sync=true to esdsink but thats not an option.
Yeah, I've noticed esd isn't working properly too yesterday. Would be nice to get this fixed, maybe someone should comment on what should be done to get it right.
esdsink can't sync properly because it doesn't have a clock. Nobody bothered to add a clock to esdsink because the esd daemon doesn't report the latency from samples being written to the actual audio output. Thus, any attempt at synchronization relies on heuristics and guesses. I recently added a clock to esdsink in HEAD, just because it's easy now (due to various other changes). The results are uninteresting. Instead of being "way off", it's just "a bit off", with about the same level of annoyance. I have no intention of backporting this to 0.6. Esd is simply not capable of synchronizing with video. Thus, I'm marking the bug fixed. If further discussion is warranted, please reopen. (Note that there are semi-related patches to esdsink that I do plan to backport, since they affect bugs that are actually solvable.)