calesthio/OpenMontage · error · ValueError

Video is embedded from external platform: {src}

Error message

Video is embedded from external platform: {src}

What it means

Error "Video is embedded from external platform: {src}" thrown in calesthio/OpenMontage.

Source

Thrown at tools/video/stock_sources/noaa.py:172

                if src:
                    download_url = src
                    break

            # Look for download links
            if not download_url:
                for a in soup.select("a[href]"):
                    href = a.get("href", "")
                    if any(ext in href.lower() for ext in [".mp4", ".mov", ".webm"]):
                        download_url = href
                        break

            # Look for YouTube embeds
            if not download_url:
                for iframe in soup.select("iframe[src]"):
                    src = iframe.get("src", "")
                    if "youtube" in src or "vimeo" in src:
                        _log.warning("NOAA video is embedded from %s — cannot download directly", src)
                        raise ValueError(f"Video is embedded from external platform: {src}")

            if not download_url:
                raise ValueError(f"Could not find video URL on NOAA page: {detail_url}")

            if not download_url.startswith("http"):
                download_url = f"https://www.noaa.gov{download_url}"

            return self._stream_download(download_url, out_path)

        except Exception as e:
            raise RuntimeError(f"NOAA download failed for {detail_url}: {e}") from e

    def _stream_download(self, url: str, out_path: Path) -> Path:
        import requests

        with requests.get(
            url, stream=True, timeout=180,
            headers={"User-Agent": "OpenMontage/1.0"},

View on GitHub (pinned to 95e1c3d0ab)

Solutions

  1. This NOAA asset is hosted on an external platform (e.g. YouTube); download it from the platform directly with a tool like yt-dlp.
  2. Choose a different NOAA candidate that is directly hosted.

When it happens

Trigger: A NOAA stock-footage page embeds video from an external platform instead of hosting a direct file, so no direct download is possible.

Common situations: See trigger scenarios.


AI-assisted analysis of calesthio/OpenMontage@95e1c3d0ab (2026-08-15). Data as JSON: /api/errors/90c8f3d357ed33bd. Report an issue: GitHub.