Go Live on Instagram, Loop a Video.
Web UI to loop a local video and stream it to Instagram Live via RTMP (FFmpeg, vertical 720×1280).
Published image: imvickykumar999/insta-loop-live
- Docker installed
- Instagram RTMP URL and stream key (from Instagram when you go live)
docker pull imvickykumar999/insta-loop-live:latestdocker run -d \
--name insta-loop-live \
--restart unless-stopped \
-p 3000:5000 \
-v "$(pwd)/uploads:/app/uploads" \
-v "$(pwd)/logs:/app/logs" \
imvickykumar999/insta-loop-live:latestOpen the app: http://localhost:3000
| Flag | Purpose |
|---|---|
-p 3000:5000 |
App on port 3000 (container listens on 5000) |
-v .../uploads |
Persist uploaded videos |
-v .../logs |
Persist stream logs |
--restart unless-stopped |
Keep running in the background |
To save RTMP URL, stream key, and video path between restarts, mount a config file:
# Create config on the host first (example)
cat > ig_stream_config.json << 'EOF'
{
"video": "/app/uploads/your-video.mp4",
"url": "rtmps://live-upload.instagram.com:443/rtmp/",
"key": "YOUR_STREAM_KEY"
}
EOF
docker run -d \
--name insta-loop-live \
--restart unless-stopped \
-p 3000:5000 \
-v "$(pwd)/uploads:/app/uploads" \
-v "$(pwd)/logs:/app/logs" \
-v "$(pwd)/ig_stream_config.json:/app/ig_stream_config.json" \
imvickykumar999/insta-loop-live:latestSecurity: Do not commit
ig_stream_config.jsonto git; it contains your stream key.
- Open http://localhost:3000
- Upload a video or set the path to
/app/uploads/yourfile.mp4 - Enter your RTMP URL and stream key
- Click Go Live to start looping the video to Instagram
- Click Stop stream when finished
After upload via the UI, use the container path (e.g. /app/uploads/myvideo.mp4) as the video source.
docker logs -f insta-loop-live # follow logs
docker stop insta-loop-live # stop
docker start insta-loop-live # start again
docker rm -f insta-loop-live # removegit clone https://github.com/imvickykumar999/Insta-Loop-Live.git
cd Insta-Loop-Live
python3 -m venv .venv && source .venv/bin/activate
pip install -r requirements.txt
# Requires ffmpeg on the host
python app.pyOr build and run locally:
docker-compose up -d --buildBSD-3-Clause — see LICENSE.