Skip to content

Capture characteristic data of streams in playlist file.

License

Notifications You must be signed in to change notification settings

mezz64/StreamCrawler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

StreamCrawler

Description

This is a simple script, developed on linux for python 3, to crawl through a m3u playlist file and run ffmpeg on each of the discovered streams for the purpose of capturing the stream characteristics (Video: Resolution, FPS, Bitrate - Audio: Type, Channels, Bitrate).

This is a work in progress and may break easily. Watch the log to see what's going on.

Requirements

  • Python 3+ (No special libraries required)
  • FFMPEG
  • FFPROBE

Usage

Basic, evaluate each stream in playlist for 60 seconds. python3 ./stream_crawl.py -i http://path_to_m3u -t 60 -o output.csv

Groups, output unique groups in playlist. python3 ./stream_crawl.py -i http://path_to_m3u -g

Filter, evaluate each stream in playlist that matches specified group for 60 seconds. python3 ./stream_crawl.py -i http://path_to_m3u -t 60 -o output.csv -f "Special Group"

Flags

  • -i - Define path to input playlist (works for web links or local file paths)
  • -o - Define output csv file path (ex. output.csv)
  • -t - Duration to evaluate each stream in the playlist in seconds (ex. 60)
  • -g - Parse unique groups in supplied playlist and output to the terminal. This command does not analyze any streams.
  • -f - Filter analyzed streams to those that match the specified group name. (ex. NEWS)

About

Capture characteristic data of streams in playlist file.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages