Media::Convert::Asset::PNGGen3pm
Generate a video from a (list of) png files
Usage
use Media::Convert::Asset;use Media::Convert::Asset::PNGGen;use Media::Convert::Pipe;my $input = Media::Convert::Asset::PNGGen->new(url => $input_png_filename);my $output = Media::Convert::Asset->new(url => $output_filename);Media::Convert::Pipe->new(inputs => [$input], output => $output)->run;
Overview
This module uses the lavfi (the "libavfilter input virtual device", you figure out how that matches the abbreviation) functionality in ffmpeg to convert an image file into a video.
It will automatically match the input framerate to the output framerate; this means that the framerate on the output file must be set, either through a profile or by setting it explicitly.
Attributes
audio_channels
The option to give to the "channel_layout" attribute of the "anullsrc" audio source. Defaults to "mono".
loop
If truthy, loops over the PNG files given. Useful if there is only one PNG file, but then a video length for the output file should be given. If falsy, stops after all the input files are processed.
Defaults to true.
Releases
2 releases since Debian 12 (Bookworm); the text changed 1 time.