Skip to content
This repository has been archived by the owner on Dec 5, 2022. It is now read-only.

Is it possible to get Video File's aspect ratio? #76

Open
Chayemor opened this issue May 10, 2016 · 7 comments
Open

Is it possible to get Video File's aspect ratio? #76

Chayemor opened this issue May 10, 2016 · 7 comments

Comments

@Chayemor
Copy link

Chayemor commented May 10, 2016

I understand that libvlc has the function libvlc_video_get_aspect_ratio, which I assume is the one I need. I can't find this function available in the API documents. Is it available? Thanks.

@RSATom
Copy link
Owner

RSATom commented May 10, 2016

Yes, it's missing in current API. But I can add it.

@Chayemor
Copy link
Author

That would be tremendously helpful.

@jaruba
Copy link
Contributor

jaruba commented May 10, 2016

As you're using using wcjs-player, it might be possible to do that already. I haven't tested it but you should be able to get width and height with:

player.vlc.events.on("FrameSetup", function(width, height) {
});

Then you can calculate the ratio from width and height.

@Chayemor
Copy link
Author

I thought so as well, but if there's a function that does it for me, I thought "why implement it again" ?

@RSATom
Copy link
Owner

RSATom commented May 10, 2016

Sometimes aspect is different from width to height relation.

@RSATom
Copy link
Owner

RSATom commented Dec 1, 2020

Closed as too old.

@RSATom RSATom closed this as completed Dec 1, 2020
@mattzucker
Copy link

Is this something you can revisit? It would be very helpful to me.

@RSATom RSATom reopened this May 7, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants