sasubillis / voiceid

Automatically exported from code.google.com/p/voiceid
0 stars 0 forks source link

Use ffmpeg instead of gstreamer #33

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I had a lot of trouble getting gstreamer to work on Mac OS X which pinnacled in 
the fact that it refused to get a wav of an h264 AAC video. What I did in the 
end was to replace the subprocess call in file_2_wav (fm.py:79) using the 
following command:

utils.start_subprocess("ffmpeg -i '" + filename
           + "-vn -acodec pcm_s16le -ar 16000 -ac 1 -f wav " + name + ".wav ")

which spits out a wav coded correctly as demanded in the doc.

Hence I recommend using ffmpeg instead of gstreamer in future versions. Ffmpeg 
is widely available for the systems voiceid supports. Unless there are some 
issues with the license, of course. 

Original issue reported on code.google.com by tokyo.t...@gmail.com on 14 Oct 2014 at 4:50

GoogleCodeExporter commented 9 years ago
err, the command is 

utils.start_subprocess("ffmpeg -i " + filename
           + " -vn -acodec pcm_s16le -ar 16000 -ac 1 -f wav " + name + ".wav ")

and it's in file2wav (without underscores, of course)

Original comment by tokyo.t...@gmail.com on 14 Oct 2014 at 4:58

GoogleCodeExporter commented 9 years ago
Yes! Right solution.

Original comment by f.gatt...@gmail.com on 13 Feb 2015 at 12:38