summaryrefslogtreecommitdiff
path: root/avconv.c
Commit message (Collapse)AuthorAge
* avconv: Use more precise deprecation ifdefsDiego Biurrun2016-05-22
| | | | This fixes compilation with the libavcodec version bumped to 58.
* avconv: stop using AVStream.codecAnton Khirnov2016-05-22
| | | | | | | | It is now only used by the av_parser_change() call during streamcopy, so allocate a special AVCodecContext instance for this case. This instance should go away when the new parser API is finished. Signed-off-by: Diego Biurrun <diego@biurrun.de>
* Add some more deprecation guardsDiego Biurrun2016-05-11
| | | | Avoids unused function/label/variable warnings after the next version bump.
* cosmetics: Fix spelling mistakesVittorio Giovara2016-05-04
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* avconv: Drop an unused variableLuca Barbato2016-04-01
|
* avconv: fix -frames for videoAnton Khirnov2016-03-30
| | | | | | For video, frame_number tracks the number of frames sent to the encoder. So it should be incremented when we submit a frame, not when we get a packet back.
* avconv: VAAPI hwcontext initialisation and hwaccel helperMark Thompson2016-03-30
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* avconv: use new encode APIwm42016-03-23
| | | | | | | The flushing case is a bit strange; not simplifying it so the change is less noisy. Signed-off-by: Anton Khirnov <anton@khirnov.net>
* avconv: use new decode APIwm42016-03-23
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* avconv: switch to the new BSF APIAnton Khirnov2016-03-20
|
* avconv: remove sub-frame warningwm42016-03-05
| | | | | | It's not practical to keep this with the new decode API. Signed-off-by: Anton Khirnov <anton@khirnov.net>
* 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: switch opening decoders and encodersAnton Khirnov2016-02-23
| | | | | | Open decoders first, next encoders. This makes sure that that subtitle_header is always set properly, without relying on avformat_find_stream_info() setting it.
* avconv: pass the hw context from filters to the encoderAnton Khirnov2016-02-14
|
* avconv: Drop an impossible checkLuca Barbato2016-01-04
| | | | | | EAGAIN is already managed in poll_filters(). Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* avconv: Simplify poll_filters() return value checkLuca Barbato2016-01-04
| | | | Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* avconv: pass the global codec side data to the muxerAnton Khirnov2015-12-06
|
* avconv: set packet duration for CFR video streamsAnton Khirnov2015-11-08
|
* avconv: support infinite loop for the loop optionAlexandra Hájková2015-10-26
| | | | Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* avpacket: Replace av_free_packet with av_packet_unrefLuca Barbato2015-10-26
| | | | | | | `av_packet_unref` matches the AVFrame ref-counted API and can be used as a drop in replacement. Deprecate `av_free_packet`.
* avformat: Always return ref-counted AVPacketLuca Barbato2015-10-26
| | | | And drop the av_dup_packet from the input_thread.
* avconv: add support for Intel QSV-accelerated transcodingAnton Khirnov2015-10-16
| | | | Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* avformat: Do not use AVFMT_RAWPICTURELuca Barbato2015-10-13
| | | | | There are no formats supporting it anymore and it is deprecated. Update the documentation accordingly.
* avconv: Add loop option.Alexandra Hájková2015-10-13
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* lavc: Enable side data only packets by defaultVittorio Giovara2015-09-12
| | | | | | | | | Deprecate the now unused option, but temporarily retain the capability to disable the now default behaviour. Mention this change in the AVPacket documentation. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* lavc: Consistently prefix input buffer definesVittorio Giovara2015-07-27
| | | | Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* lavc: AV-prefix all codec capabilitiesVittorio Giovara2015-07-27
| | | | | | Express bitfields more simply. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* 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>
* Deprecate avctx.coded_frameVittorio Giovara2015-07-20
| | | | | | | | | | | | | | | | | The rationale is that coded_frame was only used to communicate key_frame, pict_type and quality to the caller, as well as a few other random fields, in a non predictable, let alone consistent way. There was agreement that there was no use case for coded_frame, as it is a full-sized AVFrame container used for just 2-3 int-sized properties, which shouldn't even belong into the AVCodecContext in the first place. The appropriate AVPacket flag can be used instead of key_frame, while quality is exported with the new AVPacketSideData quality factor. There is no replacement for the other fields as they were unreliable, mishandled or just not used at all. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* Add a quality factor packet side dataVittorio Giovara2015-07-20
| | | | | | | | This is necessary to preserve the quality information currently exported with coded_frame. Add the new side data to every encoder that needs it, and use it in avconv. 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: 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: factor out the output stream initializationAnton Khirnov2015-07-19
|
* 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: drop update_sample_fmt()Anton Khirnov2015-07-19
| | | | | | | There is only one decoder left that supports this (libopus, which is not used by default since we have a native one) and this code goes against the avconv design, since it propagates information back from the encoder to decoder.
* avconv: do not stop processing the input packet on decoding errorAnton Khirnov2015-06-27
| | | | We still want to flush the filters on EOF and possibly apply streamcopy.
* avconv: factor out flushing the filtersAnton Khirnov2015-06-27
| | | | | This also ensures this is always done, avoiding infinite loops if an error occurs at the end of the input.
* 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: Avoid theoretical NULL dereferencesHimangi Saraogi2015-04-04
| | | | | | Bug-Id: CID 1292519 Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* avconv: do not overwrite the stream codec context for streamcopyAnton Khirnov2015-04-03
| | | | | | | | | Since we are not doing encoding, there is no point in ever touching the separate encoding context. Always use the stream codec context. Fixes writing attachments. CC:libav-devel@libav.org
* avconv: Print the avfilter errorsLuca Barbato2015-03-20
| | | | Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* avconv: do not abort immediately if initializing hwaccel failsAnton Khirnov2015-03-10
| | | | | | exit_program() will try to free the decoders, which is not a good idea from within get_format(). Return an error instead.
* avconv: copy stream-level side data when streamcopyingAnton Khirnov2014-10-24
|
* avconv: Use av_gettime_relativeMartin Storsjö2014-10-24
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* lavc: deprecate unused me_threshold fieldAnton Khirnov2014-10-18
|
* avconv: check return valueVittorio Giovara2014-10-17
| | | | | CC: libav-stable@libav.org Bug-Id: CID 1224275
* avconv: replace AVCodecContext.time_base with framerateAnton Khirnov2014-10-15
|
* avconv: Use only audio and video to guess discontinuitiesLuca Barbato2014-09-26
| | | | Data and subtitle streams might cause false positive.
* cosmetics: Write NULL pointer equality checks more compactlyGabriel Dume2014-08-15
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>