Upgrade FFmpeg version #16950
Unanswered
mikeyaworski
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
TLDR
Seeking an HLS playlist that uses fMP4 segments does not work on nightly builds of MPV for Windows. This is because nightly builds use FFmpeg 7.1 and there is a bugfix in FFmpeg v8 which addresses it.
I'll also leave my investigation below for future readers.
My Problem
I'm wondering if it's straightforward to upgrade FFmpeg in the nightly builds from v7 to v8 since there is an important bugfix in v8. The bug is that seeking in HLS streams that use fMP4 segments (example below) does not work. It will play the stream just fine if you let it run from the beginning, but seeking to any point past the cache will not load segments. Tested on both Mac and Windows.
This is due to a bug in FFmpeg. It was tracked here https://trac.ffmpeg.org/ticket/7359 and patched here FFmpeg/FFmpeg@380a518. This eventually made its way into release 8.0, but was not part of release 7.1.2. The patch was in Nov 2024, and "7.1.2 was released on 2025-09-14. It is the latest stable FFmpeg release from the 7.1 release branch, which was cut from master on 2024-09-24." (https://www.ffmpeg.org/download.html)
Questions:
Context of my findings
My investigation led me to understand:
mpv/ci/build-win32.ps1
Lines 143 to 144 in aa2dad0
HLS with fMP4 segments example:
https://ds0h3roq6wcgc.cloudfront.net/e052e87e5a4f6b004d85_merytz_315428141271_1761260987/chunked/index-dvr.m3u8 or
You can run it with mpv via:
Just to verify this bug is part of FFmpeg itself, I reproduced this issue on FFmpeg 7.1.1:
This will fail on v7 but succeed on v8. If you remove the
-ssoption, it will succeed on both.Beta Was this translation helpful? Give feedback.
All reactions