Keep WAV audio samples aligned with movie frame duration
Los mantenedores suelen responder en 1 día
@mcdubhghlas ya está trabajando en esto.
Desde el 17/9/2026.
Evaluación
Este issue todavía no se ha evaluado.
Descripción
Summary
The movie writer calculates a fixed WAV audio block size with integer division of mix_rate / fps. If the frame rate does not divide the audio mix rate, the writer drops the remainder samples for every frame.
For example, at 48,000 Hz and 59 FPS, fixed blocks contain 813 samples. This produces 47,967 samples per video second, while the WAV header declares 48,000 Hz. The audio duration then drifts from the video duration.
Required changes
Update the movie capture audio-block contract so it keeps the total number of WAV samples aligned with the video duration.
Distribute remainder samples across frames when the capture contract supports variable audio block sizes. If it does not support variable block sizes, validate the frame rate before output creation and reject frame rates that do not divide mix_rate.
Affected area
servers/movie_writer/movie_writer_exr.cpp- Shared movie capture and audio-block sizing code, if applicable
Acceptance criteria
- A recording at a frame rate that does not divide the configured mix rate does not lose audio samples over time.
- WAV sample count and video duration remain aligned.
- Unsupported frame rates fail before output files are created when variable-size blocks are not supported.
- The behavior is covered by an appropriate regression test or validation.
Backlinks
- Pull request: https://github.com/Redot-Engine/redot-engine/pull/1427
- Review comment: https://github.com/Redot-Engine/redot-engine/pull/1427#discussion_r4030858742
- Requested by: @mcdubhghlas
- Lenguaje dominante
- C++
- Estrellas
- 6.1k
- Forks
- 337
- Merge medio
- 5 d 8 h
- PR fusionados (30 d)
- 13
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de Redot-Engine/redot-engine
-
C#] [Export] does not support struct types (GD0102), inconsistent with GDScript struct supportAbiertoenhancement topic:dotnet usability
Dificultad 5/5 Más de una semana Aptitud para principiantes 35/100
Redot-Engine/redot-engine#1589 ·
Los mantenedores suelen responder en 1 día
-
Trait is not being resolvedAbiertobug topic:gdscript
Dificultad 3/5 1-2 días Aptitud para principiantes 48/100
Redot-Engine/redot-engine#1588 ·
Los mantenedores suelen responder en 1 día
-
Handle stateful audio effects when a bus channel becomes inactivePosiblemente ocupada @GeneralProtectionFault la tomó hace 27 días. Abierto
Redot-Engine/redot-engine#1584 · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
bug usability
Dificultad 3/5 1-2 días Aptitud para principiantes 53/100
Redot-Engine/redot-engine#1583 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
bug confirmed topic:3d topic:rendering
Dificultad 5/5 Más de una semana Aptitud para principiantes 35/100
Redot-Engine/redot-engine#1568 ·
Los mantenedores suelen responder en 1 día
Todos los issues de Redot-Engine/redot-engine
Issues similares
-
Make the HTTP server's keep-alive and headers timeouts configurablePosiblemente ocupada @mattgodbolt la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
compiler-explorer/compiler-explorer#9902 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Nixtla/statsforecast#1371 ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
[Bug]: pip install -U cudaq-qec fails with a conflict that names cudaq-qec itselfPosiblemente ocupada @fedonman la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día
-
task
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
SparseLinearAlgebra/spla#316 · 1 comentario ·
Los mantenedores suelen responder en 1 día