Anton Khirnov
dc7536ca3d
avconv: do not abort immediately if initializing hwaccel fails
...
exit_program() will try to free the decoders, which is not a good idea
from within get_format().
Return an error instead.
10 years ago
Anton Khirnov
88b32673db
avconv: copy stream-level side data when streamcopying
10 years ago
Martin Storsjö
d0c0930219
avconv: Use av_gettime_relative
...
Signed-off-by: Martin Storsjö <martin@martin.st>
10 years ago
Anton Khirnov
59b55c494e
lavc: deprecate unused me_threshold field
10 years ago
Vittorio Giovara
c92965dbfb
avconv: check return value
...
CC: libav-stable@libav.org
Bug-Id: CID 1224275
10 years ago
Anton Khirnov
557d4c4eca
avconv: replace AVCodecContext.time_base with framerate
10 years ago
Luca Barbato
6cfbe1de5a
avconv: Use only audio and video to guess discontinuities
...
Data and subtitle streams might cause false positive.
10 years ago
Gabriel Dume
f929ab0569
cosmetics: Write NULL pointer equality checks more compactly
...
Signed-off-by: Diego Biurrun <diego@biurrun.de>
11 years ago
Anton Khirnov
aa51b0492b
avconv: rename output_packet() to process_input_packet()
...
It more accurately describes what this function does
11 years ago
Anton Khirnov
3f3232a371
avconv: set the output stream timebase
...
This is required by the new API.
11 years ago
Anton Khirnov
452860d7e0
Use av_packet_rescale_ts() to simplify code.
11 years ago
Anton Khirnov
71d6551e67
avconv: use the correct variable in comparison
11 years ago
Anton Khirnov
48e5092133
avconv: make -shortest work with streamcopy
...
CC: libav-stable@libav.org
11 years ago
Luca Barbato
39ec5e1cf8
avconv: Report the codec and the encoder separately
...
Bug-Id: 694
11 years ago
Anton Khirnov
383136264e
avconv: do not use the stream codec context for encoding
11 years ago
Anton Khirnov
41776ba9c0
avconv: do not use the stream codec context for decoding
11 years ago
Anton Khirnov
dc40d88625
avconv: do not use poorly defined and undocumented AVStream.pts
...
Use OutputStream.last_mux_dts as an approximation of 'current' output
time instead.
11 years ago
Anton Khirnov
6656370b85
avconv: set the "encoder" tag when transcoding
11 years ago
Anton Khirnov
93afb6c98d
avconv: set output avg_frame_rate when known
11 years ago
Anton Khirnov
9580818c5d
avconv: rename OutputStream.opts to OutputStream.encoder_opts
...
This makes it more clear what is this variable for exactly.
11 years ago
Anton Khirnov
01947f07b8
avconv: remove a useless line
...
Doing anything with that field when we are doing streamcopy (so the
encoder is not opened) should have absolutely no effect.
11 years ago
Anton Khirnov
65ed9e7585
avconv: rename 'codec' to 'enc_ctx'
...
This more clearly describes what is the variable used for.
Also, move its declaration into the block where it is actually used.
11 years ago
Anton Khirnov
650a5206a9
avconv: rename 'icodec' to 'dec_ctx'
...
This more clearly describes what is the variable used for.
11 years ago
Anton Khirnov
f3a6ad22c9
avconv: rename InputStream.opts to InputStream.decoder_opts
...
This makes it more clear what is this variable for exactly.
11 years ago
Anton Khirnov
73ed8558a6
avconv: simplify exit_program() by using more local vars
11 years ago
Anton Khirnov
1ae8198bca
avconv: always reset packet pts after decoding an audio frame
...
Currently, if a decoder sets AVFrame.pts, we'd send the same timestamp
to it twice, which is wrong.
11 years ago
Vittorio Giovara
aa499568af
avconv: More descriptive message about framedrop
11 years ago
Anton Khirnov
d1780e01b8
avconv: don't warn on multiple frames per packet for codecs that expect it
11 years ago
Anton Khirnov
4754345027
avconv: print verbose per-stream transcoding statistics
11 years ago
Anton Khirnov
a220b07b0f
avconv: split printing the final statistics into a separate function
11 years ago
Anton Khirnov
baeb59d89b
avconv: rewrite output data size tracking
...
Store a variable per OutputStream instead of globals for
audio/video/extradata. This makes the code simpler and cleaner and fixes
2pass with multiple output streams.
11 years ago
Anton Khirnov
f759f66e36
avconv: explicitly report when the muxing overhead is unknown
11 years ago
Anton Khirnov
781d97fd54
avconv: remove unused nb_frames_dup
...
Frame duplication now happens in vf_fps.
11 years ago
Anton Khirnov
59444c76e6
avconv: add stream-global side data to the first demuxed packet
11 years ago
Anton Khirnov
67f2a68814
avconv: remove a write-only variable
11 years ago
Luca Barbato
5c79d2e12d
avconv: Do not divide by zero
11 years ago
Anton Khirnov
2ce8bca51f
avconv: print a warning when falling back to default 25fps
11 years ago
Anton Khirnov
674fa49110
avconv: do not call avcodec_get_frame_defaults()
...
Strictly speaking it is not correct to call it on refcounted frames, in
any case it is unnecessary, since filtered_frame is always unreferenced
after poll_filter() returns.
11 years ago
Anton Khirnov
eb891b3114
Replace all uses of avcodec_free_frame with av_frame_free().
11 years ago
Diego Biurrun
8f8bc92365
Add missing #includes for *INT64_MAX and *INT64_C
11 years ago
Anton Khirnov
07fd0a2219
avconv: add infrastructure for using hwaccels
11 years ago
Anton Khirnov
5b9c3b4505
Replace all instances of avcodec_alloc_frame() with av_frame_alloc().
11 years ago
Anton Khirnov
ccc7129845
lavc: deprecate FF_DEBUG_MV and remove all traces of its use
...
It has not been actually used since
37045e4229
, when the broken vismv code was
removed.
11 years ago
Anton Khirnov
c872d310cd
avconv: stop accessing AVStream.parser
...
It is private and must not be touched from outside of lavf.
11 years ago
Anton Khirnov
ddc589ce98
avconv: drop a now useless variable
11 years ago
Anton Khirnov
488a0fa689
avconv: support -t as an input option.
...
It limits the duration of the data read from a given input.
12 years ago
Anton Khirnov
56ee3f9de7
avconv: distinguish between -ss 0 and -ss not being used
...
Using -ss 0 to drop frames with negative timestamps is a perfectly valid
use case.
12 years ago
Luca Barbato
636ced8e1d
cmdutils: wrap exit explicitly
...
Some C runtime implementations deadlock when calling threading functions
on the atexit() handler.
Use a simpler wrapper similar to av_log to call the cleanup function
before exit.
Bug-Id: 523
12 years ago
Derek Buitenhuis
7798a59dc1
avconv: Don't include colorspace.h
...
The header is private, and avconv.c doesn't use it
for anything.
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
12 years ago
Luca Barbato
42cc6cefd3
avconv: report the error for codec open failure
...
External codec may have corner case reason to fail at init, better
report them instead having the user wonder.
12 years ago