fix(streamer): explicit scale filter to fully silence swscaler
This commit is contained in:
parent
a544649a22
commit
bdecc8c819
1 changed files with 3 additions and 2 deletions
|
|
@ -28,9 +28,10 @@ export class Ffmpeg extends EventEmitter {
|
||||||
"-f", "s16le", "-ar", "48000", "-ac", "2",
|
"-f", "s16le", "-ar", "48000", "-ac", "2",
|
||||||
"-thread_queue_size", "1024",
|
"-thread_queue_size", "1024",
|
||||||
"-i", "pipe:4",
|
"-i", "pipe:4",
|
||||||
// video encode
|
// video encode (explicit colorspace conversion silences swscaler nags)
|
||||||
|
"-vf", "scale=in_range=full:out_range=tv,format=yuv420p",
|
||||||
"-c:v", "libx264", "-preset", "veryfast",
|
"-c:v", "libx264", "-preset", "veryfast",
|
||||||
"-pix_fmt", "yuv420p", "-color_range", "tv",
|
"-color_range", "tv",
|
||||||
"-b:v", this.opts.videoBitrate,
|
"-b:v", this.opts.videoBitrate,
|
||||||
"-maxrate", this.opts.videoBitrate, "-bufsize", "9000k",
|
"-maxrate", this.opts.videoBitrate, "-bufsize", "9000k",
|
||||||
"-g", String(this.opts.framerate * 2), "-keyint_min", String(this.opts.framerate * 2),
|
"-g", String(this.opts.framerate * 2), "-keyint_min", String(this.opts.framerate * 2),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue