Search bytes in FFmpeg

I will be grateful for your advice. I am developing a video converter based on FFmpeg libavformat and I need to implement an exact search API. First of all, I developed a video stream pointer that simply stores the presentation timestamps (PTS) of each packet. And then my encoder uses this index to search for a video file. Before that, for example, I make a remux file in the mp4 container. Remux is needed for videos that don’t have the correct index inside, or that the video doesn’t have an index at all. I need to implement a byte search, of course, with a previously created index. I tried many ways to implement this, but without any success. Maybe you know how to implement exact byte search in FFmpeg? Best wishes.

+4
source share

Source: https://habr.com/ru/post/1338092/


All Articles