Git Product home page Git Product logo

universalgui's Introduction

Introduction

001

  • 此为1.0.1.1版本的截图。

What does it do?

  • 自动生成参数,省去手动输入文件名的麻烦,达到类似XnConvert的带GUI集成转换器的效果。

  • 改善某些命令行程序(图片/音视频编解码器等)在处理较多文件时的多核利用问题。

How to Use?

阅读源程序的README,了解参数格式。下面是一个示例(LibWebP-cwebp):

Usage: cwebp [-preset <...>] [options] in_file [-o out_file]

把参数分成几个部分:

  • [-preset <...>] [options]是可供调整的选项,用{UserArg}标记表示。

  • in_file是输入文件名,用{InputFile}标记表示。

  • -o是输出文件名的开始标志,在Argument templet中直接填入。

  • out_file是输出文件名,用{OutputFile}标记表示。

综上,在Argument templet中填入:{UserArg} {InputFile} -o {OutputFile}。请留意在标记之间按需添加空格。

接着在User arguments中填入所需参数,这将替换{UserArg}标记。当然,你也可以直接在Argument templet中填入参数,不使用{UserArg}标记。

可以在Thread count这个Combo Box中选择线程数。这将同时运行多个源程序,充分利用CPU算力。

其他功能按需食用。

Contrast

我使用LibWebP-cwebp将36张PNG图片转换为WebP格式,参数-m 6

  • UniversalGUI0.7.1.1

  • LibWebP1.0.0

  • i3-2310m 2C4T2G DDR3 1333

------------------ 所用时间 平均CPU利用率
未使用多线程 1min29s 26.1%
UniversalGUI-4线程 39s 98.4%

Matters Need Attention

  • 可在程序所在目录下新建名为Portable的文件(无拓展名),让程序把配置文件放在所在目录,达到便携化效果。

  • 所有CPU都已占满时,Process.Start();需要很长时间,因此可能难以达到所指定的线程数。

  • 某些命令行操作不能通过给程序加参实现(例如用ffmpeg搭桥到qaac进行音频压制),这时请开启Simulate cmd选项,以模拟在cmd中输入命令。

universalgui's People

Contributors

kkocdko avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.