youtube-dl to download videos and extract audio.
$ youtube-dl -x --audio-format mp3 --audio-quality 320k --embed-thumbnail -a uris.txt
|date >> log.txt|
|echo 'Starting job' >> log.txt|
|sudo systemctl stop fahclient.service|
|sudo systemctl status --full fahclient.service|
|for src in *avi ; do|
|date >> log.txt ;|
|echo "Starting conversion for $src" >> log.txt ;|
|dst="$(echo $src | sed -e 's/\.avi$//')".mkv ;|
|ffmpeg -ac 2 -channel_layout stereo -i "$src" -c:v libx264 -preset slow -crf 17 -pix_fmt yuv422p -c:a pcm_s16le "$dst" ;|
Republished on my blog, keeping this version here for historical reasons.
This post describes how to set up a debugging and development environment for Android based systems on an Ubuntu machine, specially for flashing custom recoveries and ROMs, but not for coding. I'm basically pulling together information from other sources across the web, be sure to check out the References and other external links for more details. You only