Video::Subtitle::SRT - Handle Subtitle (.SRT) file with a callback
use Video::Subtitle::SRT; my $subtitle = Video::Subtitle::SRT->new(\&callback); $subtitle->parse($fh); sub callback { my $data = shift; # $data->{number} # $data->{start_time} # $data->{end_time} # $data->{text} }
Video::Subtitle::SRT is a callback based parser to parse SubRip subtitle files (.SRT). See "adjust-srt" in bin how to use this module to create subtitle delays adjusting tools.
Tatsuhiko Miyagawa <miyagawa@bulknews.net>
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
http://en.wikipedia.org/wiki/SubRip http://www.opensubtitles.org/
To install Video::Subtitle::SRT, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Video::Subtitle::SRT
CPAN shell
perl -MCPAN -e shell install Video::Subtitle::SRT
For more information on module installation, please visit the detailed CPAN module installation guide.