youtube-dl
youtube-dl copied to clipboard
youtube live to hls output m3u8
Checklist
- [x] I'm asking a question
- [ ] I've looked through the README and FAQ for similar questions
- [ ] I've searched the bugtracker for similar questions including closed ones
Question
i would like to request correct command to convert youtube live to m3u8 out put tried different methods but not working i f any one can help here for correct command please https://www.youtube.com/watch?v=w_Ma8oQLmSM
- Use
-F
to list the available formats.
[info] Available formats for w_Ma8oQLmSM:
format code extension resolution note
91 mp4 256x144 290k , avc1.42c00b, 15.0fps, mp4a.40.5
92 mp4 426x240 546k , avc1.4d4015, 30.0fps, mp4a.40.5
93 mp4 640x360 1209k , avc1.4d401e, 30.0fps, mp4a.40.2
94 mp4 854x480 1568k , avc1.4d401f, 30.0fps, mp4a.40.2
95 mp4 1280x720 2969k , avc1.4d401f, 30.0fps, mp4a.40.2 (best)
- Use
-g
to get the download URL, with (eg)-f 93
if you want a format that isn't thebest
.
$ youtube-dl -g 'https://www.youtube.com/watch?v=w_Ma8oQLmSM'
https://manifest.googlevideo.com/api/manifest/hls_playlist/expire/1659469725/ei/PSvpYueALMypmLAPweOFoAc/ip/51.6.64.154/id/w_Ma8oQLmSM.7/itag/95/source/yt_live_broadcast/requiressl/yes/ratebypass/yes/live/1/sgoap/gir%3Dyes%3Bitag%3D140/sgovp/gir%3Dyes%3Bitag%3D136/hls_chunk_host/rr1---sn-cu-aigss.googlevideo.com/playlist_duration/30/manifest_duration/30/spc/lT-KhsyUlnW0HNyUekSriqccZho1114/vprv/1/playlist_type/DVR/mh/wG/mm/44/mn/sn-cu-aigss/ms/lva/mv/u/mvi/1/pcm2cms/yes/pl/25/dover/11/pacing/0/keepalive/yes/fexp/24001373,24007246/mt/1659446922/sparams/expire,ei,ip,id,itag,source,requiressl,ratebypass,live,sgoap,sgovp,playlist_duration,manifest_duration,spc,vprv,playlist_type/sig/AOq0QJ8wRAIgd7B7cXHN3O47nSrWi2QY6WwOmmi4P6VVFe59OJVDt84CIA-fPGVfzqAl50H9PCjj3jb-cBv-7rY1WJPtODFevGWV/lsparams/hls_chunk_host,mh,mm,mn,ms,mv,mvi,pcm2cms,pl/lsig/AG3C_xAwRQIgHb6tjT65RGxg5VWRRnZI51FehZuPjGnApxP5QO4bCGkCIQC4-ReVMDPwYOJLaEo_UPpXI7WDFZDqbKaogYVw7A3U_A%3D%3D/playlist/index.m3u8
$
- Pick another format if your selection didn't give a m3u8 URL.
- Or use -J and the jq program with suitable filter options to extract all m3u8 URLs.
- RTFM for more details.