[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-dev] How to play flv videos using gnash-framebuffer?
From: |
Jun Ma |
Subject: |
[Gnash-dev] How to play flv videos using gnash-framebuffer? |
Date: |
Thu, 20 Mar 2008 17:42:25 +0800 |
I saw a lot of comments about gnash's flv supporting, almost all of
them were talking about the gnash firefox plugin. Is it possible to
play flv in a stand-alone routine?
Here comes the verbose message:
# ./gnash ~/movies/intel.flv -vv
14998] 21:40:46: DEBUG: Verbose output turned on
14998] 21:40:46: DEBUG: No rendering flags specified, using rcfile
14998] 21:40:46: DEBUG: Pointing device /dev/input/event0 open
14998] 21:40:46: DEBUG: Keyboard device /dev/input/event0 open
14998] 21:40:46: DEBUG: Framebuffer device uses 3145728 bytes of memory.
14998] 21:40:46: DEBUG: Video mode: 1024x768 with 16 bits per pixel.
14998] 21:40:46: DEBUG: Double buffering enabled
14998] 21:40:46: DEBUG: red channel: 11 / 5
14998] 21:40:46: DEBUG: green channel: 5 / 6
14998] 21:40:46: DEBUG: blue channel: 0 / 5
14998] 21:40:46: DEBUG: Total bits per pixel: 16
14998] 21:40:46: DEBUG: framebuffer pixel format is RGB565 (little-endian host)
14998] 21:40:46: DEBUG: initialized AGG buffer <0xb64c7008>, 3145728
bytes, 1024x768, rowsize is 2048 bytes
14998] 21:40:46: DEBUG: Original TTY NO = 1
14998] 21:40:46: DEBUG: VT 1 ready
14998] 21:40:46: DEBUG: Base url set to: file:///root/movies/intel.flv
14998] 21:40:46: DEBUG: /root/movies/ appended to local sandboxes
14998] 21:40:46: DEBUG: /root/movies/intel.flv appended to local sandboxes
14998] 21:40:46: SECURITY: Load of file /root/movies/intel.flv granted
(under local sandbox /root/movies/).
14998] 21:40:46: ERROR: unknown file type (unknown)
14998] 21:40:46: ERROR: Couldn't load library movie
'file:///root/movies/intel.flv'
Could not load movie '/root/movies/intel.flv'
14998] 21:40:46: DEBUG: Restoring terminal...
14998] 21:40:46: DEBUG: Closing framebuffer device
14998] 21:40:46: DEBUG: Free'ing offscreen buffer
After quick glance at CVS code, I saw this function:
movie_definition*
create_movie(std::auto_ptr<tu_file> in, const std::string& url, bool
startLoaderThread)
{
assert(in.get());
ensure_loaders_registered();
// see if it's a jpeg or an swf
// TODO: use an integer code rather then a string !
std::string type = get_file_type(in.get());
if ( type == "jpeg" )
{
if ( startLoaderThread == false )
{
log_unimpl(_("Requested to keep from completely loading a movie,
but the movie in question is a jpeg, for which we don't yet have the
concept of a 'loading thread'"));
}
return create_jpeg_movie(in, url);
}
else if ( type == "png" )
{
if ( startLoaderThread == false )
{
log_unimpl(_("Requested to keep from completely loading a movie,
but the movie in question is a png, for which we don't yet have the
concept of a 'loading thread'"));
}
return create_png_movie(in, url);
}
else if ( type == "swf" )
{
return create_swf_movie(in, url, startLoaderThread);
}
log_error(_("unknown file type (%s)"), type.c_str());
return NULL;
}
Seems not support flv? Am I missing anything? I have read User Manual
and Reference Manual, but with no luck.
Sorry if I send to a wrong maillist(dev?), :)
--
FIXME if it is wrong.
- [Gnash-dev] How to play flv videos using gnash-framebuffer?,
Jun Ma <=