decklinksrc AV sync issue

classic Classic list List threaded Threaded
5 messages Options
Vnd
Reply | Threaded
Open this post in threaded view
|

decklinksrc AV sync issue

Vnd
All,

 I have BMD 4k card which supports auto mode detection(mode=0). To capture raw audio and video I am using decklinkvideosrc and decklinkaudiosrc. I am facing AV ouof sync issue, this is seen with both Auto mode and 756i50 followin are my observation.

1. For mode 0 (Auto detection) audio and video are out of sync starting from the beginning.
2. For mode 3 audio and video are out of sync after 5 minutes. Which builds up over the time?

What could be the problem ??


example pipeline:
gst-launch-1.0 decklinkvideosrc device-number=0 connection=2 mode=0  ! queue max-size-time=18446744073709551615 max-size-bytes=4294967295 max-size-buffers=4294967295 ! videoconvert ! avvideoscale method=7 ! video/x-raw,width=640,height=360 ! x264enc ! mux. decklinkaudiosrc device-number=0 connection=1 ! queue  max-size-time=18446744073709551615 max-size-bytes=4294967295 max-size-buffers=4294967295 ! queue ! queue ! audioconvert !  voaacenc ! mux. mpegtsmux name=mux ! udpsink host=10.0.100.3 port=8899 --gst-debug=3 -e

Vinod
Vnd
Reply | Threaded
Open this post in threaded view
|

Re: decklinksrc AV sync issue

Vnd
All,

After setting buffer-size to 250 of decklinkaudio/video/src AV sync goes out-of sync after 10 hours.
Reply | Threaded
Open this post in threaded view
|

Re: decklinksrc AV sync issue

Sebastian Dröge-3
In reply to this post by Vnd
On Di, 2016-03-29 at 02:16 -0700, Vinod K wrote:

> All,
>
>  I have BMD 4k card which supports auto mode detection(mode=0). To capture
> raw audio and video I am using decklinkvideosrc and decklinkaudiosrc. I am
> facing AV ouof sync issue, this is seen with both Auto mode and 756i50
> followin are my observation. 
>
> 1. For mode 0 (Auto detection) audio and video are out of sync starting from
> the beginning.
> 2. For mode 3 audio and video are out of sync after 5 minutes. Which builds
> up over the time?
>
> What could be the problem ??
Which GStreamer version are you using? Can you get a debug log with
GST_DEBUG=3,decklink*:6 and report this in Bugzilla?

This commit here might fix it:
https://cgit.freedesktop.org/gstreamer/gst-plugins-bad/commit/?id=0d3cd8274907bef05a8245edd86203b7adcdca11

--
Sebastian Dröge, Centricular Ltd · http://www.centricular.com

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

signature.asc (968 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: decklinksrc AV sync issue

Peter Maersk-Moller-2
Regarding decklinksrc audio drift.

According to Ross Currie https://sourceforge.net/p/snowmix/discussion/Snowmix_Support_Forum/thread/e311cbe1/ there are audio drift issues with some driver versions.

"I have confirmed that the issue was a bug in the decklink card's driver.
10.3.4 has the audio drift issue.
10.3.7 works well.
10.4.1 is just ridiculously broken."

So it may not be in GStreamer.

Regards
Peter Maersk-Moller

On Thu, Mar 31, 2016 at 8:20 AM, Sebastian Dröge <[hidden email]> wrote:
On Di, 2016-03-29 at 02:16 -0700, Vinod K wrote:
> All,
>
>  I have BMD 4k card which supports auto mode detection(mode=0). To capture
> raw audio and video I am using decklinkvideosrc and decklinkaudiosrc. I am
> facing AV ouof sync issue, this is seen with both Auto mode and 756i50
> followin are my observation. 
>
> 1. For mode 0 (Auto detection) audio and video are out of sync starting from
> the beginning.
> 2. For mode 3 audio and video are out of sync after 5 minutes. Which builds
> up over the time?
>
> What could be the problem ??

Which GStreamer version are you using? Can you get a debug log with
GST_DEBUG=3,decklink*:6 and report this in Bugzilla?

This commit here might fix it:
https://cgit.freedesktop.org/gstreamer/gst-plugins-bad/commit/?id=0d3cd8274907bef05a8245edd86203b7adcdca11

--
Sebastian Dröge, Centricular Ltd · http://www.centricular.com

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel



_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Vnd
Reply | Threaded
Open this post in threaded view
|

Re: decklinksrc AV sync issue

Vnd
Hi,

Thanks Sebastian. With patch I am not seeing audio drift. It worked fine for me. I will run it for log time and see if issue still exist.

Thanks for the info Peter Maersk-Moller.

I am running with 10.4 driver with I have run for around 4 hours not seen issue so far. Earlier it was coming within 1 hour.

~ Vinod