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
Alex Converse
9a1b79128c
ffmpeg.c: Add a necessary const qualifier
14 years ago
Anton Khirnov
d2d67e424f
Remove all uses of now deprecated metadata functions.
14 years ago
Michael Niedermayer
580817df04
Move code for "ffmpeg: fix massive leak occurring when seeking" / e4841a404b
elsewhere
...
The picture struct is written to in the loop, so this cannot work.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Stefano Sabatini
27bcf55f45
vsrc_buffer: add flags param to av_vsrc_buffer_add_video_buffer_ref
...
The new flags parameter allows to specify if the video ref to add
should overwrite the cache, if the flag is not set vsrc_buffer will
complain and abort; otherwise it will clean the already cached video
ref before to overwrite it, thus avoiding a leak.
14 years ago
Stefano Sabatini
e4841a404b
ffmpeg: fix massive leak occurring when seeking
...
Avoid to add frames to the vsrc_buffer in the case ist->pts <
start_time, as these frames are unused (and never released). In
particular this condition is verified with commands of the kind:
ffmpeg -i INPUT -ss TIME OUTPUT
Also allow a minor simplification.
14 years ago
Stefano Sabatini
96f931adf7
cmdutils: change the signature of the function argument in parse_options()
...
This is required for a pending simplification.
14 years ago
Baptiste Coudurier
e4e2db9c74
ffmpeg: use opt_acodec when setting audio codec in opt_target.
14 years ago
Michael Niedermayer
bfd3b70ac3
ffmpeg: fix segfault with too many output files
...
Fixes Ticket219
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Stefano Sabatini
94bed8e582
Replace avcodec_get_pix_fmt_name() by av_get_pix_fmt_name().
...
This fixes warnings about avcodec_get_pix_fmt_name() being deprecated.
Signed-off-by: Diego Biurrun <diego@biurrun.de>
14 years ago
Baptiste Coudurier
dd47107021
In print_report, print progression time in hours:mins:secs:us
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Baptiste Coudurier
1212d5b5e4
ffmpeg: In print_report, use int64_t for pts to check for 0 and avoid inf value for bitrate.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Mans Rullgard
e65ab9d94f
Remove unused variables
14 years ago
Stefano Sabatini
ac41f3b036
ffmpeg: handle copy of packets for AVFMT_RAWPICTURE output formats
...
Store AVPicture in AVPacket as required by AVFMT_RAWPICTURE formats.
Fix trac issue #251 .
14 years ago
Stefano Sabatini
f712f6c8a4
ffmpeg: simplify opt_*_codec() options
...
Replace opt_{audio,video,subtitle,data}_codec() with a single
opt_codec() function.
14 years ago
Clément Bœsch
adba9c6352
Fix various unused variable warnings
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Reimar Döffinger
bb9b7bc62e
Remove now unused nb_istreams variable.
14 years ago
Stefano Sabatini
eb8bc57240
cmdutils: remove OPT_FUNC2
...
Make ff* tools only accept opt_* functions taking two arguments.
The distinction between functions with one and two arguments is quite
pointless. Simplify parse_options() code.
14 years ago
Stefano Sabatini
26513856d6
cmdutils: remove OPT_FUNC2
...
Make ff* tools only accept opt_* functions taking two arguments.
The distinction between functions with one and two arguments is quite
pointless. Simplify parse_options() code.
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
14 years ago
Mike Williams
db3262b700
ffserver: Fix a null pointer dereference as a result of the FF_API_MAX_STREAMS cleanup.
...
Fixed another dereference in the RTSP code.
Removed a useless variable.
Changed an unnecessary looping assignment to a simple assignment suggested by
Maksym.
Added fixes and tweaks suggested by Maksym Veremeyenko [verem@m1stereo.tv ] and
Clément B.
14 years ago
Anton Khirnov
2cf8355f98
ffmpeg: get rid of useless AVInputStream.nb_streams.
...
It's a duplicate of AVFormatContext.nb_streams.
14 years ago
Anton Khirnov
07633154ad
ffmpeg: simplify managing input files and streams
...
Grow the file and stream list in opt_input_file() instead of creating it
all at once in transcode(). This is simpler and will be useful for
following commits.
14 years ago
Anton Khirnov
d2bc4da15b
ffmpeg: purge redundant AVInputStream.index.
...
AVStream.index stores the same thing.
14 years ago
Stefano Sabatini
6b5e182540
ffmpeg: handle the case when get_filtered_frame() fails
14 years ago
Martin Storsjö
a121754852
ffmpeg: Don't trigger url_interrupt_cb on the first signal
...
Currently, the url_interrupt_cb callback will abort all IO
after the first received signal. This makes the output files
from e.g. the mov muxer to be unreadable if the transcode is
aborted with ctrl+c.
After this patch, the first signal cleanly breaks out of
the transcoding loop, but won't forcibly abort all IO.
After the second signal is received, the url_interrupt_cb
callback will abort all IO.
Signed-off-by: Martin Storsjö <martin@martin.st>
14 years ago
Stefano Sabatini
5ecdfd008b
lavf: deprecate avformat_alloc_output_context() in favor of avformat_alloc_output_context2()
...
The new function accepts a slightly more intuitive order of paramters,
and returns an error code, thus allowing applications to report a
meaningful error message.
14 years ago
Anton Khirnov
71cc331cab
ffmpeg: get rid of the -vglobal option.
...
It's badly documented and does the same thing as -flags global_header,
so it's redundant.
14 years ago
Mike William
840238b870
ffserver: dont just crash
...
With changes from ubitux.
14 years ago
Maksym Veremeyenko
ab1c19efc5
fix ffserver's SIGSEGV
14 years ago
Stefano Sabatini
328810390d
ffmpeg: remove useless NULL-check on avfilter_unref_buffer
...
The check is no more required since recent changes in the
avfilter_unref_buffer(), the check is done in the function.
Simplify.
14 years ago
Stefano Sabatini
c000a9f783
vsrc_buffer: add av_vsrc_buffer_add_frame()
...
The new function is a wrapper around
av_vsrc_buffer_add_video_buffer_ref(), and allows to simplify the act
of pushing AVFrame data to the source buffer.
14 years ago
Stefano Sabatini
50764e19a8
vsrc_buffer: make the source accept sws_param in init
...
Avoid the need of two distinct av_vsrc_add_video_buffer_ref*
functions. Simplify the interface.
14 years ago