Mod should fix tee_muxer problem with v4l2_h264+audio
This commit is contained in:
parent
f4ab7f32b9
commit
2ab458ca53
@ -21,7 +21,7 @@ function createMapping(settings, stream) {
|
||||
}
|
||||
|
||||
const mapping = {
|
||||
global: [],
|
||||
global: [['-vsync', 'drop']],
|
||||
local: local,
|
||||
};
|
||||
|
||||
|
||||
@ -18,7 +18,7 @@ function createMapping(settings, stream) {
|
||||
const local = ['-codec:a', 'libmp3lame', '-b:a', `${settings.bitrate}k`, '-shortest'];
|
||||
|
||||
const mapping = {
|
||||
global: [],
|
||||
global: [['-vsync', 'drop']],
|
||||
local: local,
|
||||
};
|
||||
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
import React from 'react';
|
||||
|
||||
function createMapping(settings) {
|
||||
const local = ['-codec:v', 'copy', '-vsync', 'passthrough', '-copyts', '-start_at_zero'];
|
||||
const local = ['-codec:v', 'copy'];
|
||||
|
||||
const mapping = {
|
||||
global: [],
|
||||
|
||||
@ -39,8 +39,6 @@ function createMapping(settings) {
|
||||
`${settings.fps}`,
|
||||
'-pix_fmt',
|
||||
'yuv420p',
|
||||
'-vsync',
|
||||
'1',
|
||||
];
|
||||
|
||||
if (settings.gop !== 'auto') {
|
||||
|
||||
@ -30,10 +30,6 @@ function createMapping(settings) {
|
||||
`${settings.fps}`,
|
||||
'-pix_fmt',
|
||||
'yuv420p',
|
||||
'-vsync',
|
||||
'1',
|
||||
'-zerocopy',
|
||||
'1',
|
||||
];
|
||||
|
||||
if (settings.gop !== 'auto') {
|
||||
|
||||
@ -78,8 +78,6 @@ function createMapping(settings) {
|
||||
`${settings.fps}`,
|
||||
'-pix_fmt',
|
||||
'yuv420p',
|
||||
'-vsync',
|
||||
'1',
|
||||
];
|
||||
|
||||
if (settings.gop !== 'auto') {
|
||||
|
||||
@ -49,8 +49,6 @@ function createMapping(settings) {
|
||||
`${settings.fps}`,
|
||||
'-g',
|
||||
`${settings.gop}`,
|
||||
'-vsync',
|
||||
'1'
|
||||
);
|
||||
|
||||
if (settings.gop !== 'auto') {
|
||||
|
||||
@ -37,8 +37,6 @@ function createMapping(settings) {
|
||||
'yuv420p',
|
||||
'-realtime',
|
||||
'true',
|
||||
'-vsync',
|
||||
'1',
|
||||
];
|
||||
|
||||
if (settings.gop !== 'auto') {
|
||||
|
||||
@ -49,8 +49,6 @@ function createMapping(settings) {
|
||||
`${settings.fps}`,
|
||||
'-g',
|
||||
`${settings.gop}`,
|
||||
'-vsync',
|
||||
'1'
|
||||
);
|
||||
|
||||
if (settings.gop !== 'auto') {
|
||||
|
||||
@ -31,8 +31,6 @@ function createMapping(settings) {
|
||||
'0',
|
||||
'-pix_fmt',
|
||||
'yuv420p',
|
||||
'-vsync',
|
||||
'1',
|
||||
];
|
||||
|
||||
if (settings.gop !== 'auto') {
|
||||
|
||||
@ -49,8 +49,6 @@ function createMapping(settings) {
|
||||
`${settings.fps}`,
|
||||
'-g',
|
||||
`${settings.gop}`,
|
||||
'-vsync',
|
||||
'1'
|
||||
);
|
||||
|
||||
if (settings.gop !== 'auto') {
|
||||
|
||||
@ -40,8 +40,6 @@ function createMapping(settings) {
|
||||
'0',
|
||||
'-pix_fmt',
|
||||
'yuv420p',
|
||||
'-vsync',
|
||||
'1',
|
||||
];
|
||||
|
||||
if (settings.gop !== 'auto') {
|
||||
|
||||
@ -40,8 +40,6 @@ function createMapping(settings) {
|
||||
'0',
|
||||
'-pix_fmt',
|
||||
'yuv420p',
|
||||
'-vsync',
|
||||
'1',
|
||||
];
|
||||
|
||||
if (settings.gop !== 'auto') {
|
||||
|
||||
@ -129,9 +129,6 @@ data = {
|
||||
global: [],
|
||||
local: [
|
||||
'-codec:v', 'copy',
|
||||
'-vsync 0',
|
||||
'-copyts',
|
||||
'-start_at_zero',
|
||||
]
|
||||
}
|
||||
},
|
||||
@ -163,7 +160,6 @@ data = {
|
||||
'-r', '25',
|
||||
'-g', '50',
|
||||
'-pix_fmt', 'yuv420p',
|
||||
'-vsync', '1',
|
||||
'-profile:v', 'high',
|
||||
'-tune:v', 'zerolatency',
|
||||
]
|
||||
|
||||
@ -41,10 +41,9 @@ const createInputs = (settings) => {
|
||||
options: [],
|
||||
};
|
||||
|
||||
input.options.push('-thread_queue_size', '1024');
|
||||
input.options.push('-thread_queue_size', '512');
|
||||
input.options.push('-re');
|
||||
input.options.push('-r', '' + settings.framerate);
|
||||
input.options.push('-use_wallclock_as_timestamps', '1');
|
||||
input.options.push('-f', 'video4linux2');
|
||||
input.options.push('-framerate', '' + settings.framerate);
|
||||
input.options.push('-video_size', settings.size);
|
||||
|
||||
@ -43,6 +43,9 @@ const createInputs = (settings) => {
|
||||
options: [],
|
||||
};
|
||||
|
||||
input.options.push('-thread_queue_size', '512');
|
||||
input.options.push('-re');
|
||||
input.options.push('-r', '' + settings.framerate);
|
||||
input.options.push('-f', 'video4linux2');
|
||||
input.options.push('-framerate', '' + settings.framerate);
|
||||
input.options.push('-video_size', settings.size);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user