Skip to content

Instantly share code, notes, and snippets.

View jSayal's full-sized avatar
🏠
Working from home

jSayal

🏠
Working from home
View GitHub Profile
@jSayal
jSayal / ffmpeg.md
Created August 29, 2019 17:27 — forked from protrolium/ffmpeg.md
using ffmpeg to extract audio from video files

ffmpeg

Converting Audio into Different Formats / Sample Rates

Minimal example: transcode from MP3 to WMA:
ffmpeg -i input.mp3 output.wma

You can get the list of supported formats with:
ffmpeg -formats

Convert WAV to MP3, mix down to mono (use 1 audio channel), set bit rate to 64 kbps and sample rate to 22050 Hz:

@jSayal
jSayal / findRomanNumeral.js
Created December 6, 2015 08:47
convert numbers to roman numerals
function findRomanNumeral(number) {
var romanNumbers = {
1 : "I",
2 : "II",
3 : "III",
4 : "IV",
5 : "V",
6 : "VI",
7 : "VII",
8 : "VIII",