ripvid

Pour riper une vidéo et l'uploader sur bebou - retour accueil

git clone git://bebou.netlib.re/ripvid

Log | Files | Refs | README |

ripvid (393B)


      1 #! /bin/sh
      2 
      3 [ "$#" != 1 ] && { echo "Seulement le lien en arg svp"; exit 1; }
      4 
      5 vid="$1"
      6 
      7 choice="$(yt-dlp -F "$vid" |
      8 	sed -n '/^ID/,$ p' |
      9 	fzy -m |
     10 	cut -d ' ' -f1)"
     11 
     12 yt-dlp -f "$choice" --force-overwrites "$vid" -o /tmp/video.mp4
     13 rsync /tmp/video.mp4 mbb:/home/meso/arthur.bebou.netlib.re/video.mp4
     14 echo "http://arthur.bebou.netlib.re/video.mp4"
     15 mpv http://arthur.bebou.netlib.re/video.mp4