Mans Rullgard
e9f98c9022
ffmpeg: fix operation with --disable-avfilter
...
The width and height must be copied from the input before
being used.
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Michael Niedermayer
c31a5b23b4
Revert "ffmpeg: get rid of a pointless limit on number of streams."
...
This reverts commit c7dd3e7e43
Conflicts:
ffmpeg.c
14 years ago
Michael Niedermayer
32aef7d019
ffmpeg: fix muxer private options (bug introduced by anton khirnov)
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Martin Storsjö
daca33659d
ffmpeg: Fix the check for experimental codecs
...
The variable 'codec' was used uninitialized here.
Signed-off-by: Martin Storsjö <martin@martin.st>
14 years ago
Michael Niedermayer
321b2a9ded
ffmpeg: loose lowres hackery
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Anton Khirnov
1885824b20
ffmpeg: deprecate -vc and -tvstd
...
They've been replaced by demuxer private options.
55ba12e300
14 years ago
Anton Khirnov
f790d0092e
ffmpeg: use new avformat_open_* API.
...
8035f42968
14 years ago
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.
14 years ago
Anton Khirnov
bf174a70cd
ffmpeg: use new avcodec_open2 and avformat_find_stream_info API.
14 years ago
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.
14 years ago
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.
14 years ago
Diego Biurrun
71a1d1116f
Replace some gotos that lead to single return statements by direct return.
14 years ago
Anton Khirnov
c7dd3e7e43
ffmpeg: get rid of a pointless limit on number of streams.
14 years ago
Anton Khirnov
646a9a1893
ffmpeg: remove an unused define.
14 years ago
Anton Khirnov
5f847bf61d
lavf: deprecate AVFormatContext.timestamp
...
It's replaced by 'creation_time' metadata tag.
14 years ago
Anton Khirnov
b12c259252
ffmpeg: merge input_files_ts_scale into InputStream.
14 years ago
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.
14 years ago
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.
14 years ago
Anton Khirnov
1cede1d011
ffmpeg: factor common code from new_a/v/s/d_stream to new_output_stream()
14 years ago
Anton Khirnov
e98bc78ca1
ffmpeg: remove unused variables from InputStream.
14 years ago
Anton Khirnov
20f9f21fd4
ffmpeg: remove pointless if (nb_input_files)
...
It's required to be non-zero since
cc58300e30
14 years ago
Anton Khirnov
27e91f37f5
ffmpeg: merge input_files_ts_offset into input_files.
14 years ago
Anton Khirnov
9e253c13d0
ffmpeg: merge input_codecs into input_streams.
...
There's no point in keeping them separate.
14 years ago
Anton Khirnov
17c8cc550d
ffmpeg: drop AV prefixes from struct names.
...
Those are reserved for the libs.
14 years ago
Anton Khirnov
f5302e5dcf
ffmpeg: deprecate loop_input and loop_output options
...
They were replaced by (de)muxer private options.
14 years ago
Anton Khirnov
5e8d2e337e
lavf: deprecate AVStream.quality.
...
AVStream is no place for it and it's unused outside of ffmpeg anyway.
14 years ago
Mans Rullgard
0ebcdf5cda
Do not include mathematics.h in avutil.h
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Stefano Sabatini
f6d6783a4d
ffmpeg: use av_get_bytes_per_sample() in place of av_get_bits_per_sample_fmt()
...
av_get_bits_per_sample_fmt() was deprecated.
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
14 years ago
Jeff Downs
a09918335f
Make all option parsing functions match the function pointer type through which they are called.
...
All option parsing functions now match the function pointer signature through
which they are called (int f(const char *, const char *), thereby working
reliably on all platforms.
Prefix all option processing functions with opt_
14 years ago
Carl Eugen Hoyos
08b4a667ef
Set channel_layout if channels is set when transcoding.
14 years ago
Baptiste Coudurier
90a40b226a
ffmpeg: fix prototypes of functions after the removal of OPT_FUNC2.
14 years ago
Clément Bœsch
4a34e54b0e
Fix zero-length gnu_printf format string warning.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Justin Ruggles
e6c52cee54
Replace usages of av_get_bits_per_sample_fmt() with av_get_bytes_per_sample().
...
av_get_bits_per_sample_fmt() is deprecated.
14 years ago
Michael Niedermayer
cfbaeb311d
ffmpeg: print warning if encoding would duplicate massive amounts of frames
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Stefano Sabatini
44f669e7bc
lavfi: add vsink_buffer, and use it in ff* tools
...
Also add the public interface libavfilter/vsink_buffer.h.
14 years ago
Michael Niedermayer
035c13e307
ffmpeg: warn if samples need to be converted in a lossy way for lossless encoders.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Michael Niedermayer
f6e2af4f5a
ffmpeg: Force 420 with target dvd and svcd.
...
Fixes ticket283
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Anton Khirnov
55ba12e300
ffmpeg: deprecate -vc and -tvstd
...
They've been replaced by demuxer private options.
14 years ago
Anton Khirnov
8035f42968
ffmpeg: use new avformat_open_* API.
14 years ago
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.
14 years ago
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.
14 years ago
Anton Khirnov
9446d75941
ffmpeg: merge output_codecs array into AVOutputStream members.
...
There's no point in keeping them separate.
14 years ago
Anton Khirnov
62940bb42f
ffmpeg: initialise encoders earlier.
...
Fixes choosing supported samplerate and framerate.
14 years ago
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.
14 years ago
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.
14 years ago
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.
14 years ago
Ronald S. Bultje
0be3736796
ffmpeg: fix streaming to ffserver.
14 years ago
Stefano Sabatini
c535494268
avfiltergraph: make the AVFilterInOut alloc/free API public
...
This is required for letting applications to create and destroy
AVFilterInOut structs in a convenient way.
14 years ago
Stefano Sabatini
6119b23a36
avfiltergraph: change the syntax of avfilter_graph_parse()
...
Make it returns the list of open inputs and outputs, so it can be
reused by applications.
Breaks API/ABI.
14 years ago
Etienne Buira
39dbe9b6b8
Fix -t option for formats which holds dts and no pts
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago