Skip to content

ecliar/pccold

 
 

Repository files navigation

pccold

douyu 主播上线通知 & 视频自动录制

2016/8/10 by DKZ

主播上线邮件通知,并且自动录制视频。

power by livestreamer or you-get

##Install

use develope version steven7851's plug

##Set

$ vi dkzsecret.py

#dkzsecret.py

mailsender='youremail'
mailpwd='yourpassword'
mailhost='stmpserver'

#pccold.py

power='livestreamer' #or 'you-get'
path="./download"    #your path
roomid="cold"        #room id
streamtype='middle'  #livestreamer type

setHowLong=True
pikll=False          #linux kill livestreamer
howlong=60*30        #30min

isSendMail=True      #send email

##Usage

$ python pccold.py

# or
$ nohup python pccold.py &

linux use pipccold.py

# for pi

$ sudo mount /dev/sda2 /media/usbhdd

# start

$ nohup python pipccold.py &
$ exit

# stop

$ ps aux | grep pccold
$ ps aux | grep livestreamer
$ kill -9 PID
$ killall ffmpeg

# tar
$ tar -cv colddownload -f coldtar.tar

$ umount /media/usbhdd

fix mp4 processbar use ffmpeg

$ ffmpeg -i input.mp4 -t 00:31:00 output.mp4

About

douyu 主播上线通知 & 视频自动录制

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%