Added -pix_fmt yuv420p to H264 encodes

This commit is contained in:
Stash Dev
2019-03-29 08:23:21 -07:00
parent 0ce9e073bd
commit 182afad695
3 changed files with 3 additions and 0 deletions

View File

@@ -20,6 +20,7 @@ func (e *Encoder) SceneMarkerVideo(probeResult VideoFile, options SceneMarkerOpt
"-i", probeResult.Path, "-i", probeResult.Path,
"-max_muxing_queue_size", "1024", // https://trac.ffmpeg.org/ticket/6375 "-max_muxing_queue_size", "1024", // https://trac.ffmpeg.org/ticket/6375
"-c:v", "libx264", "-c:v", "libx264",
"-pix_fmt", "yuv420p",
"-profile:v", "high", "-profile:v", "high",
"-level", "4.2", "-level", "4.2",
"-preset", "veryslow", "-preset", "veryslow",

View File

@@ -20,6 +20,7 @@ func (e *Encoder) ScenePreviewVideoChunk(probeResult VideoFile, options ScenePre
"-i", probeResult.Path, "-i", probeResult.Path,
"-y", "-y",
"-c:v", "libx264", "-c:v", "libx264",
"-pix_fmt", "yuv420p",
"-profile:v", "high", "-profile:v", "high",
"-level", "4.2", "-level", "4.2",
"-preset", "veryslow", "-preset", "veryslow",

View File

@@ -8,6 +8,7 @@ func (e *Encoder) Transcode(probeResult VideoFile, options TranscodeOptions) {
args := []string{ args := []string{
"-i", probeResult.Path, "-i", probeResult.Path,
"-c:v", "libx264", "-c:v", "libx264",
"-pix_fmt", "yuv420p",
"-profile:v", "high", "-profile:v", "high",
"-level", "4.2", "-level", "4.2",
"-preset", "superfast", "-preset", "superfast",