Gå til hovedinnhold

Innlegg

Viser innlegg fra 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...

Helle synger Flashlight for andre gang

Helle synger Flashlight (Jessie J) og vinner Talentiaden 2016 på Gudeber...

All I Ask with The Chipmunks

Reencode with ffmpeg

How to reencode a movie with ffmpeg: ffmpeg -i input.mkv -f mp4 -metadata title="title" -acodec libfdk_aac -af "volume=0.5" -ac 2 -ab 192k -vcodec libx265 -x265-params lossless -crf 23 -threads 0 output.mp4 Read this to install all the tools you need to recode. You will also need lossless_slow in your preset-folder. You can only use the presets in this folder.