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:
More details - http://blog.gbaman.info/?p=791
For this method, alongside your Pi Zero, MicroUSB cable and MicroSD card, only an additional computer is required, which can be running Windows (with Bonjour, iTunes or Quicktime installed), Mac OS or Linux (with Avahi Daemon installed, for example Ubuntu has it built in).
1. Flash Raspbian Jessie full or Raspbian Jessie Lite onto the SD card.
2. Once Raspbian is flashed, open up the boot partition (in Windows Explorer, Finder etc) and add to the bottom of the config.txt
file dtoverlay=dwc2
on a new line, then save the file.
3. If using a recent release of Jessie (Dec 2016 onwards), then create a new file simply called ssh
in the SD card as well. By default SSH i
// | |
// RecordAudio.swift | |
// | |
// This is a Swift class (updated for Swift 5) | |
// that uses the iOS RemoteIO Audio Unit | |
// to record audio input samples, | |
// (should be instantiated as a singleton object.) | |
// | |
// Created by Ronald Nicholson on 10/21/16. | |
// Copyright © 2017,2019 HotPaw Productions. All rights reserved. |
(ns services.jwt | |
(:require [buddy.sign.jwt :as jwt] | |
[clojure.data.codec.base64 :as b64] | |
[clojure.string :as str] | |
[cheshire.core :as json] | |
[buddy.core.keys :as keys] ;; You need to use [buddy/buddy-core "1.5.0-SNAPSHOT"] | |
[clojure.java.io :as io])) | |
(defn decode-b64 [str] (String. (b64/decode (.getBytes str)))) | |
(defn parse-json [s] |
; 1. rename attribute: :url/path → :legacy/url-path-v1 | |
(do (require '[datomic.api :as datomic] '[kanasubs.db :as db]) | |
(datomic/transact @db/connection | |
[{:db/id :url/path, :db/ident :legacy/url-path-v1}])) | |
; 2. repurpose :url/path | |
(do (in-ns 'kanasubs.db) | |
(transact @connection | |
[{:db/id #db/id[:db.part/db] | |
:db/ident :url/path |
(require 'dbg) | |
(global-set-key (kbd "<C-S-f5>") 'dbg-restart) | |
(global-set-key (kbd "<f5>") 'dbg-continue) | |
(global-set-key (kbd "<f9>") 'dbg-toggle-breakpoint) | |
(global-set-key (kbd "<f8>") 'dbg-watch) | |
(global-set-key (kbd "<f10>") 'dbg-next) | |
(global-set-key (kbd "<C-f10>") 'dbg-continue-to-here) | |
(global-set-key (kbd "<f11>") 'dbg-step) | |
(global-set-key (kbd "<C-S-f10>") 'dbg-jump) |
(ns org.flausenhaus.rocksdb | |
"Idiomatic Clojure bindings for the C++ RocksDB library, an embedded | |
persistent key-value store for flash storage and server workloads based on | |
LevelDB. More details about RocksDB are given at | |
https://github.com/facebook/rocksdb/wiki/Rocksdb-Architecture-Guide. | |
The implementation here borrows heavily from Factual's clj-leveldb. | |
This namespace provides a few things: | |
0. Protocols/type definitions: byte serialization (IByteSerializable), | |
closeable sequences (CloseableSeq), and mutable |