From: Juliusz Chroboczek <jch@irif.fr> To: galene@lists.galene.org Subject: [Galene] Saving to disk reworked again Date: Sun, 17 Apr 2022 22:08:07 +0200 [thread overview] Message-ID: <87k0bnfp7c.wl-jch@irif.fr> (raw) Hi, I've just done some work on saving to disk. I'll be testing myself, but please feel free to test in the meantime. Saving to disk was pretty broken before 0.5.1. In 0.5.1, I managed to get it to work reasonably well even with massive packet loss, but the result was that we got pretty bad audio-video desynchronisation. I've now implemented audio-video synchronisation almost correctly. We properly parse remote NTP timestamps, correlate them with RTP timestamps, and use the data to compute MKV timestamps. The only remaining issue is what happens before we receive NTP information from the remote. In that case, we use the reception timestamp, which yields a desynchronisation on the order of 100-200ms in my experiments. We resynchronise when the first sync packet arrives, but in many cases it causes Matroska timestamps going backwards, which is illegal. I've tried working around the issue by buffering packets until the first sync timestamp, but I've found that the browsers only send audio sync information after a couple of seconds, which means we need to buffer hundreds of packets. I've kept the code (see the branch "diskwriter-buffer"), but haven't decided whether to merge it yet. Please test! -- Juliusz
reply other threads:[~2022-04-17 20:08 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style List information: https://lists.galene.org/postorius/lists/galene.lists.galene.org/ * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=87k0bnfp7c.wl-jch@irif.fr \ --to=jch@irif.fr \ --cc=galene@lists.galene.org \ --subject='Re: [Galene] Saving to disk reworked again' \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox