Stream video content directly to VLC as it downloads. Smart piece prioritization ensures smooth playback from the start.
Install libtorrent
sudo apt-get install python3-libtorrent
Install torrent-dl
pip install torrent-dl
Everything you need for seamless torrent playback
Start watching within seconds. Smart piece prioritization downloads the beginning of files first for immediate playback.
Skip ahead freely. The download strategy adapts to your viewing position, fetching needed pieces on demand.
Built-in HTTP server serves content to any media player. Supports range requests for proper seeking.
Files are saved to disk as they download. Watch now, keep forever.
Works with magnet URIs. Just paste a link and start watching.
Custom download paths, port settings, upload/download limits. Tune it to your needs.
One command to start streaming
torrent-dl "magnet:?xt=urn:btih:..."
Opens VLC and starts playback automatically
torrent-dl --serve "magnet:?xt=urn:btih:..."
Starts HTTP server without launching VLC
torrent-dl -p 8080 -d ~/Movies "magnet:..."
Serve on port 8080, save to ~/Movies
Smart downloading for smooth streaming
Connect to the swarm and download torrent metadata to identify files and their structure.
Download the first pieces of the video file at high priority for immediate playback.
Launch HTTP server and begin serving content to VLC as pieces arrive.
As you seek or skip, the strategy shifts to fetch the pieces you need next.
What you need to get started
Modern Python installation required
System library for BitTorrent protocol
For automatic media playback
sudo apt-get install python3-libtorrent vlc
brew install libtorrent-rasterbar vlc
Watch your torrents without waiting for the full download.