Skip to content

Instantly share code, notes, and snippets.

@Argon-
Created April 15, 2017 19:15
Show Gist options
  • Save Argon-/e4c27a670fde61b4ac385e2a0ef6570c to your computer and use it in GitHub Desktop.
Save Argon-/e4c27a670fde61b4ac385e2a0ef6570c to your computer and use it in GitHub Desktop.
→ mpv --no-config --quiet --script=~/.mpv/scripts/test.lua test-panning-24fps.mp4 -v
[cplayer] Command line options: '--no-config' '--quiet' '--script=~/.mpv/scripts/test.lua' 'test-panning-24fps.mp4' '-v'
[cplayer] mpv git-1a0c340 (C) 2000-2017 mpv/MPlayer/mplayer2 projects
[cplayer] built on Sat Apr 15 21:05:27 CEST 2017
[cplayer] ffmpeg library versions:
[cplayer] libavutil 55.58.100
[cplayer] libavcodec 57.89.100
[cplayer] libavformat 57.71.100
[cplayer] libswscale 4.6.100
[cplayer] libavfilter 6.82.100
[cplayer] libswresample 2.7.100
[cplayer] ffmpeg version: 3.3
[cplayer]
[cplayer] Configuration: waf configure --prefix=/usr/local/Cellar/mpv/HEAD-1a0c340_1 --enable-zsh-comp --enable-libmpv-shared --enable-html-build --confdir=/usr/local/etc/mpv --datadir=/usr/local/Cellar/mpv/HEAD-1a0c340_1/share/mpv --mandir=/usr/local/Cellar/mpv/HEAD-1a0c340_1/share/man --docdir=/usr/local/Cellar/mpv/HEAD-1a0c340_1/share/doc/mpv --zshdir=/usr/local/Cellar/mpv/HEAD-1a0c340_1/share/zsh/site-functions --enable-libarchive --enable-libbluray --enable-dvdnav --enable-dvdread
[cplayer] List of enabled features: 51deb apple-remote asm atomics avutil-imgcpy-uc bsd-fstatfs build-date c11-tls caca cocoa coreaudio cplayer cuda-hwaccel debug-build dlopen dvdnav dvdread dvdread-common encoding fchmod gcc-tls gl gl-cocoa glob gnuc iconv is_ffmpeg jpeg lcms2 libarchive libass libass-osd libav libavcodec libavdevice libbluray libdl libm libmpv-shared lua macos-touchbar nanosleep optimize osx-thread-name plain-gl posix posix-or-mingw posix-spawn pthreads rubberband shm stdatomic subprocess termios tv uchardet vapoursynth vapoursynth-core vapoursynth-lazy videotoolbox-gl videotoolbox-hwaccel zlib zsh-comp
[global] config path: '' -> '-'
[cplayer] Setting option 'config' = 'no' (flags = 8)
[cplayer] Setting option 'quiet' = '' (flags = 8)
[cplayer] Setting option 'script' = '~/.mpv/scripts/test.lua' (flags = 8)
[cplayer] Setting option 'v' = '' (flags = 8)
[osc] Loading lua script @osc.lua...
[osc] loading mp.defaults
[osc] loading @osc.lua
[osc] lua-settings/osc.conf not found.
[cplayer] Run command: define-section, flags=0, args=[showhide, mouse_move script-binding osc/__keybinding1
[cplayer] mouse_leave script-binding osc/__keybinding2
[cplayer] , force]
[cplayer] Run command: enable-section, flags=0, args=[showhide, allow-hide-cursor+allow-vo-dragging]
[cplayer] Run command: define-section, flags=0, args=[input, mouse_btn0 script-binding osc/__keybinding3
[cplayer] shift+mouse_btn0 script-binding osc/__keybinding4
[cplayer] mouse_btn2 script-binding osc/__keybinding5
[cplayer] mouse_btn0_dbl ignore
[cplayer] shift+mouse_btn0_dbl ignore
[cplayer] mouse_btn2_dbl ignore
[cplayer] , force]
[cplayer] Run command: enable-section, flags=0, args=[input, ]
[cplayer] Run command: define-section, flags=0, args=[input_osc, del script-binding osc/__keybinding6
[cplayer] , default]
[cplayer] Run command: enable-section, flags=0, args=[input_osc, allow-hide-cursor+allow-vo-dragging]
[cplayer] Run command: define-section, flags=0, args=[input_forced_osc, , force]
[cplayer] Run command: enable-section, flags=0, args=[input_forced_osc, allow-hide-cursor+allow-vo-dragging]
[cplayer] Done loading @osc.lua.
[ytdl_hook] Loading lua script @ytdl_hook.lua...
[ytdl_hook] loading mp.defaults
[cplayer] Run command: disable-section, flags=0, args=[input]
[osd/libass] Shaper: FriBidi 0.19.7 (SIMPLE) HarfBuzz-ng 1.4.5 (COMPLEX)
[osd/libass] Setting up fonts...
[ytdl_hook] loading @ytdl_hook.lua
[cplayer] Run command: hook-add, flags=0, args=[on_load, 1, 10]
[osd/libass] Using font provider coretext
[osd/libass] Done.
[cplayer] Run command: hook-add, flags=0, args=[on_preloaded, 2, 10]
[cplayer] Done loading @ytdl_hook.lua.
[test] Loading lua script ~/.mpv/scripts/test.lua...
[test] loading mp.defaults
[global] user path: '~/.mpv/scripts/test.lua' -> '/Users/Julian/.mpv/scripts/test.lua'
[test] loading file /Users/Julian/.mpv/scripts/test.lua
[cplayer] Run command: define-section, flags=0, args=[input_test, i script-binding test/test
[cplayer] , default]
[cplayer] Run command: enable-section, flags=0, args=[input_test, allow-hide-cursor+allow-vo-dragging]
[cplayer] Run command: define-section, flags=0, args=[input_forced_test, , force]
[cplayer] Run command: enable-section, flags=0, args=[input_forced_test, allow-hide-cursor+allow-vo-dragging]
[cplayer] Done loading ~/.mpv/scripts/test.lua.
[test] observed: 1
[global] config path: 'watch_later' -> '-'
[global] config path: 'watch_later' -> '-'
[cplayer] Playing: test-panning-24fps.mp4
[cplayer] Running hook: ytdl_hook/on_load
[cplayer] Run command: hook-ack, flags=0, args=[on_load]
[ifo] Opening test-panning-24fps.mp4
[ifo_dvdnav] Opening test-panning-24fps.mp4
[bdmv/bluray] Opening test-panning-24fps.mp4
[file] Opening test-panning-24fps.mp4
[file] Stream opened successfully.
[demux] Trying demuxers for level=normal.
[lavf] Found 'mov,mp4,m4a,3gp,3g2,mj2' at score=100 size=2048.
[demux] Detected file format: mov,mp4,m4a,3gp,3g2,mj2 (libavformat)
[cplayer] Opening done: test-panning-24fps.mp4
[find_files] Loading external files in .
[cplayer] Running hook: ytdl_hook/on_preloaded
[cplayer] Run command: hook-ack, flags=0, args=[on_preloaded]
[cplayer] (+) Video --vid=1 (*) (h264 1280x720 24.000fps)
[vo/opengl] Initializing OpenGL backend 'cocoa'
[vo/opengl] can't find an ambient light sensor
[vo/opengl] GL_VERSION='4.1 ATI-1.42.15'
[vo/opengl] Detected desktop OpenGL 4.1.
[vo/opengl] GL_VENDOR='ATI Technologies Inc.'
[vo/opengl] GL_RENDERER='AMD Radeon Barts XT Prototype OpenGL Engine'
[vo/opengl] GL_SHADING_LANGUAGE_VERSION='4.10'
[vo/opengl] Loaded extension GL_APPLE_rgb_422.
[vo/opengl] 16 bit texture depth: 16.
[vo/opengl] Testing FBO format 0x805b
[vo/opengl] Create FBO: 16x16 (16x16)
[vo/opengl] Using FBO format 0x805b.
[vo/opengl] No advanced processing required. Enabling dumb mode.
[vo/opengl] Assuming 60.000002 FPS for display sync.
[vd] Container reported FPS: 24.000000
[vd] Codec list:
[vd] h264 - H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10
[vd] h264_vda (h264) - H.264 (VDA acceleration)
[vd] Opening video decoder h264
[vd] Using software decoding.
[vd] Detected 8 logical cores.
[vd] Requesting 9 threads for decoding.
[vd] Selected video codec: h264 (H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10)
[cplayer] Starting playback...
[ffmpeg/video] h264: Reinit context to 1280x720, pix_fmt: yuv420p
[ffmpeg/video] h264: Increasing reorder buffer to 1
[vd] Decoder format: 1280x720 [0:1] yuv420p bt.709/bt.709/bt.1886/limited CL=unknown
[vf] Video filter chain:
[vf] [in] 1280x720 yuv420p bt.709/bt.709/bt.1886/limited CL=unknown
[vf] [out] 1280x720 yuv420p bt.709/bt.709/bt.1886/limited CL=unknown
[cplayer] VO: [opengl] 1280x720 yuv420p
[cplayer] VO: Description: Extended OpenGL Renderer
[vo/opengl] Resize: 1280x720
[vo/opengl] Window size: 1280x720
[vo/opengl] Video source: 1280x720 (1:1)
[vo/opengl] Video display: (0, 0) 1280x720 -> (0, 0) 1280x720
[vo/opengl] Video scale: 1.000000/1.000000
[vo/opengl] OSD borders: l=0 t=0 r=0 b=0
[vo/opengl] Video borders: l=0 t=0 r=0 b=0
[vo/opengl] Testing FBO format 0x805b
[vo/opengl] Create FBO: 16x16 (16x16)
[vo/opengl] Using FBO format 0x805b.
[vo/opengl] No advanced processing required. Enabling dumb mode.
[vo/opengl] Texture for plane 0: 1280x720
[vo/opengl] Texture for plane 1: 640x360
[vo/opengl] Texture for plane 2: 640x360
[vo/opengl] Resize: 1280x720
[cplayer] set video colors output-levels=0
[vo/opengl] Window size: 1280x720
[vo/opengl] Video source: 1280x720 (1:1)
[vo/opengl] Video display: (0, 0) 1280x720 -> (0, 0) 1280x720
[vo/opengl] Video scale: 1.000000/1.000000
[vo/opengl] OSD borders: l=0 t=0 r=0 b=0
[vo/opengl] Video borders: l=0 t=0 r=0 b=0
[vo/opengl] new shader program:
[vo/opengl] [ 1] color.r = 1.000000 * vec4(texture(texture0, texcoord0)).r;
[vo/opengl] [ 2] color.g = 1.000000 * vec4(texture(texture1, texcoord1)).r;
[vo/opengl] [ 3] color.b = 1.000000 * vec4(texture(texture2, texcoord2)).r;
[vo/opengl] [ 4] // color conversion
[vo/opengl] [ 5] color = color.rgba;
[vo/opengl] [ 6] color.rgb = mat3(colormatrix) * color.rgb + colormatrix_c;
[vo/opengl] [ 7] color.a = 1.0;
[vo/opengl] [ 8] // color mapping
[vo/opengl] shader link log (status=1): WARNING: Output of vertex shader 'texcoord5' not read by fragment shader
[vo/opengl] WARNING: Output of vertex shader 'texcoord3' not read by fragment shader
[vo/opengl] WARNING: Output of vertex shader 'texcoord4' not read by fragment shader
[vo/opengl]
[osd/libass] fontselect: (sans-serif, 400, 0) -> /System/Library/Fonts/Helvetica.dfont, -1, Helvetica
[cplayer] first video frame after restart shown
[cplayer] playback restart complete
[cplayer] Run command: script-binding, flags=9, args=[test/test]
[test] window-scale 1: 1.000000
[vo/opengl] Resize: 1920x1080
[vo/opengl] Window size: 1920x1080
[cplayer] Set property: fullscreen="yes" -> 1
[vo/opengl] Video source: 1280x720 (1:1)
[vo/opengl] Video display: (0, 0) 1280x720 -> (0, 0) 1920x1080
[vo/opengl] Video scale: 1.500000/1.500000
[vo/opengl] OSD borders: l=0 t=0 r=0 b=0
[vo/opengl] Video borders: l=0 t=0 r=0 b=0
[vo/opengl] Resize: 1920x1080
[vo/opengl] Window size: 1920x1080
[vo/opengl] Video source: 1280x720 (1:1)
[test] window-scale 2: 1.500000
[vo/opengl] Video display: (0, 0) 1280x720 -> (0, 0) 1920x1080
[vo/opengl] Video scale: 1.500000/1.500000
[cplayer] Run command: script-binding, flags=9, args=[test/test]
[vo/opengl] OSD borders: l=0 t=0 r=0 b=0
[vo/opengl] Video borders: l=0 t=0 r=0 b=0
[vo/opengl] Resize: 1920x1080
[vo/opengl] Window size: 1920x1080
[vo/opengl] Video source: 1280x720 (1:1)
[vo/opengl] Video display: (0, 0) 1280x720 -> (0, 0) 1920x1080
[vo/opengl] Video scale: 1.500000/1.500000
[vo/opengl] OSD borders: l=0 t=0 r=0 b=0
[test] observed: 1.5
[vo/opengl] Video borders: l=0 t=0 r=0 b=0
[lavf] EOF reached.
[cplayer] using demuxer frame duration for last frame
[test] window-scale 3: 1.000000
[cplayer] Run command: quit, flags=9, args=[0]
[cplayer] EOF code: 6
[vd] Uninit video.
[cplayer] finished playback, success (reason 3)
[cplayer]
[cplayer]
[cplayer] Exiting... (Quit)
[osx] Exiting...
[test] Exiting...
[ytdl_hook] Exiting...
[osc] Exiting...
[vo/opengl] flushing shader cache
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment