Michael Niedermayer
22a3a5ee0c
ffmpeg: use av_buffersrc_add_frame() for audio too
...
fixes a memleak
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Clément Bœsch
1bca73cf18
ffmpeg: do not warn when expecting EOF from lavfi.
13 years ago
Michael Niedermayer
7d12109542
ffmpeg: fix ;;
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
3c0013213e
ffmpeg: move audio timestamp roundup code.
...
This fixes a regression which lead to non monotone timestamps
at the end of a file.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Anton Khirnov
fc49f22c3b
ffmpeg: add support for audio filters.
...
Some of the FATE changes are due to off-by-one different rounding being used
(lrintf vs av_rescale_q).
Some fate changes are due to 1 audio frame less being encoded (the new variant seems
matching what qatar does and according to ffprobe its closer to the requested duration)
the mapchan feature sadly is lost in this commit because it depends on resampling
being done in ffmpeg.c which is now moved completely into the av filter layer
-async is broken after this commit, this will be fixed in subsequent commits
the new filter reconfiguration system is flawed and will drop a frame on each
parameter change which is why the nelly moser checksums need updating.
Conflicts:
ffmpeg.c
tests/ref/fate/smjpeg
13 years ago
Michael Niedermayer
6579bc439b
ffmpeg: allow switching to qatars buffersrc API
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Matthieu Bouron
4c73b3b1e0
ffmpeg: affect computed filtered frame pts after filling frame from buffer
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Nicolas George
9cf5bcded0
ffmpeg: accept + prefix to -pix_fmt option to disable automatic conversions.
13 years ago
Michael Niedermayer
6d49e819be
ffmpeg: revert 492cc1
...
This restores correct block_align values in case of stream copy.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
70e9308dec
ffmpeg: preserve bits_per_coded sample on stream copy.
...
Fixes Ticket1124
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
8616c44606
ffmpeg: fix deinterlace
...
Fixes ticket1295
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
b7fe9c7a08
ffmpeg: fix pointer type (const) warning
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
0ee32b9028
ffmpeg: remove unused variables
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
36ab79488e
ffmpeg: fix uninitialized variable warning
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
a54867121d
ffmpeg: fix frame duration used for video sync.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
c6aa2c4b12
ffmpeg: print next_dts too on debug_ts
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Nicolas George
870ca6a238
ffmpeg: do not include vsrc_buffer.h.
13 years ago
Nicolas George
ba7395aace
ffmpeg: replace av_vsrc_buffer_add_frame by av_buffersrc_add_frame.
13 years ago
Nicolas George
6ec1e0fed9
ffmpeg: replace av_buffersrc_buffer with av_buffersrc_add_ref.
13 years ago
Clément Bœsch
9e6a1c8981
ffmpeg: fix indent in term_init().
13 years ago
Clément Bœsch
49df97b282
ffmpeg: stronger ffpresets parsing.
...
This fixes at least issues with empty lines, and also allows CRLF lines
(in case a user makes its own preset on a MS plateform).
13 years ago
Clément Bœsch
fd4b4dda9c
ffmpeg: fix indent.
13 years ago
Nicolas George
ae344b2c5e
ffmpeg: use AVFrame accessor.
13 years ago
Michael Niedermayer
b197c1c1ac
ffmpeg: preserve NULL ptrs in get_buffer()
...
Fixes Ticket1260, Ticket1267
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
f08397642f
ffmpeg: fix type of dither scale.
...
This allows non integer scales.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Reimar Döffinger
4f6a1c974f
Fix parsing of -force_key_frames option.
...
Currently it always exits with an error when more than
one position is specified.
Fixes trac issue #1266 .
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
13 years ago
Michael Niedermayer
7588b33ad4
ffmpeg: add the edge at the correct place in allocating of the buffer.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
44bd2f90a9
ffmpeg: Fix initial dts for streamcopy, if the input packets lack dts.
...
Fixes Ticket1138
Based on a patch by: Eelco Lempsink <eml@tupil.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Nicolas George
62b745a6d3
ffmpeg: do not report EOF as an error.
...
Not all processing goes through filters,
so processing can continue even when
all filtergraphs have reached EOF on all sinks.
13 years ago
Nicolas George
99f29108d3
ffmpeg: directly request frames from filters.
...
It allows ffmpeg filtering logic to work with filters
that do not implement the poll_frame method,
such as split or tile.
13 years ago
Michael Niedermayer
2ea5f866e6
ffmpeg: assert the refcount of decoded frames
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
22a6a23a45
ffmpeg: assert the refcount of allocated frames,
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
cf09496cf9
ffmpeg: assert against creation of cycles in the pools linked list.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
be2b927a6f
ffmpeg: stricter refcount check in unref_buffer()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Nicolas George
23a6e4749f
ffmpeg: fix validity test for file index.
...
Also fix a typo in the next line.
13 years ago
Nicolas George
34c426be4a
ffmpeg: check encoder earlier.
...
Fixes a segfault with Ogg output, libtheora not compiled in
and no codec specified.
13 years ago
Michael Niedermayer
788a60d9d6
ffmpeg: make max frames work again, after merge
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
052ab20805
ffmpeg: fix regression with jpeg pix fmts
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
89f8637979
ffmpeg: fix regression with png
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
8a28fa010a
ffmpeg: choose_pix_fmt: pass target fmt in
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Reimar Döffinger
071292b8c9
Respect -copyinkf for subtitles.
...
Necessary to make it possible to copy teletext streams
(trac issue #531 ).
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
13 years ago
Michael Niedermayer
bd3ea31797
ffmpeg: Compensate non monotonicity errors in the audio TSs.
...
Audio timestamps are passed through by default and when the input
doesnt contain clean timestamps this can lead to non monotonicity
errors. (rounding to a course timebase can cause this too)
Print a warning when the errors in the timestamps are large
Fixes Ticket1167 (regression since timestamps are passed through)
This is a generic workaround that is intended to handle
slightly incorrect input files. It is very possible that some
demuxers contain bugs that lead to wrong timestamps, these demuxers
should of course still be fixed even if this change happens to
hide the issue.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
8274b21c09
ffmpeg: fix ticks_per_frame for the avi stream copy case
...
Should not make any difference, but its more correct.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Nicolas George
733cf0ad51
ffmpeg: add -benchmark_all option.
13 years ago
Nicolas George
81a9d32f0d
ffmpeg: move getutime to the start of the file.
13 years ago
Michael Niedermayer
6c704d9c30
ffmpeg: support changing dither parameters for swr
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Clément Bœsch
735fb8ce59
ffmpeg: remove unused MetadataMap.
...
This struct was forgotten after
e5df74dc56
.
13 years ago
Clément Bœsch
e5df74dc56
ffmpeg: remove unused meta_data_maps.
...
This is unused since a7b5e841ff
.
13 years ago
Clément Bœsch
e29f66d64a
ffmpeg: fix a few typo.
13 years ago
Matthieu Bouron
2663540821
ffmpeg: affect source stream index in new_output_stream function
...
Fix map_channel when mapped audio stream index is greater than 0.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago