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:
#!/usr/bin/env python3 | |
"""Simple HTTP Server With Upload. | |
This module builds on BaseHTTPServer by implementing the standard GET | |
and HEAD requests in a fairly straightforward manner. | |
see: https://gist.github.com/UniIsland/3346170 | |
""" | |
if (XMLHttpRequest.prototype.sendAsBinary === undefined) { | |
XMLHttpRequest.prototype.sendAsBinary = function(string) { | |
var bytes = Array.prototype.map.call(string, function(c) { | |
return c.charCodeAt(0) & 0xff; | |
}); | |
this.send(new Uint8Array(bytes)); | |
}; | |
} | |
function sendMultiPartReqeust(filename, mimeType, imageData, message) { |
try { | |
$MyProcess = New-Object System.Diagnostics.Process | |
$MyProcess.StartInfo.FileName = "c:\MyProcess.exe" | |
$MyProcess.StartInfo.Arguments = "arguments for process" | |
$MyProcess.StartInfo.UseShellExecute = $false | |
$MyProcess.StartInfo.RedirectStandardInput = $true | |
$MyProcess.Start() | |
$StdIn = $MyProcess.StandardInput | |
#!/usr/bin/env python | |
"""Simple HTTP Server With Upload. | |
This module builds on BaseHTTPServer by implementing the standard GET | |
and HEAD requests in a fairly straightforward manner. | |
""" |