Open sporteiro opened 4 years ago
Hello @sporteiro,
Thanks for the information. It is something we have noticed. Your very detailed analysis does show that over time due to the way inter elements split the stream that it could cause black frames. We using brave this results in overtime the A/V will drift out of sync.
Other people have also found this issue with the inter elements: http://gstreamer-devel.966125.n4.nabble.com/debugging-a-v-sync-issues-possibly-inter-element-related-td4672079.html https://github.com/voc/voctomix/issues/58
As for this repo, we have a version that has not been yet merged into here that replaces the intervideo(sink/src) with the interpipe(sink/src) available from here: https://github.com/RidgeRun/gst-interpipe
Hopefully this can help.
Thanks for your reply @moschopsuk,
I will be looking forward to see that version with interpipe, in fact was one of the ideas to possibly solve the issue from my side. Just so you know, later checks with non virtualized and more powerful machine, showed a far better performance, but still black frames from time to time (similar to the basic pipeline on my example).
Thank you very much for your work and Happy New Year!
Hi there, congrats for the project!
After a couple or tests with different inputs and outputs, I just realized there was always some frozen frames, (no matter what the input/output combination was). Digging a bit on the code, I figured out that if I set the timeout to 0 in outputs/output.py like this:
The output stream is always having some black frames (Can be more or less depending on the video caps, but they're always there). Example with this config file:
Output of:
ffmpeg -i tcp://127.0.1.1:7000 -vf "blackdetect=d=0:pix_th=0.00" -an -f null -
I tested separately an example pipleline with Gstreamer like this:
gst-launch-1.0 videotestsrc is-live=1 ! video/x-raw,width=1280,height=720,framerate=30/1 ! videoconvert ! intervideosink name=psink intervideosrc name=psrc timeout=0 ! video/x-raw,width=1280,height=720,framerate=30/1 ! videoconvert ! autovideosink
And, although its not behaving "perfect" (1 or 2 black/hour), it seems to be "loosing" less data than Brave.
Im running my tests in different computers, with/whithout virtual machines and with/without Docker, with minimal differences
Now my question is, Are you aware of this behave? Did you manage to solve or mitigate it?
Best Regards and thank you very much