Page 1 of 1

libvlc_media get height and width

Posted: 06 Jun 2009 00:29
by Kairos
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.

Re: libvlc_media get height and width

Posted: 06 Jun 2009 16:06
by RĂ©mi Denis-Courmont
No there is no way. You need to parse the file the file to get the height and width.