Anton Khirnov
722ec3eb35
avconv: decouple configuring filtergraphs and setting input parameters
...
Currently, calling configure_filtergraph() will pull in the input
parameters from the corresponding decoder context. This has the
following disadvantages:
- the decoded frame is a more proper source for this information
- a filter accessing decoder data breaks proper layering
Add functions for explicitly sending the input stream parameters to a
filtergraph input - currently from a frame and a decoder. The decoder
one will be dropped in future commits after some more restructuring.
9 years ago
Anton Khirnov
398f015f07
avconv: buffer the packets written while the muxer is not initialized
9 years ago
Anton Khirnov
5fa255b65c
avconv: initialize output framerate earlier
...
This will be needed in the following commits.
9 years ago
Anton Khirnov
90944ee3ab
avconv: refactor selecting an encoder
...
Fail immediately if automatic encoder selection failed. Always set the
stream_copy/encoding_needed flags in one place.
9 years ago
Anton Khirnov
73c6ec6d65
avconv: create simple filtergraphs earlier
...
We already have all the necessary information in open_output_file().
This makes the information about the stream/filtergraph mappings
available earlier.
9 years ago
Anton Khirnov
fe7b21c8f1
avconv: fix parsing bitstream filters
...
The current code modifies the user-supplied string, which is shared for
the whole output file. So a bitstream filter specification applied to
multiple streams would not work correctly.
9 years ago
Anton Khirnov
80fb19bc23
avconv: fix a check for av_bsf_get_by_name() return value
9 years ago
Vittorio Giovara
41ed7ab45f
cosmetics: Fix spelling mistakes
...
Signed-off-by: Diego Biurrun <diego@biurrun.de>
9 years ago
Mark Thompson
5d273d3efa
avconv: VAAPI hwcontext initialisation and hwaccel helper
...
Signed-off-by: Anton Khirnov <anton@khirnov.net>
9 years ago
Anton Khirnov
4426540f0c
avconv: switch to the new BSF API
9 years ago
Anton Khirnov
15e84ed3f1
avconv: convert to codecpar
...
The switch is not yet complete because the parsers and the bistream
filters do not have a new AVCodecParam-based API yet.
9 years ago
Anton Khirnov
fb472e1a11
avconv: add support for Intel QSV-accelerated transcoding
...
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
9 years ago
Alexandra Hájková
16b0c92962
avconv: Add loop option.
...
Signed-off-by: Anton Khirnov <anton@khirnov.net>
9 years ago
Vittorio Giovara
b5e4f393b6
avconv: Make the private options discovery more manifest
9 years ago
Vittorio Giovara
3973f0f773
Revert "avconv_opt: Allow printing private options"
...
This reverts commit 7bb1c1bfd2
.
A long existing version in the form of avconv -h decoder=h264 already
existed, and this just duplicates it.
9 years ago
Vittorio Giovara
7bb1c1bfd2
avconv_opt: Allow printing private options
...
Add an allowed parameter to -h and --help avconv option to print private
options from a codec, format, or filter, named with the provided input
value.
In case multiple classes are found (eg. mov demuxer and mov muxer, or
h264 decoder and h264 demuxer) print all options from all classes.
It is possible to select the type of class to print by adding it
before the name (eg. demuxer:mov and muxer:mov, or decoder:h264and
demuxer:h264).
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
9 years ago
Timothy Gu
c23999be13
avconv_opt: Add an option that lists all supported hwaccels
...
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
9 years ago
Timothy Gu
629d4c5b4d
avconv_opt: Add missing comma
...
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
9 years ago
Vittorio Giovara
7c6eb0a1b7
lavc: AV-prefix all codec flags
...
Convert doxygen to multiline and express bitfields more simply.
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
9 years ago
Anton Khirnov
6d592fbd0d
avconv: split creating and (re-)configuring complex filtergraphs
...
The current code is less than straightforward due to the fact that
output streams can be created based on filtergraph definitions. This
change should make the code simpler and more readable. It will also be
useful in the future commits.
9 years ago
Anton Khirnov
be101bc1e3
avconv: create the complex filtergraphs earlier
...
Since global options are processed before all the other options now, we
do not have to try creating the complex filtergraphs several times
anymore, it is enough to do it once after the input files are opened.
9 years ago
Anton Khirnov
1959351aec
avconv: move the no streams failure to open_output_file()
...
It is a better place for it, there is no reason to wait until
transcode_init().
9 years ago
Anton Khirnov
bd2ab27c48
avconv: use read_file() for reading the 2pass stats
...
Also, drop the now unused cmdutils_read_file(). There is no reason to
have two functions doing essentially the same thing.
9 years ago
Anton Khirnov
6d5d924604
avconv: move handling the 2pass logfile into avconv_opt
...
It more logically belongs there.
9 years ago
Anton Khirnov
59245e0c5e
avconv: set the encoding/decoding_needed flags earlier
...
This will be useful in the following commits.
9 years ago
Vittorio Giovara
a9b2a51178
avconv_opt: Check localtime() return value
...
Reported-By: infer
10 years ago
Martin Storsjö
16302246b1
avconv: Add an option for automatically rotating video according to display matrix
...
The option is enabled by default, but can be disabled.
If this is enabled, such side data isn't copied into the output stream
(except when doing stream copy).
Signed-off-by: Martin Storsjö <martin@martin.st>
10 years ago
Vittorio Giovara
81688e68f9
avconv: Check rc_override memory allocation
...
CC: libav-stable@libav.org
Bug-Id: CID 1265719
10 years ago
Vittorio Giovara
b1306823d0
check memory errors from av_strdup()
10 years ago
Julien Ramseier
fd665f7f48
avconv: Use the mpeg12 private option scan_offset
...
Introduced in aed7900704
Bug-Id: debian/773055
CC: libav-stable@libav.org
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
10 years ago
Anton Khirnov
f5245a9c62
avconv: fix parsing the AVOptions for -target
...
CC: libav-stable@libav.org
10 years ago
Anton Khirnov
1688eef253
avconv: fix the muxrate values for -target
...
The mpegenc private option values are in 50-byte units.
CC: libav-stable@libav.org
10 years ago
Gabriel Dume
f929ab0569
cosmetics: Write NULL pointer equality checks more compactly
...
Signed-off-by: Diego Biurrun <diego@biurrun.de>
10 years ago
Bernhard Übelacker
dc71f19588
video4linux2: Avoid a floating point exception
...
This avoids a segfault in avconv_opt.c:opt_target when trying to
determine the norm.
10 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
1839fafa95
avconv: Support VDA hwaccel
...
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
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
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
a61c2115fb
configure: rework dxva in avconv handling
...
Move the dxva check after the dependencies have been detected, make sure
the ole32 library exists.
Fixes build on non-Windows.
11 years ago
Hendrik Leppkes
35177ba77f
avconv: add support for DXVA2 decoding
...
Signed-off-by: Anton Khirnov <anton@khirnov.net>
11 years ago
Timothy Gu
9e4e35b4d7
avconv_opt: fix avio_open2() return code check
...
avio_open2() only return < 0 when error.
11 years ago
Anton Khirnov
746dca483a
avconv: support forcing codec tags for input streams
11 years ago
Anton Khirnov
c255f0b001
avconv: initialize hwaccel_pix_fmt
...
Fixes an assertion failure in vdpau_get_buffer() when -hwaccel auto is
used, but hwaccel init fails.
11 years ago
Anton Khirnov
7671dd7cd7
avconv: add support for VDPAU decoding
11 years ago
Anton Khirnov
07fd0a2219
avconv: add infrastructure for using hwaccels
11 years ago
Luca Barbato
f825d42bcc
avplay: Accept cpuflags option
...
Quite useful for debugging.
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
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.
11 years ago
Anton Khirnov
811bd07846
avconv: make input -ss accurate when transcoding
...
Insert (a)trim filters on the corresponding inputs, so the extra frames
are decoded and discarded.
11 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.
11 years ago