Using https://pypi.org/project/av/ trying to open file for infinite playback. But the cycle ends with the last frame.
After searching and reading manuals, test code looks as follows:
(Note: these options are expected to be passed down to aiortc.contrib.media.MediaPlayer
and work similarly):
import av
av.open(file="file.mp4", options={"fflags": "+genpts", "loop": "-1"})
for frame in media.decode():
print(frame)
Question: What should be the options
(and if it is possible) to play file in infinite loop? (NOT just once)