Merge branch 'master' of dev.sourcefabric.org:campcaster
Conflicts: python_apps/show-recorder/install/recorder-daemontools.sh
This commit is contained in:
commit
d5707c514b
13 changed files with 53 additions and 13 deletions
|
@ -13,7 +13,8 @@ from poster.encode import multipart_encode
|
|||
from poster.streaminghttp import register_openers
|
||||
import urllib2
|
||||
|
||||
from subprocess import call
|
||||
#from subprocess import call
|
||||
from subprocess import Popen, PIPE
|
||||
from threading import Thread
|
||||
|
||||
# For RabbitMQ
|
||||
|
@ -56,8 +57,10 @@ class ShowRecorder(Thread):
|
|||
filename = self.filename.replace(" ", "-")
|
||||
filepath = "%s%s.%s" % (config["base_recorded_files"], filename, self.filetype)
|
||||
|
||||
command = "ecasound -i alsa -o %s -t:%s" % (filepath, length)
|
||||
call(command, shell=True)
|
||||
command = ("ecasound -i alsa -o %s -t:%s" % (filepath, length)).split(' ')
|
||||
print(command)
|
||||
Popen(command, stdout=PIPE)
|
||||
#call(command, shell=False)
|
||||
|
||||
return filepath
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue