Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save volodymyrsmirnov/b9983c43580cd2c2cce355d042bff25a to your computer and use it in GitHub Desktop.
Save volodymyrsmirnov/b9983c43580cd2c2cce355d042bff25a to your computer and use it in GitHub Desktop.
python hls-analyzer.py http://144.76.3.3:1935/live/bvntv_aac/playlist.m3u8
Master playlist. List of variants:
Playlist: http://144.76.3.3:1935/live/bvntv_aac/chunklist.m3u8, bw: 2994658
***** Analyzing variant (2994658) *****
** Generic information **
Version: 3
Start Media sequence: 307
Is Live: True
Encrypted: False
Number of segments: 3
Downloading http://144.76.3.3:1935/live/bvntv_aac/media-ubeeae38a_307.ts, Range: None
** Tracks and Media formats **
Track #0 - Type: video/avc, Format: Video (H.264) - Profile: Main, Level: 64, Resolution: 720x576, Encoded aspect ratio: 16/11, Display aspect ratio: 20/11
Track #1 - Type: audio/mp4a-latm, Format: Audio (AAC) - Sample Rate: 48000, Channels: 2
Track #2 - Type: application/id3, Format: ID3
** Timing information **
Segment declared duration: 10.08
Track #0 - Duration: 9.88 s, First PTS: 3590.307 s, Last PTS: 3600.187 s
Track #1 - Duration: 10.026333 s, First PTS: 3590.285666 s, Last PTS: 3600.311999 s
Track #2 - Duration: 0.0 s, First PTS: 0.0 s, Last PTS: 0.0 s
Duration difference (declared vs real): 0.2s (2.02%)
** Frames **
Track #0 - KF: 0.000, Frames: I B B P B B P B B P B B P B B P B B I B P B B P B B P B B P
Track #1 - KF: 0.021, Frames: I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I
Track #2 - KF: 0.000, Frames:
tvmucho-alpha:~/hls-analyzer# python hls-analyzer.py http://144.76.3.3:1935/live/itv2_540p/playlist.m3u8
Master playlist. List of variants:
Playlist: http://144.76.3.3:1935/live/itv2_540p/chunklist.m3u8, bw: 3492523
***** Analyzing variant (3492523) *****
** Generic information **
Version: 3
Start Media sequence: 4046
Is Live: True
Encrypted: False
Number of segments: 3
Downloading http://144.76.3.3:1935/live/itv2_540p/media-ueif5ra2r_4046.ts, Range: None
** Tracks and Media formats **
Track #0 - Type: video/avc, Format: Video (H.264) - Profile: Main, Level: 0, Resolution: 720x396, Encoded aspect ratio: 1/1, Display aspect ratio: 20/11
Track #1 - Type: audio/mp4a-latm, Format: Audio (AAC) - Sample Rate: 48000, Channels: 2
Track #2 - Type: application/id3, Format: ID3
** Timing information **
Segment declared duration: 10.2
Track #0 - Duration: 10.12 s, First PTS: 41281.607 s, Last PTS: 41291.727 s
Track #1 - Duration: 10.111999 s, First PTS: 41281.623333 s, Last PTS: 41291.735332 s
Track #2 - Duration: 0.0 s, First PTS: 0.0 s, Last PTS: 0.0 s
Duration difference (declared vs real): 0.088001s (0.87%)
** Frames **
Track #0 - KF: 2.120, Frames: I P P P P P P P P P P P P P P P P P P P P P P P P P P P P P
Track #1 - KF: 0.021, Frames: I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I
Track #2 - KF: 0.000, Frames:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment