Gå til hovedinnhold

Innlegg

Viser innlegg fra november, 2016

How to download video from Youtube and convert to mp3

To do this you need the following applications installed on your linux-box: # sudo apt-get install youtube-dl ffmpeg sox To download the video do this: # youtube-dl url-to-youtube-video To extract audio from video file, do: # ffmpeg -i videofile   -q:a 0 -map a audio.wav To extract part of audio from wav, do: # sox audio.wav new_audio.wav trim 00:10 04:25 (00:10 is starting position and 04:45 is the end position. This way you can trim away unwanted audio.) To convert the wav-file to mp3, do: # ffmpeg -i new_audio.wav -acodec libmp3lame audio.mp3

Autodownloader for put.io

Downloading files from your put.io archive can be done with wget, it can be done unattended and you won't even have to initiate the job: Place all the files you would like to download in a folder on put.io (i.e /download). Create the script download.sh on your system. Run the script as a cron-job (crontab -e) download.sh #!/bin/sh wget --limit-rate=20k --no-check-certificat -c -nH -P /FOLDER/ -r --ftp-user=USERNAME --ftp-password=PASSWORD ftp://ftp.put.io/download/* --limit-rate=20k will limit bandwith to 20k --no-check-certificat will skip certificate check -c will make wget continue the download if  interrupted   -nH will stop creating the ftp-path in your download-folder -P /FOLDER/ tell wget where to put the downloaded files -r recursive, so that even folders in download will be downloaded --ftp-user=USERNAME Your username to put.io --ftp-password=PASSWORD Your password to put.io (special characters need a backslash i.e PASS\!WORD if your p...