Stefano Sabatini
8afab68605
Fix encoding when the input audio format/rate/channels changes during
...
transcoding.
Fix issue #2292 .
Patch sponsored by KIM Keep In Mind GmbH, srl.
Originally committed as revision 25939 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-12-12 16:18:50 +00:00
Justin Ruggles
5d7870dc76
Show per-codec options on FFmpeg commandline help.
...
Originally committed as revision 25927 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-12-10 18:25:02 +00:00
Aurelien Jacobs
d4a9f37938
cosmetic: indentation
...
Originally committed as revision 25885 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-12-04 14:47:13 +00:00
Aurelien Jacobs
118ccae030
add subtitle codec autodetection
...
Originally committed as revision 25884 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-12-04 14:46:13 +00:00
Stefano Sabatini
037be76e15
Add avfilter_graph_create_filter().
...
Originally committed as revision 25862 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-12-02 20:12:27 +00:00
Anton Khirnov
477b1aeac9
ffmpeg.c: copy global metadata by default
...
Originally committed as revision 25794 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-11-22 07:32:23 +00:00
Stefano Sabatini
63e8d9760f
Use the new libavcore audio channel API.
...
This also allows to remove a linking dependency of libavfilter on
libavcodec.
Originally committed as revision 25789 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-11-21 20:06:22 +00:00
Baptiste Coudurier
7f48bfa1e3
Cosmetics, fix indentation
...
Originally committed as revision 25773 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-11-20 08:03:58 +00:00
Aurelien Jacobs
cb2c971d91
allow passing subtitles header between decoder and encoder
...
Originally committed as revision 25745 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-11-13 13:57:49 +00:00
Aurelien Jacobs
8f55616fac
add global header support for subtitles encoding
...
Originally committed as revision 25742 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-11-13 13:46:36 +00:00
Stefano Sabatini
5d6e4c160a
Replace deprecated symbols SAMPLE_FMT_* with AV_SAMPLE_FMT_*, and enum
...
SampleFormat with AVSampleFormat.
Originally committed as revision 25730 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-11-12 11:04:40 +00:00
Anton Khirnov
09f47fa44e
ffmpeg.c: add a forgotten break in chapter copying
...
only copy chapters from one file
Originally committed as revision 25729 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-11-12 06:56:26 +00:00
Anton Khirnov
a9c2bf9dc1
ffmpeg.c: reindent
...
Originally committed as revision 25728 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-11-12 06:56:23 +00:00
Anton Khirnov
91e96ebafb
ffmpeg.c: add an option for copying chapters
...
fixes issue 2068
Originally committed as revision 25727 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-11-12 06:56:19 +00:00
Anton Khirnov
7b3937360e
ffmpeg.c: allow using negative file indices to disable metadata copying
...
Originally committed as revision 25706 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-11-08 06:47:41 +00:00
Stefano Sabatini
1e80a0eaa4
Remove graphparser.h header, move AVFilterInOut and
...
avfilter_graph_parse() declaration to libavfilter/avfiltergraph.h.
Simplify, and less confusing for the user.
Originally committed as revision 25705 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-11-07 22:56:29 +00:00
Stefano Sabatini
7313132bcc
Rename AVFilterInOut field filter to filter_ctx, more semantically correct.
...
Originally committed as revision 25700 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-11-07 18:40:18 +00:00
Stefano Sabatini
6e872935db
Implement get_preset_file() in cmdutils.h and use it to factorize code
...
from ffmpeg.c and ffserver.c.
Originally committed as revision 25679 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-11-04 23:07:04 +00:00
Stefano Sabatini
97dd1e4a87
Rename avfilter_graph_destroy() to avfilter_graph_free().
...
The new name is shorter and more consistent with the rest of the API.
This change breaks libavfilter API/ABI.
Originally committed as revision 25674 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-11-04 20:34:24 +00:00
Stefano Sabatini
e15aeea656
Implement avfilter_graph_alloc().
...
Originally committed as revision 25673 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-11-04 20:34:19 +00:00
Stefano Sabatini
ba7d6e798e
Remove usage of deprecated libavcodec/audioconvert.h functions.
...
Originally committed as revision 25668 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-11-03 20:19:34 +00:00
Stefano Sabatini
da1b9b88a5
Fix timestamp computation when the timebase changes during filtering.
...
The timestamps for all the buffered frames are scaled against
AV_TIME_BASE_Q, and need to be scaled back to AV_TIME_BASE_Q when they
are extracted from the filterchain.
Originally committed as revision 25646 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-11-02 18:40:59 +00:00
Anton Khirnov
45290fcdf0
ffmpeg.c: reindent
...
Originally committed as revision 25637 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-11-02 06:12:56 +00:00
Anton Khirnov
d0abe80aa4
ffmpeg.c: don't autocopy stream/chapter metadata if manual mapping is specified
...
Originally committed as revision 25636 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-11-02 06:12:54 +00:00
Anton Khirnov
1829e19528
ffmpeg.c: extend map_meta_data to allow advanced mappings
...
i.e. to/from streams/chapters/programs.
Originally committed as revision 25635 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-11-02 06:01:28 +00:00
Stefano Sabatini
0422af7e49
Remove ffmpeg PGMYUV compatibility hack, which was deprecated since
...
ages.
The user is requested to specify "-f image2" in place of "-f pgmyuv"
for reading/writing PGMYUV files, as for the other image formats.
Originally committed as revision 25629 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-11-02 00:29:13 +00:00
Stefano Sabatini
2839dc974d
Use AV_RL32() in opt_codec_tag().
...
Originally committed as revision 25618 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-10-31 22:48:44 +00:00
Ramiro Polla
0d0778b060
ffmpeg: fix opt_codec_tag() return value
...
opt_codec_tag() is now used under OPT_FUNC2, which must return a value.
Originally committed as revision 25616 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-10-31 19:55:13 +00:00
Rocky Cardwell
b67f3d6575
Fix ffserver-related regression (and crash) introduced in r25500.
...
Fixes issue 2317.
Patch by Rocky Cardwell, rocky d cardwell a lifespringschool d org
Originally committed as revision 25603 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-10-29 14:54:18 +00:00
Carl Eugen Hoyos
ec1ca41cef
Move new_output_stream() up for upcoming fix for issue 2317.
...
Originally committed as revision 25602 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-10-29 14:48:38 +00:00
Anton Khirnov
63e856df0a
ffmpeg.c: dynamically allocate metadata maps
...
Originally committed as revision 25599 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-10-28 20:28:22 +00:00
Stefano Sabatini
d0242e741d
Factorize: opt_{audio,video,subtitle}_tag() -> opt_codec_tag().
...
Originally committed as revision 25596 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-10-28 13:20:26 +00:00
Stefano Sabatini
96ea6ad2a7
Remove unused variables picture_crop_temp and picture_pad_temp.
...
Originally committed as revision 25530 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-10-20 09:45:50 +00:00
Nicolas George
4ad08021e8
Add a -force_key_frames option to ffmpeg.
...
The option is useful to ensure that there is a seek point exactly at a
place the user will probably want to jump precisely sometime, the
major example would be the end of an opening and the beginning of a
chapter. The scene change detection system will often make it happen,
but not always for example if there is a fade-in.
See the thread:
Subject: [FFmpeg-devel] [PATCH] -force_key_frames option
Date: Tue, 12 Oct 2010 15:16:26 +0200
Patch by Nicolas George -mail nicolas,george,normalesup,org.
Originally committed as revision 25526 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-10-18 21:47:15 +00:00
Stefano Sabatini
ff0652e503
Implement a common get_filtered_video_frame(), shared between ffplay.c
...
and ffmpeg.c.
Originally committed as revision 25520 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-10-18 13:57:11 +00:00
Stefano Sabatini
16b2691346
Make help message for the -crop* options consistent with that of the
...
-pad* options and more direct.
Originally committed as revision 25519 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-10-18 13:43:07 +00:00
Stefano Sabatini
5879ea6d27
Remove -crop* options.
...
Users are required to use the libavfilter crop filter.
Originally committed as revision 25518 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-10-18 13:34:46 +00:00
Stefano Sabatini
3f2a7e4277
Cosmetics: use a more compact notation, improve readability and reduce
...
line count.
Originally committed as revision 25510 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-10-16 20:57:55 +00:00
Stefano Sabatini
dbabc2773a
Reset metadata after opt_output_file(), fix the previous commit.
...
Spotted by elenril on irc.
Originally committed as revision 25509 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-10-16 16:16:01 +00:00
Stefano Sabatini
4bf65e2a4d
Use an AVMetadata struct for storing metadata, simplify.
...
Originally committed as revision 25508 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-10-16 15:25:02 +00:00
Anton Khirnov
a7e5a832c4
ffmpeg.c/ffprobe.c: remove all uses of av_metadata_conv()
...
patch by Anton Khirnov anton _at_ khirnov _dot_ net
Originally committed as revision 25503 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-10-16 13:04:27 +00:00
Stefano Sabatini
2a24df9357
Add avfilter_graph_config().
...
Originally committed as revision 25502 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-10-16 10:20:53 +00:00
Nicolas George
0b6d358a09
Place the bitstream_filters variable in the AVOutputStream, thus
...
greatly simplifying its handling and reducing code duplication.
Patch by Nicolas George -bsf nicolas*george|normalesup+org.
Originally committed as revision 25501 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-10-16 10:06:13 +00:00
Nicolas George
9fdf4b5817
Move the allocation of the AVOutputStream structure earlier in the
...
code flow, in the new_video_stream() / new_audio_stream() /
new_subtitle_stream() functions.
Patch by Nicolas George <$name.$surname@normalesup.org>.
Originally committed as revision 25500 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-10-16 10:06:10 +00:00
Stefano Sabatini
f7ead94c69
Factorize definition of the output_filter defined in both ffplay.c and
...
ffmpeg.c.
Replace it with a more generic definition which can be shared.
Originally committed as revision 25453 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-10-12 18:40:26 +00:00
Stefano Sabatini
94498ec98a
Extend buffer source to accept the time base for the output PTS.
...
Originally committed as revision 25451 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-10-12 18:40:20 +00:00
Alexander Strange
0ff4f0c0fc
ffmpeg: Use guess_correct_pts() to set decoded picture timestamps
...
Originally committed as revision 25431 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-10-10 02:17:26 +00:00
Aurelien Jacobs
fd0368e7ca
move av_find_stream_info() info struct to AVStream to avoid messy (re)allocation
...
Originally committed as revision 25418 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-10-08 22:01:19 +00:00
Aurelien Jacobs
ca8064d2d1
fix bitstream filter option mapping when using -newvideo and friends
...
There was an off-by-one when addressing bitstream_filters[] in this situation.
Originally committed as revision 25398 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-10-07 19:25:48 +00:00
Michael Niedermayer
2dec2bb880
Pass RC parameters on stream copy to the muxer.
...
Originally committed as revision 25384 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-10-07 01:57:35 +00:00
Aurelien Jacobs
1136850dd5
cosmetic: break long line
...
Originally committed as revision 25377 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-10-06 18:54:10 +00:00
Aurelien Jacobs
6d3421498e
ffmpeg: Fix prototype of some OPT_FUNC2 functions. They must return an int.
...
Originally committed as revision 25358 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-10-05 21:05:07 +00:00
Aurelien Jacobs
59ac1da26d
cosmetic: break long line
...
Originally committed as revision 25329 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-10-03 20:23:16 +00:00
Reimar Döffinger
a5c33faacc
Add init and uninit functions to cmdutils, reduces code duplication
...
between ffmpeg and ffplay and avoids a valgrind error by freeing
avformat_opts->key.
Originally committed as revision 25309 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-10-02 08:44:33 +00:00
Aurelien Jacobs
84fd51e5ad
ffmpeg: replace MAX_STREAMS by an arbitrary sanity check
...
Originally committed as revision 25304 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-10-01 21:56:09 +00:00
Aurelien Jacobs
620a67d56a
ffmpeg: dynamically allocate bitstream_filters
...
Originally committed as revision 25303 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-10-01 21:54:20 +00:00
Aurelien Jacobs
3a8e882419
ffmpeg: dynamically allocate stream_maps
...
Originally committed as revision 25302 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-10-01 21:52:09 +00:00
Aurelien Jacobs
0a6d97b371
ffmpeg: dynamically allocate output_codecs
...
Originally committed as revision 25301 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-10-01 21:51:12 +00:00
Aurelien Jacobs
311e223f28
ffmpeg: dynamically allocate input_codecs
...
Originally committed as revision 25300 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-10-01 21:41:27 +00:00
Aurelien Jacobs
2c6958aabd
ffmpeg: dynamically allocate input_files_ts_scale
...
Originally committed as revision 25299 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-10-01 21:36:13 +00:00
Aurelien Jacobs
e640f26177
ffmpeg: dynamically allocate streamid_map
...
Originally committed as revision 25298 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-10-01 21:34:59 +00:00
Aurelien Jacobs
dba249abee
ffmpeg: add a grow_array() helper function
...
Originally committed as revision 25297 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-10-01 21:29:37 +00:00
Måns Rullgård
b64b4134d5
Rename libavutil/assert.h to avassert.h
...
This avoids conflicts with the system assert.h.
Originally committed as revision 25284 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-10-01 13:55:13 +00:00
Michael Niedermayer
b926b6282d
av_assert() system.
...
With this the developer can now choose if he wants an assert always enabled or at which
compile time assert level. This can thus replace the #define NDEBUG hacks
Originally committed as revision 25278 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-09-30 21:57:31 +00:00
Michael Niedermayer
0093ebc20a
User application side of Codec specific parameters.
...
Originally committed as revision 25266 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-09-29 23:06:51 +00:00
Janne Grunau
d04247a134
use strict_std_complience from avcodec_opts[AVMEDIA_TYPE_*]
...
Options are not yet set for video encoders and for codec specific
defaults it is desireable to set the codec options only after the codec
is known.
Originally committed as revision 25230 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-09-27 19:59:36 +00:00
Stefano Sabatini
2bc05d3547
Change the syntax of the crop filter from x:y:w:h to w:h:x:y.
...
Slightly more intuitive and required by a pending changes for making
the filter parametric.
Originally committed as revision 25184 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-09-24 23:14:01 +00:00
Michael Niedermayer
3f07e8dbee
Doxy consistency cosmetics
...
Originally committed as revision 25176 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-09-24 15:40:53 +00:00
Michael Niedermayer
6b6bca6443
Enable AV_LOG_SKIP_REPEATED to maintain previous behavior.
...
Originally committed as revision 25175 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-09-24 15:39:10 +00:00
Stefano Sabatini
e44c01563f
Deprecate av_opt_show() in favor of a new function av_opt_show2(),
...
which allows to specify only a subset of all the options to show.
Originally committed as revision 25166 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-09-24 00:51:40 +00:00
Stefano Sabatini
1790d3b330
Move log_callback_help to cmdutils.[hc], for allowing sharing.
...
Originally committed as revision 25149 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-09-20 21:48:03 +00:00
Justin Ruggles
ff19d16b91
10l: error in last commit. use decoder channels not encoder channels.
...
Originally committed as revision 25144 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-09-18 20:19:18 +00:00
Justin Ruggles
37f5a713de
Change remaining ost->st->codec and ist->st->codec to enc and dec in
...
do_audio_out().
Originally committed as revision 25143 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-09-18 20:16:56 +00:00
Martin Storsjö
2dfa7c72ce
Update the audio sample rate when doing lowres audio decoding, before opening the decoder
...
Originally committed as revision 25090 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-09-09 20:58:13 +00:00
Stefano Sabatini
37b9706123
Factorize opt_new_{audio,video,subtitle} definitions.
...
Originally committed as revision 24905 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-08-24 15:48:20 +00:00
Stefano Sabatini
dfd5775735
Cosmetics: rename out_video_filter to output_video_filter, for
...
consistency with input_video_filter.
Originally committed as revision 24904 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-08-24 15:48:17 +00:00
Stefano Sabatini
4ddf0d2915
Make configure_filters() return a meaningful error code rather than
...
always -1.
Originally committed as revision 24903 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-08-24 15:48:11 +00:00
Ramiro Polla
3f1710e74f
indent
...
Originally committed as revision 24894 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-08-24 00:46:32 +00:00
Vitor Sessak
c4ab519e00
Make "-fs ss" mean "make output file of size equals or less than ss"
...
instead of current "make output file of size less than ss".
Also use it to make MP3 tests more readable (using -fs xxx where xxx is
the requested output size, not something slightly lower).
Originally committed as revision 24884 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-08-23 14:46:59 +00:00
Stefano Sabatini
84c0386960
Change avfilter_open() signature, from:
...
AVFilterContext *avfilter_open(AVFilter *filter, const char *inst_name);
to:
int avfilter_open(AVFilterContext **filter_ctx, AVFilter *filter, const char *inst_name);
This way it is possible to propagate an error code telling the reason
of the failure.
Originally committed as revision 24765 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-08-11 11:44:51 +00:00
S.N. Hemanth Meenakshisundaram
cc80caff52
Separate video specific BufferRef properties into VideoProps.
...
Define a new struct AVFilterBufferRefVideoProps and add a type field
to AVFilterBufferRef.
Video specific properties in AVFilterBufferRefVideoProps are now
referred to by *video pointer in AVFilterBufferRef.
Patch by S.N. Hemanth Meenakshisundaram smeenaks->ucsd.edu.
Originally committed as revision 24763 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-08-11 11:06:04 +00:00
S.N. Hemanth Meenakshisundaram
5d4890d73d
Rename fields:
...
AVFilterLink.srcpic -> AVFilterLink.src_buf
AVFilterLink.cur_pic -> AVFilterLink.cur_buf
AVFilterLink.outpic -> AVFilterLink.out_buf
The new names are more generic and more consistent, since the struct
they contain, which was named AVFilterPicRef, has been renamed to
AVFilterBufferRef.
Patch by S.N. Hemanth Meenakshisundaram %smeenaks%ucsd%edu%.
Originally committed as revision 24732 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-08-07 01:15:34 +00:00
S.N. Hemanth Meenakshisundaram
7fce481a69
Rename functions and fields:
...
avfilter_(un)ref_pic -> avfilter_(un)ref_buffer
avfilter_copy_picref_props -> avfilter_copy_buffer_ref_props
AVFilterBufferRef.pic -> AVFilterBufferRef.buffer
They have been renamed to allow sharing with audio.
Patch by S.N. Hemanth Meenakshisundaram $smeenaks$ucsd$edu$.
Originally committed as revision 24731 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-08-07 01:15:27 +00:00
S.N. Hemanth Meenakshisundaram
ecc8dada37
Rename AVFilterPicRef to AVFilterBufferRef.
...
The struct is going to be used for storing audio buffer references as
well, and the new name is more generic.
Patch by S.N. Hemanth Meenakshisundaram @smeenaks@ucsd@edu@.
Originally committed as revision 24730 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-08-07 01:15:19 +00:00
Stefano Sabatini
126b638ea0
Deprecate av_parse_video_frame_size() and av_parse_video_frame_rate()
...
in favor of the newly added corresponding functions
av_parse_video_size() and av_parse_video_rate() defined in
libavcore/parseutils.h.
This change also adds a linking-time dependency of libavcodec and of
libavfilter on libavcore.
Originally committed as revision 24518 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-07-26 23:12:28 +00:00
Stefano Sabatini
065a20cb07
Reindent.
...
Originally committed as revision 24506 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-07-26 13:39:49 +00:00
Stefano Sabatini
3aace1bcac
Rename av_transcode() to transcode().
...
av_ prefix is reserved for libav* libraries functions, it is confusing
to use it for an application function.
Originally committed as revision 24505 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-07-26 13:39:41 +00:00
Stefano Sabatini
639e4ec81b
Rename av_exit() to ffmpeg_exit().
...
av_ is a prefix reserved for av* libraries functions, using that for an
application function is confusing.
Originally committed as revision 24497 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-07-25 14:42:32 +00:00
Stefano Sabatini
f62c025a5e
Use X ? Y : Z construct, simplify.
...
Originally committed as revision 24496 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-07-25 14:41:06 +00:00
Stefano Sabatini
f7bd4a8ebd
Cosmetics: rename enc -> dec in opt_input_file().
...
The variable refer to a *decoder* context, the old name was
misleading.
Originally committed as revision 24492 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-07-25 10:42:00 +00:00
Jai Menon
d62ccec8b1
FFmpeg : Replace some av_exit calls in av_transcode with branches to the
...
cleanup code.
This plugs a bunch of memleaks.
Originally committed as revision 24305 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-07-18 18:20:41 +00:00
Jai Menon
961e4a3389
FFmpeg : Close input file and free any related memory if
...
av_find_stream_info fails.
Originally committed as revision 24247 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-07-15 11:53:34 +00:00
Michael Niedermayer
748db0fcc4
Move frame_available computation to where it belongs in ffmpeg.c.
...
This fixes a infinite loop.
Fixes issue 2066.
Originally committed as revision 24058 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-07-05 14:49:48 +00:00
Stefano Sabatini
9f434b6584
Make opt_pad() print more information.
...
Originally committed as revision 24050 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-07-04 20:59:02 +00:00
Stefano Sabatini
74dc99f2b3
Update help message for the -pad* options, as they have been removed,
...
and update the manual page accordingly.
Based on a patch by John Calcote $(echo "<kpio.dbmdpuf@hnbjm.dpn>" | tr "b-za" "a-z").
Originally committed as revision 24049 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-07-04 20:59:00 +00:00
Baptiste Coudurier
3c5e1b36d5
LOL, 100l, really fix warning:
...
ffmpeg.c: In function 'new_audio_stream':
ffmpeg.c:665: warning: 'best' may be used uninitialized in this function
ffmpeg.c:665: note: 'best' was declared here
Originally committed as revision 24034 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-07-03 23:24:37 +00:00
Baptiste Coudurier
947cbeca16
Fix warning:
...
ffmpeg.c: In function 'new_audio_stream':
ffmpeg.c:665: warning: 'best' may be used uninitialized in this function
ffmpeg.c:665: note: 'best' was declared here
Originally committed as revision 24033 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-07-03 23:22:25 +00:00
Rodney Baker
2d525ef483
Change all occurences of "inofficial" to "unofficial" in code, comments
...
and options. Keep old options until next major version bump.
Patch by Rodney Baker, rodney d baker a iinet d net d au
Originally committed as revision 24021 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-07-03 15:35:23 +00:00
Baptiste Coudurier
8abcbf2d54
Reduce codec time base when stream copying
...
Originally committed as revision 24019 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-07-03 10:12:22 +00:00
Baptiste Coudurier
f96363df7a
Set graph swscale opts before parsing it, that way opts are available
...
when auto-adding scalers.
Originally committed as revision 24015 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-07-03 03:11:04 +00:00
Stefano Sabatini
2b4abbd6f5
Move colorspace.h from libavcodec to libavutil.
...
Avoid a compile-time dependency of the pad filter on libavcodec.
Originally committed as revision 23940 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-07-01 18:49:44 +00:00
Mike Scheutzow
006e8108de
Add new option "streamid" to set the value of an outfile streamid.
...
Patch by Mike Scheutzow, scheutzow alcatel-lucent com
Originally committed as revision 23917 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-06-30 22:35:57 +00:00
Måns Rullgård
2829ce4b40
Remove PPC perf counter support
...
This functionality is better accessed through tools like oprofile.
Originally committed as revision 23808 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-06-26 22:23:35 +00:00
Stefano Sabatini
25d3445811
Rename rec_timestamp to recording_timestamp, for consistency with
...
recording_time.
Originally committed as revision 23727 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-06-22 22:54:39 +00:00
Alexander Strange
28db32159e
ffmpeg: cosmetics: combine two variable declarations
...
Originally committed as revision 23677 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-06-21 04:15:18 +00:00
Michael Niedermayer
54a13282bd
Deprecate -crop* arguments, they currently are buggy (issue1957) and probably
...
will be fixed by removing them.
Originally committed as revision 23607 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-06-14 17:35:46 +00:00
Justin Ruggles
e91376d1f6
10l: audio_buf is already a uint8_t* so no need to cast it
...
Originally committed as revision 23571 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-06-10 19:50:14 +00:00
Justin Ruggles
79c85beba8
Allocate enough memory for audio_buf to fit a full output frame.
...
Also, use audio_buf when encoding the final frame.
Fixes Issue 1921.
Originally committed as revision 23570 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-06-10 19:40:56 +00:00
Diego Biurrun
a1629e2848
Remove support for pre-Haiku, non-POSIX, non-C99 BeOS variants.
...
BeOS support has been broken for many years and the "maintainer" of the port
has not reacted to countless requests to get the port fixed.
approved by Mans
Originally committed as revision 23562 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-06-10 16:51:14 +00:00
Luca Abeni
b659c8b4b7
In case of stream copy, copy the extradata from the input codec context to
...
the output codec context (instead of just copying a pointer to the extradata).
Originally committed as revision 23538 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-06-08 19:27:29 +00:00
Stefano Sabatini
83a36b2e0b
Change type of {audio,video,subtitle}_codec_tag variables from int to
...
unsigned int, as the corresponding variable set in
AVCodecContext.codec_tag is unsigned int.
Originally committed as revision 23441 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-06-03 18:40:31 +00:00
Janne Grunau
770e50ae80
ffmpeg: offer alternatives for experimental codecs if they exist
...
Originally committed as revision 23398 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-05-31 22:35:14 +00:00
Janne Grunau
4e605bc3fd
ffmpeg: fail if user selected codec is experimental and strict_std_compliance > experimental
...
Originally committed as revision 23397 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-05-31 22:31:51 +00:00
Ramiro Polla
c56e9e05ab
Open 2-pass logfile in binary mode for both reading and writing.
...
This fixes a regression on Windows introduced by r22769 in which the data read
from the file was not properly zero terminated. The file was read as text,
which caused the \r characters to be suppressed. Since the zero termination
happens at the end of the buffer, and there was one byte less read per line,
this caused the remaining space on the buffer to contain random data.
Originally committed as revision 23251 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-05-22 21:32:57 +00:00
Baptiste Coudurier
521cfa4aae
rename -vfilters cli option to -vf
...
Originally committed as revision 23100 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-05-12 01:47:14 +00:00
Baptiste Coudurier
d21f58b52d
cosmetics, rename loop to frame_available
...
Originally committed as revision 23092 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-05-11 17:25:18 +00:00
Baptiste Coudurier
a9f3cb9372
rename curr_filter to last_filter, factorize filter declaration
...
Originally committed as revision 23091 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-05-11 17:23:06 +00:00
Baptiste Coudurier
79b90b2549
cosmetics: indentation, whitespaces
...
Originally committed as revision 23090 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-05-11 17:18:13 +00:00
Baptiste Coudurier
6e82e7fa48
simplify, reuse existing args variable
...
Originally committed as revision 23089 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-05-11 17:16:52 +00:00
Baptiste Coudurier
aa1249b8aa
cosmetics: filt_graph_all -> graph, like in ffplay.c
...
Originally committed as revision 23088 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-05-11 17:14:36 +00:00
Michael Niedermayer
0c22311b56
Remove messy pading hack in ffmpeg.c.
...
Use avfilters if you want padding!
Originally committed as revision 23050 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-05-07 12:16:23 +00:00
Michael Niedermayer
bdab692f48
Make sure get_filtered_video_pic() doesnt loose interlacedframe/tff.
...
Originally committed as revision 23049 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-05-07 12:05:24 +00:00
Michael Niedermayer
46847a336e
avfilter support for ffmpeg
...
Originally committed as revision 23043 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-05-07 09:43:21 +00:00
Michael Niedermayer
ff866063e9
Print warnig if requested samplingrate is unsupported.
...
Originally committed as revision 22991 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-04-30 00:06:36 +00:00
Stefano Sabatini
a31e795607
Make ffmpeg use print_error() to make apparent the exact cause of
...
failure happened when trying to open the output file.
Originally committed as revision 22973 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-04-26 22:36:55 +00:00
Stefano Sabatini
2ef6c1242a
Mark av_metadata_set() as deprecated, and use av_metadata_set2()
...
in its place.
av_metadata_set() is going to be dropped at the next major bump.
Originally committed as revision 22961 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-04-25 14:27:42 +00:00
Michael Niedermayer
10d0f5e035
Make sure ffmpeg chooses a supported samplerte if the encoder supports
...
just some.
Originally committed as revision 22943 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-04-22 09:40:51 +00:00
Cyril Russo
9b157b0ccd
Fix compilation error of ffmpeg and ffplay with --disable-avdevice.
...
Patch by Cyril Russo, stage D nexvision A laposte net
Originally committed as revision 22940 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-04-22 08:55:23 +00:00
Robert Krüger
2328e5a289
Allow setting the environment variable FFMPEG_DATADIR to locate preset files.
...
Patch by Robert Krüger <krueger signal7 de>.
Originally committed as revision 22923 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-04-20 17:37:06 +00:00
Baptiste Coudurier
f32f7d8b24
Take ticks per frame into account when warning about difference between
...
container and codec frame rate.
Originally committed as revision 22895 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-04-16 22:58:56 +00:00
Anton Khirnov
46e6fb4c54
Simplify writing stream metadata.
...
Patch by Anton Khirnov <wyskas gmail com>.
Originally committed as revision 22809 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-04-05 19:54:11 +00:00
Anton Khirnov
1a6498d78c
Don't overwrite user-supplied metadata with metadata mapped from an input file.
...
Patch by Anton Khirnov <wyskas gmail com>.
Originally committed as revision 22808 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-04-05 19:53:25 +00:00
Stefano Sabatini
685598f58d
Reindent.
...
Originally committed as revision 22798 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-04-04 13:50:38 +00:00
Stefano Sabatini
ac61f59a76
Rename av_encode() to av_transcode(), the new name is more meaningful.
...
Originally committed as revision 22797 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-04-04 13:50:34 +00:00
Carl Eugen Hoyos
18590be655
Use AVDISCARD_DEFAULT for 0 where appropriate.
...
Originally committed as revision 22787 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-04-02 23:08:23 +00:00
Stefano Sabatini
458b062d61
Implement cmdutils.c:read_file(), and use it in ffmpeg.c for reading
...
the second pass encoding log file.
Originally committed as revision 22769 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-04-01 22:34:22 +00:00
Ronald S. Bultje
d9521cb119
Fix FFM-based streaming from ffmpeg to ffserver. The basic problem is that
...
we'd memset() the codec context to zero, thereby setting audio input to U8
and video to YUV420P. For most video encoders, that actually works, but for
most audio codecs, it doesn't. This patch changes defaults to those set by
avcodec_context_get_defaults() and have ffmpeg figure out the optimal encoding
format itself if not set explicitely (as it does for the non-ffserver-cases
also).
Originally committed as revision 22751 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-03-31 21:02:34 +00:00
Jean-Daniel Dupas
cc947f04cc
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://svn.ffmpeg.org/ffmpeg/trunk
2010-03-31 12:29:58 +00:00
Stefano Sabatini
72415b2adb
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://svn.ffmpeg.org/ffmpeg/trunk
2010-03-30 23:30:55 +00:00
Ronald S. Bultje
aa1de0d9ed
Split out code that auto-chooses a default pix_fmt/sample_fmt in their own
...
functions.
Originally committed as revision 22731 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-03-30 19:37:07 +00:00
Måns Rullgård
64f6e357fd
10l: fix build without termios.h
...
Originally committed as revision 22604 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-03-20 01:02:45 +00:00
Måns Rullgård
9a9509e6ee
Register atexit handler only when needed
...
Originally committed as revision 22599 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-03-19 16:25:11 +00:00
Anton Khirnov
7a39f142a8
ffmpeg.c: copy chapters by default.
...
Patch by Anton Khirnov wyskas gmail com
Originally committed as revision 22598 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-03-19 07:44:38 +00:00
Ronald S. Bultje
562f22a699
Typo: if output (video) stream's pix_fmt is not set, then the stream cannot
...
be ENcoded, not DEcoded.
Originally committed as revision 22566 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-03-16 15:48:48 +00:00
Michael Niedermayer
802323508c
Allow mpeg style yuv in jpeg when strict standard compliance is small enough.
...
Originally committed as revision 22553 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-03-15 19:45:57 +00:00
Alexander Strange
d55065a29f
ffmpeg: Combine variable declaration and definition
...
Originally committed as revision 22537 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-03-15 02:33:49 +00:00
Alexander Strange
47b229dbab
ffmpeg: Factor out redundant sync_ipts calculation
...
Originally committed as revision 22536 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-03-15 02:32:21 +00:00
Måns Rullgård
335ee1aadd
Move libm replacements to new header libm.h
...
ffmpeg.c uses lrintf(), which is missing on some systems. Previously
it picked up the replacement via libavutil/internal.h due to
HAVE_AV_CONFIG_H being erroneously defined.
Moving these replacements to a separate header enables ffmpeg.c to
use them without being exposed to internal interfaces.
This use of a non-public header is justified by the header in question
not being part of the internal interface either. It should rather be
considered as part of the build system, which is shared between the
libraries and the applications.
This header cannot be installed since the tested conditions depend on
the compiler.
Originally committed as revision 22399 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-03-09 15:10:23 +00:00
Måns Rullgård
6580d5e377
Remove hacks not required since HAVE_AV_CONFIG_H was unset for the apps
...
Originally committed as revision 22295 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-03-07 22:18:37 +00:00
Alex Converse
660822f0ae
ffmpeg.c: Don't use NULL for integer metadata flags.
...
Originally committed as revision 22205 to svn://svn.ffmpeg.org/ffmpeg/trunk
2010-03-04 11:27:39 +00:00