| Branch: | Revision:

ffmpeg / libavdevice @ ca402f32

# Date Author Comment
2eddfb2b 03/30/2011 04:19 AM Brad

sndio bug fix

Since the code already supports both little- and big-endian
audio for recording, do not fail just because the endianness is not
what we expect.

Signed-off-by: Ronald S. Bultje <>

c6f95144 03/28/2011 02:49 PM Stefano Sabatini

framebuffer device demuxer

Signed-off-by: Anton Khirnov <>

15d59d2c 03/27/2011 08:46 AM Brad

sndio support for playback and record

Signed-off-by: Anton Khirnov <>

2912e87a 03/19/2011 01:33 PM Mans Rullgard

Replace FFmpeg with Libav in licence headers

Signed-off-by: Mans Rullgard <>

a03be6e1 03/16/2011 08:54 PM Janne Grunau


29ba0911 03/16/2011 08:54 PM Janne Grunau


also update the multiple inclusion guards in config.h|mak

737eb597 02/15/2011 03:18 PM Reinhard Tartler

Merge libavcore into libavutil

It is pretty hopeless that other considerable projects will adopt
libavutil alone in other projects. Projects that need small footprint
are better off with more specialized libraries such as gnulib or rather
just copy the necessary parts that they need. With this in mind, nobody...

c6610a21 01/26/2011 10:10 PM Diego Elio Pettenò

Prefix all _demuxer, _muxer, _protocol from libavformat and libavdevice.

This also lists the objects from those two libraries as internal (by adding
the ff_ prefix) so that they can then be hidden via linker scripts.

2c3589bf 01/18/2011 08:32 PM Janne Grunau

consolidate .gitignore patters into a single file

Signed-off-by: Janne Grunau <>

348b8218 01/17/2011 02:50 PM Janne Grunau

convert svn:ignore properties to .gitignore files

Signed-off-by: Janne Grunau <>

5d3d238f 01/05/2011 02:15 PM Stefano Sabatini

Factorize common code in v4l2_set_parameters().

Originally committed as revision 26225 to svn://

8621a37d 01/05/2011 02:15 PM Stefano Sabatini

In video4linux2, in the case the timebase value in ap is 0/0, read the
timebase value already set in the driver, and set it back in the codec
stream, rather than leaving the invalid value of 0/0.

In particular, fix ffmpeg grabbing timestamps when the timebase value...

bd7d9e45 01/04/2011 06:18 PM Stefano Sabatini

In the video4linux2 output device, log an error description in case of
ioctl failure in mmap_release_buffer().

Originally committed as revision 26214 to svn://

8ce803db 11/07/2010 06:04 PM Jason Garrett-Glaser

Make x11grab cursor drawing suck less
This new version:
1. Works on 24-bit and 32-bit input, not just 32-bit.
2. Doesn't try to run on 16-bit or 8-bit, instead of outright crashing.
3. Does proper alpha-blending, so cursor shadows look correct.
4. Doesn't swap R and B....

1973e101 10/23/2010 02:11 AM Ramiro Polla

vfwcap: add option to print list of supported drivers

Originally committed as revision 25552 to svn://

70f77361 09/23/2010 09:16 AM José Miguel Gonçalves

Allow to set the frame rate in v4l2 devices
Patch by José Miguel Gonçalves (jose DOT goncalves AT inov DOT pt)

Originally committed as revision 25159 to svn://

01058893 09/12/2010 07:44 PM Stefano Sabatini

Cosmetics: simplify layout of fmt_conversion_table, make it shorter
and more readable.

Originally committed as revision 25108 to svn://

680861ca 09/11/2010 04:44 PM Stefano Sabatini

Cosmetics: apply minor style fixes.

Originally committed as revision 25106 to svn://

e16f217c 09/07/2010 07:15 PM Stefano Sabatini

Use new imgutils.h API names, fix deprecation warnings.

Originally committed as revision 25058 to svn://

4f2d2e4e 08/17/2010 06:25 PM Stefano Sabatini

Define macro AV_NE() and use it in libavdevice.

Help further refactoring.

Originally committed as revision 24814 to svn://

b4f81b74 08/11/2010 07:34 AM Pete Eberlein

Add a mapping for the V4L2_PIX_FMT_NV12 format to PIX_FMT_NV12 for
video4linux2 devices. This is used by Sensoray Model 2253 cards.
Patch by Pete Eberlein (pete AT sensoray DOT com)

Originally committed as revision 24759 to svn://

6ce9b431 08/06/2010 09:37 AM Stefano Sabatini

Remove use of the deprecated function avcodec_check_dimensions(), use
av_check_image_size() instead.

Originally committed as revision 24711 to svn://

09f6a45d 07/02/2010 11:19 AM Diego Biurrun

Remove non-existing stray arguments from Doxygen function documentation.

Originally committed as revision 23976 to svn://

49bd8e4b 06/30/2010 03:38 PM Måns Rullgård

Fix grammar errors in documentation

Originally committed as revision 23904 to svn://

33e7febd 06/21/2010 10:54 PM Carl Eugen Hoyos

Remove stray semicolon.

Originally committed as revision 23691 to svn://

c1b85795 06/10/2010 05:23 PM Diego Biurrun

Remove broken BeOS audio interface.

Originally committed as revision 23568 to svn://

50f85218 05/01/2010 08:24 AM Stefano Sabatini

Make device_open() store the VIDIOC_QUERYCAP ioctl errno, and in case
of failure return the stored value rather than the current errno,
which may be overwritten by a following call to close().

Originally committed as revision 23001 to svn://

faa2989e 04/29/2010 01:05 PM Ramiro Polla

vfwcap: flip RGB rawvideo.

Originally committed as revision 22989 to svn://

b01dba14 04/28/2010 08:02 AM Luca Abeni

Check the return value of device_try_init() immediately after calling such a
function. Avoids the following warning:
libavdevice/v4l2.c: In function ‘v4l2_read_header’:
libavdevice/v4l2.c:586: warning: ‘codec_id’ may be used uninitialized in this function...

6e25b780 04/27/2010 10:45 PM Stefano Sabatini

Fix weird brace placement.

Originally committed as revision 22982 to svn://

1ace15f5 04/27/2010 09:33 PM Luca Abeni

Reduce the verbosity of the v4l2 input device

Originally committed as revision 22980 to svn://

4f54d924 04/27/2010 09:32 PM Luca Abeni

Simplify some output messages in the v4l2 input device

Originally committed as revision 22979 to svn://

932d775f 04/26/2010 10:07 PM Stefano Sabatini

Implement v4l2 input size autodetection in v4l2_read_header().

Move check on frame size after the device is opened and after
device_try_init() is attempted. If the provided size value is 0x0,
perform a VIDIOC_G_FMT ioctl() on the device, which sets size to the...

c57a8fef 04/26/2010 07:40 PM Stefano Sabatini

Return meaningful error codes, rather than always -1.

Originally committed as revision 22966 to svn://

18225025 04/25/2010 06:47 PM Stefano Sabatini

Remove unnecessary width and height variables from v4l2_read_header().

Originally committed as revision 22963 to svn://

ba87f080 04/20/2010 02:45 PM Diego Biurrun

Remove explicit filename from Doxygen @file commands.

Passing an explicit filename to this command is only necessary if the
documentation in the @file block refers to a file different from the
one the block resides in.

Originally committed as revision 22921 to svn://

2874c81c 04/03/2010 02:15 PM Stefano Sabatini

Replace all remaining occurrences of AVERROR_NOMEM with

AVERROR_NOMEM is deprecated and will be dropped at the next libavutil
major bump.

Originally committed as revision 22791 to svn://

fea9bb2f 04/02/2010 01:33 PM Martin Storsjö

Replace the last occurrance of CODEC_TYPE_ with AVMEDIA_TYPE_

Originally committed as revision 22776 to svn://

cc947f04 03/31/2010 12:29 PM Jean-Daniel Dupas

Replace all occurences of PKT_FLAG_KEY with AV_PKT_FLAG_KEY.

Patch by Jean-Daniel Dupas, devlists shadowlab org

Originally committed as revision 22744 to svn://

72415b2a 03/30/2010 11:30 PM Stefano Sabatini

Define AVMediaType enum, and use it instead of enum CodecType, which
is deprecated and will be dropped at the next major bump.

Originally committed as revision 22735 to svn://

bd01c393 03/25/2010 12:41 AM Stefano Sabatini

Make audio_read_packet() return AVERROR_EOF rather than AVERROR =

Originally committed as revision 22664 to svn://

85f273c7 03/23/2010 11:35 PM Ramiro Polla

x11grab: AVFormatParameters are always passed from av_open_input_stream(),
there is no need to check for it.

Originally committed as revision 22651 to svn://

e547328b 03/21/2010 09:24 AM Diego Biurrun

Revert removal of _NETBSD_SOURCE definition.
It is indeed necessary to compile on NetBSD.

Originally committed as revision 22613 to svn://

ad8eede7 03/17/2010 04:36 AM Ramiro Polla

vfwcap: Free remaining packets on vfw_read_close().

Originally committed as revision 22575 to svn://

ce03ed4d 03/17/2010 04:24 AM Ramiro Polla

Do not store a copy of AVFormatContext *s in vfw_ctx.
Save *s directly in SetWindowLongPtr instead.

Originally committed as revision 22574 to svn://

5ae092ee 03/13/2010 07:19 PM Stefano Sabatini

Replace all the occurrences of AVERROR_EIO with AVERROR, and mark
AVERROR_EIO for deletion at the next major bump.

Originally committed as revision 22513 to svn://

4f4e4008 03/12/2010 05:29 PM Diego Biurrun

Replace BSD-specific integer types by their POSIX equivalents.
Mark bktr_init function as av_cold.
Tested to work by Michael Kostylev on the NetBSD FATE box.

Originally committed as revision 22487 to svn://

2138dc99 03/12/2010 05:28 PM Diego Biurrun


This make NetBSD compile out of the box at the cost of a hack, but a
locally contained one that is preferable to the one used in the wild.
Currently the NetBSD FATE box adds -D_NETBSD_SOURCE to CPPFLAGS to work...

e24080f0 03/10/2010 05:25 AM Ramiro Polla

vfwcap: Add support for UYVY pixel format.

Originally committed as revision 22424 to svn://

c26e58e3 03/06/2010 10:36 PM Måns Rullgård

Add some missing #includes

Originally committed as revision 22258 to svn://

d5963ee6 03/03/2010 09:16 AM Jorge Acereda

Add _NETBSD_SOURCE definition to fix compilation on NetBSD.
NetBSD is unlikely to fix their headers and the FATE box passes it
as -D_NETBSD_SOURCE on the command line anyway. In this case, it's
better to keep the hack well-contained within this file.
Closes issue 886....

d7a4961e 02/23/2010 04:49 PM Nash Tsai

vfwcap: support MJPG compressed streams.
Patch by Nash Tsai <nash dot tsai at gmail dot com>

Originally committed as revision 22004 to svn://

802da0b4 02/21/2010 03:23 AM Ramiro Polla


Originally committed as revision 21933 to svn://

1dc5c358 02/05/2010 11:24 PM Stefano Sabatini

Satisfy style nits.

Originally committed as revision 21648 to svn://

90d0379f 01/28/2010 03:45 PM Jai Menon

Avoid using deprecated AVFormatParameters::[audio|video]_codec_id field.

Originally committed as revision 21511 to svn://

420755dd 01/23/2010 08:58 PM kemuri

vfwcap: Include windows.h before vfw.h since the latter requires defines
from the former.
Patch by kemuri <kemuri9 at gmail dot com>

Originally committed as revision 21411 to svn://

a482e61b 01/16/2010 04:49 AM Måns Rullgård

Add symbol versioning for shared libraries

Based on patch by Reinhard Tartler <siretart tauware de>

Originally committed as revision 21236 to svn://

8040c3b2 01/03/2010 10:43 AM Reinhard Tartler

Define device_try_init() as static in libavdevice/v4l2.c.
Patch by Reinhard Tartler (siretart AT tauware DOT de).

Originally committed as revision 21004 to svn://

3d1ebac8 12/14/2009 11:23 PM Carl Eugen Hoyos

Define _XOPEN_SOURCE as 600 before including a XSI extension header.

Originally committed as revision 20871 to svn://

1f15747f 12/14/2009 10:52 AM Carl Eugen Hoyos

Use enum PixelFormat as type for input_pixfmt to avoid one icc warning.

Originally committed as revision 20859 to svn://

3db77ccf 12/14/2009 10:34 AM Luca Abeni

Support compressed formats in the V4L2 input device.
Patch by klchxbec AT freenet DOT de.

Originally committed as revision 20858 to svn://

9eb6e9d9 12/14/2009 10:33 AM Luca Abeni

Add support for V4L2 compressed formats in the table used for converting
between V4L2 formats and ffmpeg's formats/codecs.
Patch by klchxbec AT freenet DOT de.

Originally committed as revision 20857 to svn://

9202218e 12/14/2009 10:31 AM Luca Abeni

Use the correct type for the V4L2 format.

Originally committed as revision 20856 to svn://

158aa9f2 12/14/2009 10:30 AM Luca Abeni

Return pkt->size in v4l2_read_packet().
mmap_read_frame() takes care of ensuring that the packet size
is correct.

Originally committed as revision 20855 to svn://

419bddd3 11/29/2009 11:30 PM Matthieu Castet

Include alsa headers before the internal FFmpeg headers.

This avoids symbol redefinitions problems, for example avoids the "free"
symbol to be redefined before system headers actually using it are
included, thus breaking compilation. In particular this change allows...

244c8d10 11/29/2009 10:39 PM Ivo van Poorten

consistency with other files: av_cold static ---> static av_cold

Originally committed as revision 20662 to svn://

f6dcc937 11/27/2009 07:36 PM Michael Niedermayer

Add nomouse option to not record the mouse cursor.
Implements issue877

Originally committed as revision 20633 to svn://

a5a61fac 11/27/2009 06:56 PM Michael Niedermayer

Remove unused stuff.

Originally committed as revision 20632 to svn://

781c1aa6 11/27/2009 05:58 PM Roxis

Real cursor support in x11grab.
Patch by Roxis /// roxis list dot ru
Slight changes by me to update the patch to current svn.

Originally committed as revision 20631 to svn://

d3298350 11/27/2009 01:48 PM Michael Niedermayer

Do not invent error codes but pass the error code on.

Originally committed as revision 20630 to svn://

fed0c2fb 11/27/2009 01:37 PM Michael Niedermayer

Replace very odd and completely broken oss read_packet() by the obvious way to
Fixes issue348.

Originally committed as revision 20629 to svn://

c1736936 11/18/2009 05:15 PM Diego Biurrun

Add functions to return library license and library configuration.

Originally committed as revision 20547 to svn://

d7a0e29f 11/18/2009 05:01 PM Diego Biurrun

Split avdevice.c off from alldevices.c.
alldevices.c is not a good place for avdevice_version().

Originally committed as revision 20546 to svn://

1f20782c 11/16/2009 06:39 PM Diego Biurrun

Add missing #includes for avutil.h, required for the AV_VERSION* macros.

Originally committed as revision 20544 to svn://

15674f12 10/18/2009 10:47 AM Diego Biurrun

cosmetics: Break overly long lines.

Originally committed as revision 20276 to svn://

58f873dd 09/30/2009 01:01 PM Reimar Döffinger

Fix compilation of beosaudio.cpp, not tested if it actually works though.

Originally committed as revision 20098 to svn://

71e42180 09/22/2009 02:44 PM Diego Biurrun

Fix METEOR vs. BKTR typo, noticed by Steve O'Hara-Smith, steve sohara org.

Originally committed as revision 19965 to svn://

31fe12a9 09/19/2009 09:09 AM Reimar Döffinger

Add missing strings.h include needed for strcasecmp.

Originally committed as revision 19920 to svn://

600b9c5c 09/12/2009 04:23 PM Vitor Sessak

Do not do free AVStream in case of error, this is not supposed to be
done by the demuxer.

Fix issue 1378.

Originally committed as revision 19825 to svn://

315fa33f 09/04/2009 04:32 PM Ramiro Polla


Originally committed as revision 19757 to svn://

a9decf00 09/04/2009 04:31 PM Ramiro Polla

Use if(0){} instead of #if 0 to prevent debug code to rot.

Originally committed as revision 19756 to svn://

95f2c769 08/23/2009 11:02 AM Måns Rullgård

Skip headers requiring external libs not present in checkheaders

Originally committed as revision 19685 to svn://

c959c6ee 08/02/2009 05:39 PM Diego Biurrun

vfwcap: Move vfw_read_close to avoid forward declaration.
Patch by Diego.

Originally committed as revision 19567 to svn://

155b0f00 07/30/2009 05:31 PM Ramiro Polla

vfwcap: Indent.

Originally committed as revision 19545 to svn://

1c0b9215 07/30/2009 05:29 PM Ramiro Polla

vfwcap: Support compressed streams.

Originally committed as revision 19544 to svn://

42477de5 07/30/2009 05:25 PM Ramiro Polla

vfwcap: Reorder some code to simplify next patch.

Originally committed as revision 19543 to svn://

d40b45e8 07/30/2009 04:18 PM Ramiro Polla

vfwcap: Return PIX_FMT_NONE instead of -1 on error.

Originally committed as revision 19542 to svn://

189230ad 07/30/2009 04:16 PM Ramiro Polla

vfwcap: Update error message:
- Verbose debug information is at max v 9 now;
Add an empty space for readability.

Originally committed as revision 19541 to svn://

63613fe6 07/26/2009 12:20 PM Måns Rullgård


Originally committed as revision 19508 to svn://

62a0525d 07/21/2009 02:32 PM Måns Rullgård

x11grab: remove unnecessary #includes and senseless #define

Originally committed as revision 19479 to svn://

38e54a75 06/29/2009 06:49 PM Stefano Sabatini

Make the configure script select the input/output devices using
--enable-indev, --enable-outdev rather than --enable-demuxer,
--enable-muxer as before, same for disabling them.

Originally committed as revision 19293 to svn://

cf6bae68 05/06/2009 10:38 PM Daniel Verkamp

Change codec_id type to enum CodecID, fix warning.

Patch by Daniel Verkamp daniel drv nu.

Originally committed as revision 18768 to svn://

08982bb4 04/14/2009 10:33 PM Carl Eugen Hoyos

Cosmetics: Split long line.

Originally committed as revision 18516 to svn://

899f38df 04/14/2009 10:30 PM Carl Eugen Hoyos

Fix two icc warnings #188: enumerated type mixed with another type.

Originally committed as revision 18515 to svn://

34bcada4 04/14/2009 10:21 PM Carl Eugen Hoyos

Fix icc warning #188: enumerated type mixed with another type.

Originally committed as revision 18514 to svn://

5c463aac 04/14/2009 10:19 PM Carl Eugen Hoyos

Fix icc warning #188: enumerated type mixed with another type.

Originally committed as revision 18513 to svn://

80ff8a16 04/02/2009 11:53 PM Olivier Guilyardi

Implement JACK input device.

Patch by Olivier Guilyardi list samalyse com.
See the thread: "[FFmpeg-devel] [PATCH] libavdevice: JACK demuxer".

Originally committed as revision 18322 to svn://

3cac2f13 03/07/2009 06:17 PM Luca Abeni


Originally committed as revision 17863 to svn://

1c787b10 02/15/2009 02:32 PM Luca Abeni

Cast a __u64 variable to uint64_t so that it can be printed without warnings

Originally committed as revision 17325 to svn://

b17e0f06 02/09/2009 11:17 AM Diego Biurrun

Remove file name from file headers.
It provides no useful information and breaks on renames.

Originally committed as revision 17097 to svn://