Media:...:PNGGen(3pm)
β¨ NAME β¨
Media::Convert::Asset::PNGGen β bestie, this thing makes a whole entire video out of a PNG file (or a whole list of them π )
πΈ SYNOPSIS πΈ
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;
π¦ DESCRIPTION π¦
okay so. This module uses the lavfi functionality inside ffmpeg β and yes, lavfi is short for the "libavfilter input virtual device", and no, we are not going to explain how that matches the abbreviation, you figure it out yourself π« β to turn an image file into a video.
It will automatically match the input framerate to the output framerate. Which means... the framerate on the output file MUST be set, either through a profile or by setting it explicitly. No framerate, no vibes, no video. Periodt. π
π ATTRIBUTES π
π audio_channels
The option to hand over to the channel_layout attribute of the anullsrc audio source. Defaults to mono. π§
π loop
If it's truthy, it loops over the PNG files you gave it. Super useful if there's only one PNG file β but then you should also give a video length for the output file, otherwise... yeah. If it's falsy, it stops after all the input files are processed.
Defaults to true. πβ¨
π BUGS π
ngl, this module does not work correctly with Media::Convert::Map. It's giving broken. π If you need to create a map, first generate a video with this file, and then initialize a regular Media::Convert::Asset object with it. That's the move. π«Ά
perl v5.40.1 Β· 2026-02-15 Β· User Contributed Perl Documentation
okay that's the whole page bestie, you're so welcome, go make your video, slay πππΈ
π¦ where this page comes from
- ubuntu resolute: libmedia-convert-perl 1.5.2-1
- ubuntu stonking: libmedia-convert-perl 1.5.2-1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms