Hi,
I'm capturing streams with my Logitech C922 Pro Stream Webcam:
gst-launch-1.0 -e ksvideosrc ! image/jpeg,width=1280,height=720,framerate=60/1 ! jpegdec ! videoconvert ! tee name=t t. ! queue ! x264enc tune=zerolatency speed-preset=faster b-adapt=false ! matroskamux ! filesink location=video.mkv t. ! queue ! autovideosink
Then I play them inside my application:
gst-launch-1.0 filesrc location=video.mkv ! matroskademux ! h264parse ! avdec_h264 ! videoconvert ! glupload ! qmlglsink
Everything works great except one thing. I receive a GST_MESSAGE_DURATION_CHANGED message twice while playing. The first appearance (right before GST_STATE_PLAYING state) gives me absolutely correct value of duration (via gst_element_query_duration() function). But the second one (before EOS) tends to give a slightly bigger value (e.g., 0:00:10.000333333 instead of 0:00:10.000000000). What does it mean? Is it a bug? Should I completely ignore all these GST_MESSAGE_DURATION_CHANGED messages? Now I query duration every time a pipeline enters GST_STATE_PLAYING state.
Thanks,
Ilya
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel