Design a timestamped audio sample contract

Aberta
#6 0 comentários 0 reações 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 1 dia

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
5/5
Tempo estimado
Mais de uma semana
Facilidade para iniciantes
35/100
Tipo de issue
Funcionalidade
Clareza
Claramente especificada
Status de atividade
Ativa
Stack de tecnologia
python
Domínio
audio-video-rtc

Direção de pesquisa

Read the existing FrameEngine contract and the Wave 5 design and fixture evidence; this issue names no files or tests. First review the proposed audio timing contract and acceptance scenarios, then present the design for a maintainer decision. Done means a decided contract covering timestamps, discontinuities, video synchronization and evidence retention; implementation and tests follow that decision.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

design engine-sdk help wanted

Scope

Propose a contract for decoded audio samples, time bases, discontinuities, synchronization with video and evidence retention. Include test scenarios with known offsets and document how the existing FrameEngine contract would remain usable.

This is a roadmap item for evidence or design. Implementation starts after a maintainer decision.

Proposed timing contract

An audio observation identifies the source stream, original block PTS and rational time base, starting sample index, samples per channel, sample rate, layout, and discontinuity segment. Derive time within a block as pts × time_base + sample_offset / sample_rate. Use half-open observation intervals. Normalize audio and video against one source presentation origin. Keep original PTS and time bases as evidence alongside any displayed milliseconds. Missing timestamps remain explicit and block cross-stream alignment until the timeline can be recovered with recorded provenance.

Keep frame engines callable with the existing RGB interface. Audio engines consume separate timestamped blocks and emit observations on the shared timeline. Persist a bounded audio window or a source reference according to the job's evidence policy, with its sample interval and any resampling mapping. A live reconnect or real timestamp break starts a new discontinuity segment.

On FFmpeg 9.1, a synthetic Matroska control with video at 30 FPS, 48 kHz PCM and an intentional +125 ms audio offset began at PTS 1250 for video and 1375 for audio on time base 1/1000. Consecutive 1,024-sample PCM blocks had 21 and 22 ms PTS steps, while their exact duration was about 21.333 ms. The acceptance tests should distinguish timestamp quantization from a real gap. Include a later annotated gap, missing PTS, a resampled source and a reconnect. Assert original sample intervals, the +125 ms alignment and the absence of fabricated events.

This is design and fixture evidence for Wave 5. The adapter and correlation path still require implementation and tests.

Linguagem predominante
Python
Estrelas
0
Forks
0
Merge médio
20h
PRs com merge (30d)
5

Preparar o ambiente

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de JusticeGG-dev/CodeHunter

Todas as issues de JusticeGG-dev/CodeHunter

Issues semelhantes

Mais issues de Python

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.