fix(streamer): tag mjpeg input as full-range to silence swscaler
This commit is contained in:
parent
2cd7cd3eab
commit
a544649a22
1 changed files with 2 additions and 1 deletions
|
|
@ -19,7 +19,8 @@ export class Ffmpeg extends EventEmitter {
|
|||
start(): { videoIn: Writable; audioIn: Writable } {
|
||||
const args = [
|
||||
"-loglevel", "warning",
|
||||
// video in (mjpeg pipe on fd 3) — yuvj420p source, large queue for stable pacing
|
||||
// video in (mjpeg pipe on fd 3) — declare full-range to silence swscaler
|
||||
"-color_range", "jpeg",
|
||||
"-f", "image2pipe", "-c:v", "mjpeg",
|
||||
"-thread_queue_size", "1024",
|
||||
"-r", String(this.opts.framerate), "-i", "pipe:3",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue