GNOME Bugzilla – Bug 340842
do latency calculation for live sources
Last modified: 2007-05-19 13:28:44 UTC
Hi, with the latest releases of everything on Ubuntu Dapper alsasrc only records the first second. When doing gst-launch-0.10 alsasrc ! alsasink (or even when adding a audioconvert in between) the first second is played and silence after that. audiotestsrc works fine. This is the log when running it with debug level 3: http://librarian.launchpad.net/2492374/gst-launch.log Bye Ubuntu Bug: https://launchpad.net/distros/ubuntu/+source/gst-plugins-base0.10/+bug/42998
Try increasing the latency-time property on alsasrc. I suspect your problem is that the audio is being discarded by the alsasink as arriving too late.
Doesn't change anything
cannot be made to work out of the box since we don't do latency calculation yet. adding sync=false to alsasink should somewhat work better. Using this bug to track this issue.
Yes sync=false solves this problem
Created attachment 79947 [details] [review] first attempt This is the current status in my local tree. It's based on docs/design/draft-latency.txt. TODO: - implement latency calculation - implement SET_LATENCY event - clean up GstBinState MESSAGE
*** Bug 399606 has been marked as a duplicate of this bug. ***
When running the pipeline now with the latest versions of everything one gets LC_ALL=C gst-launch-0.10 alsasrc ! alsasink Setting pipeline to PAUSED ... Pipeline is live and does not need PREROLL ... Setting pipeline to PLAYING ... New clock: audioclock0 WARNING: Element "alsasink0" warns: gstbaseaudiosink.c(696): gst_base_audio_sink_render (): /pipeline0/alsasink0: Unexpected discontinuity in audio timestamps of more than half a second (0:00:00.641224489), resyncing
Created attachment 83564 [details] [review] second attempt Second patch for core that changes the way state changes happen so that the latency query and configuration can be done during the final PAUSED->PLAYING state change of the pipeline.
Created attachment 83566 [details] [review] patch to -base patch to add needed changes to -base plugins, mostly playbin etc..
Created attachment 84312 [details] [review] updated patch for core
Created attachment 84313 [details] [review] updated -base patch
Created attachment 84434 [details] [review] update Updated core patch which removes conflicts and fuzz due to the gst_buffer_copy_metadata API being committed.
commited to CVS now.
*** Bug 439570 has been marked as a duplicate of this bug. ***