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:
import numpy as np | |
def fvecs_read(filename, c_contiguous=True): | |
fv = np.fromfile(filename, dtype=np.float32) | |
if fv.size == 0: | |
return np.zeros((0, 0)) | |
dim = fv.view(np.int32)[0] | |
assert dim > 0 | |
fv = fv.reshape(-1, 1 + dim) |
""" | |
Minimal character-level Vanilla RNN model. Written by Andrej Karpathy (@karpathy) | |
BSD License | |
""" | |
import numpy as np | |
# data I/O | |
data = open('input.txt', 'r').read() # should be simple plain text file | |
chars = list(set(data)) | |
data_size, vocab_size = len(data), len(chars) |