Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sweep: Instead of using H265, which is not supported on all platforms, we should instead compress files to AV1 instead #6

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 2 additions & 11 deletions Form1.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions Form1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ private void button2_Click(object sender, EventArgs e) {
Process process = new Process();
process.EnableRaisingEvents = true;

var outputFilename = inputFilename + ".h265.mp4";
var outputFilename = inputFilename + ".av1.mp4";

if (File.Exists(outputFilename)) {
MessageBox.Show("The output file name is existing. Please move or delete it before converting. " + outputFilename);
Expand All @@ -126,11 +126,11 @@ private void button2_Click(object sender, EventArgs e) {



string videoCodec = checkBoxNvenc.Checked ? "hevc_nvenc" : "hevc";
string videoCodec = "libaom-av1";

// Converting
process.StartInfo.FileName = "ffmpeg.exe";
process.StartInfo.Arguments = $" -i \"{inputFilename}\" -vcodec {videoCodec} -map_metadata 0 -vf yadif -crf 20 -preset medium {fpsParam} \"{outputFilename}\"";
process.StartInfo.Arguments = $" -i \"{inputFilename}\" -vcodec {videoCodec} -map_metadata 0 -crf 20 -preset medium {fpsParam} \"{outputFilename}\"";
process.StartInfo.UseShellExecute = false;
process.StartInfo.CreateNoWindow = true;

Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Lazy Compress H.265 (HEVC)
# Lazy Compress AV1

Compress or convert your video files to h.265 (hevc) format with one-click, make its size much smaller!
Compress or convert your video files to AV1 format with one-click, make its size much smaller!

![image](https://github.com/louislam/lazy-compress-h265/blob/master/readme_images/2020-05-09_230722.png)
![image](https://github.com/louislam/lazy-compress-h265/blob/master/readme_images/2020-05-09_225508.png)
Expand All @@ -17,7 +17,7 @@ https://github.com/louislam/lazy-compress-h265/releases
* Easy to use, drag-and-drop and compress
* Alternative, you could install to your Context Menu, one-click to compress
* Keep metadata, date created and date modified.
* Output to the same folder with postfix ".h265.mp4"
* Output to the same folder with postfix ".av1.mp4"
* Portable

# Requirements
Expand Down