Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

youtube live to hls output m3u8 #31127

Closed
1 of 3 tasks
maanich opened this issue Aug 2, 2022 · 1 comment
Closed
1 of 3 tasks

youtube live to hls output m3u8 #31127

maanich opened this issue Aug 2, 2022 · 1 comment
Labels

Comments

@maanich
Copy link

maanich commented Aug 2, 2022

Checklist

  • 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

@dirkf dirkf changed the title youtube live to hls out put m3u8 youtube live to hls output m3u8 Aug 2, 2022
@dirkf
Copy link
Contributor

dirkf commented Aug 2, 2022

  1. 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)
  1. Use -g to get the download URL, with (eg) -f 93 if you want a format that isn't the best.
$ 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
$
  1. Pick another format if your selection didn't give a m3u8 URL.
  2. Or use -J and the jq program with suitable filter options to extract all m3u8 URLs.
  3. RTFM for more details.

@dirkf dirkf closed this as completed Jan 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants