MattMcManis / Axiom

An FFmpeg GUI for Windows
https://axiomui.github.io
GNU General Public License v3.0
1.54k stars 118 forks source link

Encode settings... #17

Open DumbJoe opened 5 years ago

DumbJoe commented 5 years ago

Yeah, scaling gets a bit complex if you don't know what you're doing....a videophile would leave those setting untouched and just use original source resolution size, aspect ratio and format. Unless they can manage to make the output video still look good or somehow better than source by adding various effects, whatever they may be....

I've also noticed that for UHD Disc preset, you don't use a lossless codec, such as DTS Master or Dolby TrueHD....and all 4K UHD bluray movies come with at least one lossless audio track.....thought that was the standard for FQHD?

Originally posted by @MattMcManis in https://github.com/MattMcManis/Axiom/issues/10#issuecomment-478614105

MattMcManis commented 5 years ago

I once used Aspect Ratio -aspect with Codec Copy to fix a video that was stretched to 16:9 and was should have been 4:3, and it squished it back to the right size without having to re-encode. But other than that I would only recommend using it in special cases when the input differs than the output.

I will add DTS to the UHD Disc Preset, though I'll have to ask the devs if FFmpeg's DTS Codec -c:a dca is compatible with 4K discs and players. It's still in experimental mode, it uses the -strict -2 flag. Also I'm unsure what the Lossless Quality command is for -c:a dca.

I'll be releasing a new version with the ability to save custom presets to .ini. Also the program's saved settings will now be in C:\ProgramData\Axiom UI\axiom.conf. This will prevent them from being reset whenever upgrading to a new version, like they do now with Windows default %AppData% saved settings.

MattMcManis commented 5 years ago

I've released an update, v1.7.0.

I've added save custom presets and some optimizations. I've also updated the UHD Disc preset. Also check the Settings Tab to see more path textboxes.


The program's new config file axiom.conf saves to %LocalAppData%\Axiom UI\ by default. But if you cut and paste the .conf to the same directory as Axiom.exe, and it will automatically detect, read and save to it from there. That way you can run it from a portable drive.

However you can't have the .conf in Program Files, because that requires Axiom to run as Admin, and that unfortunately disables Drag and Drop, it's how Windows is designed.


axiom.conf holds the settings:

Custom Presets save to .ini:

Let me know how it all works and if there are any problems.

DumbJoe commented 5 years ago

I once used Aspect Ratio -aspect with Codec Copy to fix a video that was stretched to 16:9 and was should have been 4:3, and it squished it back to the right size without having to re-encode.

Oh that's cool - thought it'd re-encode it making the quality worse still... But if it doesn't re-encode and you got the wrong aspect ration the first time, I guess you could keep changing the aspect ratio until the shape looks right to you on the video screen... hahaha

Also I'm unsure what the Lossless Quality command is for -c:a dca.

Hmmmm..... What about Dolby TrueHD? Is that a codec available through FFMPEG?

I'll be releasing a new version with the ability to save custom presets to .ini

I made a preset but how do I load that after I click a predefined one from your dropdown? Clicking "Custom" does nothing....

The program's new config file axiom.conf saves to %LocalAppData%\Axiom UI\ by default.

I am in this directory but I see no file of such: directory

DumbJoe commented 5 years ago

Hm, I see you've updated the size list: pic

Perhaps add a postfix as to what aspect ratio they are, for example 8K UHD is 16:9 and 8K could be the cinema format so 256∶135 or it could be 16:10? Who knows except trying out? If the list was all 16:9 ratio size then I guess it probably isn't necessary to postfix aspect ratio as 16:9 is common in this day and age but since you have a mix of 16:9 and some other sizes in there, it's probably best to describe which is which then....less you choose the incorrect aspect ratio in the "Aspect Ratio" drop down menu and encode with incorrect shape and then complain on the forums why Axiom encoded their video in the incorrect shape! hahaha

Now for scaling, got a question, which one of these use the integar method: screen

? Because it is especially noticeable if the video you're encoding is in a pixel art form/style: http://tanalin.com/en/articles/lossless-scaling/ explains it in more detail and still important yet even if the video you're scaling isn't pixel art style.

MattMcManis commented 5 years ago

I made a preset but how do I load that after I click a predefined one from your dropdown? Clicking "Custom" does nothing....

The program's new config file axiom.conf saves to %LocalAppData%\Axiom UI\ by default.

I am in this directory but I see no file of such: directory


For the Custom Preset, once you save the .ini to the presets folder, it should automatically load in the Presets dropdown menu. Does it not show up there?

1.

Select your settings, then press the Save button.

If this is the first time, it will prompt to automatically create the presets file folder.

The file browser will open, name your preset and it will save the .ini to
C:\Users\Name\AppData\Local\Axiom UI\presets\.


2.

If you want to look at the .ini files, you can open this location quickly from the Settings Tab by clicking on the Preset label.


3.

The new Preset will automatically load under the Custom category in the menu.

DumbJoe commented 5 years ago

The custom presets saves and loads fine under the user account's folder but if you try to save it in the root folder where Axiom is located, it will fail and the preset won't be saved or be loaded either....

MattMcManis commented 5 years ago

@DumbJoe

I see, Custom Presets aren't working for Root folder. I will fix it in a new update.

MattMcManis commented 5 years ago

@DumbJoe

I fixed it in v1.7.5.1, the path wasn't updating for App Root and was stuck on AppData. Let me know if it works for you.

If it doesn't load, try pressing the Presets reset arrow button.

DumbJoe commented 5 years ago

Yes it works now, thanks!