Skip to content

Instantly share code, notes, and snippets.

@OSoG
OSoG / cut_mp3.py
Created February 9, 2019 20:16 — forked from gchavez2/cut_mp3.py
Cut mp3 file with Python and pydub
# https://github.com/jiaaro/pydub
from pydub import AudioSegment
files_path = ''
file_name = ''
startMin = 9
startSec = 50
@OSoG
OSoG / youtube-dl.md
Created February 9, 2019 17:48
youtube-dl.md

Note that on Windows you may need to use double quotes instead of single.

Download best mp4 format available or any other best if no mp4 available

$ youtube-dl -f 'bestvideo[ext=mp4]+bestaudio[ext=m4a]/best[ext=mp4]/best'

Download best format available but not better that 480p

$ youtube-dl -f 'bestvideo[height<=480]+bestaudio/best[height<=480]'

Download best video only format but no bigger than 50 MB

$ youtube-dl -f 'best[filesize<50M]'