

They just keep track of the media stream's ID within the multimedia stream group, and hold an instance to a FFmpeg::Codec object if the codec of the stream was deducible. FFmpeg-Perl represents multimedia stream group information in a FFmpeg::StreamGroup object, which is a composite of FFmpeg::Stream objects.įFmpeg::Stream objects don't do much. This class has attributes applicable to any stream type in a multimedia stream, or stream group. See FFmpeg::StreamGroup for more information. Streams identified in the file whose content type cannot be determined are represented by FFmpeg::Stream::Unknown objects.Īccess FFmpeg::Stream objects using methods in FFmpeg::StreamGroup. Rather, objects are instantiated from FFmpeg::Stream's subclasses FFmpeg::Stream::Video for video streams, FFmpeg::Stream::Audio for audio streams, and FFmpeg::Stream::Data for streams containing neither audio nor video data. $st = ($sg->streams()) #this is a FFmpeg::Stream DESCRIPTIONįFmpeg::Stream objects are not instantiated. $sg = $ff->create_streamgroup() #see FFmpeg FFmpeg::Stream - An audio or video stream from a (multi)media file.
