לדלג לתוכן

קובץ:Tripolitanian Front.ogv

תוכן הדף אינו נתמך בשפות אחרות.
מתוך ויקיפדיה, האנציקלופדיה החופשית

לקובץ המקורי(קובץ Ogg מרובב של שמע ווידאו, Theora/Vorbis, באורך 42 שניות, 853 × 480 פיקסלים, 823 קילו־ביטים בשנייה בסך הכול, גודל הקובץ: 4.16 מ"ב)

ויקישיתוף זהו קובץ שמקורו במיזם ויקישיתוף. תיאורו בדף תיאור הקובץ המקורי (בעברית) מוצג למטה.

תקציר

תיאור
English: Animated version of File:Tripolitanian Front.svg
תאריך יצירה
מקור

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
יוצר User:Rafy and others

רישיון

w:he:Creative Commons
ייחוס שיתוף זהה
הקובץ הזה מתפרסם לפי תנאי רישיון קריאייטיב קומונז ייחוס-שיתוף זהה 3.0 לא מותאם.
הנכם רשאים:
  • לשתף – להעתיק, להפיץ ולהעביר את העבודה
  • לערבב בין עבודות – להתאים את העבודה
תחת התנאים הבאים:
  • ייחוס – יש לתת ייחוס הולם, לתת קישור לרישיון, ולציין אם נעשו שינויים. אפשר לעשות את זה בכל צורה סבירה, אבל לא בשום צורה שמשתמע ממנה שמעניק הרישיון תומך בך או בשימוש שלך.
  • שיתוף זהה – אם תיצרו רמיקס, תשנו, או תבנו על החומר, חובה עליכם להפיץ את התרומות שלך לפי תנאי רישיון זהה או תואם למקור.

כיתובים

נא להוסיף משפט שמסביר מה הקובץ מייצג

פריטים שמוצגים בקובץ הזה

מוצג

היסטוריית הקובץ

ניתן ללחוץ על תאריך/שעה כדי לראות את הקובץ כפי שנראה באותו זמן.

תאריך/שעהתמונה ממוזערתממדיםמשתמשהערה
נוכחית19:42, 27 באוקטובר 201142 שניות, 853 × 480 (4.16 מ"ב)AzaTothupdate for the end of the war
23:10, 29 באוגוסט 201131 שניות, 853 × 480 (3.14 מ"ב)AzaTothupdated to current status and fixed the removal of reverted frames
04:31, 25 באוגוסט 201122 שניות, 800 × 330 (1.41 מ"ב)AzaToth

אין בוויקיפדיה דפים המשתמשים בקובץ זה.

מטא־נתונים