Pixelpanic / winff

Automatically exported from code.google.com/p/winff
0 stars 0 forks source link

A slider for for various options. #155

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
When making presets, one will at times make many presets of different audio and 
video qualities, for e.g. one may alter the qscale or the -aq or -b etc...

In this case, the fundamental command line will remain the same, but only 
values of a few variables change across the various presets change.

For this purpose, I suggest accepting [<value>, start-end] in the custom 
command line parameter.

real life e.g. - 

[audio quality, 0.0-0.9]
[video qscale, 0 - 50]
[x resolution, 100 - 240]

etc...

This will make 3 sliders in the preset with names audio quality, video qscale 
and x resolution and ranges 0.0 to 0.9, 0 to 50 and 100 to 240 respectively to 
adjust the various values as the user specified and encode with using that 
number.

Original issue reported on code.google.com by de.tec...@gmail.com on 6 Mar 2012 at 2:42

GoogleCodeExporter commented 8 years ago
I don't completely understand the use case. What do you want to accomplish?

You have a lot of presets that you want to change at the same time?

Original comment by poipodec...@hotmail.com on 9 Mar 2012 at 6:58

GoogleCodeExporter commented 8 years ago
For e.g. this's the preset - 

-vf scale='320:trunc((320/a)/2)*2' -x264opts qp=30 -preset ultrafast -threads 4 
-vcodec libx264 -aq 0.7 -ac 2.0 -ar 44100 -acodec libvorbis -f matroska

I've various presets with varying qp and -aq value (no other difference).

I suggest a slider instead of hard coded values for qp and -aq; for this I'll 
be using the following command line options - 

-vf scale='320:trunc((320/a)/2)*2' -x264opts qp=[video quality, 3 - 40] -preset 
ultrafast -threads 4 -vcodec libx264 -aq [audio quality, 0.1 - 0.9] -ac 2.0 -ar 
44100 -acodec libvorbis -f matroska

Analysing this command line, winff will automatically draw 2 sliders named 
"video quality" and "audio quality"; you can vary value of video quality from 3 
to 40 and audio quality from 0.1 to 0.9 using these sliders.

After the user has selected this value, he can convert using the specified 
'audio quality' and 'video quality'.

You may also apply this trick to the resolution.

Original comment by de.log...@gmail.com on 10 Mar 2012 at 12:26