Commons:Video2commons/cs

video2commons je nástroj pro nahrávání videí na Commons z odkazu, nebo převodu videa do požadovaného formátu.
Obsahuje funkce jako odstranění audia, titulků, či videa. Ty jsou všechny ve výchozím nastavení importovány. Nástroj používá pro přihlášení OAuth.
Jak to funguje
- Navšivte https://video2commons.toolforge.org a přihlaste se.
- Stiskněte „Add task…“.
- Zvolte video, které chcete konvertovat.
- Pokud nechcete audio, video nebo titulky, odškrtněte tyto možnosti importu.
- Vyplňte šablonu pro popis souboru a přidejte kategorie.
- Konverze začne na cloudu:
- První krok ukáže načítací pruh.
- Druhý krok ukáže pruh postupu, s indikací zbývajících procent.
- Konvertované video je automaticky nahráno na Commons.
Mějte na paměti, že nemůžete nahrát soubor, pokud již existuje stránka se stejným názvem na Commons.
Zatímco běží konverze, můžete bez obav zavřít okno prohlížeče. Konverze probíhá na serveru, ne na vašem počítači.
Můžete přidat více úkolů. Ty budou přidány na konec fronty a publikují se, až budou dokončeny.
Limited capacity
Please keep in mind the following facts before requesting a large number of files in order to keep the service available to others:
- this is a small community service, not a powerful infrastructure managed by the WMF;
- it can currently handle 20 encoding tasks at the same time;
- large videos can take several hours to encode. There's a timeout at 48 hours. If you have no idea how long it will take, please send only a few files to have an estimate before sending dozens or hundreds of files.
- you can monitor the current workload on Grafana, here. The graph about agregated load indicates the current CPU usage, from 0 to around 100-120.
Please do not send a large number of files if you see that the workload is higher than 100 for several hours, it means the service is at full capacity.
Běžné chyby
- An exception occurred: TaskError: File already exists. Please choose another name.
- To znamená, že již existuje video soubor se stejným názvem jako soubor, který se snažíte nahrát. Je to pravděpodobně stejné video. Zkontroluje případnou duplicitu a pokud to není stejné video, zvolte jiný název.
- An exception occurred: TaskError: /mnt/nfs/labstore-secondary-project/gentoo-prefix/usr/bin/ffmpeg -y -i /srv/v2c/output/b4a696bee515adb1/dl.mp4 -max_muxing_queue_size 4096 -threads 16 -row-mt 1 -crf 20 -qmin 1 -qmax 51 -b:v 0 -vcodec libvpx-vp9 -tile-columns 4 -auto-alt-ref 1 -lag-in-frames 25 -speed 4 -f webm -ss 0 -an -pass 1 -passlogfile /srv/v2c/output/b4a696bee515adb1/dl.mp4.vp9.webm.log /dev/null Exitcode: 1
- To znamená: ?
- An exception occurred: TaskError: pywikibot.Error: APIError: stashfailed: Internal error: Server failed to publish temporary file. [help:See https://commons.wikimedia.org/w/api.php for API usage. Subscribe to the mediawiki-api-announce mailing list at <https://lists.wikimedia.org/mailman/listinfo/mediawiki-api-announce> for notice of API deprecations and breaking changes.]
- To znamená: ?
- An exception occurred: DownloadError: ERROR: KTvdqve_naM: "token" parameter not in video info for unknown reason; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see https://yt-dl.org/update on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
- To znamená: ?
- Failed to determine the path of the downloaded video. Is the video too large?
- To znamená: ?
- An exception occurred: WorkerLostError: Worker exited prematurely: signal 9 (SIGKILL).
- To znamená: ?
- An exception occurred: TaskError: b"b'pywikibot.Error: APIError: stashfailed: Could not acquire lock. Somebody else is doing something to this file...
- Meaning: Commons website problem. Not v2c problem.
- Solution: Click "Restart".
- An exception occurred: TaskError: pywikibot.Error: TimeoutError: Maximum retries attempted without success.
- To znamená: ?
- An exception occurred: FileNotFoundError: b"[Errno 2] No such file or directory: '/data/project/video2commons/video2commons/frontend/static/uploads/73c147e0-19ea-11ed-9b40-82d0630f66a4'"
- Meaning: ?
- An exception occurred: TypeError: b"'NoneType' object is not iterable"
- Meaning: ?
- An exception occurred: TypeError: b"'The file format could not be recognised."
- Meaning: ?
- An exception occurred: DownloadError: b"'ERROR: [youtube] XXXXXXXXXXX: Sign in to confirm you\xe2\x80\x99re not a bot. This helps protect our community. Learn more."
- Meaning: ?
- b'Audio is asked to be kept but the file has no audio tracks.
- Solution: do not select "Keep audio".
Stránky, které fungují
Tento nástroj používá youtube-dl ke čtení obsahu stránek pro zjištění video souborů a získání přiřazených informací. Nové stránky mohou být přidány tzv. „extrakčním“ souborem pro tento nástroj. Některé stránky budou fungovat i bez použití vlastního extrakčního souboru.
Beware that some sites such as YouTube forbid automated downloader tools, so this tool may be frequently rate-limited or blocked.
Odkazy
- video2commons
- Zdrojový kód na GitHubu
- Category:Uploaded with video2commons
- Poslední načtené soubory (Galerie) (search for a media with MediaSearch)
- Grafana: real-time monitoring of servers
- Technická dokumentace na wikitech
- Překládejte na TranslateWiki.net
- VideoCutTool: video editing tool