-
Notifications
You must be signed in to change notification settings - Fork 10
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
Changing aspect ratio possible? #107
Comments
I'll take a look at it in the next few days |
Thanks! |
Yes, it's gotten quite big. I don't see that much code in it that I think would make sense to put in separate classes (and / or files) though. The CodecOption and ContainerOption classes could of course easily put into preferably one extra file for both of these classes. Apart from that I'd rather reorganize the code into smaller functions within the ffguiwin class. The constructor is really big and also a few cases in MessageReceived. Since we now have our own spinner classes you could move the SetSpinnerMinsize() functions or the respective code there. These functions come from a time where we used standard BSpinners.
No, not at all. Just let me know if you want to do it now or rather before the next release. |
Please see #109. I haven't looked any further into what could be improved in MessageReceived(). Leaving that for another time, or you if you have ideas about that. :) |
This is nice, thumbs up from me 👍
I wrote that before we put the spinners into grid layouts and the numbers above 3 digits didn't fit in. Good that you removed it.
The code for the M_ENCODE_FINISHED is a bit long, but it's the only one. And it's not too bad, I think we can leave that for now. |
Good, let's merge that and let this issue get back on-topic. :) |
Using a "Custom resolution" will not change the aspect ratio, just use a (reduced) horizontal/vertical resolution.
But what to do when a file has an incorrect apect ratio?
I've been searching the web for a bit, but all suggestions found didn't seem to work.
There's SAR = Sample Aspect Ratio being the actual pixel size, and DAR = Display Aspect Ratio that's telling the media player how to scale the pixels (if the software supports that). Changing SAR requires re-encoding, changing DAR should be doable by doing no encoding (stream-copy) and just changing the DAR meta data of the container.
The parameter "-aspect 16:9" doesn't work with stream-copy or re-encoding.
There's "-bsf:v "h264_metadata=sample_aspect_ratio=16/9", but we don't support h264 at all.
There's "-vf scale=iw*0.3333:ih" while re-encoding, doesn't change anything either.
All checked with "ffprobe" that show SAR and DAR.
Just leaving that here, in the hopes someone more familiar with ffmpeg shows us the way...
The text was updated successfully, but these errors were encountered: