sampsyo/audioread — Issue #1: Regex for determining stereo in ffmpeg
Author: keithgg
Created: 2012-02-24 19:12:42+00:00
State: open

Hi, I'm trying out the lib and found that in ffdec.py the regex for detecting stereo isn't working.

The usual output I get is something like

*duration: 00:04:38.00, bitrate: 1411 kb/sstream #0.0: audio: pcm_s16le, 44100 hz, 2 channels, s16, 1411 kb/s*

Changing line 83 of ffdec.py to:

if mode == 'stereo' or mode == '2 channels':

Solves it.