ffmpeg best video codec for project?

Helloall,

I have created a video using Adobe Premier elements 7 (couldn’t get
kdenlive to work for now, and I am on a time crunch).

I brought the video back over to my openSUSE box and want to use ffmpeg
to convert it to a format that will make it useful for what I need to do.

Here are my requirements:

  1. Size - important - I will be having this file downloaded of my cloud
    server, so it is important to keep the file size lowto minimize the time
    it takes to download. It would be best if the file is 300mb or less
  2. Compression speed - Not so important
  3. Decompression speed - not so important, as the file will be
    downloaded and playedthrough a player, not streamed
  4. Quality - very important, but there is not a significant amount of
    motion in the video, so as long as it looks basically decent
  5. Playability on another pc - very important. The client will be
    downloading the video and either playing it on a mac, an ipad, a windows
    pc, or all 3 for various audiences

The video I created is 13 minutes and 5 seconds long. After creating it
and bringing it over to my linux box, I ran ffmpeg to identify the
codec. It says it is “dvvideo”, but that is not listed in the ffmpeg
codecs. The video plays fine on my linux box.

From a tip off a google search, I ran the following line to compress
the file:


> ffmpeg -i DWTOlsonMSDVAVI.avi -s 720x480 -vcodec msmpeg4v2
DWTOlsonDivx.avi


This made the file size ideal, only 31MB as you can see compared to 2.8GB:


> ls DWT* -l -h
-rw-r--r-- 1 george users 31M Jan 21 15:40 DWTOlsonDivx.avi
-rw-r--r-- 1 george users 2.8G Jan 21 2013 DWTOlsonMSDVAVI.avi

However, the quality of the video having run like that is terrible.

So is there a better codec I could use that would get me decent
compression without sacrificing so much quality, and still be able to
run on multiple platforms? I am kind of new to video processing, and
after searching through mountains of information on the internet for a
few hours, I amhoping someone here can give me some very simple guidance.

Thanks in advance,
George


G.O.
Box #1: 12.2 | KDE 4.9.2 | AMD Phenom IIX4 | 64 | 16GB
Box #2: 12.2 | KDE 4.9.1 | AMD Athlon X3 | 64 | 4GB
Laptop: 12.2 | KDE 4.9.2 | Core i7-2620M | 64 | 8GB
learning openSUSE and loving it

Have you tried Handbrake?

Another option is Avidemux

IMHO there’s something wrong with the ffmpeg options. I can’t imagine a high quality video of over 13 minutes just being 31 MB.

On 01/21/2013 04:56 PM, caf4926 wrote:
> Have you tried Handbrake?
>
> Another option is Avidemux
>
>
Thanks, I will have to take a look at those.


G.O.
Box #1: 12.2 | KDE 4.9.2 | AMD Phenom IIX4 | 64 | 16GB
Box #2: 12.2 | KDE 4.9.1 | AMD Athlon X3 | 64 | 4GB
Laptop: 12.2 | KDE 4.9.2 | Core i7-2620M | 64 | 8GB
learning openSUSE and loving it

You might also want to try WinFF: ‘WinFF is a GUI for the command line video converter, FFMPEG’, http://winff.org/html_new/.
(it’s in the packman repo)

As noted by caf4926 in his suggestion, if you are not fixated on ffmpeg, then handbrake is a viable option.

I re-encode MANY of my videos for display on my Asus Transformer Tablet (which is currently only running ICS (android-4.0.4)) and also for my Zopo ZP-500+ android smart phone. I use custom settings in Handbrake which are noted here: [GUIDE] 720p Handbrake preset for TF101 (HC3.1 Update) - xda-developers]([GUIDE] 720p Handbrake preset for TF101 (HC3.1 Update) | XDA Forums)I think the example for an MS-Windows version of Handbrake, but the same settings can be applied in the GNU/Linux handbrake version.

… I find those ‘transformer’ settings work well in my Smart phone.

I find Handbrake reasonably quick in its encoding, and the resultant encoded file size not excessively large.