LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General > LinuxQuestions.org Member Success Stories
User Name
Password
LinuxQuestions.org Member Success Stories Just spent four hours configuring your favorite program? Just figured out a Linux problem that has been stumping you for months?
Post your Linux Success Stories here.

Notices


Reply
  Search this Thread
Old 08-05-2018, 12:00 PM   #1
jsbjsb001
Senior Member
 
Registered: Mar 2009
Location: Earth, unfortunately...
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881

Rep: Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063
HOWTO: Installing and configuring QWinFF on CentOS 7


Preamble

This HOWTO is about getting QWinFF installed via packages and configuring it's "presets" to display the various options for converting to various video/audio formats.

What is QWinFF?

QWinFF is a Qt GUI front-end for ffmpeg.

Installing QWinFF

The easiest way of installing it is via software packages, because the more recent versions require versions of certain libraries that ain't available in CentOS 7, the only way I could install it without compiling it was to use a package built for openSUSE 12.X

If you have the KDE desktop environment installed, then you should have all of the required dependencies installed already (using the same package for it as I have).

If you go here and download the binary package, it should just be a matter of running the command below to install it:

Code:
rpm -i /path/to/qwinff-0.1.7-3.1.x86_64.rpm
You need to replace "/path/to" with the actual path to the downloaded rpm package.

NOTE: I used QWinFF 0.1.7-3.1, which uses Qt 4.

Configuring the "presets"

The "presets" are stored in a XML file, like most of the other GUI front-ends for ffmpeg, QWinFF has what are known as "presets", that tell the application what options to use with ffmpeg. It also has the same file format as the others. It's by default stored in the file /usr/share/qwinff/presets.xml

Here's a snippet of that file:

Code:
<?xml version="1.0"?>
<presets>
  
  <!-- MPEG4 -->
  <MPEG4Auto>
    <label>MPEG-4 Auto</label>
    <params>-strict experimental -sameq</params>
    <extension>mp4</extension>
    <category>MPEG-4</category>
  </MPEG4Auto>
  <MPEG4VideoHQ>
    <label>MPEG-4 H.264 video (high quality)</label>
    <params>-crf 35.0 -vcodec libx264 -vpre hq -acodec libfaac -ar 48000 -ab 128kb -coder 1 -flags +loop -cmp +chroma -partitions +parti4x4+partp8x8+partb8x8 -me_method hex -subq 6 -me_range 16 -g 250 -keyint_min 25 -sc_threshold 40 -i_qfactor 0.71 -b_strategy 1 -threads 0</params>
    <extension>mp4</extension>
    <category>MPEG-4</category>
  </MPEG4VideoHQ>
  <MPEG4VideoVHQ>
    <label>MPEG-4 H.264 video (very high quality)</label>
    <params>-crf 25.0 -vcodec libx264 -vpre hq -acodec libfaac -ar 48000 -ab 160kb -coder 1 -flags +loop -cmp +chroma -partitions +parti4x4+partp8x8+partb8x8 -me_method hex -subq 6 -me_range 16 -g 250 -keyint_min 25 -sc_threshold 40 -i_qfactor 0.71 -b_strategy 1 -threads 0</params>
    <extension>mp4</extension>
    <category>MPEG-4</category>
  </MPEG4VideoVHQ>
...
The problem is that what's highlighted in bold is the only option you will see when you go to convert your video to MPEG-4, but as you can see, there should be at least two more options (and many more than just two).

Below is a "presets" file I've modified so it displays all of those options.

NOTE: I've not tested any other versions of QWinFF, so I don't know if other versions have the same issue.

Here's the modified version of that same "preset" file so it does display the rest of those options:

Code:
<?xml version="1.0"?>
<presets>
  
  <!-- MPEG4 -->
  <MPEG4VideoHQ>
    <label>MPEG-4 H.264 video (high quality)</label>
    <extension>mp4</extension>
    <params></params>
    <category>MPEG-4</category>
  </MPEG4VideoHQ>
  <MPEG4VideoHQ>
    <label>MPEG-4 H.264 video (high quality)</label>
    <params>-crf 35.0 -vcodec libx264 -vpre hq -acodec libfaac -ar 48000 -ab 128kb -coder 1 -flags +loop -cmp +chroma -partitions +parti4x4+partp8x8+partb8x8 -me_method hex -subq 6 -me_range 16 -g 250 -keyint_min 25 -sc_threshold 40 -i_qfactor 0.71 -b_strategy 1 -threads 0</params>
    <extension>mp4</extension>
    <category>MPEG-4</category>
  </MPEG4VideoHQ>
  <MPEG4Video5HQ>
    <label>MPEG-4 H.264 video with 5.1 Sound (high quality)</label>
    <extension>mp4</extension>
    <params>-ac 6</params>
    <category>MPEG-4</category>
  </MPEG4Video5HQ>
  <MPEG4Video5HQ>
    <label>MPEG-4 H.264 video with 5.1 Sound (high quality)</label>
    <params>-crf 35.0 -vcodec libx264 -vpre hq -acodec libfaac -ar 48000 -ab 128kb -coder 1 -flags +loop -cmp +chroma -partitions +parti4x4+partp8x8+partb8x8 -me_method hex -subq 6 -me_range 16 -g 250 -keyint_min 25 -sc_threshold 40 -i_qfactor 0.71 -b_strategy 1 -threads 0</params>
    <extension>mp4</extension>
    <category>MPEG-4</category>
  </MPEG4Video5HQ>
  <MPEG4VideoVHQ>
    <label>MPEG-4 H.264 video (very high quality)</label>
    <extension>mp4</extension>
    <params>-crf 25.0 -ab 160kb</params>
    <category>MPEG-4</category>
  </MPEG4VideoVHQ>
  <MPEG4VideoVHQ>
    <label>MPEG-4 H.264 video (very high quality)</label>
    <params>-vcodec libx264 -vpre hq -acodec libfaac -ar 48000 -coder 1 -flags +loop -cmp +chroma -partitions +parti4x4+partp8x8+partb8x8 -me_method hex -subq 6 -me_range 16 -g 250 -keyint_min 25 -sc_threshold 40 -i_qfactor 0.71 -b_strategy 1 -threads 0</params>
    <extension>mp4</extension>
    <category>MPEG-4</category>
  </MPEG4VideoVHQ>
  <MPEG4VideoSHQ>
    <label>MPEG-4 H.264 video (super high quality)</label>
    <extension>mp4</extension>
    <params>-crf 15.0 -ab 192kb</params>
    <category>MPEG-4</category>
  </MPEG4VideoSHQ>
  <MPEG4VideoSHQ>
    <label>MPEG-4 H.264 video (super high quality)</label>
    <params>-vcodec libx264 -vpre max -acodec libfaac -ar 48000 -coder 1 -flags +loop -cmp +chroma -partitions +parti4x4+partp8x8+partb8x8 -me_method hex -subq 6 -me_range 16 -g 250 -keyint_min 25 -sc_threshold 40 -i_qfactor 0.71 -b_strategy 1 -threads 0</params>
    <extension>mp4</extension>
    <category>MPEG-4</category>
  </MPEG4VideoSHQ>
  ...
You'll notice that each option has two blocks of XML code in the above "presets" file (one of which is highlighted in blue font), if you just had the latter XML block for each option there, those options missing the block above it would not show up in the "wizard" in QWinFF.

You'll also notice the what's highlighted in bold has another field that the other options don't, this is for ffmpeg command options that you only want for a particular QWinFF option. If you put an option in the second <params> field for said option, it will get ignored if it's different to the other options for ffmpeg in the previous XML code blocks for the other options.

NOTE: The above information regarding the "presets" is not exclusive to CentOS and would also apply with any other distribution that QWinFF is installed on.

Last edited by jsbjsb001; 08-06-2018 at 06:15 AM. Reason: updated my modified "presets" file and clarity.
 
  


Reply

Tags
audio conversion, centos7, ffmpeg, qwinff, video conversion



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Installing and Configuring CGI for CentOS/Apache lisakathoderay Linux - Newbie 2 10-31-2013 12:15 AM
LXer: Installing and Configuring CentOS LXer Syndicated Linux News 0 10-19-2013 02:10 AM
Installing and Configuring MySQL Cluster on Centos armada11 Linux - Enterprise 1 05-03-2011 11:48 PM
HOWTO: Installing CentOS 5 remotely over any other Linux without physical access halo14 Red Hat 0 11-03-2008 04:07 PM
installing vmware in centos and configuring raghav1kumar Linux - Newbie 1 10-16-2008 05:13 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General > LinuxQuestions.org Member Success Stories

All times are GMT -5. The time now is 02:23 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration