Skip to content

Synchronized prevents ability to do A/V sync manually, and is too far out by default. #420

Open

Description

@TheSashmo

It seems that the synchronized option blocks doing manual adjustments for lip sync in both console mode and control port mode.

Measuring a local machine encode decode test, and when using drift_fix I can adjust the accuracy and get it within one field of accuracy of +/- 16ms which is spot on for my need.

But when using synchronized its stuck at +74ms not matter if I put into the command line for --audio-delay=-70, or <> to adjust in console or control port av-delay -70, nothing adjusts it.

If I change the default option of synchronized to synchronized=8,10 or any other value its still stuck at the same value as well and I can not make any adjustments in the accuracy.

When I use drift_fix I am able to dial it in to an acceptable value, and it sits there, but I get occasional buffer overflow or underflows which causes problem in the decode output. The moment I apply the synchronized it seems to stabilize the overflow underflow errors, but looses accuracy.

Suggestions?

Activity

  1. changed the title [-]Synchronized prevents ability to do A/V syncmanually[/-] [+]Synchronized prevents ability to do A/V sync manually, and is too far out by default.[/+] on Oct 11, 2024
  2. alatteri commented on Oct 11, 2024

    @alatteri

    maybe it is out of sync at the encode step, and the stream on the receiver is actually playing back synchronized, albeit with an inherent slip baked into the stream.

    For instance, if in your compression parameters, you used :threads=3, this would equate to the video being 3 frames behind the audio, baked into the outgoing stream.

    Inaddition. I don't have time to confirm this right now, but in the configuration of our Decklink based receiver boxes, I set --audio-delay -20, so at least at some point in the past, this was working.

  3. TheSashmo commented on Oct 11, 2024

    @TheSashmo
    Author

    Yeah if you are using synchronized now, the audio delay dose not work at all. I tested on continuous build from today. No matter what you set it (for my setup) always 74ms ahead. The audio delay at the encoder never worked, I was told a way back from someone in the tickets that it never worked and only works on the decoder side.

  4. alatteri commented on Oct 11, 2024

    @alatteri

    --audio-filter delay:N:frames

  5. TheSashmo commented on Oct 11, 2024

    @TheSashmo
    Author

    Yeah this is a alternate way to solve it. Thanks @alatteri

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions