1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-29 02:22:19 +00:00
mpv/DOCS/man/en
wm4 7a1396b6ca demux_mf: allow displaying single image files, various cleanups
Enable autoprobing for demux_mf, so that image files can be directly
displayed with e.g. "mpv file.jpg --pause". (The --pause switch is
needed to prevent the window from closing immediately.)

Since demux_mf doesn't have any real file format probing and goes by
file extension only, move the demuxer down the demuxer list to ensure
it's checked last. (ffmpeg's demux_mf equivalent, "image2", probes by
file extensions too, and there doesn't seem to be anything that can
probe typical image file formats from binary data.)

Remove the --mf "w" and "h" suboptions. Don't pass the width/height to
the video stream header. Both of these are useless, because the decoder
reads the real image size at a later point from the file headers.
Remove setting the BITMAPINFOHEADER as well, as vd_lavc doesn't need
this.

Enable --correct-pts by default. This fixes displaying a single image
with vo_vdpau (as mentioned by uau).

Keep around a pointer to the sh_video stream header instead of
accessing demuxer->video->sh_video. Fixes a crash when deselecting the
video track.

Note that the format probing is incorrect when opening images from HTTP
locations. File extensions don't have to match the actual file format.
A correct implementation would require to check the MIME type, or to
probe the binary data correctly.
2012-11-16 21:21:16 +01:00
..
af.rst manpage: various fixes 2012-11-16 21:21:14 +01:00
ao.rst manpage: cleanup 2012-10-24 21:56:35 +02:00
changes.rst options: rename -sub-fuzziness to -autosub-match, change option values 2012-11-16 21:21:15 +01:00
encode.rst encode: remove dependency on current ffmpeg 2012-10-01 11:04:48 +02:00
input.rst command: add sub_reload and sub_remove commands 2012-11-16 21:21:15 +01:00
mpv.rst video/filter: rename vf_eq2 to vf_eq 2012-11-16 21:21:14 +01:00
options.rst demux_mf: allow displaying single image files, various cleanups 2012-11-16 21:21:16 +01:00
vf.rst video/filter: rename vf_eq2 to vf_eq 2012-11-16 21:21:14 +01:00
vo.rst vo_opengl: remove osdcolor suboption 2012-11-16 21:21:14 +01:00