Commons:video2commons/zh

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search
This page is a translated version of a page Commons:Video2commons and the translation is 49% complete. Changes to the translation template, respectively the source language can be submitted through Commons:Video2commons and have to be approved by a translation administrator.
Outdated translations are marked like this.

Shortcut: COM:V2C

截图

video2commons工具可从url将视频上传到维基共享资源。它能自动地将上传的视频转换为符合共享资源要求的格式。

它还包括移除音频流、视频流、字幕流等的功能。 本工具支持OAuth登录。

如何使用

  1. 访问 https://video2commons.toolforge.org 并登录
  2. 点击“新建任务...”
  3. 选择要转换的视频
    1. If you do not want audio, video, or subtitles, deselect import options
  4. 在模板中填写文件描述并添加类别
  5. 转换将在云端开始:
    • 第一步将显示加载栏
    • 第二步将显示一个进度条,显示剩余的百分比
  6. 转换后的视频会自动上传到共享资源

您不能使用该工具覆盖已有的文件。

当任务正在运行时,您可以关闭您的浏览器,因为转换是在服务器上,而不是在您的电脑上进行。

您还可以添加更多任务。它们将被添加到队列中并在完成后发布。

可能的错误

发生异常:TaskError:文件已存在。请选择一个不同的文件名。
原因:这表示已经存在一个视频文件,它与你试图上传的视频有着完全相同的标题。它们可能是同一个视频。如果确认不是同一个视频的话,请另选一个不重复的标题。
发生异常: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
Meaning: First pass of transcoding to WebM failed
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.]
Meaning: Video was transcoded, uploaded and assembled. But publishing was not successful
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.
Meaning: Downloading of video with youtube-dl from the internet failed
Failed to determine the path of the downloaded video. Is the video too large?
Meaning: ?
An exception occurred: WorkerLostError: Worker exited prematurely: signal 9 (SIGKILL).
Meaning: transcoding of video was killed because of limited ressources of the computer running the software
An exception occurred: TaskError: pywikibot.Error: TimeoutError: Maximum retries attempted without success.
Meaning: uploading, or assembling or publishing took to long. aborted
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: ?


Sites that work

The tool uses yt-dlp to parse websites for video files and obtain associated information. New sites can be added by adding 'extractor' files to that tool. Some sites will work without needing a dedicated extractor file.

链接