| Video-Subtitle-SRT documentation | view source | Contained in the Video-Subtitle-SRT distribution. |
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.
| Video-Subtitle-SRT documentation | view source | Contained in the Video-Subtitle-SRT distribution. |