Statistics
| Branch: | Revision:

ffmpeg / ffmpeg.c @ a38cdfde

History | View | Annotate | Download (163 KB)

# Date Author Comment
a38cdfde 04/26/2011 04:16 PM Michael Niedermayer

vsrc_buffer: Set output size
Signed-off-by: Michael Niedermayer <>

7b376b39 04/24/2011 01:41 AM Michael Niedermayer

Merge remote branch 'qatar/master'

  • qatar/master:
    Handle unicode file names on windows
    rtp: Rename the open/close functions to alloc/free
    Lowercase all ff* program names.
    Refer to ff* tools by their lowercase names.
    NOT Pulled Replace more FFmpeg instances by Libav or ffmpeg....
89b503b5 04/23/2011 05:12 PM Diego Biurrun

Lowercase all ff* program names.

3c483620 04/22/2011 04:49 PM Carl Eugen Hoyos

Cosmetics: Rename variable daemon as run_as_daemon.

daemon() is defined in unistd.h for BSD and Cygwin.

8772156b 04/22/2011 01:54 AM Michael Niedermayer

Merge remote branch 'qatar/master'

  • qatar/master:
    APIChanges: document git revision for CODEC_CAP_SLICE_THREADS addition.
    Introduce slice threads flag.
    FATE: allow forcing thread-type when doing threaded fate runs.
    Use av_log_ask_for_sample() where appropriate....
7046b63e 04/21/2011 10:08 AM Stefano Sabatini

ffmpeg: call pre_process_video_frame() only if decoding is needed

In output_packet(), move the pre_process_video_frame() call inside the
if (ist->decoding_needed) { } block. This way
pre_process_video_frame() is not called when stream-copy has been
selected....

79157f40 04/21/2011 05:10 AM Stefano Sabatini

error: remove AVERROR_NUMEXPECTED

AVERROR_NUMEXPECTED is used only in the image muxer and demuxer, and
has a too much specific meaning, which is better explained through a
log message. Thus it can be replaced by AVERROR.

This breaks API.

Signed-off-by: Stefano Sabatini <>...

2c18893a 04/20/2011 10:46 PM Baptiste Coudurier

In libx264 wrapper, correctly support 2pass log filename option.

efb5fa79 04/20/2011 02:48 AM Michael Niedermayer

Merge remote branch 'qatar/master'

  • qatar/master: (37 commits)
    In avcodec_open(), set return code to an error value only when an error occurs instead of unconditionally at the start of the function.
    lavc: remove reference to opt.h from Makefile.
    prefer avio_check() over url_exist()...
55815edc 04/19/2011 05:48 PM Stefano Sabatini

prefer avio_check() over url_exist()

The problem with url_exist() is that it tries to open a resource in
RDONLY mode. If the file is a FIFO and there is already a reading
client, the open() call will hang.

By using avio_check() with access mode of 0, the second reading...

59d96941 04/19/2011 05:47 PM Stefano Sabatini

avio: remove AVIO_* access symbols in favor of new AVIO_FLAG_* symbols

Make AVIO_FLAG_ access constants work as flags, and in particular fix
the behavior of functions (such as avio_check()) which expect them to
be flags rather than modes.

This breaks API.

41d0eb1c 04/19/2011 04:41 PM Anton Khirnov

lavc: remove the FF_API_SET_STRING_OLD cruft.

761ad429 04/19/2011 04:28 PM Anton Khirnov

lavf: remove FF_API_MAX_STREAMS cruft

c438c907 04/19/2011 10:23 AM Stefano Sabatini

ffmpeg: reformat resample condition code in transcode()

Signed-off-by: Stefano Sabatini <>

0f230c53 04/19/2011 10:23 AM Stefano Sabatini

ffmpeg: factorize resampling condition check in do_video_out()

Simplify and improve readability.

Signed-off-by: Stefano Sabatini <>

6a46aab4 04/19/2011 10:23 AM Stefano Sabatini

ffmpeg: prefer "dec" over "ist->st->codec" in do_video_out() snippet

Simplify, ease readability.

Signed-off-by: Stefano Sabatini <>

dfc6f5ae 04/19/2011 10:23 AM Stefano Sabatini

ffmpeg: improve reporting if size/pixel format changes

Use av_log() rather than fprintf(stderr, ...), and show information
related to the previous size/pixel format configuration.

Consistent with the corresponding message issued in case of audio
configuration change....

58bc9ac5 04/19/2011 10:23 AM Stefano Sabatini

ffmpeg: remove unused fields AVOutputStream.original_width/height

Signed-off-by: Stefano Sabatini <>

b0b83973 04/19/2011 10:23 AM Stefano Sabatini

ffmpeg: remove unused variable padding_src in do_video_out()

Signed-off-by: Stefano Sabatini <>

39aafa5e 04/18/2011 11:54 PM Michael Niedermayer

ffmpeg:Daemon mode, add -d as first option to try it.
Signed-off-by: Michael Niedermayer <>

17ee7b55 04/18/2011 11:54 PM Michael Niedermayer

ffmpeg:Fix negative verbositiy
Signed-off-by: Michael Niedermayer <>

abf8342a 04/16/2011 11:47 PM Baptiste Coudurier

ffmpeg: fix -aspect cli option

Redesign the way -aspect option is handled. This is done by making
ffmpeg read the sample aspect ratio set in the corresponding input
stream by default, and overriding it using the value specified by
-aspect.

If the output display aspect ratio is specified with -aspect, it is...

bdf3d3bf 04/16/2011 07:47 PM Stefano Sabatini

ffmpeg: use parse_number_and_die() when it makes sense

Prefer parse_number_or_die() over atoi()/atol() parsing for the options:
-pass, -top, -vc, and -qscale.

Improve input validation.

Signed-off-by: Stefano Sabatini <>

5381823e 04/10/2011 10:14 PM Stefano Sabatini

ffmpeg: rename configure_filters() to configure_video_filters()

Mostly useful for the audio-filters branch, to make more apparent the
distinction between configure_audio_filters() and
configure_video_filters().

Signed-off-by: Stefano Sabatini <>

f8de11cf 04/10/2011 07:27 AM Lou Logan

Redefine sameq

I think the documentation of sameq is causing confusion and misuse of
this option.

Signed-off-by: Michael Niedermayer <>
Signed-off-by: Anton Khirnov <>

d4d09329 04/09/2011 01:17 AM Michael Niedermayer

Merge remote branch 'qatar/master'

  • qatar/master:
    lavf: bump minor and add an APIChanges entry for avformat cleanup
    lavf: get rid of ffm-specific stuff in avformat.h
    Not pulled: avio: deprecate av_protocol_next().
    avio: add a function for iterating though protocol names....
3ee53dab 04/08/2011 06:58 PM Anton Khirnov

lavf: get rid of ffm-specific stuff in avformat.h

c3675dfe 04/08/2011 02:45 PM Anton Khirnov

lavf: rename avf_sdp_create to av_sdp_create.

The new name is more consistent with the rest of the API.

c88caa52 04/08/2011 12:50 AM Michael Niedermayer

Merge remote branch 'qatar/master'

  • qatar/master:
    proto: include os_support.h in network.h
    matroskaenc: don't write an empty Cues element.
    lavc: add a FF_API_REQUEST_CHANNELS deprecation macro
    avio: move extern url_interrupt_cb declaration from avio.h to url.h...
80c6e238 04/07/2011 04:11 PM Anton Khirnov

avio: avio_ prefix for url_set_interrupt_cb.

f87b1b37 04/07/2011 04:07 PM Anton Khirnov

avio: AVIO_ prefixes for URL_ open flags.

6b1c886b 04/06/2011 09:21 PM Michael Niedermayer

Fix ticket20
Signed-off-by: Michael Niedermayer <>

d6c85865 04/06/2011 01:01 AM Michael Niedermayer

Revert "ffmpeg: fix aspect ratio setting"

This reverts commit d1eb50bb29caad9745631759265f475177df99b9.
Reason, it breaks fate

11d78415 04/06/2011 12:59 AM Michael Niedermayer

Merge remote branch 'qatar/master'

  • qatar/master:
    psymodel: extend API to include PE and bit allocation.
    avio: always compile dyn_buf functions
    Remove unnecessary parameter from ff_thread_init() and fix behavior
    Revert "aac_latm_dec: use aac context and aac m4ac"...
b5ef6f8e 04/05/2011 11:09 PM Michael Niedermayer

Fix crash in ffmpeg.c with PIX_FMT_NONE
Signed-off-by: Michael Niedermayer <>

d1eb50bb 04/05/2011 01:33 PM Stefano Sabatini

ffmpeg: fix aspect ratio setting

This is done by adding a setsar filter at the beginning of the
configured filterchain.

This implementation is more robust, since does not modify the
filterchain description (which was creating potential syntax errors),
but directly modifies the filterchain structure....

14cf0fd2 04/05/2011 07:08 AM Alex Converse

Add silence support for AV_SAMPLE_FMT_U8.

Signed-off-by: Anton Khirnov <>

8af3167b 04/05/2011 01:21 AM Lou Logan

Redefine sameq

I think the documentation of sameq is causing confusion and misuse of
this option.

Signed-off-by: Michael Niedermayer <>

100a6b7c 04/03/2011 10:35 PM Peter Ross

ffmpeg: make 'bits_per_raw_sample' option more useful

Currently bits_per_raw_sample is exposed as an AVCodecContext option.
The option is not very useful, because ffmpeg 1) overwrites it with
a value from the upstream codec, or 2) it resets the value whenever...

7d948dc4 04/03/2011 02:40 PM Michael Niedermayer

Support changing pixel formats on avfilter input.
Fix issue2217
Signed-off-by: Michael Niedermayer <>

b25d931a 04/02/2011 02:15 PM Michael Niedermayer

Fix stream mapping regression

Signed-off-by: Michael Niedermayer <>

e7c7b0d0 04/01/2011 03:38 PM Michael Niedermayer

Another aspect ratio fix try. This leaves the setdar addition at the end (preferred by people).

Signed-off-by: Michael Niedermayer <>

6408529b 04/01/2011 12:11 PM Peter Ross

Increase ffmpeg video encoding buffer size to permit encoding of DPX images

The header generated by the DPX encoder is 1664 bytes.

859676dd 04/01/2011 12:14 AM Michael Niedermayer

Insert setdar at the begin of a filter chain instead the end.
This fixes -vf setsar

Signed-off-by: Michael Niedermayer <>

8b8bf89e 03/30/2011 10:22 PM Michael Niedermayer

Revert "Do no modify terminal parameters using termios.h"

This reverts commit cb48e245e6e770f146220fac0a8bd4dc1a5e006c.

Reason being we like pressing "q" to quit ffmpeg.

Conflicts:

ffmpeg.c

Signed-off-by: Michael Niedermayer <>

2ee85c06 03/27/2011 01:53 PM Stefano Sabatini

ffmpeg: warns the user when the selected pixel format is ignored

0c55c6d3 03/26/2011 01:40 PM Stefano Sabatini

cmdutils: remove list_fmts(), simplify

The function was only used in opt_sample_fmt() for listing the sample
formats. Move list_fmts() functionality directly into
opt_sample_fmt().

Als fix the warning:
ffmpeg.c: In function ‘opt_audio_sample_fmt’:
ffmpeg.c:2877: warning: passing argument 1 of ‘list_fmts’ from incompatible pointer type...

27ef7b1b 03/26/2011 02:06 AM Michael Niedermayer

Merge remote-tracking branch 'newdev/master'

  • newdev/master:
    mov: set audio service type for AC-3 from bitstream mode in the 'dac3' atom.
    Get audio_service_type for AC-3 based on bitstream mode in the AC-3 parser and decoder, and vice-versa for the AC-3 encoder....
34b47d7c 03/25/2011 08:51 PM Justin Ruggles

Add audio_service_type field to AVCodecContext for encoding and reporting
of the service type in the audio bitstream.

4ffc79e7 03/25/2011 05:42 PM Stefano Sabatini

ffmpeg: include conditionally the sws_flags variable

The variable is not used when libavfilter is enabled.
Fix the warning:
ffmpeg.c: At top level:
ffmpeg.c:242: warning: ‘sws_flags’ defined but not used

6dfb4ab8 03/25/2011 01:26 AM Michael Niedermayer

Make multiple Ctrl-C capable to kill stuck protocols.
Signed-off-by: Michael Niedermayer <>

4fa0e247 03/23/2011 01:42 AM Michael Niedermayer

Merge remote-tracking branch 'newdev/master'

  • newdev/master: (33 commits)
    Fix an infinite loop when RoQ encoded generated a frame with a size greater than the maximum valid size.
    Add kbdwin.o to AC3 decoder
    Detect byte-swapped AC-3 and support decoding it directly....
b58b9fa3 03/22/2011 11:07 AM Dave Yeo

Make sure kbhit() is in conio.h

Conio.h is a non-standard header and may not have kbhit()
prototyped. This fixes compile on OS/2 where the EMX version (we're
using a fork) of conio.h only has getch() and getche().

Signed-off-by: Mans Rullgard <>

d4a50a21 03/21/2011 02:33 AM Michael Niedermayer

Merge remote-tracking branch 'newdev/master'

Merged-by: Michael Niedermayer <>

cb48e245 03/20/2011 09:13 PM Panagiotis H.M. Issaris

Do no modify terminal parameters using termios.h

Remove usage of tcgetattr and tcsetattr to modify terminal
parameters, and rely on ctrl-c to stop instead of pressing 'q'.
On systems with conio.h, keep the old behavior.

Changing the terminal settings causes problems if multiple instances...

17a4ec8e 03/20/2011 08:07 PM Stefano Sabatini

ffmpeg: modify help text for the map option

Change "file:stream[:syncfile:syncstream]" to
"file.stream[:syncfile.syncstream]", the latter syntax is more
consistent with the stream identifier form printed by
av_dump_format(), and more readable. Both syntaxes are currently...

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

Replace FFmpeg with Libav in licence headers

Signed-off-by: Mans Rullgard <>

a7844c58 03/17/2011 12:35 AM Thierry Foucu

Fix compilation error when CONFIG_AVFILTER is not defined.

Signed-off-by: Michael Niedermayer <>

27efa296 03/12/2011 04:55 PM Michael Niedermayer

Merge branch 'master' of git://git.ffmpeg.org/ffmpeg

Merged-by: Michael Niedermayer <>

5dbe78bf 03/12/2011 02:08 PM Stefano Sabatini

ffmpeg: remove unused variable in ffmpeg_exit()

Fix the warning:
ffmpeg.c: In function ‘ffmpeg_exit’:
ffmpeg.c:509: warning: unused variable ‘j’

Signed-off-by: Mans Rullgard <>

0de8ebf4 03/08/2011 07:45 PM Carl Eugen Hoyos

Do not use AVFMT_FLAG_NONBLOCK for the output file.

Allows to use output device alsa.

db44ea96 03/08/2011 01:09 AM Anton Khirnov

avio: avio_ prefix for url_fsize

Signed-off-by: Ronald S. Bultje <>
(cherry picked from commit 76aa876e69cf78a40821e66dec0a1006e4eb23ec)

8993b596 03/07/2011 04:25 PM Michael Niedermayer

Make sure the first q press doesnt f*ck up the protocols and thus written files.
Signed-off-by: Michael Niedermayer <>

90552407 03/07/2011 04:23 PM Michael Niedermayer

Fix seting of decode_interrupt_cb()
Signed-off-by: Michael Niedermayer <>

76aa876e 03/07/2011 04:03 PM Anton Khirnov

avio: avio_ prefix for url_fsize

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

384c9c2f 03/05/2011 01:29 AM Anton Khirnov

avio: add avio_tell macro as a replacement for url_ftell

Signed-off-by: Ronald S. Bultje <>
(cherry picked from commit a2704c9712ad35cc22e7e0d8a79b581c07fa383b)

a2704c97 03/04/2011 04:26 PM Anton Khirnov

avio: add avio_tell macro as a replacement for url_ftell

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

d34ffd3c 03/03/2011 01:15 PM Martin Storsjö

ffmpeg: Use av_pkt_dump_log2

This makes dumped packet timestamps proper for streams with
timebases other than AV_TIME_BASE.

Signed-off-by: Luca Barbato <>
(cherry picked from commit 5e33e7bdac70a4b70e31f4ae6f0344060346d0b8)

5e33e7bd 03/02/2011 10:29 AM Martin Storsjö

ffmpeg: Use av_pkt_dump_log2

This makes dumped packet timestamps proper for streams with
timebases other than AV_TIME_BASE.

Signed-off-by: Luca Barbato <>

ebb92e07 02/23/2011 05:22 PM Anton Khirnov

avio: rename url_fopen/fclose -> avio_open/close.

Signed-off-by: Ronald S. Bultje <>
(cherry picked from commit 22a3212e32b696028e21f00871f3cb48c044029d)

22a3212e 02/23/2011 03:18 PM Anton Khirnov

avio: rename url_fopen/fclose -> avio_open/close.

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

5c20c81b 02/19/2011 04:31 PM Michael Niedermayer

Fix issue2619.
regression introduced in 1762d9ced70ccc46c5d3e5d64e56a48d0fbbd4f7

Signed-off-by: Michael Niedermayer <>

0ebf4754 02/18/2011 06:52 PM Anton Khirnov

lavf: add av_ prefix to dump_format()

Signed-off-by: Mans Rullgard <>
(cherry picked from commit 610219a598095f938705f200dfe3946455ef871a)

610219a5 02/16/2011 11:39 PM Anton Khirnov

lavf: add av_ prefix to dump_format()

Signed-off-by: Mans Rullgard <>

7ffe76e5 02/16/2011 10:00 PM Reinhard Tartler

Merge libavcore into libavutil

Done to keep ABI compatible. Otherwise this is just silly

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...

1762d9ce 02/14/2011 10:03 PM Michael Niedermayer

Restructure video filter implemenattion in ffmpeg.c.
This fixes several bugs like multiple outputs and -aspect mixed with -vf

Signed-off-by: Michael Niedermayer <>

043d2ff2 02/11/2011 01:54 AM Alexander Strange

Deprecate avcodec_thread_init()

As a side effect of the last commit, avcodec_open() now calls it automatically,
so there is no longer any need for clients to call it.
Instead they should set AVCodecContext.thread_count.

avcodec_thread_free() is deprecated, and will be removed from avcodec.h at the...

c0b102ca 02/09/2011 02:17 PM Alexander Strange

Deprecate avcodec_thread_init()

As a side effect of the last commit, avcodec_open() now calls it automatically,
so there is no longer any need for clients to call it.
Instead they should set AVCodecContext.thread_count.

avcodec_thread_free() is deprecated, and will be removed from avcodec.h at the...

76ad67ca 02/07/2011 06:32 PM Nicolas George

Implement guessed_pts in avcodec_decode_video2

Signed-off-by: Nicolas George <>
Signed-off-by: Michael Niedermayer <>

ba3517aa 02/06/2011 07:31 PM James Zern

cmdutils: fix opt_values leak

Add free to uninit_opts and relocate opt_names to same

Signed-off-by: Ronald S. Bultje <>
(cherry picked from commit 3a6a9cdf5b8e4c4514e483484ef1f57b07ee16f2)

fd0ae17a 02/06/2011 07:31 PM Alexander Strange

Adopt pkt_dts/pkt_pts in lavc clients

No behavior change; this makes DTS reliable with the next patch.

Signed-off-by: Ronald S. Bultje <>
(cherry picked from commit 6b474953975fd8ea64d1ed4d09c42b2d8e787c6f)

42f97696 02/06/2011 07:31 PM Martin Storsjö

Use avformat_free_context for cleaning up muxers

Signed-off-by: Ronald S. Bultje <>
(cherry picked from commit b22dbb291d41e9fb038884bcebad2394c501cbaf)

ab543afe 02/06/2011 07:31 PM Stefano Sabatini

Make avfilter_graph_free() free the graph.

Make avfilter_graph_free() free not only the internal structures, but
also the allocated graph, and set the graph pointer to NULL for
increased safety.

Simplify usage.

Signed-off-by: Mans Rullgard <>...

3a6a9cdf 02/05/2011 10:18 PM James Zern

cmdutils: fix opt_values leak

Add free to uninit_opts and relocate opt_names to same

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

6b474953 02/05/2011 09:37 PM Alexander Strange

Adopt pkt_dts/pkt_pts in lavc clients

No behavior change; this makes DTS reliable with the next patch.

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

b22dbb29 02/04/2011 04:39 PM Martin Storsjö

Use avformat_free_context for cleaning up muxers

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

4359288c 02/04/2011 02:55 AM Stefano Sabatini

Make avfilter_graph_free() free the graph.

Make avfilter_graph_free() free not only the internal structures, but
also the allocated graph, and set the graph pointer to NULL for
increased safety.

Simplify usage.

Signed-off-by: Mans Rullgard <>

4a908866 02/04/2011 02:10 AM Anton Khirnov

ffmpeg.c: rename map_meta_data option to map_metadata

It's consistent with the -metadata option and easier to write.

Signed-off-by: Janne Grunau <>
(cherry picked from commit 87e4d9b252bc6fa3b982f7050013069c9dc3e05b)

87e4d9b2 02/02/2011 09:44 PM Anton Khirnov

ffmpeg.c: rename map_meta_data option to map_metadata

It's consistent with the -metadata option and easier to write.

Signed-off-by: Janne Grunau <>

7b3ea550 01/31/2011 08:32 PM Michael Niedermayer

Add sample_aspect_ratio fields to vsrc_buffer arguments.
This fixes aspect handling in ffmpeg
This is based on a patch by baptiste

5a8d1075 01/31/2011 05:25 PM Stefano Sabatini

Make ffmpeg warns the user when the selected sample format is ignored.

Signed-off-by: Mans Rullgard <>
(cherry picked from commit fa34a3626cf1aa19acbe9f8c6fcddb6c3eb8eaa1)

fa34a362 01/31/2011 12:55 PM Stefano Sabatini

Make ffmpeg warns the user when the selected sample format is ignored.

Signed-off-by: Mans Rullgard <>

41727b85 01/26/2011 02:43 AM Diego Elio Pettenò

Make local variables static.

Signed-off-by: Mans Rullgard <>
(cherry picked from commit a6d1bd05c906fc7ad34fae1029a45ec3cbcc4fcc)

0f16f725 01/26/2011 02:43 AM Stefano Sabatini

Do not set audio_resample to 0 if audio_sync_method is > 1.

If audio_sync_method is >1 the resampler is used for audio drift
compensation, and do_audio_out() was causing an assert failure because
audio_resample was not set.

Fix issue 2516, which was introduced by SVN r25939....

a6d1bd05 01/25/2011 12:02 AM Diego Elio Pettenò

Make local variables static.

Signed-off-by: Mans Rullgard <>

07b48f8c 01/24/2011 05:30 PM Stefano Sabatini

Do not set audio_resample to 0 if audio_sync_method is > 1.

If audio_sync_method is >1 the resampler is used for audio drift
compensation, and do_audio_out() was causing an assert failure because
audio_resample was not set.

Fix issue 2516, which was introduced by SVN r25939....

ba0dd9e8 01/23/2011 06:32 PM Mike Scheutzow

streamid does not work with newaudio, newvideo, newsubtitle

fixes issue2465.

The problem is that the ffmpeg (the app) -streamid option did not work
with -newaudio/-newvideo/-newsubtitle.

The cause was a conflict between the feature where streamid values were...

20ac9de3 01/22/2011 03:10 AM Mike Scheutzow

streamid does not work with newaudio, newvideo, newsubtitle

fixes issue2465.

The problem is that the ffmpeg (the app) -streamid option did not work
with -newaudio/-newvideo/-newsubtitle.

The cause was a conflict between the feature where streamid values were...

59e2118e 01/18/2011 03:04 PM Michael Niedermayer

Update threshold to detect real timebase for stream copy.
This may fix a bug where quicktime files use 1/600 timebase.