Skip to content

Instantly share code, notes, and snippets.

rhinoceros.xn rhinoceros

Block or report user

Report or block rhinoceros

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
rhinoceros /
Created Mar 11, 2019 — forked from protrolium/
using ffmpeg to extract audio from video files


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:

# -*- coding: utf-8 -*-
import chardet
('GB2312', 'GBK', 'GB18030'),
You can’t perform that action at this time.