mpv/video
wm4 c88ab96a78
video: warn user against FFmpeg's lies
I found that at least for mjpeg streams, FFmpeg will set packet pts/dts
anyway. The mjpeg raw video demuxer (along with some other raw formats)
has a "framerate" demuxer option which defaults to 25, so all mjpeg
streams will be played at 25 FPS by default.

mpv doesn't like this much. If AVFMT_NOTIMESTAMPS is set, it prints a
warning, that might print a bogus FPS value for the assumed framerate.
The code was originally written with the assumption that FFmpeg would
not set pts/dts for such formats, but since it does, the printed
estimated framerate will never be used. --fps will also not be used by
default in this situation.

To make this hopefully less confusing, explicitly state the situation
when the AVFMT_NOTIMESTAMPS flag is set, and give instructions how to
work it around.

Also, remove the warning in dec_video.c. We don't know what FPS it's
going to assume anyway. If there are really no timestamps in the stream,
it will trigger our normal missing pts workaround. Add the assumed FPS
there.

In theory, we could just clear packet timestamps if AVFMT_NOTIMESTAMPS
is set, and make up our own timestamps. That is non-trivial for advanced
video codecs like h264, so I'm not going there. For seeking and
buffering estimation the situation thus remains half-broken.

This is a mitigation for #5419.
2018-01-22 23:48:27 -08:00
..
decode video: warn user against FFmpeg's lies 2018-01-22 23:48:27 -08:00
filter sws_utils: don't force callers to provide option struct 2018-01-18 00:59:07 -08:00
out video: change some remaining vo_opengl mentions to vo_gpu 2018-01-20 14:43:49 -08:00
csputils.c
csputils.h
d3d.c
d3d.h
fmt-conversion.c
fmt-conversion.h
hwdec.c
hwdec.h hwdec: remove unused fields 2017-12-21 19:31:36 +01:00
image_loader.c
image_loader.h
image_writer.c
image_writer.h
img_format.c video: add utility function to pick conversion image format from a list 2018-01-18 00:59:07 -08:00
img_format.h video: make IMGFMT_IS_HWACCEL() return 0 or 1 2018-01-18 00:59:07 -08:00
mp_image.c video: change some remaining vo_opengl mentions to vo_gpu 2018-01-20 14:43:49 -08:00
mp_image.h
mp_image_pool.c mp_image_pool: add helper functions for FFmpeg hw frames pools 2018-01-18 00:59:07 -08:00
mp_image_pool.h mp_image_pool: add helper functions for FFmpeg hw frames pools 2018-01-18 00:59:07 -08:00
sws_utils.c sws_utils: don't force callers to provide option struct 2018-01-18 00:59:07 -08:00
sws_utils.h sws_utils: don't force callers to provide option struct 2018-01-18 00:59:07 -08:00
vaapi.c hwdec: remove unused fields 2017-12-21 19:31:36 +01:00
vaapi.h
vdpau.c hwdec: remove unused fields 2017-12-21 19:31:36 +01:00
vdpau.h
vdpau_functions.inc
vdpau_mixer.c
vdpau_mixer.h