Good tutorial.
It is important to press F12 before stream starts, to catch playlist.m3u8.
If you press F12 after stream starts, there won't be playlist.m3u8, only hundreds of chunklist.m3u8.
ffmpeg can download this stream with good user agent, without referer.
Code:
C:\>ffmpeg -user_agent "stagefright/1.2 (Linux;Android 8.0.0)" -i "https://prepublish.f.qaotic.net/b09/ngrp:el12_live01-100083_all/Playlist.m3u8?sense=true" -c copy file.ts
ffmpeg version 4.0 Copyright (c) 2000-2018 the FFmpeg developers
built with gcc 7.3.0 (GCC)
configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-bzlib --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libfreetype
--enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libtheora
--enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp
--enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-libmfx --enable-amf --enable-ffnvcodec
--enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth
libavutil 56. 14.100 / 56. 14.100
libavcodec 58. 18.100 / 58. 18.100
libavformat 58. 12.100 / 58. 12.100
libavdevice 58. 3.100 / 58. 3.100
libavfilter 7. 16.100 / 7. 16.100
libswscale 5. 1.100 / 5. 1.100
libswresample 3. 1.100 / 3. 1.100
libpostproc 55. 1.100 / 55. 1.100
[hls,applehttp @ 06ba46c0] Opening 'https://prepublish.f.qaotic.net/b09/ngrp:el12_live01-100083_all/chunklist_b346000.m3u8?sense=true' for reading
[https @ 06c72640] Opening 'https://prepublish.f.qaotic.net/b09/ngrp:el12_live01-100083_all/chunklist_b596000.m3u8?sense=true' for reading
[https @ 06c72640] Opening 'https://prepublish.f.qaotic.net/b09/ngrp:el12_live01-100083_all/chunklist_b946000.m3u8?sense=true' for reading
[https @ 06c72640] Opening 'https://prepublish.f.qaotic.net/b09/ngrp:el12_live01-100083_all/chunklist_b1596000.m3u8?sense=true' for reading
[hls,applehttp @ 06ba46c0] Opening 'https://prepublish.f.qaotic.net/b09/ngrp:el12_live01-100083_all/media-uah6yw8s0_b346000_159231.ts?sense=true' for reading
[hls,applehttp @ 06ba46c0] Opening 'https://prepublish.f.qaotic.net/b09/ngrp:el12_live01-100083_all/media-uah6yw8s0_b346000_159232.ts?sense=true' for reading
[https @ 06c72640] Opening 'https://prepublish.f.qaotic.net/b09/ngrp:el12_live01-100083_all/chunklist_b596000.m3u8?sense=true' for reading
[hls,applehttp @ 06ba46c0] Opening 'https://prepublish.f.qaotic.net/b09/ngrp:el12_live01-100083_all/media-ul2skf83b_b596000_159231.ts?sense=true' for reading
[hls,applehttp @ 06ba46c0] Opening 'https://prepublish.f.qaotic.net/b09/ngrp:el12_live01-100083_all/media-ul2skf83b_b596000_159232.ts?sense=true' for reading
[https @ 06c72640] Opening 'https://prepublish.f.qaotic.net/b09/ngrp:el12_live01-100083_all/chunklist_b946000.m3u8?sense=true' for reading
[hls,applehttp @ 06ba46c0] Opening 'https://prepublish.f.qaotic.net/b09/ngrp:el12_live01-100083_all/media-uysg40k20_b946000_159231.ts?sense=true' for reading
[hls,applehttp @ 06ba46c0] Opening 'https://prepublish.f.qaotic.net/b09/ngrp:el12_live01-100083_all/media-uysg40k20_b946000_159232.ts?sense=true' for reading
[https @ 06c72640] Opening 'https://prepublish.f.qaotic.net/b09/ngrp:el12_live01-100083_all/chunklist_b1596000.m3u8?sense=true' for reading
[hls,applehttp @ 06ba46c0] Opening 'https://prepublish.f.qaotic.net/b09/ngrp:el12_live01-100083_all/media-upjoaiifj_b1596000_159231.ts?sense=true' for reading
[hls,applehttp @ 06ba46c0] Opening 'https://prepublish.f.qaotic.net/b09/ngrp:el12_live01-100083_all/media-upjoaiifj_b1596000_159232.ts?sense=true' for reading
[https @ 06c72640] Opening 'https://prepublish.f.qaotic.net/b09/ngrp:el12_live01-100083_all/chunklist_b346000.m3u8?sense=true' for reading
[https @ 08c9b7c0] Opening 'https://prepublish.f.qaotic.net/b09/ngrp:el12_live01-100083_all/media-uah6yw8s0_b346000_159233.ts?sense=true' for reading
[https @ 06c72640] Opening 'https://prepublish.f.qaotic.net/b09/ngrp:el12_live01-100083_all/chunklist_b596000.m3u8?sense=true' for reading
[https @ 08d3c3c0] Opening 'https://prepublish.f.qaotic.net/b09/ngrp:el12_live01-100083_all/media-ul2skf83b_b596000_159233.ts?sense=true' for reading
[https @ 06c72640] Opening 'https://prepublish.f.qaotic.net/b09/ngrp:el12_live01-100083_all/chunklist_b946000.m3u8?sense=true' for reading
[https @ 08fa47c0] Opening 'https://prepublish.f.qaotic.net/b09/ngrp:el12_live01-100083_all/media-uysg40k20_b946000_159233.ts?sense=true' for reading
Input #0, hls,applehttp, from 'https://prepublish.f.qaotic.net/b09/ngrp:el12_live01-100083_all/Playlist.m3u8?sense=true':
Duration: N/A, start: 61541.024311, bitrate: N/A
Program 0
Metadata:
variant_bitrate : 371000
Stream #0:0: Data: timed_id3 (ID3 / 0x20334449)
Metadata:
variant_bitrate : 371000
Stream #0:1: Video: h264 (Baseline) ([27][0][0][0] / 0x001B), yuv420p(tv), 426x240 [SAR 1:1 DAR 71:40], 30 tbr, 90k tbn, 60 tbc
Metadata:
variant_bitrate : 371000
Stream #0:2: Audio: aac (LC) ([15][0][0][0] / 0x000F), 44100 Hz, stereo, fltp
Metadata:
variant_bitrate : 371000
Program 1
Metadata:
variant_bitrate : 646000
Stream #0:3: Data: timed_id3 (ID3 / 0x20334449)
Metadata:
variant_bitrate : 646000
Stream #0:4: Video: h264 (Baseline) ([27][0][0][0] / 0x001B), yuv420p(tv), 640x360 [SAR 1:1 DAR 16:9], 30 tbr, 90k tbn, 60 tbc
Metadata:
variant_bitrate : 646000
Stream #0:5: Audio: aac (LC) ([15][0][0][0] / 0x000F), 44100 Hz, stereo, fltp
Metadata:
variant_bitrate : 646000
Program 2
Metadata:
variant_bitrate : 1031000
Stream #0:6: Data: timed_id3 (ID3 / 0x20334449)
Metadata:
variant_bitrate : 1031000
Stream #0:7: Video: h264 (Baseline) ([27][0][0][0] / 0x001B), yuv420p(tv), 960x540 [SAR 1:1 DAR 16:9], 30 tbr, 90k tbn, 60 tbc
Metadata:
variant_bitrate : 1031000
Stream #0:8: Audio: aac (LC) ([15][0][0][0] / 0x000F), 44100 Hz, stereo, fltp
Metadata:
variant_bitrate : 1031000
Program 3
Metadata:
variant_bitrate : 1746000
Stream #0:9: Data: timed_id3 (ID3 / 0x20334449)
Metadata:
variant_bitrate : 1746000
Stream #0:10: Video: h264 (Baseline) ([27][0][0][0] / 0x001B), yuv420p(tv), 1280x720 [SAR 1:1 DAR 16:9], 30 tbr, 90k tbn, 60 tbc
Metadata:
variant_bitrate : 1746000
Stream #0:11: Audio: aac (LC) ([15][0][0][0] / 0x000F), 44100 Hz, stereo, fltp
Metadata:
variant_bitrate : 1746000
Output #0, mpegts, to 'file.ts':
Metadata:
encoder : Lavf58.12.100
Stream #0:0: Video: h264 (Baseline) ([27][0][0][0] / 0x001B), yuv420p(tv), 1280x720 [SAR 1:1 DAR 16:9], q=2-31, 30 tbr, 90k tbn, 90k tbc
Metadata:
variant_bitrate : 1746000
Stream #0:1: Audio: aac (LC) ([15][0][0][0] / 0x000F), 44100 Hz, stereo, fltp
Metadata:
variant_bitrate : 371000
Stream mapping:
Stream #0:10 -> #0:0 (copy)
Stream #0:2 -> #0:1 (copy)
Press [q] to stop, [?] for help
[https @ 06c72640] Opening 'https://prepublish.f.qaotic.net/b09/ngrp:el12_live01-100083_all/chunklist_b346000.m3u8?sense=true' for reading
[https @ 08d45d00] Opening 'https://prepublish.f.qaotic.net/b09/ngrp:el12_live01-100083_all/media-uah6yw8s0_b346000_159234.ts?sense=true' for reading
[hls,applehttp @ 06ba46c0] No longer receiving playlist 1
[hls,applehttp @ 06ba46c0] No longer receiving playlist 227 bitrate= 759.9kbits/s speed=2.11x
[https @ 06c72640] Opening 'https://prepublish.f.qaotic.net/b09/ngrp:el12_live01-100083_all/chunklist_b1596000.m3u8?sense=true' for reading
[https @ 09106e00] Opening 'https://prepublish.f.qaotic.net/b09/ngrp:el12_live01-100083_all/media-upjoaiifj_b1596000_159233.ts?sense=true' for reading
[https @ 08c9b7c0] Opening 'https://prepublish.f.qaotic.net/b09/ngrp:el12_live01-100083_all/media-uah6yw8s0_b346000_159235.ts?sense=true' for reading
[https @ 091d2340] Opening 'https://prepublish.f.qaotic.net/b09/ngrp:el12_live01-100083_all/media-upjoaiifj_b1596000_159234.ts?sense=true' for reading
[https @ 08d45d00] Opening 'https://prepublish.f.qaotic.net/b09/ngrp:el12_live01-100083_all/media-uah6yw8s0_b346000_159236.ts?sense=true' for reading
[https @ 06c72640] Opening 'https://prepublish.f.qaotic.net/b09/ngrp:el12_live01-100083_all/chunklist_b1596000.m3u8?sense=true' for reading
[https @ 09106e00] Opening 'https://prepublish.f.qaotic.net/b09/ngrp:el12_live01-100083_all/media-upjoaiifj_b1596000_159235.ts?sense=true' for reading
[https @ 06c72640] Opening 'https://prepublish.f.qaotic.net/b09/ngrp:el12_live01-100083_all/chunklist_b346000.m3u8?sense=true' for reading
[https @ 08c9b7c0] Opening 'https://prepublish.f.qaotic.net/b09/ngrp:el12_live01-100083_all/media-uah6yw8s0_b346000_159237.ts?sense=true' for reading
[https @ 091d2340] Opening 'https://prepublish.f.qaotic.net/b09/ngrp:el12_live01-100083_all/media-upjoaiifj_b1596000_159236.ts?sense=true' for reading
[https @ 08d45d00] Opening 'https://prepublish.f.qaotic.net/b09/ngrp:el12_live01-100083_all/media-uah6yw8s0_b346000_159238.ts?sense=true' for reading
[https @ 09106e00] Opening 'https://prepublish.f.qaotic.net/b09/ngrp:el12_live01-100083_all/media-upjoaiifj_b1596000_159237.ts?sense=true' for reading
[https @ 091d2340] Opening 'https://prepublish.f.qaotic.net/b09/ngrp:el12_live01-100083_all/media-upjoaiifj_b1596000_159238.ts?sense=true' for reading