From: Nicolas Gendron <nicolas.gendron@gm...> - 2005-03-18 16:41:01
This is what I want to do :
I have a player that plays a file and the image is being outputted in
an X11 windows.
Is there a way to open another stream, get info on it and event play
it without displaying it to get a frame to do a thumbnail and all that
without disturbing the file that is being outputted in the X11
I hope my question is clear enough :-)
"Two things are infinite: the universe and human stupidity. I'm not
sure about the universe." (Albert Einstein)
From: Michael Roitzsch <mroi@us...> - 2005-03-18 18:22:57
> This is what I want to do :
> I have a player that plays a file and the image is being outputted in
> an X11 windows.
> Is there a way to open another stream, get info on it and event play
> it without displaying it to get a frame to do a thumbnail and all that
> without disturbing the file that is being outputted in the X11
That should be no problem. Just create a framegrabber port with
xine_new_framegrab_video_port() and a new stream with xine_stream_new()
connected to the framegrabber video port and a NULL audio port (NULL ports
are supported in xine-lib 1.0 and maybe in the last two rc releases before
that). Playing the background file on this stream allows you to obtain the
meta info. You can get the first frame with xine_get_next_video_frame().
(You can also call this more than once to get a later frame, since the first
few frames might be black on some videos which fade in at the beginning. Make
sure to use xine_free_video_frame() properly.)
"A computer programmer is someone who, when told to "Go to Hell", sees
the "Go to", rather than the destination, as harmful."