Michael Niedermayer
570fb660d6
ffmpeg: make q_pressed volatile, it can be changed from signal handlers.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
fb79558516
ffmpeg: dont call read_key() in decode_interrupt_cb() this can cause keys to be lost
...
also its slow when read_key() is slow and there are a very large number of calls
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
481747c6f7
ffmpeg: make -a/v/sn work with -map
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Nicolas George
2c1c0c5024
ffmpeg: fix forced key frames.
...
Now that the option was moved in the per-stream context,
the parsing is done before the time_base for the stream is decided.
This patch does the parsing in AV_TIME_BASE units and rescales the
timestamps later when the correct time base is known.
Signed-off-by: Nicolas George <nicolas.george@normalesup.org>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Nicolas George
1d3b280e71
ffmpeg: Replace av_realloc by av_realloc_f when relevant.
...
Also mark with a visible comment "FIXME realloc failure" places where
av_realloc seems to lack a proper test for failure.
Signed-off-by: Nicolas George <nicolas.george@normalesup.org>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
2f3dd904f4
ffmpeg: fix wrong indention that leaked in from merge
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Lars Täuber
6c0a902d12
ffmpeg: fix typo in warning
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
eb11cca530
ffmpeg: document alternative to the lossless libx264 presets
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
1edf33f7f2
ffmpeg: fix -b -ab mixes with -b overriding the audio bitrate
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Anton Khirnov
182cbe433a
avtools: parse loglevel before all the other options.
...
This way it can be applied to cmdutils too -- e.g. showing the banner
and printing startup messages.
13 years ago
Stefano Sabatini
01fbcc6fd6
ffmpeg: improve feedback when processing filtergraph events
13 years ago
Stefano Sabatini
68b897ef15
ffmpeg: apply misc cosmetics fixes in the filtergraph event processing code
...
In particular provides more consistent and expressive names,
supposedly improves readability and user feedback.
13 years ago
Michael Niedermayer
d8289ff9a9
ffmpeg: increase bit_buffer_size, the header size is clearly too small for rgb48 raw based formats
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Anton Khirnov
9aa1f87dfd
Revert "ffmpeg: get rid of useless AVInputStream.nb_streams."
...
This reverts commit 2cf8355f98
.
AVInputStream.nb_streams tracks number of streams found at the
beginning, new streams may appear that ffmpeg doesn't know about. Fixes
crash in this case.
13 years ago
Michael Niedermayer
b5875b9111
Add libswresample.
...
Similar to libswscale this does resampling and format convertion, just for audio
instead of video.
changing sampling rate, sample formats, channel layouts and sample packing all
in one with a very simple public interface.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
8f5bb35f40
ffmpeg: fix video synchronization code to be exact on constant fps videos. Fixes Ticket137
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Clément Bœsch
677a831ec6
ffmpeg: remove unused data_codec_name.
13 years ago
Clément Bœsch
525d4852b9
ffmpeg: set {audio,video,subtitle}_codec_name const.
...
This fixes "assignment discards ‘const’ qualifier from pointer target
type." warnings.
13 years ago
Clément Bœsch
4b961ddfea
ffmpeg: a bit more consistent prototypes.
13 years ago
Michael Niedermayer
0c0ec4be6b
ffmpeg: dont copy duration when -t is used
...
Fixes Ticket445
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
7ba8e6bbae
ffmpeg: replace messy duplicated tag compatibility functions by more generic solution.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
cec92fe49a
ffmpeg: add vbsf & absf for compatibility.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
1bb766a988
ffmpeg: fix -re
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Stefano Sabatini
4f7dfe12ea
lavfi: rename vsink_buffer.c to sink_buffer.c, and vsink_buffer.h to buffersink.h
...
This is done in order to clarify the non-video-specific nature of the
buffersink code, as the result of the video/audio API unification of
the previous commit, and for improving overall consistency.
13 years ago
Stefano Sabatini
c4415f6ec9
lavfi: unify asink_buffer and vsink_buffer API
...
The new API is more generic (no distinction between audio/video for
pulling frames), and avoids code duplication.
A backward compatibility layer is kept for avoiding tools ABI breaks
(only for the video binary interface, audio interface was never used
in the tools).
13 years ago
Michael Niedermayer
d543b3bb52
ffmpeg: map subtitle stream by default when user specified -scodec
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
6f8b1fcd4b
ffmpeg: tell reset_options() if it is used on input or output files.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Anton Khirnov
7cc8d6385a
cmdutils: add support for caller-provided option context.
...
This is the first step to removing the globals plague from avtools.
13 years ago
Anton Khirnov
cac651c834
cmdutils: move grow_array() from avconv to cmdutils.
13 years ago
Anton Khirnov
dad09ff93f
cmdutils: move exit_program() declaration to cmdutils from avconv
...
Allows cmdutils to call each tool's own cleanup function.
13 years ago
Michael Niedermayer
ca4d71b149
ffmpeg: fix reading from stdin on windows
...
Based on code by Rolf Siegrist
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Anton Khirnov
20c21f8b75
cmdutils: get rid of dummy contexts for examining AVOptions.
...
Replace it with newly introduced libavutil API.
13 years ago
Michael Niedermayer
6233a3a153
Revert "ffmpeg: remove presets." and reimplement the needed parts that no longer exist.
...
Needed by libvpx
This reverts commit a0147957e7
.
13 years ago
Chiranjeevi Melam
e6ea4c715d
ffmpeg: Fix minor memleak of input_tmp
13 years ago
Clément Bœsch
df8737eb35
ffmpeg: fix two unused variables warnings.
13 years ago
Carl Eugen Hoyos
c0e8bce349
Fix compilation with --disable-avfilter.
...
Fixes ticket #425 .
13 years ago
Michael Niedermayer
3584b01e4e
ffmpeg: Fix typos introduced in:
...
commit 630902a1e1
Author: Anton Khirnov <anton@khirnov.net>
Date: Wed Jul 6 08:49:07 2011 +0200
avconv: factor out initializing input streams.
These caused scrambled error messages to be printed and
floating point exceptions.
For example when there was no decoder available for a
stream
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
7c3f4fb42d
ffmpeg: ffmpeg: fix reading commands from the keyboard
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
e312543c82
ffmpeg: fix reading commands from stdin
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Anton Khirnov
4bb2a74ffc
ffmpeg: re-add nb_streams to InputFile.
...
It was mistakenly removed in 2cf8355f98
,
not taking into account that new streams might appear in av_read_frame()
that avconv doesn't know about.
Fixes bug 24.
13 years ago
Alex Converse
ff037c54b4
ffmpeg: Replace goto redo on decode fail with continue.
...
This checks for sigterm but otherwise is identical to the previous
behavior.
13 years ago
Alex Converse
cf89e55ac0
ffmpeg: Remove dead store.
13 years ago
Alex Converse
08fe874fa4
ffmpeg: use av_clip_int16 for audio clipping
13 years ago
Michael Niedermayer
ef24426599
ffmpeg: switch stream mapping print code to qatars variant
...
Author of the lines of code is probably Nicolas and or Anton
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Anton Khirnov
10c3b03380
ffmpeg: move the avcodec_find_decoder() call to add_input_streams().
...
This makes the code simpler to understand, though it results in an
unnecessary call to avcodec_find_decoder() if the stream won't be
decoded.
13 years ago
Alex Converse
93ed69ad21
ffmpeg: Separate initialization from the main transcode loop.
13 years ago
Anton Khirnov
e5362cecfb
ffmpeg: reset input_ts_offset between files.
...
Signed-off-by: Alex Converse <alex.converse@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Anton Khirnov
3806494549
ffmpeg: call flush_encoders() from transcode() directly.
...
And remove now pointless parameter.
Signed-off-by: Alex Converse <alex.converse@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Anton Khirnov
d73e8cab02
ffmpeg: fix broken indentation.
...
Signed-off-by: Alex Converse <alex.converse@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Anton Khirnov
877ba7b4bd
ffmpeg: rescue poor abused limit_filesize global.
...
Keep a per-OutputFile instance of it, thus making -fs work with multiple
output files.
Signed-off-by: Alex Converse <alex.converse@gmail.com>
13 years ago