MP4::LibMP4v2 - Perl interface to the libmp4v2
use MP4::LibMP4v2; my $mp4 = MP4::LibMP4v2->read('/path/to/movie.mp4'); my $num_tracks = $mp4->get_number_of_tracks; for (my $i = 0; $i < $num_tracks; $i++) { my $track_id = $mp4->find_track_id($i); my $bit_rate = $mp4->get_track_bit_rate($track_id); }
The MP4::LibMP4v2 module provides an interface to the libmp4v2. This module supports libmp4v4 version 2 or above. Please use MP4::File for its version 1.
Optimize the mp4 file.
Read the file and return an instance of MP4::LibMP4v2.
Set log level. Defaults to MP4_LOG_NONE.
Get log level.
https://github.com/sergiomb2/libmp4v2, MP4::File
Copyright (C) Jiro Nishiguchi.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Jiro Nishiguchi <jiro@cpan.org>
To install MP4::LibMP4v2, copy and paste the appropriate command in to your terminal.
cpanm
cpanm MP4::LibMP4v2
CPAN shell
perl -MCPAN -e shell install MP4::LibMP4v2
For more information on module installation, please visit the detailed CPAN module installation guide.