| 1 | package Media::Convert; | ||
| 2 | |||
| 3 | 16 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 16 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | 16 | our $VERSION; | |
| 7 | 16 | $VERSION = "1.6.1"; | |
| 8 | |||
| 9 | =head1 NAME | ||
| 10 | |||
| 11 | Media::Convert - a Moose-based library to work with media assets | ||
| 12 | |||
| 13 | =head1 SYNOPSIS | ||
| 14 | |||
| 15 | use Media::Convert::Asset; | ||
| 16 | use Media::Convert::Pipe; | ||
| 17 | |||
| 18 | my $input = Media::Convert::Asset->new(url => $input_filename); | ||
| 19 | say "Input video codec is " . $input->video_codec; | ||
| 20 | my $output = Media::Convert::Asset->new(url => "output.mkv", video_codec => "libvpx", audio_codec => "vorbis"); | ||
| 21 | my $pipe = Media::Convert::Pipe => new(inputs => [$input], output => $output); | ||
| 22 | $pipe->run; | ||
| 23 | |||
| 24 | =head1 DESCRIPTION | ||
| 25 | |||
| 26 | Media::Convert is a library that allows one to inspect and work | ||
| 27 | with (edit, convert, transcode) media files. Behind the scenes, | ||
| 28 | Media::Convert generates and runs ffmpeg/ffprobe command lines to | ||
| 29 | perform the requested operations. | ||
| 30 | |||
| 31 | Media::Convert was originally a part of the SReview web-based video | ||
| 32 | review and transcoding tool, but it was split off for being useful | ||
| 33 | enough in its own right. | ||
| 34 | |||
| 35 | Media::Convert uses semver as explained at L<https://semver.org> | ||
| 36 | |||
| 37 | =head1 SEE ALSO | ||
| 38 | |||
| 39 | L<Media::Convert::Asset>, L<Media::Convert::Pipe>, L<Media::Convert::Asset::ProfileFactory> | ||
| 40 | |||
| 41 | =cut | ||
| 42 | |||
| 43 | 16 | 1; | |