I was trying to make a gui HLS player,for that i need to load an .m3u8 file using av and it will loop through container.demux(video_stream) and get the packets,but i also need seeking facility(forward seek and backward seek), for that i need to store the packets in memmory,is there a way i can cache it to local device or get the packet at a specific time instead of looping? or is there any other way?
Investigation
- I have tried pickle to store the packets on local device and it didn't work.
- I have used a circular que(but when the packet gets removed,i cant get it back,so i cant add the seek to time feature).