gstreamer-1.0 v4l2src ( webcam) + alsasrc has audio_sample drop problem

Nicolas Dufresne nicolas.dufresne at collabora.com
Thu Feb 11 18:03:42 UTC 2016


Le jeudi 11 février 2016 à 03:29 -0800, Ashish Kumar Mishra a écrit :
> *gst-launch-1.0 -v v4l2src do-timestamp=true !
> video/x-raw,width=960,height=720,framerate=30/1 ! timeoverlay
> shaded-background=1 ! x264enc tune=zerolatency ! mux. alsasrc
> do-timestamp=true , provide-clock=false !
> audio/x-raw,width=16,depth=16,rate=44100,channels=2 ! queue ! mux.
> matroskamux name=mux  ! filesink location=test.mkv

Settings do-timestamp and provide-clock=false on your source is usually
wrong, and will cause issues for your use case. I have removed this and
tested your pipeline, I don't see any issues anymore (no need to change
the latency). Note, if you have pulseaudio, I suggest using pulsesrc
instead.

Nicolas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: This is a digitally signed message part
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20160211/f53ab28c/attachment.sig>


More information about the gstreamer-devel mailing list