2009/1/28 Arnaud VALLAT <[email protected]> > Hello, > > Yep it would be cool if we can give it a try :-) > > Got a question for you, since you directly render to a clutter texture, we > can easily resize video during playback (through libvlc) without > re-initializing vlc, right ? I have also implemented the SDL sample scheme > with a buffer and a clutter texture, but I need to re-initialize vlc to > resize the video output ...
This problem is due to the initial design of the vmem driver. I think the last version changed this and now uses the mechanism of vlc variables. This enables you to specify the video size for each video, via the MRL, something like: file:///home/jul/vid/vid.mpg :vmem-width=200 :vmem-height=320 . You can specify many options this way, like funny video filters. You can use the previous syntax from the command line. You can look for the var_CreateGetInteger string in the code, you should discover these variables. You can also find them via the -H option. If you want to specify options from your code, you should use the libvlc_media_add_option function. Beware, this function only setup one option at a time. I found the vmem driver a bit too complicated to use and not flexible enough. That's why I made a specific driver. It also simplifies the problem of color space convertion. With the clutter driver you just pass the texture and the driver makes the rest. You don't have to create yourself a memory area where vlc will draw it's video. The video driver copies directly from the vlc picture to the texture. Cheers, Julien
