Anton Khirnov
b4ea1c5a77
Remove the ffserver test.
...
It doesn't work and is therefore useless.
2011-08-01 11:36:16 +02:00
Anton Khirnov
e5fc6ab665
Remove ffserver.h
...
It's unused an serves no purpose.
2011-08-01 11:36:16 +02:00
Anton Khirnov
ec6402b7c5
lavc: use designated initialisers for all codecs.
...
It's more readable and less prone to breakage.
2011-07-29 08:42:34 +02:00
Anton Khirnov
e0e65ddb88
doc/fftools-common-opts: wording fixes missing from the previous commit.
2011-07-28 17:46:14 +02:00
Anton Khirnov
22b203baf8
doc: document using AVOptions in fftools.
2011-07-28 17:36:38 +02:00
Anton Khirnov
3c7fa664af
lavf: add forgotten attribute_deprecated to av_find_stream_info()
2011-07-28 17:13:14 +02:00
Anton Khirnov
dfc2c4d900
lavf: use designated initialisers for all (de)muxers.
...
It's more readable and less prone to breakage.
2011-07-17 06:58:37 +02:00
Anton Khirnov
6270995667
wav: remove a use of deprecated AV_METADATA_ macro
2011-07-17 06:58:29 +02:00
Anton Khirnov
412b4367c5
rmdec: remove useless ap parameter from rm_read_header_old()
2011-07-17 06:58:29 +02:00
Anton Khirnov
d3bb71914b
lavf/utils: drop av_ prefixes from static functions.
2011-07-15 20:27:43 +02:00
Anton Khirnov
c3bec4cd13
avio: don't replicate avio_alloc_context functionality.
2011-07-15 20:04:46 +02:00
Anton Khirnov
6cb1197929
APIchanges: fill in missing hashes and dates.
2011-07-14 14:16:49 +02:00
Anton Khirnov
f2f523fffc
Add an APIChanges entry and bump minor versions for recent changes.
2011-07-14 14:16:16 +02:00
Anton Khirnov
8d03ca085f
ffmpeg: print the low bitrate warning after the codec is openend.
...
This doesn't access avcodec_opts, so it works with the new options
passing system.
Makes opt_bitrate() unneeded, so it's removed.
2011-07-14 14:15:41 +02:00
Anton Khirnov
e358f7ee90
lavf: fix invalid reads in avformat_find_stream_info()
2011-07-14 03:41:24 +02:00
Anton Khirnov
35d2e4e5c3
cmdutils: replace opt_default with opt_default2() and remove set_context_opts
2011-07-13 23:17:42 +02:00
Anton Khirnov
bf174a70cd
ffmpeg: use new avcodec_open2 and avformat_find_stream_info API.
2011-07-13 23:17:42 +02:00
Anton Khirnov
3009f521f3
ffplay: use new avcodec_open2 and avformat_find_stream_info API.
2011-07-13 23:17:42 +02:00
Anton Khirnov
8c8eab8bfe
cmdutils: store all codec options in one dict instead of video/audio/sub
...
Split them when codec id is known.
2011-07-13 23:17:42 +02:00
Anton Khirnov
a9eb4f0899
ffmpeg: check experimental flag after codec is opened.
...
This doesn't access avcodec_opts, so it will work with the new options
passing system.
2011-07-13 23:17:42 +02:00
Anton Khirnov
8e2d085516
ffmpeg: do not set GLOBAL_HEADER flag in the options context
...
The removed lines have no effect, since the flag is set on all encoder
for the given file and avcodec_opts are reset between files.
2011-07-13 23:17:42 +02:00
Anton Khirnov
13551ad1e3
lavf: fix segfault in av_open_input_stream()
...
ic is NULL in case of error.
2011-07-13 20:49:31 +02:00
Anton Khirnov
6379900c53
Add a check for strptime().
...
It's an XSI extension, not available on some supported systems.
2011-07-13 12:14:27 +02:00
Anton Khirnov
001d668d40
lavf: factor out conversion of ISO8601 string to unix time
2011-07-13 12:14:25 +02:00
Anton Khirnov
c7dd3e7e43
ffmpeg: get rid of a pointless limit on number of streams.
2011-07-13 10:37:24 +02:00
Anton Khirnov
646a9a1893
ffmpeg: remove an unused define.
2011-07-13 10:37:20 +02:00
Anton Khirnov
5f847bf61d
lavf: deprecate AVFormatContext.timestamp
...
It's replaced by 'creation_time' metadata tag.
2011-07-12 15:30:10 +02:00
Anton Khirnov
b12c259252
ffmpeg: merge input_files_ts_scale into InputStream.
2011-07-12 15:29:21 +02:00
Anton Khirnov
6fbf2485ad
ffmpeg: don't abuse a global for passing sample format from input to output
...
It's broken with multiple files or audio streams.
2011-07-12 15:28:53 +02:00
Anton Khirnov
87c739a395
ffmpeg: don't abuse a global for passing channel layout from input to output
...
It's broken with multiple files or audio streams.
2011-07-12 15:28:22 +02:00
Anton Khirnov
1cede1d011
ffmpeg: factor common code from new_a/v/s/d_stream to new_output_stream()
2011-07-12 15:26:04 +02:00
Anton Khirnov
93ade976c8
matroskaenc: make SSA default subtitle codec.
...
It's a better format and we have an encoder for it, so it doesn't fail
like CODEC_ID_TEXT.
2011-07-12 15:25:53 +02:00
Anton Khirnov and Mans Rullgard
fdb94444be
matroskadec: fix stupid typo (!= -> ==)
...
Signed-off-by: Mans Rullgard <mans@mansr.com >
2011-07-10 22:04:03 +01:00
Anton Khirnov
f47ac3c6ca
matroskadec: reindent
2011-07-10 18:51:30 +02:00
Anton Khirnov
84626b364b
lavc: add support for codec-specific defaults.
2011-07-10 17:10:49 +02:00
Anton Khirnov
71a861cf40
lavc: make avcodec_alloc_context3 officially public.
...
Deprecate avcodec_alloc_context/2.
2011-07-10 17:09:28 +02:00
Anton Khirnov
18c007ba37
lavc: remove a half-working attempt at different defaults for audio/video codecs.
...
It should be replaced with proper per-codec defaults.
2011-07-10 17:08:58 +02:00
Anton Khirnov
9b83919f44
ac3dec: add a drc_scale private option
...
Deprecate corresponding AVCodecContext option.
This is the first test of decoder private options.
2011-07-10 17:07:12 +02:00
Anton Khirnov
a67c061e0f
lavf: add avformat_find_stream_info()
...
It supports passing options to codecs.
2011-07-10 17:07:05 +02:00
Anton Khirnov
0b950fe240
lavc: introduce avcodec_open2() as a replacement for avcodec_open().
...
Adds support for decoder-private options and makes setting other options
simpler.
2011-07-10 17:06:22 +02:00
Anton Khirnov
bda168d2b0
mp3enc: write a xing frame containing number of frames in the file
2011-07-08 22:47:24 +02:00
Anton Khirnov
1c6d2b7df0
lavf: update AVStream.nb_frames when muxing.
2011-07-08 22:13:52 +02:00
Anton Khirnov
e98bc78ca1
ffmpeg: remove unused variables from InputStream.
2011-07-08 19:58:23 +02:00
Anton Khirnov
a58db9d283
doc: update ffmpeg -ar and -ac documentation to reflect reality.
2011-07-08 19:58:23 +02:00
Anton Khirnov
20f9f21fd4
ffmpeg: remove pointless if (nb_input_files)
...
It's required to be non-zero since
cc58300e30
2011-07-08 19:58:23 +02:00
Anton Khirnov
27e91f37f5
ffmpeg: merge input_files_ts_offset into input_files.
2011-07-08 19:58:23 +02:00
Anton Khirnov
9e253c13d0
ffmpeg: merge input_codecs into input_streams.
...
There's no point in keeping them separate.
2011-07-08 19:58:23 +02:00
Anton Khirnov
17c8cc550d
ffmpeg: drop AV prefixes from struct names.
...
Those are reserved for the libs.
2011-07-08 19:58:22 +02:00
Anton Khirnov
f5302e5dcf
ffmpeg: deprecate loop_input and loop_output options
...
They were replaced by (de)muxer private options.
2011-07-08 19:58:19 +02:00
Anton Khirnov
d31e3f7ccc
gif: add loop private option.
...
Deprecate AVFormatContext.loop_output.
2011-07-08 18:39:56 +02:00
Anton Khirnov
6002fdef5e
img2: add loop private option.
...
Deprecate AVFormatContext.loop_input.
2011-07-08 18:39:28 +02:00
Anton Khirnov
a726d7fd4e
AVOptions: in av_opt_find() don't return named constants unless unit is specified.
...
That is, unless the caller explicitly asks for them.
Prevents conflict between e.g. the 'loop' option in img2 demuxer and
'loop' flag in AVCodecContext.
2011-07-08 18:34:18 +02:00
Anton Khirnov
ce558c8f59
x11grab: replace undocumented nomouse hackery with a private option.
2011-07-08 18:30:21 +02:00
Anton Khirnov
8c28e01d31
dict: extend documentation.
2011-07-08 18:29:27 +02:00
Anton Khirnov
5e8d2e337e
lavf: deprecate AVStream.quality.
...
AVStream is no place for it and it's unused outside of ffmpeg anyway.
2011-07-06 20:10:41 +02:00
Anton Khirnov
4f731c4429
lavf: restore old behavior for custom AVIOContex with an AVFMT_NOFILE format.
...
av_open_input_stream used to allow this, even though it makes no sense.
Make it just print a warning instead of failing, thus restoring
compatibility.
Note that avformat_open_input() will still reject this combination.
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2011-07-02 08:41:57 +02:00
Anton Khirnov
5001d6ef4a
lavf: use the correct pointer in av_open_input_stream().
2011-07-02 08:41:57 +02:00
Anton Khirnov
84bd2b4bf5
lavf: add a forgotten NULL check in convert_format_parameters().
2011-06-18 17:42:44 +02:00
Anton Khirnov
78440c007c
lavc: add opt_find to AVCodecContext class.
...
Fixes encoder private options, which are broken now in ffmpeg, because
opt_default2() can't find them, thus making opt_default() to fail.
2011-06-17 06:39:42 +02:00
Anton Khirnov
7c44d716e7
Add minor bumps and APIChanges entries for lavf private options.
2011-06-16 20:24:58 +02:00
Anton Khirnov
55ba12e300
ffmpeg: deprecate -vc and -tvstd
...
They've been replaced by demuxer private options.
2011-06-16 20:24:57 +02:00
Anton Khirnov
8035f42968
ffmpeg: use new avformat_open_* API.
2011-06-16 20:24:57 +02:00
Anton Khirnov
50f2dfad67
ffserver: use new avformat_open_* API.
2011-06-16 20:24:57 +02:00
Anton Khirnov
e0518705c8
ffprobe: use new avformat_open_* API.
2011-06-16 20:24:57 +02:00
Anton Khirnov
d0e142bb68
ffplay: use new avformat_open_* API.
2011-06-16 20:24:57 +02:00
Anton Khirnov
9ba38229e5
cmdutils: add opt_default2().
...
It stores options in a dictionary to be passed to new open calls.
It will replace opt_default once all the pieces are in place.
2011-06-16 20:24:57 +02:00
Anton Khirnov
1b9b37b8a4
dict: add AV_DICT_APPEND flag.
2011-06-16 20:24:56 +02:00
Anton Khirnov
25de5958c8
lavf: add avformat_write_header() as a replacement for av_write_header().
...
It supports more convenient setting of AVOptions.
2011-06-16 20:24:56 +02:00
Anton Khirnov
603b8bc2a1
Deprecate av_open_input_* and remove their uses.
...
Deprecate the last remaining member of AVFormatParameters.
2011-06-16 20:24:56 +02:00
Anton Khirnov
05e84c95c7
lavf: add avformat_open_input() as a replacement for av_open_input_*
...
Add support for demuxer private options.
2011-06-16 20:24:56 +02:00
Anton Khirnov
dc59ec5e79
AVOptions: add av_opt_find() as a replacement for av_find_opt.
2011-06-16 20:24:56 +02:00
Anton Khirnov
7e83e1c511
AVOptions: add av_opt_set_dict() mapping a dictionary struct to a context.
...
This way the caller can pass all the options in one nice package.
2011-06-16 20:24:56 +02:00
Anton Khirnov
0b7ccad6bf
ffmpeg: don't abuse a global for passing frame size from input to output
...
It's broken with multiple files or video streams.
2011-06-16 20:24:55 +02:00
Anton Khirnov
10de86b882
ffmpeg: don't abuse a global for passing pixel format from input to output
...
It's broken with multiple files or video streams.
2011-06-16 20:24:50 +02:00
Anton Khirnov
62940bb42f
ffmpeg: initialise encoders earlier.
...
Fixes choosing supported samplerate and framerate.
2011-06-16 20:11:08 +02:00
Anton Khirnov
9446d75941
ffmpeg: merge output_codecs array into AVOutputStream members.
...
There's no point in keeping them separate.
2011-06-16 20:11:08 +02:00
Anton Khirnov
7cbc2e60af
codec-regression: remove pointless -r options for dnxhd
2011-06-16 10:56:45 +02:00
Anton Khirnov
a6286bda09
ffmpeg: don't abuse a global for passing framerate from input to output
...
It's broken with multiple files or video streams.
2011-06-15 21:57:53 +02:00
Anton Khirnov
8f3e999736
ffmpeg: don't abuse a global for passing channels from input to output
...
It's broken with multiple files or audio streams.
2011-06-15 21:57:52 +02:00
Anton Khirnov
d7ee44024c
ffmpeg: don't abuse a global for passing samplerate from input to output
...
It's broken with multiple files or audio streams.
This removes the default samplerate of 44100 for raw input, hence all
the FATE changes.
2011-06-15 21:57:52 +02:00
Anton Khirnov
8e84c072e4
intelh263dec: aspect ratio processing fix.
...
patch submitted by xvid_fan freenet de
2011-06-09 22:53:17 +02:00
Anton Khirnov
95a05030ca
intelh263dec: fix "Strict H.263 compliance" file playback
...
fixes issue2449
patch submitted by xvid_fan freenet de
2011-06-09 22:53:17 +02:00
Anton Khirnov
dbaba52ed2
lavf: don't try to free private options if priv_data is NULL.
...
This might happen if there was an error before priv_data was allocated
and result in segfault.
2011-06-08 19:51:31 +02:00
Anton Khirnov
d2d67e424f
Remove all uses of now deprecated metadata functions.
2011-06-08 07:43:45 +02:00
Anton Khirnov
d9f80ea2a7
Move metadata API from lavf to lavu.
...
Rename it to AVDictionary, since it will be used as such. Tags
documentation and metadata conversion API is lavf-specific, so remains
there.
2011-06-08 07:43:45 +02:00
Anton Khirnov
b2592ea42c
lavf: deprecate AVFormatParameters.time_base.
2011-06-06 06:46:10 +02:00
Anton Khirnov
abcedfac60
img2: add framerate private option.
2011-06-06 06:46:10 +02:00
Anton Khirnov
a915bf64cc
img2: add video_size private option.
2011-06-06 06:46:10 +02:00
Anton Khirnov
f33e2a51d9
img2: add pixel_format private option.
2011-06-06 06:46:05 +02:00
Anton Khirnov
c1dcbfddf9
tty: add framerate private option.
2011-06-06 06:32:40 +02:00
Anton Khirnov
367732832f
lavf,lavc: free avoptions in a generic way.
...
It's simpler and less error-prone.
Fixes some memleaks along the way.
2011-06-05 15:01:36 +02:00
Anton Khirnov
b39b06233d
AVOptions: add av_opt_free convenience function.
2011-06-05 15:01:36 +02:00
Anton Khirnov
8346f60afb
tty: factorise returning error codes.
2011-06-04 19:53:45 +02:00
Anton Khirnov
e762b1ce95
rawdec: add framerate private option.
2011-06-04 19:51:43 +02:00
Anton Khirnov
ff494cbdaf
x11grab: add framerate private option.
2011-06-04 19:49:56 +02:00
Anton Khirnov
a3b15e411d
fbdev,v4l2: remove some forgotten uses of AVFormatParameters.time_base.
2011-06-04 19:48:08 +02:00
Anton Khirnov
1572484f62
bktr: don't error when AVFormatParameters.time_base isn't set.
...
There's a private option for it now.
2011-06-04 19:47:59 +02:00
Anton Khirnov
1f94c31f69
rawdec: initialize return value to 0.
2011-06-03 13:51:43 +02:00
Anton Khirnov
a606aa7570
rawdec: don't leak option strings.
2011-06-03 08:11:17 +02:00
Anton Khirnov
bd7c1d35a6
bktr: get default framerate from video standard.
2011-06-03 08:11:05 +02:00