Answers for "m4a to wav"

0

python m4a to wav

#!/usr/bin/env python

import os
import commands

import logging
import traceback

if __name__ == '__main__':
    outputdir = os.path.abspath(“<path to output>”)
    for root, dirs, files in os.walk('.'):
        for f in files:
            path = os.path.join(root, f)
            base, ext = os.path.splitext(f)
            outputpath = os.path.join(outputdir, base + ".wav")
            if ext == '.m4a':
                print 'converting %s to %s' % (path, outputpath)
                status, output = commands.getstatusoutput('ffmpeg -i "%s" "%s"' % (path, outputpath))
                if status:
                    logging.error (output)
Posted by: Guest on July-06-2020
0

convert m4a to wav ffmpeg

ffmpeg -i filename.mp3 newfilename.wav newfilename.ogg newfilename.mp4
Posted by: Guest on May-15-2020

Browse Popular Code Answers by Language