ytdl-org / youtube-dl

Command-line program to download videos from YouTube.com and other video sites
http://ytdl-org.github.io/youtube-dl/
The Unlicense
132.74k stars 10.07k forks source link

Possible to add sox support (for mp3) [Request] #3529

Open l3uddz opened 10 years ago

l3uddz commented 10 years ago

Hi,

Was wondering whether you guys would beable to add the ability to remove "silence" from the downloaded mp3 file as a flag? so we can get rid of the annoying few seconds of silence at the end that accompanies most youtube video mp3's? This can be achieved using a tool called sox with a command like sox "music\Shaggy - Intoxication\6 - Woman Scorn.mp3" "music\Shaggy - Intoxication\6 - Woman Scorn.mp3" reverse silence 1 0.1 0.1% reverse ... Would be nice if you could add it as a flag and youtube-dl will do itself

jungerm2 commented 5 years ago

I know this is an old issue, but I ran across a Spotify downloader that uses youtube-dl as a backend (i.e: it actually only gets metadata from Spotify and downloads an equivalent on youtube) that has this feature. This could be a good starting point: https://github.com/ritiek/spotify-downloader/blob/03a8b50ab4fde3cc7200c009eebc7a13003f47a7/spotdl/convert.py#L108

K0media commented 4 years ago

I saw this argument somewhere on the web, but I haven't tested it yet. mp3splt -r *.mp3 Source: https://news.ycombinator.com/item?id=20331812

Give it a try and share your thoughts on it. 😉