<ul>
<li>android has newpipes for downloading youtube</li>
<li>windows youtube-DL script:<br />
<a href="https://github.com/freeload101/SCRIPTS/blob/master/Windows_Batch/Youtube-dl-ffmpeg-aria2c-updater-downloader.bat" class="uri">https://github.com/freeload101/SCRIPTS/blob/master/Windows_Batch/Youtube-dl-ffmpeg-aria2c-updater-downloader.bat</a></li>
</ul>
<p>ffmpeg notes:</p>
<ul>
<li><p>I started out by wanting to download facebook live streams and ended up missing it all together</p></li>
<li><p>Reference (no longer live by the time I got online... ): <a href="https://www.facebook.com/FormulaDRIFT/videos/452016008942956/" class="uri">https://www.facebook.com/FormulaDRIFT/videos/452016008942956/</a></p></li>
<li><p>live video looks like something about mpd files with facebook also looks like you need ffmpeg complied with --enable-libxml2</p></li>
<li><p>this is where I found a WONDERFUL script <a href="https://github.com/jb-alvarado/media-autobuild_suite" class="uri">https://github.com/jb-alvarado/media-autobuild_suite</a></p></li>
<li><p>also located other untested projects (pre compiled binaries ;/ ) <a href="https://www.videohelp.com/software/Hybrid" class="uri">https://www.videohelp.com/software/Hybrid</a></p></li>
<li><p>windows binary of youtube-dl for facebook/twitch.tv and youtube etc ..<br />
<a href="https://ytdl-org.github.io/youtube-dl/download.html" class="uri">https://ytdl-org.github.io/youtube-dl/download.html</a></p></li>
<li><p>oneliner to download/run media-autobuild_suite to "%userprofile%media-autobuild_suite-masterbuildffmpeg-gitbuild-static-64bit"</p></li>
</ul>
<pre><code>powershell   -Exec Bypass &quot;IEX (New-Object System.Net.WebClient).DownloadFile(&#39;https://github.com/jb-alvarado/media-autobuild_suite/archive/master.zip&#39;,&quot;%userprofile%desktopmaster.zip&quot;);   Expand-Archive -LiteralPath  &quot;%userprofile%desktopmaster.zip&quot;  -DestinationPath  &quot;%userprofile%desktop&quot;     ;Start-Process &quot;%userprofile%desktopmedia-autobuild_suite-mastermedia-autobuild_suite.bat&quot; &quot;</code></pre>
<ul>
<li><p>this took over 8hrs to compile on a i7 I disabled items that had warnings and comments about issues and useless of codes that have issues etc</p></li>
<li><p>missing libopenh264.dll when I launched ffmpeg_g.exe</p></li>
<li><p>the dll was not built but I'm not sure it's something I messed up I'm sure</p></li>
<li><p>only post I saw online about it was that it's useless and -full should never be used flaming etc</p></li>
<li><p>start media-autobuild_suite-mastermsys64mingw64.exe and run the following</p></li>
<li><p>Reference : <a href="https://bluexmas.tistory.com/category/OS" class="uri">https://bluexmas.tistory.com/category/OS</a> not sure what the flags were for but copied the DLL into the folder and it appears to run</p></li>
</ul>
<pre><code>git clone https://github.com/cisco/openh264.git
cd openh264
export &quot;CFLAGS=-fno-stack-protector&quot;
export &quot;LDFLAGS=-lssp&quot;
make</code></pre>
<ul>
<li>also had to apply this fix for AR etc in platform-mingw_nt.mk folder</li>
</ul>
<pre><code>find / -iname &quot;platform-mingw_nt.mk&quot; -exec sed &#39;s/x86_64-w64-mingw32-//g&#39; -i.bak &#39;{}&#39; ;</code></pre>
<pre><code>youtube-dl -f bestvideo+bestaudio &quot;link to youtube video&quot;</code></pre>
<p>If that gives you an error, try the following instead:</p>
<pre><code>youtube-dl -f &#39;bestvideo[ext=mp4]+bestaudio[ext=m4a]/bestvideo+bestaudio&#39; --merge-output-format mp4 &quot;link to youtube video&quot;</code></pre>
<p>Here you download the best video and audio separately and then merge into a, in this case mp4 file. You can change the output format on the merged video as well.</p>
