GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - devsnd/python-audiotranscode: transcode using installed codecs (lame mp3, ogg vorbis, flac, aac, wav)

BranchesTags
Open more actions menu

Latest commit

 

History

35 Commits
35 Commits

Folders and files

NameName
Last commit message
Last commit date
audiotranscode
audiotranscode
 
 
test
test
 
 
.gitignore
.gitignore
 
 
.travis.yml
.travis.yml
 
 
COPYING
COPYING
 
 
README.md
README.md
 
 
audiotranscoder
audiotranscoder
 
 
runtests
runtests
 
 

Repository files navigation

audiotranscode

Build Status

python module to transcode between audio formats using the CLI frontends of the codecs already installed on your system, e.g lame, vorbis-tools etc

supported python versions:

  • 2.6
  • 2.7
  • 3.2
  • 3.3
  • pypy

supported formats

As of now audiotranscode can transcode between any of the following formats:

filetype (program used)

  • mp3 (lame, ffmpeg)
  • ogg (vorbis oggenc/oggdec, ffmpeg)
  • aac/m4a (faac, faad)
  • flac (flac)
  • wav

command line usage

audiotranscoder [-b BITRATE] <infile> <outfile>

bitrate is specified in kbits/s. <input> is the path to the file that needs to be transcoded. <output> is the output path. The file extension of the output determines the output format

audiotranscoder --codecs

shows all installed codecs

programatical usage

Using audiotranscode is as easy as py:

import audiotranscode
at = audiotranscode.AudioTranscode()
at.transcode('path/to/some.mp3','output/path.ogg')

you can also set the bitrate of the output stream, like so:

at.transcode('path/to/some.aac','output/path.mp3',bitrate=128)

You can also get the encoded data on the fly for live transcoding:

for data in at.transcode_stream('path/to/some.flac','mp3'):
    # do something with chuck of data
    # e.g. sendDataToClient(data)

If you need to know which formats can be transcoded:

at = audiotranscode = AudioTranscode()
at.available_encoder_formats() #returns list like ['mp3','ogg', ...]
at.available_decoder_formats() #returns list like ['mp3','ogg', ...]

limitations

As of now, i have only tested 16bit, 44100Hz, 2 channel audio, since it is the most used, other formats might or might not work.

But feel free fork this repo and to add stuff!

About

transcode using installed codecs (lame mp3, ogg vorbis, flac, aac, wav)

Resources

Readme
GPL-3.0 license
Activity

Stars

103 stars

Watchers

10 watching

Forks

18 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.