Tatsuhiko Miyagawa > Video-Subtitle-SRT-0.01 > Video::Subtitle::SRT

Download:
Video-Subtitle-SRT-0.01.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  1
View/Report Bugs
Module Version: 0.01   Source   Latest Release: Video-Subtitle-SRT-0.05

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/

syntax highlighting: