NAME
Video::Subtitle::SRT - Handle Subtitle (.SRT) file with a callback
SYNOPSIS
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}
}
DESCRIPTION
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.
AUTHOR
Tatsuhiko Miyagawa <miyagawa@bulknews.net>
LICENSE
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
SEE ALSO
http://en.wikipedia.org/wiki/SubRip http://www.opensubtitles.org/