SwiftFFmpeg icon indicating copy to clipboard operation
SwiftFFmpeg copied to clipboard

Expose `avformat_seek_file`

Open AlaaAlHallaq opened this issue 5 years ago • 4 comments

hello, I have been using ffmpeg for couple of years in my apps, and your library is extremely useful to simplify accessing ffmpeg functionalities. I need you to expose avformat_seek_file since av_seek_frame has some issues seeking most of the files I tested, I have a fork of your project, and used avformat_seek_file, and it worked for most of my test files.

AlaaAlHallaq avatar Dec 22 '20 19:12 AlaaAlHallaq

av_seek_frame works just fine for every file I have ever thrown at it - what issues are you having?

Of course we could expose support for this method, but just curious what kind of issues you are facing with the current seeking method.

gregcotten avatar Dec 22 '20 20:12 gregcotten

@gregcotten simply most of my test files did not work to seek through the file using av_seek_frame, forking this library and exposing avformat_seek_file, did the trick, noting that I have custom IO using AVIOContext.

AlaaAlHallaq avatar Dec 27 '20 22:12 AlaaAlHallaq

@gregcotten ?

AlaaAlHallaq avatar Jan 08 '21 08:01 AlaaAlHallaq

Don't have time to work on it at the moment, but I see your fork - could you make a PR?

gregcotten avatar Jan 08 '21 16:01 gregcotten