Hướng dẫn về Video Sitemap

Điều gì một video sitemap là và khi bạn cần một — đó bắt buộc và tùy chọn video:video tags, đó limits, accepted media và thumbnail file types, multiple videos theo trang, và đó mRSS alternative.

Xuất bản lần đầu: 22 thg 6, 2026 · Cập nhật lần cuối: 8 thg 8, 2026 · Advanced
Ngôn ngữ
1 tín hiệu bằng chứng trên trang này

MỘT video sitemap là an XML sitemap đó dùng Google video:video extension để tell Google về videos on của bạn các trang, especially newly đã thêm hoặc nếu không hard-để-discover ones. Mỗi video cần four bắt buộc pieces of metadata — một thumbnail (video:thumbnail_loc), một tiêu đề (video:tiêu đề), một mô tả (video:mô tả), và ít nhất một of video:content_loc (đó media file) hoặc video:player_loc (đó player) — và neither content_loc nor player_loc có thể là đó giống nhau URL as đó trang own loc. Đó namespace là http://www.google.com/schemas/sitemap-video/1.1, đó repeated video:tag element caps tại 32 theo video (đó là không một limit on total metadata các trường), duration chạy 1–28 800 seconds, và đó mô tả caps tại 2 048 characters. Mỗi referenced URL — trang, thumbnail, media file — phải được crawlable: không robots.txt block, không login wall, và content_loc không thể là một streaming-chỉ giao thức. Dùng đó hiện tại Google file-loại list (đó old .flv/.ra enumeration là stale), và không panic over đó tags Google deprecated trong 2022 — họ là safe để leave. mRSS là an accepted alternative. Bing không document video-sitemap hỗ trợ.

Tóm tắt — video sitemap là XML sitemap sử dụng video:video extension (namespace http://www.google.com/schemas/sitemap-video/1.1), phần lớn hữu ích cho videos đó là newly đã thêm hoặc nếu không hard để discover. Bắt buộc theo video: <video:thumbnail_loc>, <video:title>, <video:description>, plus ít nhất một của <video:content_loc> ( media file) hoặc <video:player_loc> ( player) — neither có thể là giống nhau URL as trang own <loc>. Tùy chọn tags refine nó trong limits — repeated <video:tag> element caps tại 32 theo video (không total-tag-count limit), duration 1–28 800 s, mô tả ≤2 048 chars. Bạn có thể nest multiple <video:video> chặn dưới một <loc> Đối với một trang với several videos. mỗi referenced URL phải là crawlable (không robots-blocked, không login wall), và content_loc có thể’t là streaming-chỉ giao thức. sử dụng Google hiện tại content_loc và thumbnail file-loại lists; tags Google deprecated trong 2022 là safe để leave trong place. mRSS là accepted alternative. Bing không document video-sitemap hỗ trợ.

Evidence for this claim A video sitemap supplies Google with video metadata, particularly for videos that are difficult to discover by normal crawling. Scope: Current Google video sitemap guidance. Confidence: high · Verified: Google Search Central: Video sitemaps Evidence for this claim Video sitemap entries require thumbnail URL, title, description, and either content URL or player URL; optional fields have documented constraints. Scope: Current Google video sitemap reference. Confidence: high · Verified: Google Search Central: Video sitemap reference

Điều gì video sitemap thực ra là

video sitemap là thông thường XML sitemap với Google video extension switched on. bạn thêm video namespace để của bạn <urlset>http://www.google.com/schemas/sitemap-video/1.1 — và sau đó, bên trong mỗi <url> block, bạn mô tả videos on đó trang với <video:video> tags. <loc> points tại trang video sits on (của nó landing trang hoặc watch trang), không tại video file; file lives bên trong <video:content_loc>.

bạn không có để maintain tách biệt file. Bạn có thể thêm video:video chặn để existing XML sitemap right alongside (hoặc theo cùng cách as) của bạn trang các URL — giống nhau way image tags nhận folded vào regular sitemap. và có non-XML option: Google cũng accepts mRSS (Media RSS) feed as way để cung cấp giống nhau video information.

Khi bạn cần một

MỘT video sitemap là đó rõ ràng way để tell Google điều gì videos bạn có và cách present them. Google own cách diễn đạt là hẹp hơn “use this for every video” (bản dịch) «dùng này cho mỗi video»: điều này calls out newly đã thêm videos và nếu không hard-để-discover nội dung as nơi đó extension earns của nó giữ — ví dụ, videos đó là lazy-loaded, JavaScript-injected, hoặc behind một custom player, hoặc nơi bạn muốn đầy đủ control over đó tiêu đề, mô tả, và thumbnail Google associates với mỗi video thay vì letting điều này infer những. As với mỗi sitemap, đây là một phát hiện aid — điều này helps Google tìm và understand của bạn videos, nhưng điều này không bao giờ bảo đảm một video là được lập chỉ mục hoặc surfaced.

Bắt buộc tags

mỗi video cần parent <video:video> block và, bên trong nó, four bắt buộc pieces của metadata:

  • <video:video> — đó parent element wrapping all đó information về một single video.
  • <video:thumbnail_loc>“A URL pointing to the video thumbnail image file.” (bản dịch) «MỘT URL pointing để đó video thumbnail image file.»
  • <video:title>“The title of the video. All HTML entities must be escaped or wrapped in a CDATA block.” (bản dịch) «Đó tiêu đề of đó video. All HTML entities phải được escaped hoặc wrapped trong một CDATA block.»
  • <video:description> — đó mô tả of đó video (≤2 048 characters).
  • Ít nhất một of:
    • <video:content_loc>“A URL pointing to the actual video media file.” (bản dịch) «MỘT URL pointing để đó thực tế video media file.» Này là đó một Google khuyến nghị khi bạn có thể supply điều này.
    • <video:player_loc> — một URL để một player đó embeds/plays đó video.

nếu Bạn có thể cho cả hai content_locplayer_loc, làm — nhưng một là đủ để là hợp lệ. Một constraint áp dụng để cả hai: neither content_loc nor player_loc có thể là giống nhau URL as trang own <loc>. Google documents điều này requirement riêng cho mỗi tag — nó không tùy chọn, và nó trips lên sitemaps đó reuse landing-trang URL as placeholder media/player link.

Tùy chọn và được khuyến nghị tags (và limits)

Beyond bắt buộc đặt, Bạn có thể refine mỗi video với tùy chọn tags: <video:duration>, <video:expiration_date>, <video:rating>, <video:view_count>, <video:publication_date>, <video:family_friendly>, <video:restriction>, <video:platform>, <video:requires_subscription>, <video:uploader>, <video:live>, và <video:tag>. họ help Google understand freshness, eligibility, và context — ví dụ, expiration_date tells Google Khi để dừng cho thấy video, và live flags trực tiếp stream.

Three limits để respect:

  • <video:tag> caps tại 32 theo video. Đây là limit on repeated từ khóa-tag element cụ thể (tạo một <video:tag> theo từ khóa, lên để
  1. — nó là không cap on total number của metadata các trường <video:video> block có thể carry. video với four bắt buộc tags plus several tùy chọn ones (duration, rating, publication date, và so on) là fine; chỉ count của <video:tag> elements là bounded tại 32.
  • <video:duration> phải là 1–28 800 seconds (đó hard ceiling của 8 hours).
  • <video:description> ≤2 048 characters.

Multiple videos on một trang

nếu single trang hosts nhiều hơn một video, bạn không tạo multiple <url> entries — bạn giữ một <loc> cho trang và nest multiple <video:video> chặn bên trong đó giống nhau <url>. mỗi <video:video> mô tả một video, với của nó own thumbnail, tiêu đề, mô tả, và nội dung/player link.

Accessibility: mọi thứ bạn reference phải là crawlable

Đây là rule đó âm thầm breaks video sitemaps. mỗi URL bạn put trong file — trang trong <loc>, <video:thumbnail_loc>, và <video:content_loc>/<video:player_loc> — có để là fetchable by Google:

  • không blocked trong robots.txt. nếu thumbnail directory hoặc media file là disallowed, Google có thể’t sử dụng nó.
  • không behind login wall hoặc bất kỳ access gate.
  • content_loc phải là trực tiếp fetchable filestreaming-chỉ các giao thức không phải supported. nếu của bạn video là chỉ khả dụng over streaming giao thức thay vì as file Google có thể download, point Google tại player với player_loc thay vì, hoặc cung cấp fetchable media file cho content_loc.

Accepted file types

sử dụng Google hiện tại lists ở đây — older enumeration đó được bao gồm formats như .flv.ra/.ram là stale, và lot của thứ ba-party các hướng dẫn vẫn quote nó.

<video:content_loc> media files — Google supported video formats là: 3GP, 3G2, ASF, AVI, DivX, M2V, M3U, M3U8, M4V, MKV, MOV, MP4, MPEG, OGV, QVT, RAM, RM, VOB, WebM, WMV, XAP. file tại đó URL nên là một của những điều này và trực tiếp fetchable.

<video:thumbnail_loc> thumbnails — supported image formats là BMP, GIF, JPEG, PNG, WebP, SVG, và AVIF. thumbnail phải là ít nhất 60×30 pixels (lớn hơn là được ưu tiên) và sit tại ổn định, crawlable URL — không point nó tại URL đó rotates hoặc expires.

Deprecated tags (safe để leave)

Google announced này deprecation on Có thể 6, 2022, effective August 6, 2022: <video:category>, đó allow_embedautoplay các thuộc tính on <video:player_loc>, <video:gallery_loc>, <video:price>, và <video:tvshow>. Bạn không cần để rush để strip những out. Theo Google announcement, những tags “will have no effect on indexing and search features” (bản dịch) «sẽ có không effect on lập chỉ mục và tìm kiếm features» và có “no immediate action required” (bản dịch) «không immediate hành động bắt buộc» — bạn có thể leave them trong place không có drawbacks. Xóa them on của bạn own schedule, hoặc không tại all.

Cách điều này fits rest của sitemap family

video sitemap là một extension among several. XML sitemap là base format; image sitemap là parallel cho images; sitemap chỉ mục ties multiple sitemap files together sau khi bạn cross 50 000-URL / 50MB-theo-file limit; và sitemaps overview covers Khi bạn cần bất kỳ của điều này tại all và Cách submit nó. Video tags có thể trực tiếp trong của họ own file hoặc là combined vào regular sitemap. cho bigger picture của Cách engines tìm của bạn các URL trong đầu tiên place, see phát hiện.

Một phạm vi note: Đây là Google extension. Bing không document video-sitemap hỗ trợ — nó defers để base sitemaps.org giao thức — so treat video:video as Google feature và không expect Bing để act on nó.

Add an expert note

Pin an expert quote

New person? Create their unclaimed profile at /admin/experts/ → Pin a quote first.