stribny / fastapi-video

Video streaming with FastAPI

Home Page:https://stribny.name/blog/fastapi-video

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Streaming video with FastAPI

Read the blog post: Streaming video with FastAPI.

You will need a video in the video format that is supported by your browser. Place it in the root folder as video.mp4 or modify the video path in the source code.

To run the example, install Poetry and then execute:

poetry install && poetry shell
uvicorn main:app --reload

Then just navigate to the main page at http://127.0.0.1:8000/ and the video should be streamed.

About

Video streaming with FastAPI

https://stribny.name/blog/fastapi-video


Languages

Language:Python 79.2%Language:HTML 20.8%