正在显示
3 个修改的文件
包含
3 行增加
和
3 行删除
| @@ -63,7 +63,7 @@ class MediaCreat { | @@ -63,7 +63,7 @@ class MediaCreat { | ||
| 63 | // if(!duration){ | 63 | // if(!duration){ |
| 64 | // duration = BACKMEDIACONFIG.d | 64 | // duration = BACKMEDIACONFIG.d |
| 65 | // } | 65 | // } |
| 66 | - let url = `${PROJECTWINCATALOG}/web_capture_c -o=${ymdDir}/${id}.mp4 -u="${classUrl}" -d=${duration} -s=${BACKMEDIACONFIG.s} -k=${BACKMEDIACONFIG.k} -w=${width} -h=${height} -fa=${frameRate} -vb=${bitrate}` | 66 | + let url = `${PROJECTWINCATALOG}/web_capture_c -o=${ymdDir}/${id}.mp4 -u="${classUrl}" -d=${duration} -s=${BACKMEDIACONFIG.s} -k=${BACKMEDIACONFIG.k} -w=${width} -h=${height} -fa=${frameRate} -vb=${bitrate} -ar=44100` |
| 67 | this.wrieLog("全地址"+url) | 67 | this.wrieLog("全地址"+url) |
| 68 | exec(url, { maxBuffer: 1073741824 }, (err, stdout, stderr) => { | 68 | exec(url, { maxBuffer: 1073741824 }, (err, stdout, stderr) => { |
| 69 | if (err != null) { | 69 | if (err != null) { |
| @@ -57,7 +57,7 @@ class MediaCreat { | @@ -57,7 +57,7 @@ class MediaCreat { | ||
| 57 | // if(!duration){ | 57 | // if(!duration){ |
| 58 | // duration = BACKMEDIACONFIG.d | 58 | // duration = BACKMEDIACONFIG.d |
| 59 | // } | 59 | // } |
| 60 | - let url = `${PROJECTWINCATALOG}/web_capture_c -o=${ymdDir}/${id}.mp4 -u="${classUrl}" -d=${duration} -s=${BACKMEDIACONFIG.s} -k=${BACKMEDIACONFIG.k} -w=${width} -h=${height} -fa=${frameRate} -vb=${bitrate}` | 60 | + let url = `${PROJECTWINCATALOG}/web_capture_c -o=${ymdDir}/${id}.mp4 -u="${classUrl}" -d=${duration} -s=${BACKMEDIACONFIG.s} -k=${BACKMEDIACONFIG.k} -w=${width} -h=${height} -fa=${frameRate} -vb=${bitrate} -ar=44100` |
| 61 | this.wrieLog("测试全地址"+url) | 61 | this.wrieLog("测试全地址"+url) |
| 62 | exec(url, { maxBuffer: 1073741824 }, (err, stdout, stderr) => { | 62 | exec(url, { maxBuffer: 1073741824 }, (err, stdout, stderr) => { |
| 63 | if (err != null) { | 63 | if (err != null) { |
| @@ -133,7 +133,7 @@ class MediaCreat { | @@ -133,7 +133,7 @@ class MediaCreat { | ||
| 133 | // export DISPLAY=:7 | 133 | // export DISPLAY=:7 |
| 134 | // let url = `${path.resolve(__dirname, PROJECTWINCATALOG+"/web_capture_c")} -o=${ymdDir}/${id}.mp4 -u="${BACKMEDIACONFIG.url}?classId=${id}&recordMp4=${BACKMEDIACONFIG.recordMp4}&userId=${BACKMEDIACONFIG.userId}&userName=${BACKMEDIACONFIG.userName}&userRole=${BACKMEDIACONFIG.userRole}&portalIP=${BACKMEDIACONFIG.portalIP}&portalPort=${BACKMEDIACONFIG.portalPort}&channels=${BACKMEDIACONFIG.channels}&playRecord=${BACKMEDIACONFIG.playRecord}" -d=${BACKMEDIACONFIG.d} -s=${BACKMEDIACONFIG.s} -fa=${BACKMEDIACONFIG.fa} -k=${BACKMEDIACONFIG.k} -w=${BACKMEDIACONFIG.w} -h=${BACKMEDIACONFIG.h}` | 134 | // let url = `${path.resolve(__dirname, PROJECTWINCATALOG+"/web_capture_c")} -o=${ymdDir}/${id}.mp4 -u="${BACKMEDIACONFIG.url}?classId=${id}&recordMp4=${BACKMEDIACONFIG.recordMp4}&userId=${BACKMEDIACONFIG.userId}&userName=${BACKMEDIACONFIG.userName}&userRole=${BACKMEDIACONFIG.userRole}&portalIP=${BACKMEDIACONFIG.portalIP}&portalPort=${BACKMEDIACONFIG.portalPort}&channels=${BACKMEDIACONFIG.channels}&playRecord=${BACKMEDIACONFIG.playRecord}" -d=${BACKMEDIACONFIG.d} -s=${BACKMEDIACONFIG.s} -fa=${BACKMEDIACONFIG.fa} -k=${BACKMEDIACONFIG.k} -w=${BACKMEDIACONFIG.w} -h=${BACKMEDIACONFIG.h}` |
| 135 | // console.log("url", url) | 135 | // console.log("url", url) |
| 136 | - let url = `${PROJECTWINCATALOG}/web_capture_c -o=${ymdDir}/${id}.mp4 -u="${BACKMEDIACONFIG.url}?classId=${id}&recordMp4=${BACKMEDIACONFIG.recordMp4}&userId=${BACKMEDIACONFIG.userId}&userName=${BACKMEDIACONFIG.userName}&userRole=${BACKMEDIACONFIG.userRole}&portalIP=${BACKMEDIACONFIG.portalIP}&portalPort=${BACKMEDIACONFIG.portalPort}&channels=${BACKMEDIACONFIG.channels}&playRecord=${BACKMEDIACONFIG.playRecord}&language=zh-cn" -d=${BACKMEDIACONFIG.d} -s=${BACKMEDIACONFIG.s} -fa=${BACKMEDIACONFIG.fa} -k=${BACKMEDIACONFIG.k} -w=${BACKMEDIACONFIG.w} -h=${BACKMEDIACONFIG.h}` | 136 | + let url = `${PROJECTWINCATALOG}/web_capture_c -o=${ymdDir}/${id}.mp4 -u="${BACKMEDIACONFIG.url}?classId=${id}&recordMp4=${BACKMEDIACONFIG.recordMp4}&userId=${BACKMEDIACONFIG.userId}&userName=${BACKMEDIACONFIG.userName}&userRole=${BACKMEDIACONFIG.userRole}&portalIP=${BACKMEDIACONFIG.portalIP}&portalPort=${BACKMEDIACONFIG.portalPort}&channels=${BACKMEDIACONFIG.channels}&playRecord=${BACKMEDIACONFIG.playRecord}&language=zh-cn" -d=${BACKMEDIACONFIG.d} -s=${BACKMEDIACONFIG.s} -fa=${BACKMEDIACONFIG.fa} -k=${BACKMEDIACONFIG.k} -w=${BACKMEDIACONFIG.w} -h=${BACKMEDIACONFIG.h} -ar=44100` |
| 137 | this.wrieLog(" 启动url " + url) | 137 | this.wrieLog(" 启动url " + url) |
| 138 | exec(url, { maxBuffer: 1073741824 }, (err, stdout, stderr) => { | 138 | exec(url, { maxBuffer: 1073741824 }, (err, stdout, stderr) => { |
| 139 | if (err != null) { | 139 | if (err != null) { |
-
请 注册 或 登录 后发表评论