Youtube Video Examples

Published: 2019-08-04, Updated: 2020-05-13

Baixar playlist do youtube como mp3

youtube-dl -x --audio-format mp3 --playlist-start 1 --playlist-end 5

Baixar video e a legenda

youtube-dl --write-srt --sub-lang en ''

Exemplo de como baixar

youtube-dl -f mp4 --merge-output-format mp4 `cat link-2017-08-06.txt`

Como instalar

sudo curl -L -o /usr/local/bin/youtube-dl &&\
sudo chmod a+rx /usr/local/bin/youtube-dl

Listar todos os videos da pagina

// create the box

// get the links 
var videos = document.querySelectorAll(".channels-content-item .spf-link");
var videoLinks = [];
var buff = "";
videos.forEach(v => {
    buff += v.href + "\n";

// set the links at box
getBox().innerHTML = buff;

// function to create a box and set it to HTML dom
function setupBox() {
    var mgCss = `.mg-text-area {
      background: red;
      color: white;
      position: fixed;
      top: 0;
      z-index: 99999;
      border: 2px solid #000;
      width: 300px;
      height: 200px;
    var newEl = '<style>'+mgCss+'</style>' + '<textarea class="mg-text-area" placeholder="Put your text"></textarea>';
    var div = document.createElement('div');
    div.innerHTML = newEl;

function getBox(){
    return document.querySelector('.mg-text-area');


instalar o ffmpeg

$ sudo add-apt-repository ppa:mc3man/trusty-media
$ sudo apt-get update
$ sudo apt-get install ffmpeg gstreamer0.10-ffmpeg 

Queimar vĂ­deo com a lengeda

ffmpeg -i input.mp4 -c:v libx264 -vf out.mp4

youtube commands, youtube download video, youtube-dl

Logback Bookmarks Arquivos/Permissoes Commands