Video::Subtitle::SRT - Handle Subtitle (.SRT) file with a callback


Video-Subtitle-SRT documentation  | view source Contained in the Video-Subtitle-SRT distribution.

Index


NAME

Top

Video::Subtitle::SRT - Handle Subtitle (.SRT) file with a callback

SYNOPSIS

Top

  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

Top

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

Top

Tatsuhiko Miyagawa <miyagawa@bulknews.net>

LICENSE

Top

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

SEE ALSO

Top

http://en.wikipedia.org/wiki/SubRip http://www.opensubtitles.org/


Video-Subtitle-SRT documentation  | view source Contained in the Video-Subtitle-SRT distribution.