SShortSingh.
Back to feed

Fixing A/V Sync Drift When Joining Vertical MP4 Episodes with FFmpeg

0
·10 views

Concatenating two AI-generated vertical episodes with FFmpeg's concat demuxer and stream copy caused dialogue to run about 100 ms ahead of the video at the splice point. The author's team found that each source clip's audio stream ended slightly earlier than its video stream, with offsets of -33.67 ms and -83.33 ms. Because the demuxer appends packets without aligning the shorter audio track, the drift compounds across the boundary. The suggested fix is to route both streams through the concat filter, which pads shorter streams and also normalizes the clips to 1080x1920 at 9:16 for vertical platforms, at the cost of re-encoding that runs roughly 3.5 to 4 times real time. The article notes this will not repair clips whose audio was already desynced before joining.

Read the full story at DEV Community

This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)

Log in to join the discussion and vote.

Log in

Related stories

0
ProgrammingDEV Community ·

Docker Sandbox Kits Let Teams Bundle Least-Privilege Permissions With AI Agents

Coding agents can call any API and repository their host credentials reach, which is rarely a deliberate choice. Docker Sandboxes isolate agents in microVMs with a proxy controlling network access, but operators still need a way to define which connections are allowed. Docker Sandbox Kits address this by packaging an agent's permission requests as metadata inside an OCI image, so rules travel with the agent and stay pinned to its version. Kits only request capabilities, while the host decides whether to grant them, and required but unavailable permissions prevent the sandbox from starting. The article walks through a read-only httpbin.org Kit that allows GET and HEAD requests, denies DELETE, and injects a bearer token the agent can use without seeing.

0
ProgrammingDEV Community ·

Tables Diagnostics Let You Share Bug Logs Without Exposing Secrets

A walkthrough tested the diagnostic tools in Tables, a desktop GUI for Amazon DynamoDB, to see what its logs record and how they handle sensitive data. The Diagnostics panel offers controls to refresh, copy, and reveal the underlying log file, and it redacts known credential values such as AWS keys, AI provider keys, and bearer tokens. The author found that copied output covers older events as well as recent ones and includes items like timestamps, error messages, AWS region details, table names, and local file paths. Because logs can still reveal environment details even after redaction, the author recommends reviewing copied diagnostics before sharing them with others. The test ran on Windows 11 with an approved non-production AWS setup.

0
ProgrammingDEV Community ·

Choosing training shapes changes surrogate model error up to 390x, with no predictor found

A researcher tested whether the choice of training shape families can be made wisely for a neural surrogate that predicts the stiffness of perforated metal sheets. Across 231 possible two-family training pairs and 200 four-family combinations, the worst-case error on unseen families varied by a factor of 390. None of nine selection strategies reliably identified the good choices. The study used 22 pattern families with 600 cells each, normalized to a similar solid-fraction band and filtered for connectivity. The author also issued a correction: the benchmark, since rebuilt as MetaXFam-D, had many duplicate cells that inflated in-distribution scores, and the numbers were not re-run on the new data.

0
ProgrammingDEV Community ·

OS-Omni Benchmark Shows Agent Average Hides Sharp Platform Gaps

A Python walkthrough examines the OS-Omni benchmark, where a top computer-using agent scores 68.5% on average against 77.3% for humans. The author argues the single pooled figure masks large differences across platforms, with agents outperforming humans on Linux but trailing by over 25 points on iOS and macOS. OS-Omni covers six platforms with long, stateful tasks graded by final system state rather than individual clicks. The author demonstrates with a toy model how per-step reliability compounds over longer tasks, and simulates per-platform results to show how averages can mislead. The illustrative rates used are invented and do not reflect the paper's reported figures.