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

initial aspect ratio in player #724

Open
dericed opened this issue Mar 25, 2022 · 11 comments
Open

initial aspect ratio in player #724

dericed opened this issue Mar 25, 2022 · 11 comments
Assignees

Comments

@dericed
Copy link
Member

dericed commented Mar 25, 2022

To follow up on @valbok's comment at #714 (comment).

I'm using a sample from: ffmpeg -f lavfi -i testsrc2 -t 2 -aspect 16:9 16-9.mkv

When the player is initially opened it looks like:
image

Then I toggle something about the player (such as enable and then disable another filter, like the waveform checkbox) and then it looks like:

image

The first is the video's aspect ratio while the second is sar as 1/1. Either is fine if consistent, as I'd like to control the aspect ratio with the filters, but here it's inconsistent depending on if it's the initial 'normal' view or reset back to 'normal' view.

@ElderOrb
Copy link
Collaborator

Seems like this approach:

    m_player->seek(m_player->position());
    m_player->pause();

doesn't work in all the cases.

@valbok
Copy link

valbok commented Mar 29, 2022

Seems like this approach:

    m_player->seek(m_player->position());
    m_player->pause();

doesn't work in all the cases.

@ElderOrb, seek does not work?
pause does not work? or it is related to AR?

@valbok
Copy link

valbok commented Mar 29, 2022

Interesting that in linux it is not reproducible for me.

@ElderOrb
Copy link
Collaborator

Based on @dericed said filter is fully applied only after starting playback, which means using

m_player->seek(m_player->position());
m_player->pause();

for 'applying' filter doesn't work in his case

@dericed
Copy link
Member Author

dericed commented Mar 30, 2022

Here's a screen recording of the issue with the file mentioned above. This is from initial open of the window to toggle the second filter on then off. The first image and last should be the same but the aspect ratio is different.
Screen

@valbok
Copy link

valbok commented Mar 31, 2022

yep, thanks, but not reproducible on linux/windows, will try to figure out how to troubleshoot it.

@dericed
Copy link
Member Author

dericed commented Jun 23, 2022

qctoolssize.mp4

Adding another demo of this issue with a 4/3 .dv file.

@valbok
Copy link

valbok commented Jul 10, 2022

https://github.com/bavc/qctools/blob/main/Source/GUI/player.cpp#L655 this changes AR. @ElderOrb could you please check what it was supposed to solve, can we remove it?

@valbok
Copy link

valbok commented Jul 10, 2022

video frames are not changed, and have proper size. It could be checked by saving to files.

@ElderOrb
Copy link
Collaborator

@dericed is it still an issue?

@dericed
Copy link
Member Author

dericed commented May 15, 2023

It's still an open issue but the behavior is more consistent. At the moment, the video in the player appears with a forced 1/1 SAR, which is helpful for QC, but I need to add a method to apply the stored aspect ratio to close this ticket.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants