File:Tripolitanian Front.ogv

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

Original file(Ogg multiplexed audio/video file, Theora/Vorbis, length 42 s, 853 × 480 pixels, 823 kbps overall, file size: 4.16 MB)

Captions

Captions

Add a one-line explanation of what this file represents

Summary

[edit]
Description
English: Animated version of File:Tripolitanian Front.svg
Date
Source

File:Tripolitanian_Front.svg Images grabbed using following perl script:

#!/usr/bin/perl 

use strict;
use warnings;

use v5.10;
use XML::LibXML 1.70;
use File::Slurp;
require LWP::UserAgent;
use Image::LibRSVG;
use SVG::Parser;
use Digest::file qw(digest_file_hex);

my $API_PATH="http://commons.wikimedia.org/w/api.php?action=query&titles=File:Tripolitanian_Front.svg&prop=imageinfo&iilimit=500&iiprop=url|timestamp&iiend=20110411220000&format=xml";

my $rsvg = new Image::LibRSVG();
my $ua = LWP::UserAgent->new;
my $response = $ua->get($API_PATH);
my (@sources, @sorted);
my %found;
if ($response->is_success) {
	my $dom = XML::LibXML->load_xml( string => $response->decoded_content );
	foreach my $node ($dom->findnodes("//ii")) {
		my $url = $node->getAttribute("url");
		my $time = $node->getAttribute("timestamp");
		my $svg = "sources/$time.svg";
		my $png = "rendered/$time.png";
		if( ! -f $svg ) {
			$response = $ua->get($url);
			if ($response->is_success) {
				my $data = $response->decoded_content;
				my $svg_dom=SVG::Parser->new()->parse($data);
				write_file($svg, $svg_dom->xmlify);
				say "wrote $svg";
			}
		}
		push @sources, [$time, digest_file_hex($svg, 'MD5')]
	}

	foreach my $source( @sources ) {
		my ($time, $md5) = @$source;
		if( exists $found{$md5} ) {
			for(reverse @sorted) {
				last if $_->[1] eq $md5;
				if( $_->[2] ) {
					say "skipping $_->[0]"
				}
				$_->[2] = 0;
			}
		} else {
			$found{$md5} = 1;
			push @sorted, [$time, $md5,1];
		}
	}
use File::Copy;
	my $counter = 0;
	system("mkdir -p res; rm -rf res/*");
	foreach my $source (reverse @sorted) {
		my ($time, $md5, $keep) = @$source;
		my $png = "rendered/$time.png";
		my $svg = "sources/$time.svg";
		my $res = sprintf "res/img_%03d.png", $counter;
		++$counter;
		unless($keep == 1) {
			# earlier "last" might have been reverted
			if( -f $png ) {
				unlink($png);
			}
			next;
		}
		if( ! -f $png ) {
			$rsvg->convertAtSize($svg, $png, 800, 329);
			say "wrote $png";
		}
		copy($png,$res);

	}
}
else {
	die $response->status_line;
}

now I used dvd-slideshow, fist using dir2slideshow:

dir2slideshow -t 0.5 -c 0.5 -notitle res

manually fix res.txt to remove the background entry and exit frames, after that:

dvd-slideshow -H -w -smp res.txt

and finally:

ffmpeg2theora -v 10 res.vob
Author User:Rafy and others

Licensing

[edit]
w:en:Creative Commons
attribution share alike
This file is licensed under the Creative Commons Attribution-Share Alike 3.0 Unported license.
You are free:
  • to share – to copy, distribute and transmit the work
  • to remix – to adapt the work
Under the following conditions:
  • attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
  • share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible license as the original.

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeThumbnailDimensionsUserComment
current16:42, 27 October 201142 s, 853 × 480 (4.16 MB)AzaToth (talk | contribs)update for the end of the war
20:10, 29 August 201131 s, 853 × 480 (3.14 MB)AzaToth (talk | contribs)updated to current status and fixed the removal of reverted frames
01:31, 25 August 201122 s, 800 × 330 (1.41 MB)AzaToth (talk | contribs)

The following page uses this file:

Transcode status

Update transcode status
Format Bitrate Download Status Encode time
VP9 480P 271 kbps Completed 04:44, 24 October 2018 31 s
Streaming 480p (VP9) Not ready Unknown status
VP9 360P 134 kbps Completed 04:44, 24 October 2018 22 s
Streaming 360p (VP9) Not ready Unknown status
VP9 240P 77 kbps Completed 04:44, 24 October 2018 16 s
Streaming 240p (VP9) 59 kbps Completed 01:22, 21 December 2023 1.0 s
WebM 360P 500 kbps Completed 17:15, 18 November 2012 39 s
Streaming 144p (MJPEG) 1.02 Mbps Completed 15:26, 10 November 2023 2.0 s
Stereo (Opus) 2 kbps Completed 02:26, 10 November 2023 1.0 s
Stereo (MP3) 114 kbps Completed 02:28, 10 November 2023 1.0 s

Metadata