mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 04:14:39 +03:00
Added -pix_fmt yuv420p to H264 encodes
This commit is contained in:
@@ -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",
|
||||||
|
|||||||
@@ -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",
|
||||||
|
|||||||
@@ -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",
|
||||||
|
|||||||
Reference in New Issue
Block a user