IPTV M3U Validator: A Reliable Tool for Playlist Validation
The IPTV M3U Validator is a Python-based utility that helps validate IPTV playlist URLs, check for active streams, and extract useful metadata like resolution and icons. It generates clean, validated .m3u files for use with IPTV players, ensuring a seamless streaming experience.
Whether you’re managing large playlists or troubleshooting broken links, this tool simplifies the process with live terminal output, detailed logging, and automatic file generation.
GitHub Repository: IPTV-M3U-Validator
Key Features
Section titled “Key Features”- Stream Validation: Check if streams are accessible and playable.
- Resolution Detection: Extract video resolutions for valid streams.
- Icon Support: Include channel icons in the output
.m3ufile. - Detailed Logging: Generate comprehensive logs for debugging.
- Terminal Updates: Live progress updates during validation.
- Summarized Results: Quickly see active vs inactive streams.
Installation/Setup
Section titled “Installation/Setup”Follow these steps to set up the IPTV M3U Validator:
-
Clone the Repository:
Terminal window git clone https://github.com/binuengoor/IPTV-M3U-Validator.gitcd IPTV-M3U-Validator -
Create and Activate a Virtual Environment:
Terminal window python3 -m venv venvsource venv/bin/activate # On Windows: venv\Scripts\activate -
Install Dependencies:
Terminal window pip install -r requirements.txt -
Install FFmpeg (if not already installed):
Terminal window sudo apt install ffmpeg # Ubuntubrew install ffmpeg # macOS -
Add IPTV Playlist URLs: Edit the
playlist_urls.txtfile and include your playlist URLs, one per line:https://example.com/playlist1.m3u8https://example.com/playlist2.m3u8
Common Usage/Examples
Section titled “Common Usage/Examples”Validate a Playlist and Generate Output Files
Section titled “Validate a Playlist and Generate Output Files”Run the main script to process your IPTV playlists:
python iptv_validator.pyExample output in the terminal:
✅ - Mazhavil Manorama - 1920x1080❌ - Asianet✅ - Flowers TV - 1280x720❌ - Zee Keralam HDOutputs
Section titled “Outputs”valid_streams.m3u: Contains validated streams with resolutions and icons.iptv_validator.log: Logs detailed results for troubleshooting.
Example valid_streams.m3u content:
#EXTM3U#EXTINF:-1 tvg-logo="https://example.com/icon1.png",Mazhavil Manorama (1920x1080)https://example.com/mazhavil.m3u8#EXTINF:-1 tvg-logo="https://example.com/icon2.png",Flowers TV (1280x720)https://example.com/flowers.m3u8Additional Options/Tips
Section titled “Additional Options/Tips”- Use Live Icons: If your playlists include
tvg-logoattributes, they will be added automatically to the output.m3u. - Check Logs: For failed streams or debugging, review
iptv_validator.log. - Customize Timeouts: Update the
TIMEOUTvariable in the script to adjust request timeouts for slow servers.
Requirements:
Section titled “Requirements:”- Python 3.8+
- FFmpeg for stream analysis.
The IPTV M3U Validator simplifies playlist management, ensures valid streams, and improves the quality of your IPTV experience. Give it a try and see the difference! 🚀