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:
| def format_filename(s): | |
| """Take a string and return a valid filename constructed from the string. | |
| Uses a whitelist approach: any characters not present in valid_chars are | |
| removed. Also spaces are replaced with underscores. | |
| Note: this method may produce invalid filenames such as ``, `.` or `..` | |
| When I use this method I prepend a date string like '2009_01_15_19_46_32_' | |
| and append a file extension like '.txt', so I avoid the potential of using | |
| an invalid filename. | |
| function preventBack(){ | |
| try{ | |
| history.forward(); | |
| setTimeout('preventBack()', 500); | |
| }catch(e){} | |
| } | |
| preventBack(); |
| ;SMBDIS.ASM - A COMPREHENSIVE SUPER MARIO BROS. DISASSEMBLY | |
| ;by doppelganger ([email protected]) | |
| ;This file is provided for your own use as-is. It will require the character rom data | |
| ;and an iNES file header to get it to work. | |
| ;There are so many people I have to thank for this, that taking all the credit for | |
| ;myself would be an unforgivable act of arrogance. Without their help this would | |
| ;probably not be possible. So I thank all the peeps in the nesdev scene whose insight into | |
| ;the 6502 and the NES helped me learn how it works (you guys know who you are, there's no |
| #!/usr/bin/env python | |
| # | |
| # Downloader for Google Web Fonts | |
| # | |
| # For usage information run with "--help" | |
| # | |
| # Works on Python 2.6 and later, 3 and later | |
| # Requires tinycss (and argparse for Python 2.6) from pip | |
| # | |
| # Permission is hereby granted, free of charge, to any person obtaining a copy |
| -- | |
| -- ░█▀▄░█▀█░█▀█░█▄█░░░░█░░░█░█░█▀█ | |
| -- ░█▀▄░█░█░█░█░█░█░░░░█░░░█░█░█▀█ | |
| -- ░▀▀░░▀▀▀░▀▀▀░▀░▀░▀░░▀▀▀░▀▀▀░▀░▀ | |
| -- | |
| -- | |
| -- Fair warning: this code is about as bad as the things it does to games. | |
| -- GBA support experimental and frankly quite boring. | |
| -- Two dashes start a one-line comment. | |
| --[[ | |
| Adding two ['s and ]'s makes it a | |
| multi-line comment. | |
| --]] | |
| ---------------------------------------------------- | |
| -- 1. Variables and flow control. | |
| ---------------------------------------------------- |
| #!/bin/sh | |
| for f in *.png | |
| do | |
| filename=${f%.*} | |
| echo "Processing $filename" | |
| # png -> bmp | |
| convert $filename.png -normalize -fx 'a==0 ? white : u' $filename.bmp | |
| # trace bitmap to eps |