From ab4e0c42fbb11f2e7459fe9fe98265e0323b1ef4 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 23 May 2020 04:04:46 +0200 Subject: audio: redo video-sync=display-adrop This mode drops or repeats audio data to adapt to video speed, instead of resampling it or such. It was added to deal with SPDIF. The implementation was part of fill_audio_out_buffers() - the entire function is something whose complexity exploded in my face, and which I want to clean up, and this is hopefully a first step. Put it in a filter, and mess with the shitty glue code. It's all sort of roundabout and illogical, but that can be rectified later. The important part is that it works much like the resample or scaletempo filters. For PCM audio, this does not work on samples anymore. This makes it much worse. But for PCM you can use saner mechanisms that sound better. Also, something about PTS tracking is wrong. But not wasting more time on this. --- wscript_build.py | 1 + 1 file changed, 1 insertion(+) (limited to 'wscript_build.py') diff --git a/wscript_build.py b/wscript_build.py index a35d1039e5..34398c10cd 100644 --- a/wscript_build.py +++ b/wscript_build.py @@ -235,6 +235,7 @@ def build(ctx): ( "audio/chmap_sel.c" ), ( "audio/decode/ad_lavc.c" ), ( "audio/decode/ad_spdif.c" ), + ( "audio/filter/af_drop.c" ), ( "audio/filter/af_format.c" ), ( "audio/filter/af_lavcac3enc.c" ), ( "audio/filter/af_rubberband.c", "rubberband" ), -- cgit v1.2.3