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
vf_stereo3d: fix "auto" input format with libav #1146
Conversation
Btw, this was reported at https://bugs.debian.org/763904 |
I'm not sure if this is a bug. Yes, the filter is auto-inserted, and if you specify an additional filter on the command line, it will be inserted twice and applied twice. I'd call this a user error. Your PR doesn't actually change anything for me. And Libav doesn't provide a stereo3d filter, so the internal one is used. (I'd like to remove the internal one, btw., to reduce the mess.) I'm not sure about your second suggested patch; may or may not work depending on things. |
That's the point, this doesn't work because the call to
by replacing |
Actually, I'm not sure if it's lavfi_reconfig() that fails, but the first call to vf_lw_set_graph() should (like the second one), so that the internal filter is used. |
Ah, I see... that's nasty. I see how that would fix it (I didn't actually test with Libav), so ok to merge. I think you actually have push access? If so, feel free to push. Btw., now that ffmpeg is in debian, couldn't you package mpv against ffmpeg? |
Done. Btw, I tried the other patch with ffmpeg and it doesn't work, so there's that (it's because the version of ffmpeg I have doesn't support "auto", but the libavfilter vf_stereo3d is still inserted).
The ffmpeg package is still only in experimental at the moment. There have been talks about replacing libav with ffmpeg in Debian, but that's been put on hold and postponed to after the upcoming Debian release (which at best will take a few months to actually be released). In any case I was looking into ways to provide both mpv linked to ffmpeg in experimental, and to libav for testing and the next stable release, at least untill the libav vs ffmpeg thing is resolved. |
Yes, "auto" is a mpv-internal thing. "auto" is replaced with the format hint stored in mp_image_params, which originates from file tags or similar.
I think it made it into unstable. |
Ah, ok, then I guess it doesn't do the translation with that patch, because I get some errors like:
Oh right, I missed that. Still, due to https://bugs.debian.org/763148 (it's not really a bug, but the Debian security team doesn't want to have to deal with both libav and ffmpeg in the stable release, and at this point it's too late to switch to ffmpeg) the ffmpeg packages aren't going to be in the next Debian release, So if mpv used them it would be left out as well. Anyway, I just uploaded mpv |
So it's broken now?
That's pretty nice. |
No, the other patch above (merging the ifs) breaks things. I tried it with ffmpeg and it doesn't work so you can just ignore it. |
I'm not 100% sure the fix is correct (i.e. if the
NULL
was on purpose), but it seems to work.Also, maybe the two ifs can be merged like so:
but I haven't tested if this works with ffmpeg.