|
| 1 | +<!DOCTYPE html> |
| 2 | +<html lang="en"> |
| 3 | +<head><script src="/livereload.js?mindelay=10&v=2&port=1313&path=livereload" data-no-instant defer></script> |
| 4 | + |
| 5 | + <title>Category A :: Toto do stuff</title> |
| 6 | + |
| 7 | + <meta http-equiv="content-type" content="text/html; charset=utf-8"> |
| 8 | +<meta name="viewport" content="width=device-width, initial-scale=1.0"> |
| 9 | +<meta name="description" content="" /> |
| 10 | +<meta name="keywords" content="" /> |
| 11 | + |
| 12 | + <meta name="robots" content="noodp" /> |
| 13 | + |
| 14 | +<link rel="canonical" href="http://localhost:1313/categories/category-a/" /> |
| 15 | + |
| 16 | + |
| 17 | + |
| 18 | + |
| 19 | + |
| 20 | + |
| 21 | + <link rel="stylesheet" href="http://localhost:1313/css/buttons.min.2bc533403a27dfe0e93105a92502b42ce4587e2e4a87d9f7d349e51e16e09478.css"> |
| 22 | + |
| 23 | + |
| 24 | + <link rel="stylesheet" href="http://localhost:1313/css/code.min.00125962708925857e7b66dbc58391d55be1191a3d0ce2034de8c9cd2c481c36.css"> |
| 25 | + |
| 26 | + |
| 27 | + <link rel="stylesheet" href="http://localhost:1313/css/fonts.min.4881f0c525f3ce2a1864fb6e96676396cebe1e6fcef1933e8e1dde7041004fb5.css"> |
| 28 | + |
| 29 | + |
| 30 | + <link rel="stylesheet" href="http://localhost:1313/css/footer.min.2e3eb191baee58dd05a9f0104ac1fab0827bca7c64dafe0b2579f934c33a1d69.css"> |
| 31 | + |
| 32 | + |
| 33 | + <link rel="stylesheet" href="http://localhost:1313/css/gist.min.a751e8b0abe1ba8bc53ced52a38b19d8950fe78ca29454ea8c2595cf26aad5c0.css"> |
| 34 | + |
| 35 | + |
| 36 | + <link rel="stylesheet" href="http://localhost:1313/css/header.min.b6fb4423cf82a9f9d7abc9cd010223fa3d70a6526a3f28f8e17d814c06e18f9e.css"> |
| 37 | + |
| 38 | + |
| 39 | + <link rel="stylesheet" href="http://localhost:1313/css/main.min.fe8dc560fccb53a458b0db19ccb7b265764ac46b68596b7e099c6793054dd457.css"> |
| 40 | + |
| 41 | + |
| 42 | + <link rel="stylesheet" href="http://localhost:1313/css/menu.min.83637a90d903026bc280d3f82f96ceb06c5fc72b7c1a8d686afb5bbf818a29f7.css"> |
| 43 | + |
| 44 | + |
| 45 | + <link rel="stylesheet" href="http://localhost:1313/css/pagination.min.82f6400eae7c7c6dc3c866733c2ec0579e4089608fea69400ff85b3880aa0d3c.css"> |
| 46 | + |
| 47 | + |
| 48 | + <link rel="stylesheet" href="http://localhost:1313/css/post.min.fc74ca360273c1d828da3c02b8174eba435607b369d98418ccc6f2243cd4e75d.css"> |
| 49 | + |
| 50 | + |
| 51 | + <link rel="stylesheet" href="http://localhost:1313/css/prism.min.9023bbc24533d09e97a51a0a42a5a7bfe4c591ae167c5551fb1d2191d11977c0.css"> |
| 52 | + |
| 53 | + |
| 54 | + <link rel="stylesheet" href="http://localhost:1313/css/syntax.min.cc789ed9377260d7949ea4c18781fc58959a89287210fe4edbff44ebfc1511b6.css"> |
| 55 | + |
| 56 | + |
| 57 | + <link rel="stylesheet" href="http://localhost:1313/css/terminal.min.4b367d85d0d0061435650561285afed36c46a7cf8dc6d7ed5642d98e589fa622.css"> |
| 58 | + |
| 59 | + |
| 60 | + <link rel="stylesheet" href="http://localhost:1313/css/terms.min.b81791663c3790e738e571cdbf802312390d30e4b1d8dc9d814a5b5454d0ac11.css"> |
| 61 | + |
| 62 | + |
| 63 | + |
| 64 | + |
| 65 | + |
| 66 | + |
| 67 | + |
| 68 | +<link rel="shortcut icon" href="http://localhost:1313/favicon.png"> |
| 69 | +<link rel="apple-touch-icon" href="http://localhost:1313/apple-touch-icon.png"> |
| 70 | + |
| 71 | + |
| 72 | +<meta name="twitter:card" content="summary" /> |
| 73 | + |
| 74 | + |
| 75 | + |
| 76 | +<meta property="og:locale" content="en" /> |
| 77 | +<meta property="og:type" content="website" /> |
| 78 | +<meta property="og:title" content="Category A"> |
| 79 | +<meta property="og:description" content="" /> |
| 80 | +<meta property="og:url" content="http://localhost:1313/categories/category-a/" /> |
| 81 | +<meta property="og:site_name" content="Toto do stuff" /> |
| 82 | + |
| 83 | + <meta property="og:image" content="http://localhost:1313/og-image.png"> |
| 84 | + |
| 85 | +<meta property="og:image:width" content="1200"> |
| 86 | +<meta property="og:image:height" content="627"> |
| 87 | + |
| 88 | + |
| 89 | + |
| 90 | + |
| 91 | + |
| 92 | + <link href="/categories/category-a/index.xml" rel="alternate" type="application/rss+xml" title="Toto do stuff" /> |
| 93 | + |
| 94 | + |
| 95 | + |
| 96 | + |
| 97 | + |
| 98 | + |
| 99 | + |
| 100 | + |
| 101 | + |
| 102 | +</head> |
| 103 | +<body> |
| 104 | + |
| 105 | + |
| 106 | +<div class="container center"> |
| 107 | + |
| 108 | + <header class="header"> |
| 109 | + <div class="header__inner"> |
| 110 | + <div class="header__logo"> |
| 111 | + <a href="/"> |
| 112 | + <div class="logo"> |
| 113 | + Toto do stuff |
| 114 | + </div> |
| 115 | +</a> |
| 116 | + |
| 117 | + </div> |
| 118 | + |
| 119 | + <ul class="menu menu--mobile"> |
| 120 | + <li class="menu__trigger">Menu ▾</li> |
| 121 | + <li> |
| 122 | + <ul class="menu__dropdown"> |
| 123 | + |
| 124 | + |
| 125 | + <li><a href="https://bsky.app/profile/totetmatt.fr">Bluesky</a></li> |
| 126 | + |
| 127 | + |
| 128 | + |
| 129 | + <li><a href="https://mastodon.social/deck">Mastodon</a></li> |
| 130 | + |
| 131 | + |
| 132 | + |
| 133 | + <li><a href="https://photo.totetmatt.fr">Photo</a></li> |
| 134 | + |
| 135 | + |
| 136 | + |
| 137 | + </ul> |
| 138 | + </li> |
| 139 | +</ul> |
| 140 | + |
| 141 | + |
| 142 | + |
| 143 | + </div> |
| 144 | + |
| 145 | + <nav class="navigation-menu"> |
| 146 | + <ul class="navigation-menu__inner menu--desktop"> |
| 147 | + |
| 148 | + |
| 149 | + |
| 150 | + <li><a href="https://bsky.app/profile/totetmatt.fr" >Bluesky</a></li> |
| 151 | + |
| 152 | + |
| 153 | + |
| 154 | + <li><a href="https://mastodon.social/deck" >Mastodon</a></li> |
| 155 | + |
| 156 | + |
| 157 | + |
| 158 | + <li><a href="https://photo.totetmatt.fr" >Photo</a></li> |
| 159 | + |
| 160 | + |
| 161 | + |
| 162 | + |
| 163 | + </ul> |
| 164 | +</nav> |
| 165 | + |
| 166 | + |
| 167 | +</header> |
| 168 | + |
| 169 | + |
| 170 | + <div class="content"> |
| 171 | + |
| 172 | + <h1>Posts for: #Category A</h1> |
| 173 | + |
| 174 | + <div class="posts"> |
| 175 | + |
| 176 | + <article class="post on-list"> |
| 177 | + <h1 class="post-title"> |
| 178 | + <a href="http://localhost:1313/posts/2020-10-13_twitch-and-ffmpeg-with-some-youtube-dl-help-fetch-from-live-stream-to-local-file/article/">Twitch and FFmpeg and Youtube-dl: Fetch from live stream to local file</a> |
| 179 | + </h1> |
| 180 | + <div class="post-meta"><time class="post-date">2020-10-03</time></div> |
| 181 | + |
| 182 | + |
| 183 | + <span class="post-tags"> |
| 184 | + |
| 185 | + #<a href="http://localhost:1313/tags/tag-a/">Tag A</a> |
| 186 | + |
| 187 | + #<a href="http://localhost:1313/tags/tag-b/">Tag B</a> |
| 188 | + |
| 189 | + </span> |
| 190 | + |
| 191 | + |
| 192 | + |
| 193 | + |
| 194 | + |
| 195 | + <div class="post-content"> |
| 196 | + |
| 197 | + <p><em>(Using Windows PowerShell, adapt for UNIX bash shouldn’t be a big issue)</em></p> |
| 198 | +<h1 id="record-a-live-stream">Record a live stream</h1> |
| 199 | +<p>So something nice with youtube-dl is like you can ask not to download the media but to fetch for the media link :</p> |
| 200 | +<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-shell" data-lang="shell"><span style="display:flex;"><span>>> youtube-dl -g https://www.youtube.com/watch?v<span style="color:#f92672">=</span>RJt01u4yrLQ |
| 201 | +</span></span><span style="display:flex;"><span>https://r2---sn-h0jeened.googlevideo.com/videoplayback?expire<span style="color:#f92672">=</span>1<span style="color:#f92672">[</span>...<span style="color:#f92672">]</span> |
| 202 | +</span></span></code></pre></div><p>If you use that for a twitch channel that is streaming live, it returns you the HLS stream.</p> |
| 203 | +<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-shell" data-lang="shell"><span style="display:flex;"><span>>> youtube-dl -g https://www.twitch.tv/farore_de_firone |
| 204 | +</span></span><span style="display:flex;"><span>https://video-weaver.ber01.hls.ttvnw.net/v1/playlist/CpkEQusnrcdffNI3<span style="color:#f92672">[</span>..<span style="color:#f92672">]</span>MA2c4.m3u8 |
| 205 | +</span></span></code></pre></div><p>It by default binds to the best quality video, but you can check and select all format available using -F</p> |
| 206 | + |
| 207 | + </div> |
| 208 | + |
| 209 | + |
| 210 | + <div> |
| 211 | + <a class="read-more button inline" href="/posts/2020-10-13_twitch-and-ffmpeg-with-some-youtube-dl-help-fetch-from-live-stream-to-local-file/article/">Read more</a> |
| 212 | + </div> |
| 213 | + |
| 214 | + </article> |
| 215 | + |
| 216 | + |
| 217 | + <div class="pagination"> |
| 218 | + <div class="pagination__buttons"> |
| 219 | + |
| 220 | + |
| 221 | + </div> |
| 222 | +</div> |
| 223 | + |
| 224 | + </div> |
| 225 | + |
| 226 | + </div> |
| 227 | + |
| 228 | + |
| 229 | + <footer class="footer"> |
| 230 | + <div class="footer__inner"> |
| 231 | + |
| 232 | + <div class="copyright"> |
| 233 | + <span>© 2025 Powered by <a href="https://gohugo.io">Hugo</a></span> |
| 234 | + |
| 235 | + <span>:: <a href="https://github.com/panr/hugo-theme-terminal" target="_blank">Theme</a> made by <a href="https://github.com/panr" target="_blank">panr</a></span> |
| 236 | + </div> |
| 237 | + </div> |
| 238 | +</footer> |
| 239 | + |
| 240 | + |
| 241 | + |
| 242 | + |
| 243 | + |
| 244 | + |
| 245 | +<script type="text/javascript" src="/bundle.min.js"></script> |
| 246 | + |
| 247 | + |
| 248 | + |
| 249 | + |
| 250 | + |
| 251 | + |
| 252 | +</div> |
| 253 | + |
| 254 | +</body> |
| 255 | +</html> |
0 commit comments