Skip to content

Instantly share code, notes, and snippets.

@mago0
Created June 5, 2017 16:56
Show Gist options
  • Save mago0/9eeac8edab48f39a2af6da01b7b576f6 to your computer and use it in GitHub Desktop.
Save mago0/9eeac8edab48f39a2af6da01b7b576f6 to your computer and use it in GitHub Desktop.
./eval_stream.sh 'http://flocasts-hls.videocdn.scaleengine.net/flocasts-em3/play/elf1064s_sre_test_test.smil/playlist.m3u8?REDACTED'
Stream Info:
ffprobe version 3.3 Copyright (c) 2007-2017 the FFmpeg developers
built with Apple LLVM version 8.1.0 (clang-802.0.42)
configuration: --prefix=/usr/local/Cellar/ffmpeg/3.3 --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-ffplay --enable-libmp3lame --enable-libx264 --enable-libxvid --enable-opencl --disable-lzma --enable-vda
libavutil 55. 58.100 / 55. 58.100
libavcodec 57. 89.100 / 57. 89.100
libavformat 57. 71.100 / 57. 71.100
libavdevice 57. 6.100 / 57. 6.100
libavfilter 6. 82.100 / 6. 82.100
libavresample 3. 5. 0 / 3. 5. 0
libswscale 4. 6.100 / 4. 6.100
libswresample 2. 7.100 / 2. 7.100
libpostproc 54. 5.100 / 54. 5.100
{
Input #0, hls,applehttp, from 'http://flocasts-hls.videocdn.scaleengine.net/flocasts-em3/play/elf1064s_sre_test_test.smil/playlist.m3u8?REDACTED':
Duration: N/A, start: 2874.514289, bitrate: N/A
Program 0
Metadata:
variant_bitrate : 2128000
Stream #0:0: Data: timed_id3 (ID3 / 0x20334449)
Metadata:
variant_bitrate : 2128000
Stream #0:1: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 90k tbn, 47.95 tbc
Metadata:
variant_bitrate : 2128000
Stream #0:2: Audio: aac (LC) ([15][0][0][0] / 0x000F), 44100 Hz, stereo, fltp
Metadata:
variant_bitrate : 2128000
Program 1
Metadata:
variant_bitrate : 1628000
Stream #0:3: Data: timed_id3 (ID3 / 0x20334449)
Metadata:
variant_bitrate : 1628000
Stream #0:4: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p, 960x540 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 90k tbn, 47.95 tbc
Metadata:
variant_bitrate : 1628000
Stream #0:5: Audio: aac (LC) ([15][0][0][0] / 0x000F), 44100 Hz, stereo, fltp
Metadata:
variant_bitrate : 1628000
Program 2
Metadata:
variant_bitrate : 1128000
Stream #0:6: Data: timed_id3 (ID3 / 0x20334449)
Metadata:
variant_bitrate : 1128000
Stream #0:7: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p, 854x480 [SAR 1:1 DAR 427:240], 23.98 fps, 23.98 tbr, 90k tbn, 47.95 tbc
Metadata:
variant_bitrate : 1128000
Stream #0:8: Audio: aac (LC) ([15][0][0][0] / 0x000F), 44100 Hz, stereo, fltp
Metadata:
variant_bitrate : 1128000
Program 3
Metadata:
variant_bitrate : 778000
Stream #0:9: Data: timed_id3 (ID3 / 0x20334449)
Metadata:
variant_bitrate : 778000
Stream #0:10: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p, 640x360 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 90k tbn, 47.95 tbc
Metadata:
variant_bitrate : 778000
Stream #0:11: Audio: aac (LC) ([15][0][0][0] / 0x000F), 44100 Hz, stereo, fltp
Metadata:
variant_bitrate : 778000
Program 4
Metadata:
variant_bitrate : 478000
Stream #0:12: Data: timed_id3 (ID3 / 0x20334449)
Metadata:
variant_bitrate : 478000
Stream #0:13: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p, 426x240 [SAR 1:1 DAR 71:40], 23.98 fps, 23.98 tbr, 90k tbn, 47.95 tbc
Metadata:
variant_bitrate : 478000
Stream #0:14: Audio: aac (LC) ([15][0][0][0] / 0x000F), 44100 Hz, stereo, fltp
Metadata:
variant_bitrate : 478000
Unsupported codec with id 100358 for input stream 0
Unsupported codec with id 100358 for input stream 3
Unsupported codec with id 100358 for input stream 6
Unsupported codec with id 100358 for input stream 9
Unsupported codec with id 100358 for input stream 12
"streams": [
{
"index": 0,
"codec_name": "timed_id3",
"codec_long_name": "timed ID3 metadata",
"codec_type": "data",
"codec_tag_string": "ID3 ",
"codec_tag": "0x20334449",
"r_frame_rate": "0/0",
"avg_frame_rate": "0/0",
"time_base": "1/90000",
"disposition": {
"default": 0,
"dub": 0,
"original": 0,
"comment": 0,
"lyrics": 0,
"karaoke": 0,
"forced": 0,
"hearing_impaired": 0,
"visual_impaired": 0,
"clean_effects": 0,
"attached_pic": 0,
"timed_thumbnails": 0
},
"tags": {
"variant_bitrate": "2128000"
}
},
{
"index": 1,
"codec_name": "h264",
"codec_long_name": "H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10",
"profile": "Main",
"codec_type": "video",
"codec_time_base": "1001/48000",
"codec_tag_string": "[27][0][0][0]",
"codec_tag": "0x001b",
"width": 1280,
"height": 720,
"coded_width": 1280,
"coded_height": 720,
"has_b_frames": 0,
"sample_aspect_ratio": "1:1",
"display_aspect_ratio": "16:9",
"pix_fmt": "yuv420p",
"level": 31,
"chroma_location": "left",
"refs": 1,
"is_avc": "false",
"nal_length_size": "0",
"r_frame_rate": "24000/1001",
"avg_frame_rate": "24000/1001",
"time_base": "1/90000",
"start_pts": 258706800,
"start_time": "2874.520000",
"bits_per_raw_sample": "8",
"disposition": {
"default": 0,
"dub": 0,
"original": 0,
"comment": 0,
"lyrics": 0,
"karaoke": 0,
"forced": 0,
"hearing_impaired": 0,
"visual_impaired": 0,
"clean_effects": 0,
"attached_pic": 0,
"timed_thumbnails": 0
},
"tags": {
"variant_bitrate": "2128000"
}
},
{
"index": 2,
"codec_name": "aac",
"codec_long_name": "AAC (Advanced Audio Coding)",
"profile": "LC",
"codec_type": "audio",
"codec_time_base": "1/44100",
"codec_tag_string": "[15][0][0][0]",
"codec_tag": "0x000f",
"sample_fmt": "fltp",
"sample_rate": "44100",
"channels": 2,
"channel_layout": "stereo",
"bits_per_sample": 0,
"r_frame_rate": "0/0",
"avg_frame_rate": "0/0",
"time_base": "1/90000",
"start_pts": 258706286,
"start_time": "2874.514289",
"disposition": {
"default": 0,
"dub": 0,
"original": 0,
"comment": 0,
"lyrics": 0,
"karaoke": 0,
"forced": 0,
"hearing_impaired": 0,
"visual_impaired": 0,
"clean_effects": 0,
"attached_pic": 0,
"timed_thumbnails": 0
},
"tags": {
"variant_bitrate": "2128000"
}
}
### TRUNCATED ALL THE LOWER QUALITY STREAMS ###
],
"format": {
"filename": "http://flocasts-hls.videocdn.scaleengine.net/flocasts-em3/play/elf1064s_sre_test_test.smil/playlist.m3u8?REDACTED",
"nb_streams": 15,
"nb_programs": 5,
"format_name": "hls,applehttp",
"format_long_name": "Apple HTTP Live Streaming",
"start_time": "2874.514289",
"size": "1222",
"probe_score": 100
}
}
Get Stream Rate:
[ 223KiB/s]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment