W

webpage_recorder

a electron project for recording webpage to video

胡斌提交了 · 98a3b5da add virtual-audio-capturer

webpage_recorder:利用elecron离屏渲染网页,把抓取的页面图像通过pipe传递给ffmpeg,利用ffmpeg编码成视频 环境要求:npm, electron,ffmpeg,virtual-video-capturer(在virtual-audio-capturer目录,运行audio_reg.bat和audio_reg64.bat注册,也可以从https://sourceforge.net/projects/virtualaudiodev/files/ 下载安装包)

安装: npm install

运行命令示例: ;record duration 30s framerate 20fps width 640 height 320 videobitrate 800k electron . -u http://182.92.9.182:9090/media/hlsPlayer/hlsPlayer.html -d 30 -f 20 -w 640 -h 320 -b 800k test.mp4

局限:

  1. electron需要在桌面环境下运行
  2. 捕获视频间隔不够均匀