아미(아름다운미소)

subprocess call ffmpeg (command line) 본문

랭귀지/PYTHON

subprocess call ffmpeg (command line)

유키공 2018. 8. 16. 09:30
subprocess call ffmpeg (command line)
# -*- coding: utf-8 -*- 
'''
Created on 2018. 8. 14.

@author: bhm
'''
import os
from subprocess import call
os.chdir('D://ffmpeg/bin/')
call('ffmpeg -i file.mp3 -c:a g723_1 -ar 8000 -ac 1 -b:a 6.3K output.wav', shell=True)

'랭귀지 > PYTHON' 카테고리의 다른 글

python open 함수  (0) 2018.08.19
FFmpeg 옵션  (0) 2018.08.18
[python] 특정 디렉토리의 파일 카운트  (0) 2018.08.15
Python 파일, 디렉토리 존재 여부 확인  (0) 2018.08.14
python 에서 한글폴더 읽기  (0) 2018.08.13
Comments