| FFmpeg documentation | Contained in the FFmpeg distribution. |
FFmpeg::Stream::Audio - An audio stream from a (multi)media stream group.
$ff = FFmpeg->new(); #see FFmpeg #... $sg = $ff->create_streamgroup(); #see FFmpeg $st = ($sg->streams())[0]; #this is a FFmpeg::Stream
Objects of this class are not intended to be instantiated directly by the end user. Access FFmpeg::Stream::Audio objects using methods in FFmpeg::StreamGroup. See FFmpeg::StreamGroup for more information.
This class represents an audio stream in a multimedia stream group, and has audio-specific attributes. General stream attributes can be found in the FFmpeg::Stream class.
See FEEDBACK in FFmpeg for details.
Allen Day <allenday@ucla.edu>
Copyright (c) 2003-2004 Allen Day
This library is released under GPL, the Gnu Public License
The rest of the documentation details each of the object methods. Internal methods are usually preceded with a '_'. Methods are in alphabetical order for the most part.
This class inherits from FFmpeg::Stream. See FFmpeg::Stream/new() (FFmpeg::Stream::new())
This class inherits from FFmpeg::Stream. See FFmpeg::Stream/init() (FFmpeg::Stream::init())
$obj->channels(); #get existing value
number of audio channels in this stream, if applicable
value of channels (a scalar)
none, read-only
$obj->sample_format(); #get existing value
??? FIXME
value of sample_format (a scalar)
none, read-only
$obj->sample_rate(); #get existing value
audio samples/second, or Hertz (Hz).
value of sample_rate (a scalar)
none, read-only
| FFmpeg documentation | Contained in the FFmpeg distribution. |
# Let the code begin... package FFmpeg::Stream::Audio; use strict; use base qw(FFmpeg::Stream); our $VERSION = '0.01';
sub channels { my $self = shift; return $self->{'channels'}; }
sub sample_format { my $self = shift; return $self->{'sample_format'}; }
sub sample_rate { my $self = shift; return $self->{'sample_rate'}; } 1;