A simple containerized IPTV Player with native xtream support
5.2K
A feature-rich, containerized IPTV player built with ASP.NET Core 10.0 (Blazor Server). Handles live streams that traditional media servers struggle with, while providing DVR functionality, EPG integration, and multi-user support.
⚠️ This version requires compose changes if you're upgrading from the older
lanedfritz/iptv-playerimage — it needs a new required setting and a one-time data migration step. New install or already on this version? You can ignore this and just follow Quick Start below. Upgrading? Read Upgrading from the Legacy Image before you deploy.
/scalar/v1New install, or already on this version? Follow New Install below — the "Upgrading" section after it doesn't apply to you.
Running the older lanedfritz/iptv-player image? Skip ahead to Upgrading from the Legacy Image.
Pull the image from Docker Hub — this repo doesn't ship a compose file for you, so create one yourself, e.g. docker-compose.yml:
services:
iptv-player:
image: lanedfritz/iptv-player:latest
container_name: iptv-player
# Uncomment if you have NVIDIA Container Toolkit installed on the host
# AND want GPU-accelerated transcoding. Also enable "Use GPU" in app Settings.
# runtime: nvidia
ports:
- "8000:5100"
volumes:
# App data (Data Protection keys, etc.) — persisted across updates
- /your/data/path:/app/data
# Recordings storage
- /your/recordings:/data/recordings
# HLS stream buffer (live TV)
- /your/streams:/data/streams
# Docker socket — required for container restart from the UI
- /var/run/docker.sock:/var/run/docker.sock
environment:
- ConnectionStrings__DefaultConnection=Host=postgres;Database=frequentsee;Username=frequentsee;Password=CHANGE_ME
- JwtSettings__SecretKey=some-random-string-at-least-32-bytes-long
- StreamSettings__StreamsDirectory=/data/streams
- DVRSettings__RecordingsDirectory=/data/recordings
- TZ=America/Chicago
- ASPNETCORE_ENVIRONMENT=Production
depends_on:
postgres:
condition: service_healthy
restart: unless-stopped
networks:
- iptv-network
postgres:
image: postgres:16-alpine
container_name: iptv-postgres
volumes:
- /your/postgres/data:/var/lib/postgresql/data
environment:
- POSTGRES_DB=frequentsee
- POSTGRES_USER=frequentsee
- POSTGRES_PASSWORD=CHANGE_ME # must match ConnectionStrings__DefaultConnection above
restart: unless-stopped
networks:
- iptv-network
healthcheck:
test: ["CMD-SHELL", "pg_isready -U frequentsee -d frequentsee"]
interval: 10s
timeout: 5s
retries: 5
networks:
iptv-network:
driver: bridge
docker-compose up -d
Access at: http://your-server-ip:8000
If you're running the older lanedfritz/iptv-player image, a few things changed that the legacy app never needed:
/app/data or /data/recordings mounts — the new image uses the same paths, so your existing recordings keep working with no changes needed.JwtSettings__SecretKey (new, required) — the app won't start without it:
- JwtSettings__SecretKey=some-random-string-at-least-32-bytes-long
ConnectionStrings__DefaultConnection at a new, separate database (not your existing one) — e.g. change the Database= name to frequentsee. This database doesn't need to exist beforehand; it's created automatically on first startup.PostgresConnection pointing at your old database, in the same format the legacy app used:
- PostgresConnection=Host=postgres;Database=iptv;Username=iptv;Password=...
/Migration, which shows a preflight summary (row counts, warnings) of what it found in the old database. Review it, then run the migration. Your old database is never modified — it's only ever read, so it stays available as a rollback.Name: My IPTV Service
Type: M3U
M3U URL: http://your-provider.com/playlist.m3u
XMLTV URL: http://your-provider.com/epg.xml (optional)
Name: My Xtream Service
Type: Xtream Codes
Server: http://your-provider.com:port
Username: your_username
Password: your_password
From TV Guide:
While Watching:
Scheduled Recording:
| Path | Purpose | Can Use tmpfs? |
|---|---|---|
| PostgreSQL data volume | Database, must persist | ❌ No |
/data/recordings | Final MP4 recordings, must persist | ❌ No |
/data/streams | HLS buffers (temporary) | ✅ Yes |
/data/transcodes | FFmpeg working files (temporary) | ✅ Yes |
tmpfs for performance (optional):
volumes:
- ./data:/app/data
- ./recordings:/data/recordings
tmpfs:
- /data/streams:size=2G
- /data/transcodes:size=1G
Database:
- ConnectionStrings__DefaultConnection=Host=postgres;Database=frequentsee;Username=frequentsee;Password=...
Authentication (required):
- JwtSettings__SecretKey=some-random-string-at-least-32-bytes-long
Upgrading from the legacy image (optional):
# Points at your old database so the app can detect it and offer to migrate.
# Only needed during the upgrade — see "Upgrading from the Legacy Image" above.
- PostgresConnection=Host=postgres;Database=iptv;Username=iptv;Password=...
Streaming:
- StreamSettings__StreamsDirectory=/data/streams
- StreamSettings__TranscodeDirectory=/data/transcodes
- StreamSettings__StreamInactivityTimeoutMinutes=30
- StreamSettings__MaxConcurrentSessions=10
DVR:
- DVRSettings__RecordingsDirectory=/data/recordings
- DVRSettings__MaxConcurrentRecordings=4
- DVRSettings__PrePaddingSeconds=60
- DVRSettings__PostPaddingSeconds=120
TMDb (for posters):
- TMDbSettings__ApiKey=your-tmdb-api-key
- TMDbSettings__EnablePosterLookup=true
Get a free TMDb API key at: https://www.themoviedb.org/settings/api
Channels auto-refresh based on provider settings. Manual refresh:
POST /api/providers/{id}/refreshInteractive API documentation available at:
Authentication:
POST /api/auth/login - Login with username/passwordPOST /api/auth/logout - Logout current sessionChannels:
GET /api/channels - List channels (supports search, group filter)GET /api/channels/{id} - Get channel details with current EPGRecordings:
GET /api/recordings - List recordingsPOST /api/recordings - Schedule recordingGET /api/recordings/{id}/thumbnail - Get recording thumbnailPOST /api/recordings/{id}/cancel - Cancel/stop recordingProviders:
GET /api/providers - List providersPOST /api/providers - Add providerPUT /api/providers/{id} - Update providerDELETE /api/providers/{id} - Remove providerSystem:
GET /api/systemstatus - Real-time system metricsGET /api/logs - Query logssrc/Frequentsee.Application/Services/)PostgreSQL (pgvector/pgvector:pg16) via Entity Framework Core. Key tables:
curl -I "your-m3u-url"docker exec iptv-player which ffmpeg/data/recordings has write permissionsdocker exec iptv-player ffmpeg -versiondocker ps / docker logs iptv-postgresConnectionStrings__DefaultConnection matches the Postgres container name/credentialsdocker-compose up -d --buildFor 10,000+ channels, increase memory limit:
deploy:
resources:
limits:
memory: 1G
# Install .NET 10.0 SDK
dotnet restore
dotnet run --project src/Frequentsee.Web/Frequentsee.Web.csproj
# Access at http://localhost:5100
git clone https://github.com/yourusername/iptv-player.git
cd iptv-player
docker build -f src/Frequentsee.Web/Dockerfile -t frequentsee:latest .
# Add migration
dotnet ef migrations add MigrationName
# Apply migrations
dotnet ef database update
Free to use and modify for personal use.
This is a personal project, but feedback and suggestions are welcome!
For issues and questions:
/scalar/v1Built with ❤️ for handling problematic IPTV streams
docker pull lanedfritz/iptv-player:latest