MPEG::LibMPEG3 0.01
Sponsored Links
MPEG::LibMPEG3 0.01 Ranking & Summary
File size:
0.40 MB
Platform:
Any Platform
License:
Perl Artistic License
Price:
Downloads:
1096
Date added:
2006-11-16
Publisher:
Benjamin R. Ginter
MPEG::LibMPEG3 0.01 description
MPEG::LibMPEG3 is a Perl interface to libmpeg3 module.
SYNOPSIS
use strict;
use MPEG::LibMPEG3;
my $mpeg = MPEG::LibMPEG3->new( $filename );
$mpeg->set_cpus(1); ## I only have 1 cpu but you can put whatever
$mpeg->set_mmx(1); ## but it has mmx instructions
printf "Audio Streams: %dn", $mpeg->astreams;
for ( 0..$mpeg->astreams() - 1 ) {
print " Stream #$_n";
printf "tachans : %dn", $mpeg->achans( $_ );
printf "tarate : %dn", $mpeg->arate( $_ );
printf "taformat : %sn", $mpeg->acodec( $_ );
printf "tduration: %0.2fn", $mpeg->aduration( $_ );
print "n";
}
printf "Video Streams: %dn", $mpeg->vstreams;
for ( 0..$mpeg->vstreams() - 1 ) {
print " Stream #$_n";
printf "tWidth : %dn" , $mpeg->width( $_ );
printf "tHeight : %dn" , $mpeg->height( $_ );
printf "tAspect Ratio : %dn" , $mpeg->aspect( $_ );
printf "tFrame Rate : %0.2fn", $mpeg->fps( $_ );
printf "tTotal Frames : %dn" , $mpeg->vframes( $_ );
printf "tColor Model : %dn" , $mpeg->colormodel( $_ );
printf "tDuration : %0.2fn", $mpeg->vduration( $_ );
print "Dumping frames as YUVn";
for ( my $i = 0; $i < $mpeg->vframes; $i++ ) {
my $output_rows = $mpeg->get_yuv;
my $frame_yuv = sprintf( "%s-%05d.yuv", $file, $i );
# printf "Opening $frame_yuvn";
print .;
open OUT, "> $frame_yuv" or
die "Cant open file $frame_yuv for output: $!n";
print OUT $output_rows;
close OUT;
if ( $i > 1 && $i % $mpeg->fps($_) == 0 ) {
printf " %0.0f sec/sn", $i/$mpeg->fps($_);
}
}
printf " %0.2f sec/sn", $mpeg->duration;
}
The Moving Picture Experts Group (MPEG) is a working group in charge of the development of standards for coded representation of digital audio and video.
MPEG audio and video clips are ubiquitous but using Perl to programmatically collect information about these bitstreams has to date been a kludge at best.
This module uses the libmpeg3 library to parse and extract information from the bitstraems. It supports the following types of files:
MPEG-1 Layer II Audio
MPEG-1 Layer III Audio
MPEG-2 Layer III Audio
MPEG-1 program streams
MPEG-2 program streams
MPEG-2 transport streams
AC3 Audio
MPEG-2 Video
MPEG-1 Video
IFO files
VOB files
SYNOPSIS
use strict;
use MPEG::LibMPEG3;
my $mpeg = MPEG::LibMPEG3->new( $filename );
$mpeg->set_cpus(1); ## I only have 1 cpu but you can put whatever
$mpeg->set_mmx(1); ## but it has mmx instructions
printf "Audio Streams: %dn", $mpeg->astreams;
for ( 0..$mpeg->astreams() - 1 ) {
print " Stream #$_n";
printf "tachans : %dn", $mpeg->achans( $_ );
printf "tarate : %dn", $mpeg->arate( $_ );
printf "taformat : %sn", $mpeg->acodec( $_ );
printf "tduration: %0.2fn", $mpeg->aduration( $_ );
print "n";
}
printf "Video Streams: %dn", $mpeg->vstreams;
for ( 0..$mpeg->vstreams() - 1 ) {
print " Stream #$_n";
printf "tWidth : %dn" , $mpeg->width( $_ );
printf "tHeight : %dn" , $mpeg->height( $_ );
printf "tAspect Ratio : %dn" , $mpeg->aspect( $_ );
printf "tFrame Rate : %0.2fn", $mpeg->fps( $_ );
printf "tTotal Frames : %dn" , $mpeg->vframes( $_ );
printf "tColor Model : %dn" , $mpeg->colormodel( $_ );
printf "tDuration : %0.2fn", $mpeg->vduration( $_ );
print "Dumping frames as YUVn";
for ( my $i = 0; $i < $mpeg->vframes; $i++ ) {
my $output_rows = $mpeg->get_yuv;
my $frame_yuv = sprintf( "%s-%05d.yuv", $file, $i );
# printf "Opening $frame_yuvn";
print .;
open OUT, "> $frame_yuv" or
die "Cant open file $frame_yuv for output: $!n";
print OUT $output_rows;
close OUT;
if ( $i > 1 && $i % $mpeg->fps($_) == 0 ) {
printf " %0.0f sec/sn", $i/$mpeg->fps($_);
}
}
printf " %0.2f sec/sn", $mpeg->duration;
}
The Moving Picture Experts Group (MPEG) is a working group in charge of the development of standards for coded representation of digital audio and video.
MPEG audio and video clips are ubiquitous but using Perl to programmatically collect information about these bitstreams has to date been a kludge at best.
This module uses the libmpeg3 library to parse and extract information from the bitstraems. It supports the following types of files:
MPEG-1 Layer II Audio
MPEG-1 Layer III Audio
MPEG-2 Layer III Audio
MPEG-1 program streams
MPEG-2 program streams
MPEG-2 transport streams
AC3 Audio
MPEG-2 Video
MPEG-1 Video
IFO files
VOB files
MPEG::LibMPEG3 0.01 Screenshot
MPEG::LibMPEG3 0.01 Keywords
MPEG
LibMPEG3
LibMPEG3 0.01
0.2fn
Perl Interface
interface to
printf
dn
audio
print
1
Perl
MPEG::LibMPEG3
MPEGLibMPEG3
MPEG::LibMPEG3 0.01
Libraries
Bookmark MPEG::LibMPEG3 0.01
MPEG::LibMPEG3 0.01 Copyright
WareSeeker periodically updates pricing and software information of MPEG::LibMPEG3 0.01 full version from the publisher, so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of MPEG::LibMPEG3 0.01 Edition. Download links are directly from our publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed
Featured Software
Want to place your software product here?
Please contact us for consideration.
Contact WareSeeker.com
Related Information
Related Software
LibMPEG3 is a library for MP3, MP2, AC3, MPEG-1, and MPEG-2 video decoding. Free Download
MPEG::MP3Play is a Perl extension for playing back MPEG music. Free Download
MPEG::Audio::Frame is a class for weeding out MPEG audio frames out of a file handle. Free Download
Template::Plugin::MP3::Tag is a Perl interface to the MP3::Tag Module. Free Download
MPEG::Info is a basic MPEG bitstream attribute parser. Free Download
Text::Highlight is a syntax highlighting framework. Free Download
MPEG4IP provides an end-to-end system to explore streaming multimedia. Free Download
MRTG::Parse is a Perl extension for parsing and utilizing the logfiles generated by the famous MRTG Tool. Free Download
Latest Software
Popular Software
Favourite Software