WebChimera.js
WebChimera.js copied to clipboard
Is it possible to get Video File's aspect ratio?
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.
Yes, it's missing in current API. But I can add it.
That would be tremendously helpful.
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.
I thought so as well, but if there's a function that does it for me, I thought "why implement it again" ?
Sometimes aspect is different from width to height relation.
Closed as too old.
Is this something you can revisit? It would be very helpful to me.