Skip to content

Pass flags into FFMpeg for low latency #601

Answered by Videstra
Videstra asked this question in Q&A
Discussion options

You must be logged in to vote

Well - turns out the method is included in the sample code provided! DOH! Although it doesn't appear to actually do the same thing that happens when I pass the flags to ffplay - but that is likely due to different versions of the dlls (vs the static exe I tested the flags with).
The method is pretty simple though: In VB:

    Private Sub OnMediaInitializing(sender As Object, e As Unosquare.FFME.Common.MediaInitializingEventArgs) Handles Media.MediaInitializing
        e.Configuration.PrivateOptions("rtsp_trasport") = "tcp"  '<-this may not help latency as UDP will be quicker, but I tried both
        e.Configuration.PrivateOptions("flags") = "low_delay"
        e.Configuration.GlobalOption…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@Wolfleader101
Comment options

@Videstra
Comment options

@Wolfleader101
Comment options

Answer selected by Videstra
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants