Libav

From Gentoo Wiki
Jump to: navigation, search
Warning
This page has been nominated for deletion.

The given reason is: This article should be deleted because media-video/libav has been removed from the Gentoo repository. Users should use FFmpeg instead.

If you disagree with its deletion, do not remove this notice; discuss your objections on the associated discussion page.

Administrators, please remember to check if anything links here and the page history before deleting.

This notice should remain for a minimum of 1 month after it was placed on the page. If discussion is still ongoing it should remain until a consensus is reached, at which time the page may be deleted or this notice may be removed. (However, if the page has only been edited by the user who nominated it for deletion and/or is in the nominator's user space, then a speedy deletion may be called for.)
This article is a stub. You can help by expanding it.

Libav is a complete, cross-platform solution to record, convert and stream audio and video. It includes an implementation of libavcodec — the leading audio/video codec library.

Software not building with Libav

Some software might not be compatible with the 0.8 or even the 0.7 Libav API.

The most outstanding issues include:

  • libavutil specific function being used without including the required header:
include <libavutil/mathematics.h> to include av_rescale_q()
include <libavutil/avstring.h> to include the av_str functions
  • FFmpeg only calls used:
avformat_alloc_output_context2() might be the most used, it is a shortcut for calling avformat_alloc_context() followed by using av_guess_format() and an av_strlcpy of the filename.

Installation

USE flags

Some packages know the libav USE flag for Preferring media-video/libav over media-video/ffmpeg whenever both are supported.

Cannot load package information. Is the atom media-video/libav correct?

Emerge

After setting appropriate USE flags, run the emerge command:

root #emerge --ask media-video/libav

Usage

Libav provides a new command-line tool to manipulate streams called avconv. Its aim is similar to the ffmpeg command from FFmpeg, but the syntax had been changed to be more regular and it aims to solve some long standing issues regarding time stamp guessing/generation that had been a bane for everybody trying to transcode live streams in the past.

See also

  • FFmpeg — a cross platform, free, open source media encoder/decoder toolkit.

External resources