Skip to content
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

FFV1 fix #7874

Merged
merged 2 commits into from
Mar 15, 2019
Merged

FFV1 fix #7874

merged 2 commits into from
Mar 15, 2019

Conversation

vadosnaprimer
Copy link
Contributor

@vadosnaprimer vadosnaprimer commented Mar 10, 2019

Change pixel format from BGRA to BGR0

For this kind of footage carrying alpha information makes no sense, and it additionally complicates things by hugely damaging compatibility of the resulting video. After this change alone the video becomes compatible with VfW/WinAPI and tools that rely on it (avisynth, virtualdub).

Fixes https://bugs.dolphin-emu.org/issues/11141 and https://bugs.dolphin-emu.org/issues/10193

Note that internally pixel format seems to be RGBA or BGR24, but then it's converted to whatever is set for ffmpeg, and I'm only changing the latter.

Decrease gop size (keyint)

This makes seeking a lot smoother (especially at high resolutions), while only adding less than 1% of filesize overhead with this codec.

@stenzek
Copy link
Contributor

stenzek commented Mar 11, 2019

Could you please rebase this on the latest master? Looks like our FifoCI buildbots are failing to build because it's missing the ICE fix.

Copy link
Contributor

@stenzek stenzek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. The alpha channel should be set to 1 anyway for all frames, so I can't see this hurting anything.

FifoCI says it's fine (FFV1 is used for frame dumping there IIRC).

@JosJuice
Copy link
Member

You'll need to rebase the branch so that there isn't a merge commit in it.

@vadosnaprimer
Copy link
Contributor Author

@JosJuice will it remain there if the PR is squashed? I don't know what went wrong on my end. Commits got duplicated for whatever reason as well, so I wonder if squashing helps, since the diff is just 2 numbers.

@BhaaLseN
Copy link
Member

It will not remain in there if you do it properly. They likely got duplicated because you pulled from your own remote before pushing.

You can try one of the following:

  1. Rebase on latest master and assume it will-just-work™ (replace origin with our remote name):
git fetch origin
git rebase origin/master ffv1_fix
  1. Reset on latest master and redo your commits (unlikely to leave commits behind you don't want):
git fetch origin
git checkout ffv1_fix
git reset --soft origin/master
git commit (or git gui, or your preferred method of committing)

Once this is done and your history looks ok, you want git push -f (or git push -f yourRemote ffv1_fix)

feos added 2 commits March 11, 2019 22:17
for this kind of footage carrying alpha information makes no sense, and it additionally complicates things by hugely damaging compatibility of the resulting video. after this change alone the video becomes compatible with VfW/WinAPI and tools that rely on it (avisynth, virtualdub).

fixes https://bugs.dolphin-emu.org/issues/11141 and https://bugs.dolphin-emu.org/issues/10193
this makes seeking a lot smoother (especially at high resolutions), while only adding less than 1% of filesize with this codec.
@vadosnaprimer
Copy link
Contributor Author

Is it okay now? One of the builds failed, but the reason doesn't seem to be relevant.

@JosJuice
Copy link
Member

Yeah, it looks fine. The macOS buildbot is just broken in general right now.

@RisingFog, do you want to take a look at this PR?

@RisingFog
Copy link
Member

Looks good to me.

@JosJuice JosJuice merged commit c712164 into dolphin-emu:master Mar 15, 2019
vadosnaprimer pushed a commit to vadosnaprimer/dolphin that referenced this pull request Mar 29, 2019
@vadosnaprimer vadosnaprimer deleted the ffv1_fix branch October 6, 2019 10:19
vadosnaprimer pushed a commit to vadosnaprimer/dolphin that referenced this pull request Oct 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
5 participants