Browse Source

增加视频采样,转换mp2格式

master
DIAMOND 10 months ago
parent
commit
2ae8bf2d01
  1. 3
      electron/electron.js

3
electron/electron.js

@ -59,6 +59,9 @@ ipcMain.on('openRtsp', (event, rtsp) => {
ffmpegOptions: { ffmpegOptions: {
'-stats': '', '-stats': '',
'-r': 30, '-r': 30,
// '-b:a': '128k',
'-ar': '44100',
'-codec:a': 'mp2',
}, },
}).on('exitWithError', () => { }).on('exitWithError', () => {
stream.stop(); stream.stop();

Loading…
Cancel
Save