Git Product home page Git Product logo

iptvchecker's Introduction

IPTV Stream Checker

IPTV Stream Checker Python License

Overview

IPTV Stream Checker is a command-line tool designed to check the status of channels in an IPTV M3U8 playlist. It verifies if the streams are alive, captures screenshots, provides detailed information about video and audio streams, and identifies any potential issues like low framerates or mislabeled channels.

screenshot

Features

  • Check Stream Status: Verify if IPTV streams are alive or dead.
  • Split Playlist: Split into separate playlists for working and dead channels.
  • Capture Screenshots: Capture screenshots from live streams.
  • Group Filter: Option to check specific groups within the M3U8 playlist.
  • Detailed Stream Info: Retrieve and display video codec, resolution, framerate, and audio bitrate.
  • Low Framerate Detection: Identifies and lists channels with framerates at 30fps or below.
  • Mislabeled Channel Detection: Detects channels with resolutions that do not match their labels (e.g., "1080p" labeled as "4K").
  • Custom User-Agent: Uses IPTVChecker 1.0 as the user agent for HTTP requests.

Installation

Prerequisites

  • Python 3.6+
  • ffmpeg and ffprobe: Required for capturing screenshots and retrieving stream information.

Clone the Repository

git clone https://github.com/NewsGuyTor/IPTVChecker.git
cd IPTVChecker

Install Dependencies

pip install -r requirements.txt

Usage

Basic Command

python IPTV_checker.py /path/to/your/playlist.m3u8

Options

  • -group or -g: Specify a group title to check within the playlist.
  • -timeout or -t: Set a timeout in seconds for checking the channel status.
  • -extended or -e [seconds]: Enable an extended timeout check for channels detected as dead. If specified without a value, defaults to 10 seconds. This option allows you to retry dead channels with a longer timeout.
  • -split or -s: Create separate playlists for working and dead channels.
  • -rename or -r: Rename alive channels to include video and audio information in the playlist.
  • -v: Increase output verbosity to INFO level.
  • -vv: Increase output verbosity to DEBUG level.

Examples

  1. Standard Check with Default Settings:

    python IPTV_checker.py /path/to/your/playlist.m3u8
  2. Check a Specific Group:

    python IPTV_checker.py /path/to/your/playlist.m3u8 -group "SPORT HD"
  3. Check with Extended Timeout:

    python IPTV_checker.py /path/to/your/playlist.m3u8 -extended 30
  4. Split Playlist into Working and Dead Channels:

    python IPTV_checker.py /path/to/your/playlist.m3u8 -split
  5. Rename Working Channels with Video and Audio Info:

    python IPTV_checker.py /path/to/your/playlist.m3u8 -rename
  6. Split Playlist and Rename Working Channels:

    python IPTV_checker.py /path/to/your/playlist.m3u8 -split -rename
  7. Enable Debug Mode for Detailed Output:

    python IPTV_checker.py /path/to/your/playlist.m3u8 -vv

Output Format

The script will output the status of each channel in the following format:

1/5 ✓ Channel Name | Video: 1080p60 H264 - Audio: 159 kbps AAC

Low Framerate Channels

After processing, the script lists any channels with framerates of 30fps or below:

Low Framerate Channels:
1/5 EGGBALL TV HD - 25fps

Mislabeled Channels

The script also detects channels with incorrect labels:

Mislabeled Channels:
3/5 Sports5 FHD - Expected 1080p, got 4K

License

This project is licensed under the MIT License. See the LICENSE file for more details.

Contributing

Contributions are welcome! Please feel free to submit a Pull Request or open an issue if you have any ideas or feedback.

iptvchecker's People

Contributors

newsguytor avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

iptvchecker's Issues

there is no printing result saving into a new .txt or .m3u

i have some issue and feedback about this :

  1. there is no printing output result on the console saving into a new .txt or .m3u (separate Alivestream_result.m3u & failedstream_result .m3u)
  2. the output is saved into a new m3u with additional Video and Audio stream information on channel e.g. SKY NEWS 1080p25 H264 | 192 kbps AAC .This will be very useful to compare of picture and audio quality from various file streaming sources.

this is nice repo. very useful and easy to use for non programmer like me
hope there is an update for this features
Thanks a lot

can't retrieving stream information

Hi,
am just tried some source playlist w/ & w/o Increase output verbosity.
ffmpeg and ffprobe already installed and correct Path.

the issue is can't retrieving Audio Video stream information,below the result :
←[91m10/41 ICE| BESTA DEILDIN 2 FHD - Alive: ✕ ||| Video: Unknown - Audio: Unknown←[0m
2024-08-19 17:24:51,076 - INFO - 10/41 ICE| BESTA DEILDIN 2 FHD - Alive: ✕ ||| Video: Unknown - Audio: Unknown

am checking on folder captures screenshots is blank and there is no output file

am looking forward to your reply
Thanks & Regards,
Paijo

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.