1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-23 15:22:09 +00:00
Command line video player
Go to file
wm4 b3fb7c2cad core: improve seeking in external files
This affects streams loaded with -subfile and -audiofile. They could get
out of sync when they were deselected, and the main file was seeked. Add
code to seek external files when they are selected (see
init_demux_stream()).

Use avformat_seek_file() under certain circumstances. Both av_seek_frame()
("old" API) and avformat_seek_file() ("new" API) seem to be broken with
some formats. At least the vobsub demuxer doesn't implement the old API
(and the old API doesn't fallback to the new API), while the fallback
from new API to old API gives bad results. For example, seeking forward
with small step sizes seems to fail with the new API (tested with
Matroska by trying to seek 1 second forward relative to priv->last_pts).
Since only subtitle demuxers implement the new API anyway, checking
whether iformat->read_seek2 is set to test whether the old API is not
supported gives best results. This is a hack at best, but makes things
work.

Remove backwards seeking on seek failure. This was annoying, and only
was there to compensate for obscure corner cases (see 1ad332). In
particular, files with completely broken seeking that used to skip back
to the start on every seek request may now terminate playback.
2012-12-11 00:36:42 +01:00
audio audio: make AC3 pass-through with ad_spdif work 2012-12-03 21:08:52 +01:00
compat Improve compatibility with Libav 0.8.4 and ffmpeg 0.11.2 2012-11-14 11:45:52 +01:00
core core: improve seeking in external files 2012-12-11 00:36:42 +01:00
demux core: improve seeking in external files 2012-12-11 00:36:42 +01:00
DOCS subs: remove --utf8, simplify code 2012-12-03 21:08:52 +01:00
etc configure: don't check for inttypes.h, it always exists 2012-12-03 21:08:51 +01:00
osdep Rename directories, move files (step 2 of 2) 2012-11-12 20:08:18 +01:00
stream stream_dvd: add a stream_seek() call 2012-12-07 16:44:53 +01:00
sub sub: clear libavformat demuxed subtitles on seeking 2012-12-03 21:08:52 +01:00
TOOLS TOOLS: remove checktree.sh 2012-11-14 11:26:43 +01:00
video Fix compilation with Libav 2012-12-04 09:22:57 +01:00
.gitignore build: remove doc/locale language auto-detection, simplify 2012-11-14 11:26:43 +01:00
AUTHORS
configure demux_gif: remove this demuxer in favor of libavformat 2012-12-03 21:08:51 +01:00
Copyright Rename to "mpv" 2012-10-12 10:14:32 +02:00
LICENSE
Makefile demux_gif: remove this demuxer in favor of libavformat 2012-12-03 21:08:51 +01:00
README
talloc.c
talloc.h clang: fix all warnings except deprecations 2012-11-13 22:19:18 +01:00
version.sh build: identify the build time of the binary in the versioning output 2012-12-03 21:08:51 +01:00

Compiling with full features requires development files for several
external libraries. Below is a list of some important requirements. For
more information see the output of './configure --help' for a list of options,
or look at the list of enabled and disabled features printed after running
'./configure'. If you think you have support for some feature installed
but configure fails to detect it, the file config.log may contain information
about the reasons for the failure.

Libraries specific to particular video output methods
(you'll want at least one of VDPAU, GL or Xv):
 - libvdpau (for VDPAU output, best choice for NVIDIA cards)
 - libGL (OpenGL output)
 - libXv (XVideo output)
general:
 - libasound   (ALSA audio output)
 - various general X development libraries
 - libfreetype (for libass)
 - libfontconfig (for libass)
 - libass
 - FFmpeg libraries (libavutil libavcodec libavformat libswscale libpostproc)

Most of the above libraries are available in suitable versions on normal
Linux distributions. However FFmpeg is an exception (distro versions may be
too old to work at all or work well). For that reason you may want to use
the separately available build wrapper that first compiles FFmpeg libraries
and libass, and then compiles the player statically linked against those.