M
M
misc12014-09-20 13:05:39
linux
misc1, 2014-09-20 13:05:39

What and how to convert video in Linux?

Hello! I am looking for a way to convert video to WebM for video hosting (preferably, but you can use any from here that is supported by Chrome and preferably Firefox) .
In Roadmap, we initially had avconv(ffmpeg), but after checking it on the production server, it turned out that MP4 (24s, 5.28mb)->WebM is about 2 minutes (this is the problem).
OS Server Configuration
- Ubuntu Server 14.04.1 LTS
Output of lshw utility

description: Computer
    width: 64 bits
    capabilities: vsyscall64 vsyscall32
  *-core
       description: Motherboard
       physical id: 0
     *-memory
          description: System memory
          physical id: 0
          size: 1GiB
     *-cpu
          product: AMD Opteron(tm) Processor 6128
          vendor: Advanced Micro Devices [AMD]
          physical id: 1
          bus info: [email protected]
          width: 64 bits
          capabilities: fpu fpu_exception wp vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp x86-64 constant_tsc rep_good tsc_reliable nonstop_tsc unfair_spinlock pni cx16 x2apic popcnt hypervisor lahf_lm cmp_legacy extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw

lshw -short output
H/W path  Device  Class      Description
========================================
                  system     Computer
/0                bus        Motherboard
/0/0              memory     1GiB System memory
/0/1              processor  AMD Opteron(tm) Processor 6128

And very briefly
1 GB of RAM, 1 processor core, 10 GB of HDD (10 GB - temporarily).
The web server (NGINX&Apache)
htop also runs on this server when converting
KThErDs.png

Answer the question

In order to leave comments, you need to log in

4 answer(s)
A
Alexander Taratin, 2014-09-20
@Taraflex

What codecs are used in mp4? Can score on webm and play mp4 via flash?

J
jidckii, 2014-09-20
@jidckii

It will not work faster, since such operations require a lot of calculations to perform.
Even such giants as VK and YouTube first press in 240p and make it immediately available, and other resolutions appear as soon as they are ready.

P
ptQa, 2014-10-22
@ptQa

Use the ultrafast preset and you will be happy. Although h264 should be encoded faster than realtime even on the default preset.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question