LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 05-15-2007, 08:05 AM   #1
keratos
Member
 
Registered: May 2007
Location: London, UK.
Distribution: Major:FC8. Others:Debian;Zenwalk; Arch; Slack; RHEL.
Posts: 542

Rep: Reputation: 30
ffmpeg mencoder and lavc


Hi all

I'm getting to grips with linux video encoding and have tried several apps. I'm confused though with apps, codecs and libraries.

I've scoured the net and discovered comparisons between ffmpeg and mencoder. I've seen mention of lavc and mpeg2video. I've also come across utils such as transcode.

I'm confused, can someone please clear up my understanding. Is this correct:

mencoder is mplayer's encoder engine.
mencoder uses lavc which is lib audio visual codecs, a library including lots of the latest codecs - such as mpeg2video for DVD and mpeg4 for compressed video etc.

So mpeg2video is a codec from the lavc library used by mencoder engine.

Where does ffmpeg come in. The ffmpeg site mentions that ffmpeg is part of the lavc library. What!!? I can run ffmpeg from the command line - is this not an app.

Also, why do apps that use ffmeg direct seem to encode much faster than those that use mencoder (does that itself use ffmpeg?)

What is ffmpeg? How does it fit in with mencoder - is it an alternate application or simply a codec used by mencoder. Is ffmpeg better than mpeg2video ... arrggg .. confused!
 
Old 05-16-2007, 08:06 PM   #2
osor
HCL Maintainer
 
Registered: Jan 2006
Distribution: (H)LFS, Gentoo
Posts: 2,450

Rep: Reputation: 69
Quote:
Originally Posted by keratos
What is ffmpeg? How does it fit in with mencoder - is it an alternate application or simply a codec used by mencoder.
It’s both (sort of). The project called ffmpeg implements various codecs as libraries. Historically, it started out as just part of mplayer (i.e., a bunch of internal libraries used only by mplayer). Eventually, these libraries became big enough (and useful enough) to become a standalone project. The libraries I’m thinking of are named libavcodec (i.e., “lavc”), libavformat, libavutil, libpostproc, and libswscale. Incidentally, the project that delivers these libraries (named ffmpeg) comes with a program that uses them which is itself named “ffmpeg”. Of course the program ffmpeg can use other libraries (depending on how it was built). For example, my ffmpeg program uses these codec libraries (in addition to the ffmpeg libraries themselves):
  • liba52
  • libdts
  • libfaac
  • libfaad
  • libmp3lame
  • libmp4v2
  • libogg
  • libtheora
  • libvorbis
  • libvorbisenc
  • libx264
  • libxvidcore
(this information found by running “ldd /usr/bin/ffmpeg” and filtering out non-codec libraries).
Quote:
Originally Posted by keratos
Also, why do apps that use ffmeg direct seem to encode much faster than those that use mencoder
I don’t think this is true. At least not if you tell both to use the same libraries for encoding (usually lavc). You can probably construct a situation (e.g., tell mplayer to use lame and tell ffmpeg to use lavc) in which one beats the other in “speed”

Last edited by osor; 05-17-2007 at 04:09 PM. Reason: typo
 
Old 05-17-2007, 01:48 PM   #3
keratos
Member
 
Registered: May 2007
Location: London, UK.
Distribution: Major:FC8. Others:Debian;Zenwalk; Arch; Slack; RHEL.
Posts: 542

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by osor
It’s both (sort of). The project called ffmpeg implements various codecs as libraries. Historically, it started out as just part of mplayer (i.e., a bunch of internal libraries used only by mplayer). Eventually, these libraries became big enough (and useful enough) to become a standalone project. The libraries I’m thinking of are named libavcodec (i.e., “lavc”), libavformat, libavutil, libpostproc, and libswscale. Incidentally, the project that delivers these libraries (named ffmpeg) comes with a program that uses them which is itself named “ffmpeg”. Of course the program ffmpeg can use other libraries (depending on how it was built). For example, my ffmpeg program uses these codec libraries (in addition to the ffmpeg libraries themselves):
  • liba52
  • libdts
  • libfaac
  • libfaad
  • libmp3lame
  • libmp4v2
  • libogg
  • libtheora
  • libvorbis
  • libvorbisenc
  • libx264
  • libxvidcore
(this information found by running “ldd /usr/bin/ffmpeg” and filtering out non-codec libraries).

I don’t think this is true. At least not if you tell both to use the same libraries for encoding (usually lavc). You can probably construct a situation (i.e., tell mplayer to use lame and tell ffmpeg to use lavc) in which one beats the other in “speed”
BRILLIANT!

Thanks for clearing that up.

I'm using avidemux now having tried many command line and GUI apps. The output is smooth and excellent quality. A 1.5hr DivX movie encodes to DVD in about 50mins.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
acidrip, mencoder, ffmpeg problem puppet Linux - Software 2 12-24-2006 10:06 AM
FFMPEG vs MPLAYER vs MENCODER and batch conversions to MP4 ? AngusM Linux - Software 2 11-08-2006 08:20 AM
mencoder/ffmpeg convert video(wmv) for Windows Mobile? paulx Linux - Software 2 06-26-2006 11:24 AM
ffmpeg mencoder transcode Lobais Linux - Software 3 01-09-2006 12:28 PM
mencoder and lavc audio @ngelot Linux - Software 2 01-09-2006 02:23 AM


All times are GMT -5. The time now is 07:59 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration