Skip to content

Instantly share code, notes, and snippets.

View rhinoceros's full-sized avatar

rhinoceros.xn rhinoceros

  • chanjet
  • BeiJing
View GitHub Profile
@rhinoceros
rhinoceros / ffmpeg.md
Created March 11, 2019 22:43 — 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:

@rhinoceros
rhinoceros / encoding_converter.py
Created November 14, 2016 14:54 — forked from reorx/encoding_converter.py
char detect & convert
#!/usr/bin/python
# -*- coding: utf-8 -*-
import chardet
BROTHER_ENCODINGS = [
('GB2312', 'GBK', 'GB18030'),
]