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:
### | |
# Compiler flags (not required for using GoogleTest) | |
# | |
set(CMAKE_CXX_STANDARD 20) | |
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wextra") | |
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wextra") | |
########## | |
# Use ONE of the below sections to use GoogleTest. | |
# This example assumes that main_test.cc contains your tests. |
curl -L -o faas https://github.com/boson-project/faas/releases/download/v0.7.0/faas_darwin_amd64 | |
chmod +x faas | |
export PATH=$PATH:/dirholdingfaas/ | |
create a new project folder/dir | |
mkdir one | |
cd one |
function blobToDataURL(blob) { | |
return new Promise((fulfill, reject) => { | |
let reader = new FileReader(); | |
reader.onerror = reject; | |
reader.onload = (e) => fulfill(reader.result); | |
reader.readAsDataURL(blob); | |
}) | |
} |