libvlc_media get height and width

This forum is about all development around libVLC.
Kairos
Blank Cone
Blank Cone
Posts: 45
Joined: 01 Mar 2008 01:49
Operating System: Windows
Location: Scottsdale, Az
Contact:

libvlc_media get height and width

Postby Kairos » 06 Jun 2009 00:29

I'm trying to use the vmem module and it wants me to pass in the height and with. I'm planing on scaling the out put so I'd just like to use the source height and width. The ideal way to do it would be to create a new media descriptor object, then use that object to get the height and width. Then pass in the source files height and with to vmem using the libvlc_media_add_option function. I guess what I'm looking for is a libvlc_media_get_height and libvlc_media_get_width function. Similar to the libvlc_media_get_duration.

So is there any way for me to currently get a meadia's height and width before playing the file, and if not can this functionality be added to libvlc. Thanks.

Rémi Denis-Courmont
Developer
Developer
Posts: 15279
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: libvlc_media get height and width

Postby Rémi Denis-Courmont » 06 Jun 2009 16:06

No there is no way. You need to parse the file the file to get the height and width.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 35 guests