summaryrefslogtreecommitdiffstats
path: root/avplay.c
Commit message (Collapse)AuthorAgeFilesLines
* avplay: add support for seeking to chapter marksAnton Khirnov2014-02-101-0/+33
|
* avplay: do not call avcodec_get_frame_defaults().Anton Khirnov2013-12-111-2/+1
| | | | avcodec_decode_audio4() will reset the frame itself.
* Replace all uses of avcodec_free_frame with av_frame_free().Anton Khirnov2013-12-111-1/+1
|
* Add missing #includes for *INT64_MAX and *INT64_CDiego Biurrun2013-11-231-0/+2
|
* Replace all instances of avcodec_alloc_frame() with av_frame_alloc().Anton Khirnov2013-11-161-1/+1
|
* avplay: drop -vismv option which does not do anything anymoreAnton Khirnov2013-10-311-9/+0
|
* miscellaneous typo fixesDiego Biurrun2013-07-251-1/+2
|
* avplay: remove a warningLuca Barbato2013-04-271-1/+1
| | | | | | Set the data field in the flush_pkt to the pointer to the actual packet. The field needs to contain a valid unique pointer, no read nor writes are ever made to it.
* lavfi: change the filter registering system to match the other librariesAnton Khirnov2013-04-111-3/+0
| | | | Removes an arbitrary hardcoded limit on the number of filters.
* lavfi: merge avfiltergraph.h into avfilter.hAnton Khirnov2013-04-111-1/+0
| | | | | We do not support using filters without AVFilterGraph in practice anyway, so there is no point in pretending we do.
* avplay: remove the -debug option.Anton Khirnov2013-03-191-10/+0
| | | | | It just shadows the corresponding AVOption and prevents using named constants.
* avplay: enable only when SDL 1.2 is foundVittorio Giovara2013-03-091-2/+0
| | | | | | SDL 2 is API incompatible. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* avplay: switch to new refcounted frames APIAnton Khirnov2013-03-081-57/+19
| | | | Remove now unused cmdutils get_buffer() implementation.
* avplay: apply the stream sample_aspect_ratio to decoded video framesVladimir Pantelic2013-02-091-0/+3
| | | | | | | | | If there is a sample_aspect_ratio in the stream, then apply it to every decoded frame in the same way as avconv does. This also makes sure that the avfilter chain has access to the aspect ratio. Signed-off-by: Vladimir Pantelic <vladoman@gmail.com> Signed-off-by: Anton Khirnov <anton@khirnov.net>
* avplay: Do not use removed av_get_int()Anton Khirnov2012-11-291-3/+3
| | | | | | Fixes build with lavfi disabled. Signed-off-by: Diego Biurrun <diego@biurrun.de>
* avplay: support mid-stream sample rate changesJustin Ruggles2012-10-131-14/+21
| | | | Resample to the rate that was configured in SDL.
* avplay: use audio parameters from the decoded frame instead of AVCodecContextJustin Ruggles2012-10-131-10/+10
|
* De-doxygenize some top-level filesDiego Biurrun2012-10-121-17/+13
|
* Replace PIX_FMT_* -> AV_PIX_FMT_*, PixelFormat -> AVPixelFormatAnton Khirnov2012-10-081-2/+2
|
* lavr: change the type of the data buffers to uint8_t**.Anton Khirnov2012-10-051-2/+2
| | | | | | This is more consistent with what the rest of Libav does. This breaks API.
* Use atexit() instead of defining a custom exit_program() interface.Diego Elio Pettenò2012-10-011-5/+0
|
* Use avcodec_free_frame() to free AVFrames.Anton Khirnov2012-09-241-2/+2
|
* avplay: get rid of ugly casts in the options tableAnton Khirnov2012-09-111-28/+28
|
* avplay: fix prototypes for option callbacks.Anton Khirnov2012-09-111-20/+20
| | | | They have been wrong since 11d957fbd81288e64408e79ed369446346000b29
* avconv: split printing "main options" into global and per-file.Anton Khirnov2012-08-191-2/+2
|
* cmdutils: extend -h to allow printing codec details.Anton Khirnov2012-08-191-5/+1
|
* cmdutils: change semantics of show_help_options() and document it.Anton Khirnov2012-08-191-4/+2
| | | | | | | | Currently it takes a mask and value, such that options for which (flags & mask) == value. Change it to take required flags and forbidden flags instead. This is shorter and simpler to understand.
* avtools: move some newlines to show_help_options().Anton Khirnov2012-08-191-2/+2
| | | | Don't require every caller to supply them.
* avtools: fix show_foo() signatures.Anton Khirnov2012-08-191-2/+4
| | | | | show_foo() functions are declared as void show_foo(void), but called as int show_foo(const char*, const char*).
* avplay: fix build with lavfi disabled.Konstantin Pavlov2012-08-081-0/+2
| | | | | | Issue introduced in 67339f6e. Signed-off-by: Anton Khirnov <anton@khirnov.net>
* lavfi: use avfilter_unref_bufferp() where appropriate.Anton Khirnov2012-07-221-9/+3
|
* lavr: Use AV_SAMPLE_FMT_NONE to auto-select the internal sample formatJustin Ruggles2012-07-081-2/+0
| | | | Also make this the default value.
* avplay: update input filter pointer when the filtergraph is reset.Anton Khirnov2012-07-051-0/+1
| | | | Fixes an invalid read on size change.
* avplay: Add an option for not limiting the input buffer sizeMartin Storsjö2012-07-041-2/+5
| | | | | | | | | | | | | | | | | | | | | | For reading from normal files on disk, the queue limits for demuxed data work fine, but for reading data from realtime streams, they mean we're not reading from the input stream at all once the queue limit has been reached. For TCP streams, this means that writing to the socket from the peer side blocks (potentially leading to the peer dropping data), and for UDP streams it means that our kernel might drop data. For some protocols/servers, the server initially sends a large burst with data to fill client side buffers, but once filled, we should keep reading to avoid dropping data. For all realtime streams, it IMO makes sense to just buffer as much as we get (rather in buffers in avplay.c than in OS level buffers). With this option set, the input thread should always be blocking waiting for more input data, never sleeping waiting for the decoder to consume data. Signed-off-by: Martin Storsjö <martin@martin.st>
* avplay: fix write on freed memory for rawvideoLuca Barbato2012-07-031-2/+4
| | | | | | | Do not assume avpacket and the decoded frames are independent. To be absolutely sure and not sprinkle av_free_packet around the code the call had been placed before getting the frame and on the error path.
* cmdutils: Pass the actual chosen encoder to filter_codec_optsMartin Storsjö2012-06-301-1/+1
| | | | | | | This allows passing the right options to encoders when there's more than one encoder for a certain codec id. Signed-off-by: Martin Storsjö <martin@martin.st>
* Replace usleep() calls with av_usleep()Mans Rullgard2012-06-221-2/+2
| | | | | | | This reduces the dependency on unistd.h which is not available on all systems. Signed-off-by: Mans Rullgard <mans@mansr.com>
* Avoid C99 variable declarations within for statements.Diego Biurrun2012-06-141-3/+3
| | | | | We generally do not declare variables within for statements and there are compilers that choke on such constructs.
* avplay: use buffersrc instead of custom input filter.Anton Khirnov2012-06-051-221/+76
| | | | | | | We do not allow user filters, so avtools shouldn't use them either. It also allows to reuse buffer management code from avconv, thus reducing duplication.
* lavfi: add video buffer sink, and use it in avtoolsAnton Khirnov2012-05-091-8/+21
| | | | | | Also add the public interface libavfilter/buffersink.h. Based on a commit by Stefano Sabatini.
* avplay: properly close/reopen AVAudioResampleContext on channel layout changeJustin Ruggles2012-05-071-1/+3
| | | | fixes Bug#280
* avplay: use libavresample for sample format conversion and channel mixingJustin Ruggles2012-05-011-38/+86
| | | | | | | SDL only supports s16 sample format and a limited number of channel layouts. Some versions of SDL on some systems support 4-channel and 6-channel output, but it's safer overall to downmix any layout with more than 2 channels to stereo.
* Remove lowres video decodingMans Rullgard2012-04-211-5/+1
| | | | | | | This feature is complex, of questionable utility, and slows down normal decoding. Signed-off-by: Mans Rullgard <mans@mansr.com>
* avplay: update get_buffer to be inline with avconvLuca Barbato2012-04-161-0/+4
| | | | | The buffer must have its dimension, pixel format and aspect ratio set.
* avconv: get output pixel format from lavfi.Anton Khirnov2012-04-151-1/+2
| | | | | | | This way we don't require a clearly defined corresponding input stream. The result for the xwd test changes because rgb24 is now chosen instead of bgra.
* avfiltergraph: make the AVFilterInOut alloc/free API publicStefano Sabatini2012-04-141-2/+2
| | | | | | | This is required for letting applications to create and destroy AVFilterInOut structs in a convenient way. Signed-off-by: Anton Khirnov <anton@khirnov.net>
* avplay: Don't free video filters string until the end of decoding.Alex Converse2012-04-111-1/+1
| | | | | | av_freep()ing inside configure_video_filters() leaves a dangling reference in the calling code, and the filter string is needed again when reconfiguring video filters for a size change.
* avplay: Don't try to scale timestamps if the tb isn't setMartin Storsjö2012-04-061-1/+1
| | | | | | | | | | If get_filtered_video_frame failed above, tb might not be initialized at all, so don't scale using it. This fixes cases where avplay could crash if aborting avformat_find_stream_info with ctrl+c. Signed-off-by: Martin Storsjö <martin@martin.st>
* Replace memset(0) by zero initializations.Diego Biurrun2012-03-281-2/+1
| | | | Also remove one pointless zero initialization in rangecoder.c.
* avplay: remove an unused variable.Anton Khirnov2012-02-291-1/+0
|
OpenPOWER on IntegriCloud