You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am looking at ff_ffplay_def.h There any several constants defined but I cannot find any doc on how setting them affects performance. I plan to put MIN_FRAMES back down to 5 because I don't want to have a lag at startup (I saw another thread on that). However, I am also seeing that the player is not dropping any frames so it gets behind. I want the player to drop frames and keep up as much as possible with the incoming stream as it is from a live camera.
So what do I change to affect frame dropping?
It looks like I may need to modify two things:
change av_sync_type from AV_SYNC_AUDIO_MASTER to AV_SYNC_VIDEO_MASTER especially since I have no audio and
modify DEFAULT_MAX_HIGH_WATER_MARK_IN_MS since I reduced MIN_FRAMES to 5.
Not sure what to set #2 to or if that is even correct.... thanks for any direction
The text was updated successfully, but these errors were encountered:
For android, setAvCodecOption().
For ios, use IJKFFOptions.
Both functions call ijkmp_set_codec_option(), with which you can set ffmpeg options directly, to drop frames/loopfilter in decoder.
Or, you can switch to AV_SYNC_VIDEO_MASTER, which will slow down audio, when video falls behind.
XX_WATER_MARK_XX doesn't effect performance, it just effect how player pre-read data while streaming high bitrate video in bad network traffic condition. I don't known how it works in different situations that I haven't tested, so I can't gurante anything about that.
If you don't care buffering issues, just set them all to zero, or remove codes related.
I am looking at ff_ffplay_def.h There any several constants defined but I cannot find any doc on how setting them affects performance. I plan to put MIN_FRAMES back down to 5 because I don't want to have a lag at startup (I saw another thread on that). However, I am also seeing that the player is not dropping any frames so it gets behind. I want the player to drop frames and keep up as much as possible with the incoming stream as it is from a live camera.
So what do I change to affect frame dropping?
It looks like I may need to modify two things:
Not sure what to set #2 to or if that is even correct.... thanks for any direction
The text was updated successfully, but these errors were encountered: