<commit_before>package SReview::Video::PNGGen;

use Moose;

extends 'SReview::Video';

sub readopts {
	my $self = shift;
	my $output = shift;


	return ('-loop', '1', '-framerate', $output->video_framerate, '-i', $self->url, '-f', 'lavfi', '-i', 'anullsrc');
}

no Moose;<commit_msg>Ensure that the image resolution is always correct<commit_after>package SReview::Video::PNGGen;

use Moose;
use Carp;

extends 'SReview::Video';

sub readopts {
	my $self = shift;
	my $output = shift;

	if(defined($output->video_size) && ($self->video_size ne $output->video_size)) {
		croak "Video resolution does not match image resolution";
	}

	return ('-loop', '1', '-framerate', $output->video_framerate, '-i', $self->url, '-f', 'lavfi', '-i', 'anullsrc');
}

no Moose;
{'fraction_non_alphanumeric': 0.19393139841688653, 'fraction_numerical': 0.002638522427440633, 'mean_word_length': 5.120967741935484, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 10, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2238171', 'n_tokens_mistral': 287, 'n_tokens_neox': 278, 'n_words': 74}