ffmpeg/fftools
Jan Ekström 453b2f3c15 ffmpeg: add a data size threshold for muxing queue size
This way the old max queue size limit based behavior for streams
where each individual packet is large is kept, while for smaller
streams more packets can be buffered (current default is at 50
megabytes per stream).

For some explanation, by default ffmpeg copies packets from before
the appointed seek point/start time and puts them into the local
muxing queue. Before, it getting utilized was much less likely
since as soon as the filter chain was initialized, the encoder
(and thus output stream) was also initialized.

Now, since we will be pushing the encoder initialization to when the
first AVFrame is decoded and filtered - which only happens after
the exact seek point is hit as packets are ignored until then -
this queue will be seeing much more usage.

In more layman's terms, this attempts to fix cases such as where:
- seek point ends up being 5 seconds before requested time.
- audio is set to copy, and thus immediately begins filling the
  muxing queue.
- video is being encoded, and thus all received packets are skipped
  until the requested time is hit.
2020-10-29 16:59:48 +02:00
..
cmdutils.c fftools: switch to the new child class iteration API 2020-06-10 12:36:44 +02:00
cmdutils.h
ffmpeg_filter.c fftools, libavcodec, libavfilter: Add const to some AVCodec * 2020-09-11 14:42:36 +02:00
ffmpeg_hw.c ffmpeg: Don't require a known device to pass a frames context to an encoder 2020-05-03 16:04:27 +01:00
ffmpeg_opt.c ffmpeg: add a data size threshold for muxing queue size 2020-10-29 16:59:48 +02:00
ffmpeg_qsv.c ffmpeg: Remove the hw_device_ctx global 2020-04-26 18:38:25 +01:00
ffmpeg_videotoolbox.c Stop hardcoding align=32 in av_frame_get_buffer() calls. 2020-05-22 14:38:57 +02:00
ffmpeg.c ffmpeg: add a data size threshold for muxing queue size 2020-10-29 16:59:48 +02:00
ffmpeg.h ffmpeg: add a data size threshold for muxing queue size 2020-10-29 16:59:48 +02:00
ffplay.c ffplay: fix autoexit doesn't work in the case of pb->error 2020-09-08 19:59:17 +02:00
ffprobe.c fftools/ffprobe: use av_timecode_make_smpte_tc_string2 2020-09-13 17:51:57 +02:00
Makefile ffmpeg: remove superfluous custom cuvid hwaccel 2020-03-03 18:11:28 -03:00