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
Michael Niedermayer
ce9bd30379
ffmpeg: fix plain -profile support
...
Fixes Ticket387
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
d61ef05bc5
ffmpeg: check pts like dts for being in the past.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
4204364678
ffmpeg: switch duration calculation code from avg to r frame_rate.
...
This heuristic is less likely to overshoot and cause encoder failure.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
a37a281778
ffmpeg: pass bitexact flag to vsrc_buffer
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
9aeacc9546
ffmpeg: dont disable dr1 when changing dimensions are encountered in codec_get_buffer().
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
e5c3b51cd1
ffmpeg: disable dr1 when frame sizes change.
...
dr1 seems to work fine with frame size changes but many filters
cant handle it yet. Simply disabling it forces the alternative
non dr1 code path which has been tested more completely and
is known to handle frame size changes in a wider varity of
cases.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Stefano Sabatini
99bb88c588
doc/ffmpeg: update and extend documentation for -copytb
...
Address trac ticket #1120 .
13 years ago
Michael Niedermayer
a0820eaa8a
ffmpeg: fix handling or empty audio packets
...
Fixes Ticket1131
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
b62b9df798
ffmpeg: more verbose error messages in case of audio encoding failure.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Clément Bœsch
21d650cb69
ffmpeg: more expressive sample rate automatic selection.
...
Output now lists the available sample rates with commands like
ffmpeg -f lavfi -i aevalsrc=0 -ar 20000 -y /tmp/out.mp3
13 years ago
Julien Ramseier
e479013ae4
Fix SVCD scan_offset option
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
f4c380a5e6
ffmpeg: drop struct from SwrContext.
...
Its a typdef now and doesnt need the struct anymore.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
1664edb998
ffmpeg: check samplerate from decoder.
...
Fixes FPE
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Reimar Döffinger
ffa28da180
Support dropping audio dts/pts via -async -1.
...
Allows working around issue #605 .
Note: as a side effect this fixes that -vsync drop
as far as I could tell would not drop pts/dts values
when duplicating frames or when flushing encoder delay.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
13 years ago
Michael Niedermayer
4c1da0d11e
ffmpeg: allow selective and complete disabling of map_metadata.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
7230116000
ffmpeg: Fix planar audio input.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
ad53c7f9ec
lavf: Add system to seperate relative timestamps from absolute ones.
...
With this we can always know if a timestamp is based on added durations
from an unknown origin or if it is based on a correct timestamp (and possibly
added durations)
This should fix some bugs where this distinction was mixed up.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Nicolas George
78306c51ef
ffmpeg: show fps more accurately when it is small.
13 years ago
Rick van der Zwet
d33a091cb3
ffm options should also set discard automatically.
...
commit 13f6917ca9
handles discards automatically,
but the ffm discard options are not fully parsed. Causing the input streams not
to be used, so no stream towards the ffserver after the initial probing.
Signed-off-by: Rick van der Zwet <info@rickvanderzwet.nl>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
c250063523
get_buffers: Check that pix_fmt is not NONE.
...
This is somewhat redundant as no decoder should call get_buffer() with such argument.
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
ddd86a2924
ffmpeg: Fix division by 0 due to invalid timebase
...
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Carl Eugen Hoyos
7b4e1466d4
Exit ffmpeg if swr_convert() fails.
13 years ago
Reimar Döffinger
6a3f1726af
Add missing av_free_packet.
...
Fixes memory leak when encoding at least with mpegvideo using the
new encode2 function.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
13 years ago
Michael Niedermayer
f3bd226de6
ffmpeg: Fix setting flags for codec copy.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
60991ad6ae
ffmpeg: Fix image allocation.
...
This probably fixes some of the use of uninitialized issues valgrind shows in fate.
It might also fix other issues.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Stefano Sabatini
5d12b83ff1
ffmpeg.c: implement -debug_ts option
...
Mostly useful for debugging purposes.
13 years ago
Clément Bœsch
b986590810
ffmpeg: remove unneeded ost->picref check.
...
If there ost->picref is NULL, it will likely crash anyway a few lines
below by dereferencing it in order to access video attribute.
13 years ago
Clément Bœsch
c214e98634
ffmpeg: remove pointless avcodec_get_frame_defaults().
...
filtered_frame is overwritten just below anyway.
13 years ago
Clément Bœsch
73413e6bca
ffmpeg: raise ENOMEM on avfilter_graph_alloc() failure.
13 years ago
Reimar Döffinger
c15f3bd3db
Simplify: use local variable with same contents directly.
...
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
13 years ago
Michael Niedermayer
85f25cfa19
ffmpeg: fix passlogfile with multiple libx264 streams.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Clément Bœsch
a3c4371f3c
ffmpeg: prefer NULL over 0 for av_log context pointer parameter.
13 years ago
Clément Bœsch
158bd596a6
ffmpeg: move quality parameter to do_video_out() scope.
...
This make do_video_out() and do_audio_out() consistent. Also simplifies
callers.
13 years ago
Clément Bœsch
63b5e99fab
ffmpeg: make use of ret error out in transcode_video().
13 years ago
Clément Bœsch
086fc4d765
ffmpeg: move filtered_frame to the CONFIG_AVFILTER scope.
...
This simplifies a bit the #ifdefery.
13 years ago
Clément Bœsch
9303b794b8
ffmpeg: move do_video_stats() above do_video_out().
...
This avoid a forward declaration.
13 years ago
Clément Bœsch
a78dd826ee
ffmpeg: move video stats code to do_video_out().
...
This will allow some simplifications in transcode_video().
13 years ago
Clément Bœsch
cf31060127
ffmpeg: move filtered_frame to video stream processing scope.
13 years ago
Clément Bœsch
aede21f1b6
ffmpeg: reindent after video frame polling simplification.
13 years ago
Clément Bœsch
e22c7b4e25
ffmpeg: simplify video frame polling.
...
input_video_filter and output_video_filter can't be NULL at this point.
If they are, the current code would likely crash anyway (since
filtered_frame would be NULL and sent to do_video_out().
13 years ago
Clément Bœsch
4ab4b3db5a
ffmpeg: use exit_program() if configure_video_filters() fails.
13 years ago
Michael Niedermayer
29034e6503
ffmpeg: Add threshold to discard crazy/damaged timestamps.
...
The added tests are limited to the case where timestamp discontinuities
are not allowed. The default is 30 hours which is arbitrarily picked and
quite conservative.
This prevents a out of memory condition due to duplicating a frame
millions of times.
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
677911ad81
ffmpeg: better dox for *pts.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
d8710228ea
ffmpeg: change sync_opts code to be more similar to qatar.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
fba318a4b0
ffmpeg: update (next_)pts in the stream copy case
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago