aboutsummaryrefslogtreecommitdiffhomepage
Commit message (Collapse)AuthorAge
...
* player: fix crash if no video decoder can be initializedGravatar wm42016-02-10
| | | | Caused by the recent refactoring for complex filters.
* player: force refresh seek when changing audio filtersGravatar wm42016-02-09
| | | | | | | | | | | | | Unfortunately I see no better solution. The refresh seek is skipped if the amount of buffered audio is not overly huge. Unfortunately softvol af_volume insertion still can cause this issue, because it's outside of the normal dynamic filter chain changing code. Move the video refresh call to reinit_video_filters() to make it more uniform along with the audio code.
* vo_opengl_cb: do also not block when drawing nothingGravatar wm42016-02-09
| | | | | | | The ctx->redrawing field signals whether flip_page() should block. Do not block if a black frame (i.e. nothing) is to be rendered. Also, frame==NULL can never happen.
* image_writer: take care of prediction_method deprecationGravatar wm42016-02-09
| | | | | | | The field was recently deprecated, and you're supposed to set the private codec option instead. Not sure if this really works as intended.
* manpage: add example for playing 2 audio tracks at the same timeGravatar wm42016-02-08
|
* player: add --external-file optionGravatar wm42016-02-08
| | | | Mostly intended for use with --lavfi-complex.
* build: enable vo_opengl_cb if GL headers are presentGravatar wm42016-02-08
| | | | | | | | | | | | To be more specific, enable vo_opengl and vo_opengl_cb, if libmpv is compiled, and the GL headers happen to be in the default search paths. Although platform specific code can be useful for libmpv (for window embedding, and even with vo_opengl_cb for certain forms of hardware decoding), it's not a requirement to use the opengl_cb API. Enabling vo_opengl is not useful here, but the rest of the build system doesn't distinguish vo_opengl and vo_opengl_cb, and I see no reason to.
* build: make posix_spawn optionalGravatar wm42016-02-08
| | | | OK, Android doesn't support it.
* mpv.conf: adjustmentsGravatar wm42016-02-08
| | | | | In particular, get rid of the "vdpau" example profile, as it's pretty useless and misleading.
* vo_opengl: vdpau: call glVDPAUFiniNV only if initializedGravatar wm42016-02-08
| | | | This is "more correct". See #2798.
* wscript: mark subprocess as requiredGravatar wm42016-02-07
| | | | | | | We either need to be on Windows, or have posix_spawn available. If someone can come up with a system that is POSIX, but does not provide posix_spawn, we could make it optional.
* wayland: set fs mode on every configureGravatar Alexander Preisinger2016-02-07
| | | | | Check and set the fullscreen mode on every surface configure event. This prevents gnome from resizing mpvs fullscreen window to a smaller size.
* video/decode/dxva2.c: GUID_NULL conflictsGravatar kwkam2016-02-06
| | | | | | | GUID_NULL is defined in <ks.h> gcc 6.0 refuses to link the executable because of that Signed-off-by: wm4 <wm4@nowhere>
* common/common.c: handle utf16 in mp_parse_escapeGravatar kwkam2016-02-06
| | | | Signed-off-by: wm4 <wm4@nowhere>
* lavfi: fix EOF caseGravatar wm42016-02-06
| | | | | | | | | | | | This was dumb. Could make it burn 100% CPU and not exit at the end. (Because it would retry as instructed, instead of terminating playback.) It also needs to consider EOF as waiting for input. lavfi_process() will decide if it's really EOF, or if further input might come in the future. Without this, it'd would think that it does not need to wait for input, i.e. that new input will be available immediately. (Not so fond of the duplication of subtle logic.)
* audio: fix EOF handling if nothing could be decoded at allGravatar wm42016-02-06
| | | | The code for decoding the initial frame has to handle this explicitly.
* vd_lavc: fix use after free in some hwdecsGravatar Kevin Mitchell2016-02-06
| | | | | | | | | | | | | | fd339e3f53996efd2dae9525990da433d1e1bf89 introduced a regression that caused segfault while uniniting dxva2 decoder (and possibly vdpau too). The problem was that it freed the avctx earlier, before calling the backend-specific uninit which referenced it. Revert some of the changes of that commit, and avoid calling flush by checking whether the codec is open instead. (Based on a PR by Kevin Mitchell.) Signed-off-by: wm4 <wm4@nowhere>
* audio: minor simplificationGravatar wm42016-02-05
| | | | | These fields are already deallocated by uninit_decoder(). Also remove the wrong/useless log message.
* player: remove some further current_track dependenciesGravatar wm42016-02-05
| | | | Now it's used for initialization only for audio and video.
* lavfi: fix build on LibavGravatar wm42016-02-05
| | | | | | It doesn't provide this function. The code is not really designed to work without it, so it will probably mess up big time, but at least make it compile again.
* player: add complex filter graph supportGravatar wm42016-02-05
| | | | | | | | | | | | | | | | See --lavfi-complex option. This is still quite rough. There's no support for dynamic configuration of any kind. There are probably corner cases where playback might freeze or burn 100% CPU (due to dataflow problems when interaction with libavfilter). Future possible plans might include: - freely switch tracks by providing some sort of default track graph label - automatically enabling audio visualization - automatically mix audio or stack video when multiple tracks are selected at once (similar to how multiple sub tracks can be selected)
* build: make libavfilter mandatoryGravatar wm42016-02-05
| | | | | | The complex filter support that will be added makes much more complex use of libavfilter, and I'm not going to bother with adding hacks to keep libavfilter optional.
* player: move audio and video decoder init to separate functionsGravatar wm42016-02-05
| | | | Preparation.
* player: simplify error_on_track()Gravatar wm42016-02-05
| | | | | | track can't be NLUL at this point, so the if is redundant. Remove it and unindent the block. Also, make the function check whether the track is selected at all, which makes it safer and idempotent.
* options: set fs=yes by default on RPI, and change RPI defaults handlingGravatar wm42016-02-05
| | | | | The main reason for changing the fullscreen default is that not doing it would change the vo_rpi default behavior with the previous commit.
* vo_rpi: add geometry handlingGravatar Uros Vampl2016-02-05
| | | | | | This makes it possible to set video size and position using the --geometry and/or --autofit options. It's also possible to switch between fullscreen/non-fullscreen playback during runtime.
* vd_lavc: avoid calling flush on an unopened AVCodecContextGravatar wm42016-02-05
| | | | | | | It can be "dangerous". In particular, the decoder might have failed to initialize, and is now in a broken state. avcodec_flush_buffers() is not expected to be called in this state, and could trigger undefined behavior.
* input: ignore --input-cursor for events injected by input commandsGravatar wm42016-02-04
| | | | | | Apparently useful for window embedding. Fixes #2750.
* sub: implement "sub-seek 0"Gravatar wm42016-02-04
| | | | | | | For bitmap subs, implement it properly. For libass, you need newest git master. Fixes #2791.
* video: remove AVI timestamps for dropped framesGravatar wm42016-02-04
| | | | | Might possible improve A/V sync, although this is at best approximate. (AVI is just fucked.)
* ao_coreaudio: fix 7.1(rear) channel mappingGravatar wm42016-02-04
| | | | | | | | | | | | | | I can't explain this, but it seems to be a similar case to the ALSA HDMI one. I find it hard to tell because of the slightly different names and conventions in use in libavcodec, WAVEEXT channel masks, decoders, codec specifications, HDMI, and platform audio APIs. The fix is the same as the one for ao_alsa (see commit be49da72). This should fix at least playing 7.1 sources on OSX with 7.1(rear) selected in Audio MIDI Setup. The ao_alsa commit mentions XBMC, but I couldn't find out where it does that or if it also does that for CoreAudio. It's woth noting that PHT (essentially an old XBMC fork) also exhibited the incorrect behavior (i.e. side and back speakers were swapped).
* af_lavrresample: change fudged channelsGravatar wm42016-02-04
| | | | | | | | | | | | | Remove flc-frc <-> sl<->sr. This was just plain wrong, and a mistaken change to make 7.1 work properly on CoreAudio with 7.1(rear) layout. Also see the following commit. Add br-br <-> sl<->sr, because we decided that it makes sense. Note that this "fudging" is applied only if the channel pairs are replaced, i.e. they would get dropped and be replaced with silence. This is done to compensate for libswresample's default rematrixing (which takes care of some more common cases).
* vd_lavc: remove redundant best_csp fieldGravatar wm42016-02-03
| | | | And some other simplifications.
* vd_lavc: force microsecond timestamps on RPIGravatar wm42016-02-03
| | | | | | | | | | Avoids "problems". In particular, it makes MMAL output a NOPTS timestamp if the input timestamp was NOPTS. Don't do it for other decoders. Ideally, we will at some point in the future switch to integer fractions for timestamps at least up until the filter layer. But this would be a larger change, and for now I'd prefer keeping the not-rounded demuxer timestamps (if we have them).
* command: fix track cycling logicGravatar wm42016-02-03
| | | | | | Also remove the unused function argument. Fixes #2784.
* command: show original aspect in video-aspect property tooGravatar wm42016-02-02
| | | | | Basically, just make it append " (original)" if the original aspect ratio is selected.
* w32_common: switch to UniformResourceLocatorWGravatar wm42016-02-02
| | | | | | | | This is the "unicode" version of it. It appears Firefox uses it now? I'm not sure if we still need to support the old variant, but hopefully not. Fixes #2782.
* TOOLS/lua/autoload.lua: remove the extension prior to sortGravatar Alexis Nootens2016-02-02
| | | | | | When the directory contains files named such as xx-14.ext and xx-14.5.ext, remove the extension to sort the table to load the 14 before the 14.5.
* build: add special openbsd case for iconv checkGravatar Stefano Pigozzi2016-02-01
| | | | Fixes #2710
* player: refactor: reduce some dependencies on current_trackGravatar wm42016-02-01
| | | | Don't mind me.
* player: use different variable to indicate coverartGravatar wm42016-02-01
| | | | Slightly better.
* audio/video: merge decoder return valuesGravatar wm42016-02-01
| | | | | | Will be helpful for the coming filter support. I planned on merging audio/video decoding, but this will have to wait a bit longer, so only remove the duplicate status codes.
* CONTRIBUTING.md: encourage users to ping forgotten issuesGravatar wm42016-02-01
| | | | | | Now I'm not sure if this is really necessary to explicitly mention. But then there have been issues and pull requests without being properly looked at for a week or longer.
* audio: remove default preference for libdcadecGravatar wm42016-02-01
| | | | Not needed anymore, because the decoder was merged with FFmpeg.
* vo_opengl: hwdec: use IDs for API, and log which backend is usedGravatar wm42016-02-01
| | | | | | | Since there can be multiple backends for a single API (vaapi can use GLX or EGL), not logging the exact backend name is annoying. So add it. At the same time, there is no need to duplicate the name as used by the --hwdec options, so replace it with using the numeric hwdec API ID.
* audio: use brutal resync only on larger PTS discontinuitiesGravatar wm42016-01-31
| | | | | | | | | Let's fix broken samples with questionable heuristic without real reasoning. Until this gets fixed properly, this is a good compromise, though. A proper fix would properly resync audio and video without brutally resetting the decoders, but on the other hand not doing the brutal reset would cause issues in other obscure corner cases such resyncing might cause.
* audio: fix a case of going to sleep before playback startGravatar wm42016-01-31
| | | | | | | | | | | | | | | This code is tricky because it has to wakeup the mainloop to make progressing during syncing audio, but also has to avoid waking it up when it's not needed. Failure to do so either burns CPU by not ever going to sleep, or causes apparent "freezes" by going to sleep (and it will continue if the mainloop is woken up e.g. due to user input). In this case, simply starting A/V playback with --start=5 and removing an unrelated wakeup in osd.c can trigger such a "freeze". The unrelated wakeup did hide this bug, nonetheless it's a bug. (Can't wait to rewrite this shitty audio resync code. And it's all my fault.)
* DOCS: explain about DVD situation in man page.Gravatar archenemies2016-01-31
| | | | | | Explains libdvdnav vs libdvdread situation (as much as I know), workarounds for bugs, and limitations of image-based subtitles. (try #4)
* x11: stop waiting for MapNotify when WM_STATE changesGravatar Tracerneo2016-01-31
| | | | Signed-off-by: wm4 <wm4@nowhere>
* vd_lavc: release surfaces before destroying decoderGravatar wm42016-01-30
| | | | | | | | | | Commit b53cb8de added a delay queue for decoded frames. This is supposed to be used with copy-back decoders like dxva2-copy and vaapi-copy. Surfaces returned by them can't be referenced after uninitializing the decoders, so they have to be released before destroying the decoder. Move the flush_all() call above decoder uninit accordingly. Also move the destruction of the AVFrame used for decoding (just for being defensive - normally it doesn't hold any reference).