I screw around with ffmpeg a lot, here are some recipies which I frequently use.
ffmpeg -i <input>.wav -codec:a libmp3lame -b:a 320k output.mp3
ffmpeg -i .wav -codec:a libmp3lame -q:a 0 output.mp3
''' | |
Simply display the contents of the webcam with optional mirroring using OpenCV | |
via the new Pythonic cv2 interface. Press <esc> to quit. | |
''' | |
import cv2 | |
def show_webcam(mirror=False): | |
cam = cv2.VideoCapture(0) | |
while True: |