-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
f_auto_filters: don't set interlaced-only for userdeint #14839
Conversation
Not wanted apparently: mpv-player#14822 (comment)
@hooke007: Does this fixes playback of your file? |
Why do we want to enable deinterlacing for frames not flagged as interlaced? |
Download the artifacts for this pull request: |
That's what |
But I agree that now the new value |
I looked at it more, and it seems that before Right now both auto and yes are actually the same option, so I agree with removing this to allow forcing deinterlacing for every frame if that's what the user wants. However, I noticed another issue. With the current implementation of bwdif_cuda and bwdif_vulkan have different syntax but they can do this too https://ffmpeg.org/ffmpeg-all.html#bwdif_005fvulkan I'll whip up a PR for this |
I have something that works but the only problem is that |
It's not that important but why can't it exist anymore? The output chain should be able to access all filters. |
Currently, we just check by seeing if the filter is inserted or not. After #14841, with auto the filter is always inserted and we don't know what it is actually doing with the frames. |
Hmm, if the source file is marked |
Whether the filter is inserted or not doesn't matter, if the frames themselves aren't marked as interlaced then the filter won't do anything. Inserting and removing filters is expensive and leads to stutters when it happens, so I think avoiding that should be the priority. |
It was caused by mpv's internal design. Of course it's expensive when you check it each frame. |
Patches for a better solution are welcome
This is necessary because the concept of an "interlaced file" does not exist, interlacing is frame data and only exist as frame data. You can't mark entire file as interlaced, what you're doing is marking each individual frame as interlaced. There exist files that have some interlaced frames but not all |
Have no idea how mediainfo could do. |
|
Not wanted apparently: #14822 (comment)