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:
| use clap::Parser; | |
| use cpal::traits::{DeviceTrait, HostTrait, StreamTrait}; | |
| use cpal::{FromSample, Sample}; | |
| use std::fs::File; | |
| use std::io::BufWriter; | |
| use std::sync::{Arc, Mutex}; | |
| #[derive(Parser, Debug)] | |
| #[command(version, about = "CPAL record_wav example", long_about = None)] | |
| struct Opt { |
| package main | |
| import ( | |
| "flag" | |
| "io" | |
| "log" | |
| "net" | |
| "net/http" | |
| "strings" | |
| ) |
| group :production do | |
| gem 'unicorn' | |
| # Enable gzip compression on heroku, but don't compress images. | |
| gem 'heroku-deflater' | |
| # Heroku injects it if it's not in there already | |
| gem 'rails_12factor' | |
| end |
| --database=postgresql | |
| --skip-test-unit | |
| --skip-bundle | |
| --template=https://gist.github.com/jwaldrip/5538342/raw/rails-template.rb |
| require "luanode.http" | |
| local router = require "route66".new() | |
| router:get("/prompt", function(req, res) | |
| res:writeHead(200, { ["Content-Type"] = "text/plain"}) | |
| res:finish(">:") | |
| end) | |
| router:get("/hello/(.+)", function(req, res, user) | |
| res:writeHead(200, { ["Content-Type"] = "text/plain"}) |
| class UsersController < ApplicationController | |
| include Clearance::App::Controllers::UsersController | |
| # Override and add in a check for invitation code | |
| def create | |
| @user = User.new params[:user] | |
| invite_code = params[:invite_code] | |
| @invite = Invite.find_redeemable(invite_code) | |
| if invite_code && @invite |