youtube-dl
to download videos and extract audio.
$ youtube-dl -x --audio-format mp3 --audio-quality 320k --embed-thumbnail -a uris.txt
void Main() | |
{ | |
// Write code to test your extensions here. Press F5 to compile and run. | |
var names = new[] { new { Name = "Tom" }, new { Name = "Dick" }, new { Name = "Harry" }, new { Name = "Mary" }, new { Name = "Jay" } }.AsEnumerable(); | |
names.DumpAsInsert("test"); | |
} | |
// Define other methods and classes here | |
public static class MyExtensions | |
{ |
#!/usr/bin/env python3 | |
# coding=utf-8 | |
import sys | |
from os import walk | |
from os.path import join | |
from subprocess import Popen | |
ROOTFP = sys.argv[1] | |
PERCENTAGE = sys.argv[2] |
src=src_img.png | |
dst=dst_img.png | |
imgdate="2016-02-04T15:03:34-05" | |
cp -av $src $dst | |
exiftool -u -a -All= $dst | |
exiftool -use MWG \ | |
-Copyright="Image by Pedro Ivan Lopez. All rights to the respective authors." \ |
from datetime import timedelta | |
from subprocess import Popen | |
'''ffmpeg_trim_cut_video2video.py | |
Edit section *User data*, and uncomment one of the commands `cmd` | |
''' | |
# User data | |
tstart = timedelta(minutes=18, seconds=20, milliseconds=0) |
#!/bin/sh - | |
# Example values | |
pulseaudio_source=0 | |
thread_queue_size=32 | |
video_size=1920x1080 | |
framerate=30 | |
record_area=$DISPLAY+0,0 | |
naudio_channels=2 | |
outfile=capture.mkv |
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" ; |
for src in *flac; do | |
dst="$(echo $src | sed -e 's/\.flac//' -e 's/ /_/g')".mp3 | |
ffmpeg -i "$src" -ab 320k "$dst" | |
operon clear -a "$dst" | |
operon copy "$src" "$dst" | |
done |
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
Republished on my website, keeping this version here for historical reasons.
Install FAHClient as documented in the official guide. Stop the traditional init script service that was created and automatically started.