Page 1 of 1

how to get the decoded video data without display?

Posted: 11 Jul 2008 10:53
by foruok
Hi, all.

I'd want to get a movie's decoded video data, but do not want it show by the default way.
In that case , I can copy the video data to a buffer, hence I can render it in my way I like, such as in a 3D scene, as a texture of a cube.

How can I do it ?
Any suggestion is appreciated.

Re: how to get the decoded video data without display?

Posted: 11 Jul 2008 18:38
by VLC_help
http://wiki.videolan.org/LibVLC_SampleCode_SDL
you need nightly libvlc and "vmem" video output.

Re: how to get the decoded video data without display?

Posted: 12 Jul 2008 08:49
by foruok
Thanks to VLC_HELP!
I'm newer to VLC. I want to find some articles about libvlc's arguments rule, such as vout, vmem, etc. And Is there a full tutorial for begginner?

Re: how to get the decoded video data without display?

Posted: 12 Jul 2008 14:15
by VLC_help
I haven't done any libvlc projects. But I guess wiki has some details.
http://wiki.videolan.org/Libvlc

Re: how to get the decoded video data without display?

Posted: 12 Jul 2008 16:04
by foruok
I looked the wiki for libvlc. There did have a list of the command-line arguments the vlc accept. But just option, no detail explain.
And I'd want to get a argument list for function libvlc_new. I try to digged into the source, but it's so complex. For example, I can give "--vmem" for libvlc_new, what does "--vmem" mean exactly? And so do other options.

Any way, thanks to VLC_HELP, for your help and zealous.

Re: how to get the decoded video data without display?

Posted: 13 Jul 2008 21:57
by VLC_help
I think those command line options are same as for normal VLC.
http://wiki.videolan.org/VLC_command-line_help

Re: how to get the decoded video data without display?

Posted: 14 Jul 2008 07:49
by foruok
I got my first example compiled today, based on the linkhttp://wiki.videolan.org/LibVLC_Tutorial_086c and 086i.
Thanks.
Now I'll try to build the nightly libvlc to run the SDLExample:http://wiki.videolan.org/LibVLC_SampleCode_SDL.
Thanks.