Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MP4 videos not rendering #3473

Open
oseymour opened this issue Jan 16, 2025 · 6 comments
Open

MP4 videos not rendering #3473

oseymour opened this issue Jan 16, 2025 · 6 comments
Labels
bug Something isn't working cannot reproduce

Comments

@oseymour
Copy link

Describe the bug

I'm trying to view a video using mo.video() and the video is not showing correctly in the marimo editor.

I can't share the video here because work IP things, but here is what I'm seeing in the notebook. There are no issues with the video when I open it in a media viewer. I've tried several other MP4 files and get the same result.
Image

I also can't view the video in the example code from the video docs.

Environment

{
  "marimo": "0.10.13",
  "OS": "Windows",
  "OS Version": "10",
  "Processor": "Intel64 Family 6 Model 94 Stepping 3, GenuineIntel",
  "Python Version": "3.11.2",
  "Binaries": {
    "Browser": "128.0.6613.121",
    "Node": "--"
  },
  "Dependencies": {
    "click": "8.1.8",
    "docutils": "0.21.2",
    "itsdangerous": "2.2.0",
    "jedi": "0.19.2",
    "markdown": "3.7",
    "narwhals": "1.22.0",
    "packaging": "24.2",
    "psutil": "6.1.1",
    "pygments": "2.19.1",
    "pymdown-extensions": "10.14",
    "pyyaml": "6.0.2",
    "ruff": "0.9.2",
    "starlette": "0.45.2",
    "tomlkit": "0.13.2",
    "typing-extensions": "4.12.2",
    "uvicorn": "0.34.0",
    "websockets": "14.1"
  },
  "Optional Dependencies": {}
}

Code to reproduce

import marimo as mo

mo.video(
    src="https://v3.cdnpk.net/videvo_files/video/free/2013-08/large_watermarked/hd0992_preview.mp4",
    controls=False,
)
@oseymour oseymour added the bug Something isn't working label Jan 16, 2025
@mscolnick
Copy link
Contributor

This works fine for me. Could be a windows issue? anything in the network tab or terminal?

mo.video(
    src="https://v3.cdnpk.net/videvo_files/video/free/2013-08/large_watermarked/hd0992_preview.mp4",
)

@oseymour
Copy link
Author

@mscolnick There's nothing in the terminal. What is the network tab?

@mscolnick
Copy link
Contributor

It's the browser network tab, under the Developer Tools. E.g. Chrome Developer Tools

@oseymour
Copy link
Author

oseymour commented Feb 7, 2025

So I tried displaying the video from that URL on another machine and it worked. Something with the network config on the 1st machine I tried this on must have blocked that video.

But I still cannot display a local MP4 file on either machine.

@mscolnick
Copy link
Contributor

Could it be an ad-blocker?

@oseymour
Copy link
Author

oseymour commented Feb 8, 2025

Oh it certainly could be, I use uBlock. I'm gone on vacation next week and I'm having this issue on my work laptop. I'll check this out when I'm back.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working cannot reproduce
Projects
None yet
Development

No branches or pull requests

2 participants