Mod should fix tee_muxer problem with v4l2_h264+audio

This commit is contained in:
Jan Stabenow 2022-07-21 15:57:46 +02:00
parent f4ab7f32b9
commit 2ab458ca53
No known key found for this signature in database
GPG Key ID: 9C22DD65A9AAF133
16 changed files with 7 additions and 31 deletions

View File

@ -21,7 +21,7 @@ function createMapping(settings, stream) {
}
const mapping = {
global: [],
global: [['-vsync', 'drop']],
local: local,
};

View File

@ -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,
};

View File

@ -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: [],

View File

@ -39,8 +39,6 @@ function createMapping(settings) {
`${settings.fps}`,
'-pix_fmt',
'yuv420p',
'-vsync',
'1',
];
if (settings.gop !== 'auto') {

View File

@ -30,10 +30,6 @@ function createMapping(settings) {
`${settings.fps}`,
'-pix_fmt',
'yuv420p',
'-vsync',
'1',
'-zerocopy',
'1',
];
if (settings.gop !== 'auto') {

View File

@ -78,8 +78,6 @@ function createMapping(settings) {
`${settings.fps}`,
'-pix_fmt',
'yuv420p',
'-vsync',
'1',
];
if (settings.gop !== 'auto') {

View File

@ -49,8 +49,6 @@ function createMapping(settings) {
`${settings.fps}`,
'-g',
`${settings.gop}`,
'-vsync',
'1'
);
if (settings.gop !== 'auto') {

View File

@ -37,8 +37,6 @@ function createMapping(settings) {
'yuv420p',
'-realtime',
'true',
'-vsync',
'1',
];
if (settings.gop !== 'auto') {

View File

@ -49,8 +49,6 @@ function createMapping(settings) {
`${settings.fps}`,
'-g',
`${settings.gop}`,
'-vsync',
'1'
);
if (settings.gop !== 'auto') {

View File

@ -31,8 +31,6 @@ function createMapping(settings) {
'0',
'-pix_fmt',
'yuv420p',
'-vsync',
'1',
];
if (settings.gop !== 'auto') {

View File

@ -49,8 +49,6 @@ function createMapping(settings) {
`${settings.fps}`,
'-g',
`${settings.gop}`,
'-vsync',
'1'
);
if (settings.gop !== 'auto') {

View File

@ -40,8 +40,6 @@ function createMapping(settings) {
'0',
'-pix_fmt',
'yuv420p',
'-vsync',
'1',
];
if (settings.gop !== 'auto') {

View File

@ -40,8 +40,6 @@ function createMapping(settings) {
'0',
'-pix_fmt',
'yuv420p',
'-vsync',
'1',
];
if (settings.gop !== 'auto') {

View File

@ -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',
]

View File

@ -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);

View File

@ -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);