Minimal example: transcode from MP3 to WMA:
ffmpeg -i input.mp3 output.wma
You can get the list of supported formats with:
ffmpeg -formats
You can get the list of installed codecs with:
from subprocess import Popen | |
import pywinauto | |
from pywinauto.application import Application | |
import autopy | |
import cv2 | |
from gui_automation import GuiAuto | |
import gui_automation | |
import os | |
import time | |
import pyautogui |
###Small pliers
RadioShack 4.5-inch mini long-nose pliers, part number 64-0062, or Xcelite 4-inch mini long-nose pliers, model L4G. Or similar. The brand is unimportant. After you use them for a while, you'll develop your own preferences. In particular, you have to decide whether you like spring-loaded handles. If you decide you don't, you'll need a second pair of pliers to pull the springs out of the first.
I have small pliers, probably okay.
(defn signum [x] (if (zero? x) x (if (pos? x) 1 -1))) | |
(defn connect [{:keys [width height]} {fx :x, fy :y, fw :w, fh :h} {tx :x, ty :y, tw :w, th :h}] | |
(let [x0 (+ fx (rand-int fw)), y0 (+ fy (rand-int fh)) | |
x1 (+ tx (rand-int tw)), y1 (+ ty (rand-int th)) | |
dx (signum (- x1 x0)), dy (signum (- y1 y0))] | |
(loop [x x0, y y0, points #{}, horizontal? (= (rand-int 2) 0)] | |
(if (and (= x x1) (= y y1)) points | |
(let [[x y] (if (or (= y y1) (and horizontal? (not= x x1))) [(+ x dx) y] [x (+ y dy)])] | |
(if-not (and (> x 0) (> y 0) (< x width) (< y height)) points |