| | |
| | | "ffmpeg", "-loglevel", "error", "-ss", str(start), "-t", str(duration), "-i", input_path, |
| | | "-an", "-vf", vf, |
| | | #"-f", "matroska", "-codec:v", "mpeg1video", "-q:v", "1", "pipe:1" |
| | | "-f", "mpegts", "-c:v", "libx264", "-preset", "veryfast", "-crf", "18", "pipe:1" |
| | | "-f", "mpegts", "-c:v", "libx264", "-preset", "veryfast", "-crf", "15", "pipe:1" |
| | | ] |
| | | |
| | | |
| | |
| | | cmd += ["-filter_complex", "; ".join(filters), "-map", "[vout]"] |
| | | |
| | | #cmd += ["-shortest", "-c:v", "libx264", "-preset", "slow", "-c:a", "aac", output_path] |
| | | cmd += ["-shortest", "-c:v", "libx264", "-crf", "18", "-preset", "veryfast", "-c:a", "aac", output_path] |
| | | cmd += ["-shortest", "-c:v", "libx264", "-crf", "15", "-preset", "veryfast", "-c:a", "aac", output_path] |
| | | # CPU: libx264 |
| | | # Nivida GPU : h264_nvenc 或 hevc_nvenc |
| | | # AMD GPU: h264_amf 或 hevc_amf |