pods::SDL::MPEG(3pm) User Contributed Perl Documentation pods::SDL::MPEG(3pm)NAME
SDL::MPEG - a SDL perl extension
CATEGORY
TODO
SYNOPSIS
$info = SDL::MPEG->new( -from => $mpeg );
DESCRIPTION
"SDL::MPEG" provides an interface to querying the status of a SMPEG stream.
METHODS
o "SDL::MPEG::has_audio" returns true if it has audio track
o "SDL::MPEG::has_video" returns true if it has a video track
o "SDL::MPEG::width" returns the width of the video in pixels
o "SDL::MPEG::height" returns the height of the video in pixels
o "SDL::MPEG::size" returns the total size of the clip in bytes
o "SDL::MPEG::offset" returns the offset into the clip in bytes
o "SDL::MPEG::frame" returns the offset into the clip in frames
o "SDL::MPEG::fps" returns the play rate in frames per second
o "SDL::MPEG::time" returns the current play time in seconds
o "SDL::MPEG::length" returns the total play time in seconds
AUTHOR
David J. Goehrig
SEE ALSO perl(1)SDL::Video(3)perl v5.14.2 2012-05-28 pods::SDL::MPEG(3pm)
Check Out this Related Man Page
SDL::Video(3) User Contributed Perl Documentation SDL::Video(3)NAME
SDL::Video - a SDL perl extension
SYNOPSIS
$video = new SDL::Video ( -name => 'pr0n.mpg' );
DESCRIPTION
"SDL::Video" adds support for MPEG video to your SDL Perl application. Videos are objects bound to surfaces, whose playback is controled
through the object's interface.
METHODS
o "SDL::Video::error()" returns any error messages associated with playback
o "SDL::Video::audio(bool)" enables or disables audio playback, (on by default)
o "SDL::Video::video(bool)" enables or disable video playback, (on by default)
o "SDL::Video::loop(bool)" enables or disable playback looping (off by default)
o "SDL::Video::volume(int)" set the volume as per the mixer volume
o "SDL::Video:display(surface)" binds the clip to a display surface
o "SDL::Video::scale([x,y]|[surface]|int)" scales the clip by either x,y factors, scales to the image dimensions, or a single scalar.
o "SDL::Video::play()" plays the video clip, call "SDL::Video::display()" before playing
o "SDL::Video::pause()" pauses video playback
o "SDL::Video::stop()" stops video playback
o "SDL::Video::rewind()" resets the clip to the beginning
o "SDL::Video::seek(offset)" seeks to a particular byte offset
o "SDL::Video::skip(time)" skips to a particular time
o "SDL::Video::region(rect)" takes a SDL::Rect and defines the display area
o "SDL::Video::frame(int)" renders a specific frame to the screen
o "SDL::Video::info()" returns a new "SDL::MPEG" object reflecting the current status
o "SDL::Video::status()" returns either SMPEG_PLAYING or SMPEG_STOPPED or SMPEG_ERROR
AUTHOR
David J. Goehrig
SEE ALSO perl(1)SDL::Surface(3)SDL::MPEG(3)perl v5.12.1 2010-07-05 SDL::Video(3)
I get a:
Requirements:
SDL
when I'm browsing (www.happypenguin.org) for games.
According to wikipedia SDL can be:
where some are more likely than others. However, which one is it? I got an error because of SDL last time I tried and want to make it right before I try... (0 Replies)
Hi,
I am working on SDL open-source API's on Debian Linux for my game development project. I am not sure whether posting SDL related queries here is correct. I would like to know what is the difference between:
SDL_SetVideoMode() and SDL_VideoModeOK() functions (0 Replies)
I need script to convert many files of the format MPEG ADTS to a normal mp3. (because my net radio can't play ADTS, for example:
file plik.mp3
plik.mp3: MPEG ADTS, layer III, v1, 128 kBits, 44.1 kHz, JntStereo
not play
file beautiful.mp3
beautiful.mp3: Audio file with ID3 version 23.0 tag,... (6 Replies)
iam in the way of making graphics using SDL.i copied from cd usign
mount -a /cdrom
cd /cdrom
cp SDL-1.2.11.tar.gz /usr/test
cd /usr/test
gunzip SDL-1.2.11.tar.gz
tar -xf SDL-1.2.11.tar
cd SDL-1.2.11
./configure
...
...
it stops at
checking whether the c compiler... (4 Replies)
Discussion started by: kumarangopi
4 Replies
5. Post Here to Contact Site Administrators and Moderators
Hi, Folks -
I'm an engineer at a large software company. Earlier today I googled "glibc detected double free or corruption" and wound up on one of your threads, https://www.unix.com/high-level-programming/27544-glibc-detected-double-free-corruption-0x40236ff4.html.
I was helping out a... (14 Replies)
How do I play a sound file with SDL?
I've downloaded the library files but SDL/SDL_mixer.h (that most of the tutorials include) doesn't exist. So, how do I install it?
As I said mixer.h doesn't exist but, If it is helpful, the default code is this:
#include "stdlib.h"
#include "SDL/SDL.h"... (2 Replies)
Hi All,
I was wondering if someone could clarify the best way to display mpeg video with SDL in MinGW.
After scouring the internet it seems there is not a lot of information regarding this subject (or at least not up to date) and libraries that are available for this purpose.
Any help/... (1 Reply)