Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More timestamp improvements #102

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

sdroege
Copy link
Contributor

@sdroege sdroege commented Jun 7, 2022

See individual commits.

CC @samuvlad @pnieto

Audio/video are in practice not always from the same clock and can have
different behaviours with regards to clock rate and jitter. Handling
them separately generally gives better results for the timestamps output
by the source element.
 - NDI HX Camera Android in the past used 1ns instead of 100ns as unit
   for timecodes/timestamps.
 - NDI HX Camera iOS uses 0 for all timecodes and the same non-zero
   value for all audio timestamps

Detect such situations and try to compensate for them. Also add a new
"auto" timestamping mode that prefers to use timecodes and otherwise
falls back to timestamps or receive times.

Fixes teltek#79
@vivia
Copy link

vivia commented Jun 7, 2022

This pull request also fixes a problem that I noticed, where by using the source and sink pipelines specified in the README.md the audio sounds choppy.

@sdroege
Copy link
Contributor Author

sdroege commented Jun 7, 2022

That's probably the 3rd commit

@raytiley
Copy link

I've pulled this down and tested it and it helps with some problematic NDI sources using gstreamer, specifically the NDI camera app on an iphone seems to work well using the auto mode now.

When using the Advanced SDK it is possible to output compressed formats
too.
@sdroege sdroege mentioned this pull request Jul 18, 2022
@sdroege
Copy link
Contributor Author

sdroege commented Sep 6, 2022

@samuvlad @pnieto Can we get this merged?

@sdroege
Copy link
Contributor Author

sdroege commented Oct 12, 2022

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants