summaryrefslogtreecommitdiff
path: root/avconv_opt.c
Commit message (Collapse)AuthorAge
* avconv_opt: Consistently iterate through hwaccels array in all casesDiego Biurrun2016-11-13
| | | | avconv_opt.c:188:19: warning: comparison of unsigned expression < 0 is always false [-Wtype-limits]
* avconv: Correct function pointer assignments in options arrayDiego Biurrun2016-11-08
| | | | | Fixes several warnings of the type avconv_opt.c:2356:5: warning: ISO C forbids initialization between function pointer and ‘void *’ [-Wpedantic]
* avconv: support parsing bitstream filter optionsJames Almer2016-11-02
| | | | | | | | | Example usage: avconv -i INPUT -bsf filter[=opt1=val1:opt2=val2] OUTPUT Signed-off-by: James Almer <jamrial@gmail.com> Signed-off-by: Anton Khirnov <anton@khirnov.net>
* avconv: init filtergraphs only after we have a frame on each inputAnton Khirnov2016-06-25
| | | | | | | | | This makes sure the actual stream parameters are used, which is important mainly for hardware decoding+filtering cases, which would previously require various weird workarounds to handle the fact that a fake software graph has to be constructed, but never used. This should also improve behaviour in rare cases where avformat_find_stream_info() does not provide accurate information.
* avconv: decouple configuring filtergraphs and setting output parametersAnton Khirnov2016-06-25
| | | | | | | | | | Currently, a filtergraph will pull in the output constraints from its corresponding decoder context, which breaks proper layering. Instead, explicitly send the constaints on the output parameters to the filtergraph. This is similar to what is done for filtergraph inputs in 30ab4c51a180610d9f1720c75518d763515c0d9f
* avconv: decouple configuring filtergraphs and setting input parametersAnton Khirnov2016-06-25
| | | | | | | | | | | | 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.
* avconv: buffer the packets written while the muxer is not initializedAnton Khirnov2016-06-25
|
* avconv: initialize output framerate earlierAnton Khirnov2016-06-21
| | | | This will be needed in the following commits.
* avconv: refactor selecting an encoderAnton Khirnov2016-06-21
| | | | | Fail immediately if automatic encoder selection failed. Always set the stream_copy/encoding_needed flags in one place.
* avconv: create simple filtergraphs earlierAnton Khirnov2016-06-21
| | | | | | We already have all the necessary information in open_output_file(). This makes the information about the stream/filtergraph mappings available earlier.
* avconv: fix parsing bitstream filtersAnton Khirnov2016-05-26
| | | | | | 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.
* avconv: fix a check for av_bsf_get_by_name() return valueAnton Khirnov2016-05-26
|
* cosmetics: Fix spelling mistakesVittorio Giovara2016-05-04
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* avconv: VAAPI hwcontext initialisation and hwaccel helperMark Thompson2016-03-30
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* avconv: switch to the new BSF APIAnton Khirnov2016-03-20
|
* avconv: convert to codecparAnton Khirnov2016-02-23
| | | | | The switch is not yet complete because the parsers and the bistream filters do not have a new AVCodecParam-based API yet.
* avconv: add support for Intel QSV-accelerated transcodingAnton Khirnov2015-10-16
| | | | Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* avconv: Add loop option.Alexandra Hájková2015-10-13
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* avconv: Make the private options discovery more manifestVittorio Giovara2015-09-29
|
* Revert "avconv_opt: Allow printing private options"Vittorio Giovara2015-09-29
| | | | | | This reverts commit 7bb1c1bfd22de2200743af04ebd0c7c775f56f7e. A long existing version in the form of avconv -h decoder=h264 already existed, and this just duplicates it.
* avconv_opt: Allow printing private optionsVittorio Giovara2015-09-17
| | | | | | | | | | | | | | 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>
* avconv_opt: Add an option that lists all supported hwaccelsTimothy Gu2015-08-26
| | | | Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* avconv_opt: Add missing commaTimothy Gu2015-08-26
| | | | Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* lavc: AV-prefix all codec flagsVittorio Giovara2015-07-27
| | | | | | Convert doxygen to multiline and express bitfields more simply. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* avconv: split creating and (re-)configuring complex filtergraphsAnton Khirnov2015-07-19
| | | | | | | 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.
* avconv: create the complex filtergraphs earlierAnton Khirnov2015-07-19
| | | | | | 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.
* avconv: move the no streams failure to open_output_file()Anton Khirnov2015-07-19
| | | | | It is a better place for it, there is no reason to wait until transcode_init().
* avconv: use read_file() for reading the 2pass statsAnton Khirnov2015-07-19
| | | | | Also, drop the now unused cmdutils_read_file(). There is no reason to have two functions doing essentially the same thing.
* avconv: move handling the 2pass logfile into avconv_optAnton Khirnov2015-07-19
| | | | It more logically belongs there.
* avconv: set the encoding/decoding_needed flags earlierAnton Khirnov2015-07-19
| | | | This will be useful in the following commits.
* avconv_opt: Check localtime() return valueVittorio Giovara2015-06-12
| | | | Reported-By: infer
* avconv: Add an option for automatically rotating video according to display ↵Martin Storsjö2015-05-02
| | | | | | | | | | | 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>
* avconv: Check rc_override memory allocationVittorio Giovara2015-02-17
| | | | | CC: libav-stable@libav.org Bug-Id: CID 1265719
* check memory errors from av_strdup()Vittorio Giovara2014-12-18
|
* avconv: Use the mpeg12 private option scan_offsetJulien Ramseier2014-12-14
| | | | | | | | | Introduced in aed790070486b1b01b48106310d9d0ca1730e459 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>
* avconv: fix parsing the AVOptions for -targetAnton Khirnov2014-08-27
| | | | CC: libav-stable@libav.org
* avconv: fix the muxrate values for -targetAnton Khirnov2014-08-27
| | | | | | The mpegenc private option values are in 50-byte units. CC: libav-stable@libav.org
* cosmetics: Write NULL pointer equality checks more compactlyGabriel Dume2014-08-15
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* video4linux2: Avoid a floating point exceptionBernhard Übelacker2014-07-28
| | | | | This avoids a segfault in avconv_opt.c:opt_target when trying to determine the norm.
* avconv: do not use the stream codec context for encodingAnton Khirnov2014-06-01
|
* avconv: do not use the stream codec context for decodingAnton Khirnov2014-06-01
|
* avconv: Support VDA hwaccelAnton Khirnov2014-05-11
| | | | Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* avconv: rename OutputStream.opts to OutputStream.encoder_optsAnton Khirnov2014-05-03
| | | | This makes it more clear what is this variable for exactly.
* avconv: rename InputStream.opts to InputStream.decoder_optsAnton Khirnov2014-05-03
| | | | This makes it more clear what is this variable for exactly.
* configure: rework dxva in avconv handlingAnton Khirnov2014-04-28
| | | | | | | Move the dxva check after the dependencies have been detected, make sure the ole32 library exists. Fixes build on non-Windows.
* avconv: add support for DXVA2 decodingHendrik Leppkes2014-04-28
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* avconv_opt: fix avio_open2() return code checkTimothy Gu2014-03-30
| | | | avio_open2() only return < 0 when error.
* avconv: support forcing codec tags for input streamsAnton Khirnov2014-02-24
|
* avconv: initialize hwaccel_pix_fmtAnton Khirnov2013-12-03
| | | | | Fixes an assertion failure in vdpau_get_buffer() when -hwaccel auto is used, but hwaccel init fails.
* avconv: add support for VDPAU decodingAnton Khirnov2013-11-23
|