SDL::MPEG - a SDL perl extension
TODO
$info = SDL::MPEG->new( -from => $mpeg );
SDL::MPEG provides an interface to quering the status of a SMPEG stream.
SDL::MPEG
SDL::MPEG::has_audio returns true if it has audio track
SDL::MPEG::has_audio
SDL::MPEG::has_video returns true if it has a video track
SDL::MPEG::has_video
SDL::MPEG::width returns the width of the video in pixels
SDL::MPEG::width
SDL::MPEG::height returns the height of the video in pixels
SDL::MPEG::height
SDL::MPEG::size returns the total size of the clip in bytes
SDL::MPEG::size
SDL::MPEG::offset returns the offset into the clip in bytes
SDL::MPEG::offset
SDL::MPEG::frame returns the offset into the clip in fames
SDL::MPEG::frame
SDL::MPEG::fps returns the play rate in frames per second
SDL::MPEG::fps
SDL::MPEG::time returns the current play time in seconds
SDL::MPEG::time
SDL::MPEG::length returns the total play time in seconds
SDL::MPEG::length
David J. Goehrig
perl(1) SDL::Video(3)
To install SDL, copy and paste the appropriate command in to your terminal.
cpanm
cpanm SDL
CPAN shell
perl -MCPAN -e shell install SDL
For more information on module installation, please visit the detailed CPAN module installation guide.