File:Tripolitanian Front.ogv
Original file (Ogg multiplexed audio/video file, Theora/Vorbis, length 42 s, 853 × 480 pixels, 823 kbps overall, file size: 4.16 MB)
Captions
Summary
editDescriptionTripolitanian Front.ogv |
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- 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/Time | Thumbnail | Dimensions | User | Comment | |
---|---|---|---|---|---|
current | 16:42, 27 October 2011 | 42 s, 853 × 480 (4.16 MB) | AzaToth (talk | contribs) | update for the end of the war | |
20:10, 29 August 2011 | 31 s, 853 × 480 (3.14 MB) | AzaToth (talk | contribs) | updated to current status and fixed the removal of reverted frames | ||
01:31, 25 August 2011 | 22 s, 800 × 330 (1.41 MB) | AzaToth (talk | contribs) |
You cannot overwrite this file.
File usage on Commons
The following page uses this file:
Transcode status
Update transcode statusMetadata
This file contains additional information such as Exif metadata which may have been added by the digital camera, scanner, or software program used to create or digitize it. If the file has been modified from its original state, some details such as the timestamp may not fully reflect those of the original file. The timestamp is only as accurate as the clock in the camera, and it may be completely wrong.
Software used |
---|