Getting video dimensions

This forum is about all development around libVLC.
Helios_vmg
New Cone
New Cone
Posts: 2
Joined: 24 May 2010 18:55

Getting video dimensions

Postby Helios_vmg » 24 May 2010 19:09

Hi.

I'm trying to play a video on an SDL surface. So far, I got everything working except for one detail: I need to maintain the aspect ratio without changing the surface's size, which means I need to retrieve the width and height of the video before creating the intermediate surface. The problem is that no matter what I do, I can't get libvlc_video_get_width() to not throw an exception (of the libvlc_exception_t kind, not a C++ exception) when I call it. My code is based on http://wiki.videolan.org/LibVLC_SampleCode_SDL. If I call it after libvlc_media_release(), I get "Input is NULL", and if I call it after libvlc_media_player_play(), I get "No active video output".
Any ideas?

By the way, where can I find some documentation on libvlc_new()? Specifically, the arguments it takes. I've looked around, but I can't find anything.

jlz
Blank Cone
Blank Cone
Posts: 11
Joined: 13 Jul 2009 12:09

Re: Getting video dimensions

Postby jlz » 25 May 2010 05:50


Helios_vmg
New Cone
New Cone
Posts: 2
Joined: 24 May 2010 18:55

Re: Getting video dimensions

Postby Helios_vmg » 25 May 2010 06:06

Sorry, but I don't see how that's relevant. That post refers to an API that's not yet available.


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 36 guests