{"action":"created","issue":{"url":"https://api.github.com/repos/mpv-player/mpv/issues/4699","repository_url":"https://api.github.com/repos/mpv-player/mpv","labels_url":"https://api.github.com/repos/mpv-player/mpv/issues/4699/labels{/name}","comments_url":"https://api.github.com/repos/mpv-player/mpv/issues/4699/comments","events_url":"https://api.github.com/repos/mpv-player/mpv/issues/4699/events","html_url":"https://github.com/mpv-player/mpv/issues/4699","id":246871180,"number":4699,"title":"vo_opengl: Assertion failure with --vd-lavc-dr + vf=separatefields","user":{"login":"sfan5","id":1042418,"avatar_url":"https://avatars1.githubusercontent.com/u/1042418?v=4","gravatar_id":"","url":"https://api.github.com/users/sfan5","html_url":"https://github.com/sfan5","followers_url":"https://api.github.com/users/sfan5/followers","following_url":"https://api.github.com/users/sfan5/following{/other_user}","gists_url":"https://api.github.com/users/sfan5/gists{/gist_id}","starred_url":"https://api.github.com/users/sfan5/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sfan5/subscriptions","organizations_url":"https://api.github.com/users/sfan5/orgs","repos_url":"https://api.github.com/users/sfan5/repos","events_url":"https://api.github.com/users/sfan5/events{/privacy}","received_events_url":"https://api.github.com/users/sfan5/received_events","type":"User","site_admin":false},"labels":[{"id":29016468,"url":"https://api.github.com/repos/mpv-player/mpv/labels/ffmpeg-bug","name":"ffmpeg-bug","color":"444444","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-07-31T20:17:23Z","updated_at":"2017-08-09T08:55:35Z","closed_at":null,"body":"### mpv version and platform\r\n\r\n0.26.0-60-g12ee13101b\r\non Arch Linux x86_64\r\n\r\n### Reproduction steps\r\n\r\n`mpv --no-config --vd-lavc-dr -vf separatefields -v whatever.m4v`\r\nAssertion failure happens on exit (press `q`)\r\n\r\n### Log file\r\n\r\n```\r\n[cplayer] Command line options: '--no-config' '--vd-lavc-dr' '-vf' 'separatefields' '-v' 'whatever.m4v'\r\n[cplayer] mpv 0.26.0-60-g12ee13101b (C) 2000-2017 mpv/MPlayer/mplayer2 projects\r\n[cplayer]  built on Mon Jul 31 22:12:46 CEST 2017\r\n[cplayer] ffmpeg library versions:\r\n[cplayer]    libavutil       55.69.100\r\n[cplayer]    libavcodec      57.102.100\r\n[cplayer]    libavformat     57.76.100\r\n[cplayer]    libswscale      4.7.101\r\n[cplayer]    libavfilter     6.95.100\r\n[cplayer]    libswresample   2.8.100\r\n[cplayer] ffmpeg version: N-86868-g5d0b69f3b7\r\n[cplayer] \r\n[cplayer] Configuration: ./waf configure --prefix=/usr --confdir=/etc/mpv --enable-zsh-comp --enable-libmpv-shared --enable-dvdread --enable-dvdnav --enable-cdda --enable-libsmbclient --lua=52arch --enable-dvbin\r\n[cplayer] List of enabled features: 52arch alsa asm atomics avutil-content-light-level avutil-imgcpy-uc build-date cdda cplayer cplugins cuda-hwaccel debug-build drm dvbin dvdnav dvdread dvdread-common egl-drm egl-helpers egl-x11 encoding fchmod gbm gbm.h gl gl-wayland gl-x11 glibc-thread-name gnuc iconv is_ffmpeg jack jpeg lcms2 libass libass-osd libav libavcodec libavdevice libbluray libdl libm libmpv-shared librt libsmbclient linux-fstatfs lua nanosleep optimize oss-audio plain-gl posix posix-or-mingw posix-spawn pthreads pulse shm stdatomic termios vaapi vaapi-drm vaapi-egl vaapi-glx vaapi-hwaccel vaapi-wayland vaapi-x-egl vaapi-x11 vapoursynth vapoursynth-core vapoursynth-lazy vdpau vdpau-gl-x11 vdpau-hwaccel vt.h wayland x11 xv zlib zsh-comp\r\n[global] config path: '' -> '-'\r\n[cplayer] Setting option 'config' = 'no' (flags = 8)\r\n[cplayer] Setting option 'vd-lavc-dr' = '' (flags = 8)\r\n[cplayer] Setting option 'vf' = 'separatefields' (flags = 8)\r\n[cplayer] Setting option 'v' = '' (flags = 8)\r\n[osc] Loading lua script @osc.lua...\r\n[osc] loading mp.defaults\r\n[osc] loading @osc.lua\r\n[osc] lua-settings/osc.conf not found. \r\n[cplayer] Run command: define-section, flags=0, args=[showhide, mouse_move script-binding osc/__keybinding1\r\n[cplayer] mouse_leave script-binding osc/__keybinding2\r\n[cplayer] , force]\r\n[cplayer] Run command: enable-section, flags=0, args=[showhide, allow-hide-cursor+allow-vo-dragging]\r\n[cplayer] Run command: define-section, flags=0, args=[input, mouse_btn0 script-binding osc/__keybinding3\r\n[cplayer] shift+mouse_btn0 script-binding osc/__keybinding4\r\n[cplayer] mouse_btn2 script-binding osc/__keybinding5\r\n[cplayer] mouse_btn3 script-binding osc/__keybinding6\r\n[cplayer] mouse_btn4 script-binding osc/__keybinding7\r\n[cplayer] axis_up script-binding osc/__keybinding8\r\n[cplayer] axis_down script-binding osc/__keybinding9\r\n[cplayer] mouse_btn0_dbl ignore\r\n[cplayer] shift+mouse_btn0_dbl ignore\r\n[cplayer] mouse_btn2_dbl ignore\r\n[cplayer] , force]\r\n[cplayer] Run command: enable-section, flags=0, args=[input, ]\r\n[cplayer] Run command: define-section, flags=0, args=[input_osc, del script-binding osc/__keybinding10\r\n[cplayer] , default]\r\n[cplayer] Run command: enable-section, flags=0, args=[input_osc, allow-hide-cursor+allow-vo-dragging]\r\n[cplayer] Run command: define-section, flags=0, args=[input_forced_osc, , force]\r\n[cplayer] Run command: enable-section, flags=0, args=[input_forced_osc, allow-hide-cursor+allow-vo-dragging]\r\n[cplayer] Done loading @osc.lua.\r\n[ytdl_hook] Loading lua script @ytdl_hook.lua...\r\n[cplayer] Run command: disable-section, flags=0, args=[input]\r\n[osd/libass] Shaper: FriBidi 0.19.7 (SIMPLE) HarfBuzz-ng 1.4.7 (COMPLEX)\r\n[osd/libass] Setting up fonts...\r\n[ytdl_hook] loading mp.defaults\r\n[ytdl_hook] loading @ytdl_hook.lua\r\n[ytdl_hook] lua-settings/ytdl_hook.conf not found. \r\n[cplayer] Run command: hook-add, flags=0, args=[on_load, 1, 10]\r\n[cplayer] Run command: hook-add, flags=0, args=[on_preloaded, 2, 10]\r\n[cplayer] Done loading @ytdl_hook.lua.\r\n[global] config path: 'watch_later' -> '-'\r\n[global] config path: 'watch_later' -> '-'\r\n[cplayer] Playing: whatever.m4v\r\n[cplayer] Running hook: ytdl_hook/on_load\r\n[osd/libass] Using font provider fontconfig\r\n[osd/libass] Done.\r\n[cplayer] Run command: hook-ack, flags=0, args=[on_load]\r\n[ifo] Opening whatever.m4v\r\n[ifo_dvdnav] Opening whatever.m4v\r\n[bdmv/bluray] Opening whatever.m4v\r\n[file] Opening whatever.m4v\r\n[file] Stream opened successfully.\r\n[demux] Trying demuxers for level=normal.\r\n[lavf] Found 'mov,mp4,m4a,3gp,3g2,mj2' at score=100 size=2048.\r\n[demux] Detected file format: mov,mp4,m4a,3gp,3g2,mj2 (libavformat)\r\n[cplayer] Opening done: whatever.m4v\r\n[find_files] Loading external files in .\r\n[cplayer] Running hook: ytdl_hook/on_preloaded\r\n[cplayer] Run command: hook-ack, flags=0, args=[on_preloaded]\r\n[cplayer]  (+) Video --vid=1 (*) (h264 1920x1080 23.976fps)\r\n[cplayer]  (+) Audio --aid=1 --alang=und (*) (aac 2ch 44100Hz)\r\n[display-tags] File tags:\r\n[display-tags]  Artist: robcantor\r\n[display-tags]  Title: \"Shia LaBeouf\" Live - Rob Cantor\r\n[vo/opengl] Initializing OpenGL backend 'x11probe'\r\n[vo/opengl/x11] X11 opening display: :1.0\r\n[vo/opengl/x11] X11 running at 3840x1080 (\":1.0\" => local display)\r\n[vo/opengl/x11] Detected wm supports NetWM.\r\n[vo/opengl/x11] Detected wm supports ABOVE state.\r\n[vo/opengl/x11] Detected wm supports BELOW state.\r\n[vo/opengl/x11] Detected wm supports FULLSCREEN state.\r\n[vo/opengl/x11] Display 0 (HDMI-0): [1920, 0, 3840, 1080] @ 60.000000 FPS\r\n[vo/opengl/x11] Display 1 (DVI-D-0): [0, 0, 1920, 1080] @ 60.000000 FPS\r\n[vo/opengl/x11] Current display FPS: 60.000000\r\n[vo/opengl] GLX chose FB config with ID 0xad\r\n[vo/opengl] GLX chose visual with ID 0x27\r\n[vo/opengl] Creating OpenGL 4.4 context...\r\n[vo/opengl] GL_VERSION='4.4.0 NVIDIA 381.22'\r\n[vo/opengl] Detected desktop OpenGL 4.4.\r\n[vo/opengl] GL_VENDOR='NVIDIA Corporation'\r\n[vo/opengl] GL_RENDERER='GeForce GTX 950/PCIe/SSE2'\r\n[vo/opengl] GL_SHADING_LANGUAGE_VERSION='4.40 NVIDIA via Cg compiler'\r\n[vo/opengl] Loaded extension GLX_SGI_swap_control.\r\n[vo/opengl] Loaded extension GLX_SGI_video_sync.\r\n[vo/opengl] Loaded extension GL_NV_vdpau_interop.\r\n[vo/opengl] 16 bit texture depth: 16.\r\n[vo/opengl] Testing FBO format 0x805b\r\n[vo/opengl] Create FBO: 16x16 (16x16)\r\n[vo/opengl] Using FBO format 0x805b.\r\n[vo/opengl] No advanced processing required. Enabling dumb mode.\r\n[vo/opengl] Assuming 60.000000 FPS for display sync.\r\n[vd] Container reported FPS: 23.976025\r\n[vd] Codec list:\r\n[vd]     h264 - H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10\r\n[vd]     h264_cuvid (h264) - Nvidia CUVID H264 decoder\r\n[vd] Opening video decoder h264\r\n[vd] Using software decoding.\r\n[vd] Detected 4 logical cores.\r\n[vd] Requesting 5 threads for decoding.\r\n[vd] Selected video codec: h264 (H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10)\r\n[vf] Opening video filter: [separatefields]\r\n[ad] Codec list:\r\n[ad]     aac - AAC (Advanced Audio Coding)\r\n[ad]     aac_fixed (aac) - AAC (Advanced Audio Coding)\r\n[ad]     libfdk_aac (aac) - Fraunhofer FDK AAC\r\n[ad] Opening audio decoder aac\r\n[ad] Requesting 1 threads for decoding.\r\n[ad] Selected audio codec: aac (AAC (Advanced Audio Coding))\r\n[cplayer] Starting playback...\r\n[af] Audio filter chain:\r\n[af]   [in] 44100Hz stereo 2ch floatp\r\n[af]   [out] 44100Hz stereo 2ch floatp\r\n[af]   [ao] 44100Hz stereo 2ch floatp\r\n[ao] Trying audio driver 'pulse'\r\n[ao/pulse] requested format: 44100 Hz, stereo channels, floatp\r\n[ao/pulse] Library version: 10.0.0\r\n[ao/pulse] Proto: 32\r\n[ao/pulse] Server proto: 4294967295\r\n[ao/pulse] Channel layouts:\r\n[ao/pulse]  - #fl\r\n[ao/pulse]  - #fr\r\n[ao/pulse]  - #fc\r\n[ao/pulse]  - #lfe\r\n[ao/pulse]  - #bl\r\n[ao/pulse]  - #br\r\n[ao/pulse]  - #flc\r\n[ao/pulse]  - #frc\r\n[ao/pulse]  - #bc\r\n[ao/pulse]  - #sl\r\n[ao/pulse]  - #sr\r\n[ao/pulse]  - #tc\r\n[ao/pulse]  - #tfl\r\n[ao/pulse]  - #tfc\r\n[ao/pulse]  - #tfr\r\n[ao/pulse]  - #tbl\r\n[ao/pulse]  - #tbc\r\n[ao/pulse]  - #tbr\r\n[ao/pulse] result: stereo\r\n[ao/pulse] device buffer: 5513 samples.\r\n[ao/pulse] using soft-buffer of 8820 samples.\r\n[cplayer] AO: [pulse] 44100Hz stereo 2ch float\r\n[cplayer] AO: Description: PulseAudio audio output\r\n[af] Adding filter lavrresample \r\n[af] Audio filter chain:\r\n[af]   [in] 44100Hz stereo 2ch floatp\r\n[af]   [lavrresample] 44100Hz stereo 2ch float [a]\r\n[af]   [out] 44100Hz stereo 2ch float\r\n[af]   [ao] 44100Hz stereo 2ch float\r\n[ffmpeg/video] h264: Reinit context to 1920x1088, pix_fmt: yuv420p\r\n[vd] DR parameter change to 1920x1090 yuv420p align=32\r\n[vd] Allocating new DR image...\r\n[vd] Allocating new DR image...\r\n[vd] Allocating new DR image...\r\n[vd] Allocating new DR image...\r\n[vd] Allocating new DR image...\r\n[vd] Allocating new DR image...\r\n[vd] Decoder format: 1920x1080 yuv420p auto/auto/auto/auto CL=mpeg2/4/h264\r\n[ffmpeg] src: w:1920 h:1080 pixfmt:yuv420p tb:1/1000000 fr:0/1 sar:1/1 sws_param:\r\n[vf] Video filter chain:\r\n[vf]   [in] 1920x1080 yuv420p bt.709/bt.709/bt.1886/limited SP=1.000000 CL=mpeg2/4/h264\r\n[vf]   [separatefields (lavfi)] \"separatefields.00\" 1920x540 yuv420p bt.709/bt.709/bt.1886/limited SP=1.000000 CL=mpeg2/4/h264\r\n[vf]   [out] 1920x540 yuv420p bt.709/bt.709/bt.1886/limited SP=1.000000 CL=mpeg2/4/h264\r\n[cplayer] VO: [opengl] 1920x540 yuv420p\r\n[cplayer] VO: Description: Extended OpenGL Renderer\r\n[vo/opengl] Resize: 1918x540\r\n[vo/opengl] Window size: 1918x540\r\n[vo/opengl] Video source: 1920x540 (1:1)\r\n[vo/opengl] Video display: (0, 0) 1920x540 -> (0, 0) 1918x539\r\n[vo/opengl] Video scale: 0.998958/0.998148\r\n[vo/opengl] OSD borders: l=0 t=0 r=0 b=1\r\n[vo/opengl] Video borders: l=0 t=0 r=0 b=1\r\n[vo/opengl] Testing FBO format 0x805b\r\n[vo/opengl] Create FBO: 16x16 (16x16)\r\n[vo/opengl] Using FBO format 0x805b.\r\n[vo/opengl] No advanced processing required. Enabling dumb mode.\r\n[vo/opengl] Texture for plane 0: 1920x540\r\n[vo/opengl] Texture for plane 1: 960x270\r\n[vo/opengl] Texture for plane 2: 960x270\r\n[cplayer] set video colors output-levels=0 \r\n[vo/opengl] Reported display depth: 8\r\n[vo/opengl] DR enabled: yes\r\n[vo/opengl] new shader program:\r\n[vo/opengl] [  1] color.r = 1.000000 * vec4(texture(texture0, texcoord0)).r;\r\n[vo/opengl] [  2] color.g = 1.000000 * vec4(texture(texture1, texcoord1)).r;\r\n[vo/opengl] [  3] color.b = 1.000000 * vec4(texture(texture2, texcoord2)).r;\r\n[vo/opengl] [  4] color = color.rgbr;\r\n[vo/opengl] [  5] color.rgb = mat3(colormatrix) * color.rgb + colormatrix_c;\r\n[vo/opengl] [  6] color.a = 1.0;\r\n[vo/opengl] [  7] // color mapping\r\n[osd/libass] fontselect: (sans-serif, 400, 0) -> /usr/share/fonts/TTF/DejaVuSans.ttf, 0, DejaVuSans\r\n[cplayer] first video frame after restart shown\r\n[cplayer] starting audio playback\r\n[cplayer] playback restart complete\r\n[vd] Allocating new DR image...\r\n[vo/opengl/x11] Disabling screensaver.\r\n[vd] Allocating new DR image...\r\n[statusline] AV: 00:00:00 / 00:03:27 (0%) A-V:  0.000\r\n[statusline] AV: 00:00:00 / 00:03:27 (0%) A-V:  0.000\r\n[vd] Allocating new DR image...\r\n[statusline] AV: 00:00:00 / 00:03:27 (0%) A-V:  0.000\r\n[statusline] AV: 00:00:00 / 00:03:27 (0%) A-V:  0.000\r\n[statusline] AV: 00:00:00 / 00:03:27 (0%) A-V:  0.000\r\n[statusline] AV: 00:00:00 / 00:03:27 (0%) A-V:  0.000\r\n[statusline] AV: 00:00:00 / 00:03:27 (0%) A-V:  0.000\r\n[vd] Allocating new DR image...\r\n[statusline] AV: 00:00:00 / 00:03:27 (0%) A-V:  0.000\r\n[statusline] AV: 00:00:00 / 00:03:27 (0%) A-V:  0.000\r\n[statusline] AV: 00:00:00 / 00:03:27 (0%) A-V:  0.000\r\n[statusline] AV: 00:00:00 / 00:03:27 (0%) A-V:  0.000\r\n[statusline] AV: 00:00:00 / 00:03:27 (0%) A-V:  0.000\r\n[statusline] AV: 00:00:00 / 00:03:27 (0%) A-V:  0.000\r\n[statusline] AV: 00:00:00 / 00:03:27 (0%) A-V:  0.000\r\n[statusline] AV: 00:00:00 / 00:03:27 (0%) A-V:  0.000\r\n[statusline] AV: 00:00:00 / 00:03:27 (0%) A-V:  0.000\r\n[statusline] AV: 00:00:00 / 00:03:27 (0%) A-V:  0.000\r\n[statusline] AV: 00:00:00 / 00:03:27 (0%) A-V:  0.000\r\n[statusline] AV: 00:00:00 / 00:03:27 (0%) A-V:  0.000\r\n[statusline] AV: 00:00:00 / 00:03:27 (0%) A-V:  0.000\r\n[statusline] AV: 00:00:00 / 00:03:27 (0%) A-V:  0.000\r\n[cplayer] Run command: quit, flags=9, args=[0]\r\n[cplayer] Run command: add, flags=9, args=[panscan, -0.100000]\r\n[vo/opengl] Resize: 1918x540\r\n[vo/opengl] Window size: 1918x540\r\n[vo/opengl] Video source: 1920x540 (1:1)\r\n[vo/opengl] Video display: (0, 0) 1920x540 -> (0, 0) 1918x539\r\n[vo/opengl] Video scale: 0.998958/0.998148\r\n[vo/opengl] OSD borders: l=0 t=0 r=0 b=1\r\n[vo/opengl] Video borders: l=0 t=0 r=0 b=1\r\n[cplayer] Set property: panscan -> 1\r\n[cplayer] EOF code: 6  \r\n[vo/opengl/x11] Enabling screensaver.\r\n[ad] Uninit audio decoder.\r\n[af] Removing filter lavrresample \r\n[ffmpeg] src: w:1920 h:1080 pixfmt:yuv420p tb:1/1000000 fr:0/1 sar:1/1 sws_param:\r\n[vd] Uninit video.\r\n[cplayer] finished playback, success (reason 3)\r\n[cplayer] \r\n[cplayer] \r\n[cplayer] Exiting... (Quit)\r\n[ytdl_hook] Exiting...\r\n[osc] Exiting...\r\n[ao/pulse] draining...\r\n[vo/opengl] flushing shader cache\r\nmpv: ../video/out/opengl/video.c:3609: gl_video_uninit: Assertion `!p->num_dr_buffers' failed.\r\n```"},"comment":{"url":"https://api.github.com/repos/mpv-player/mpv/issues/comments/321195807","html_url":"https://github.com/mpv-player/mpv/issues/4699#issuecomment-321195807","issue_url":"https://api.github.com/repos/mpv-player/mpv/issues/4699","id":321195807,"user":{"login":"haasn","id":1149047,"avatar_url":"https://avatars0.githubusercontent.com/u/1149047?v=4","gravatar_id":"","url":"https://api.github.com/users/haasn","html_url":"https://github.com/haasn","followers_url":"https://api.github.com/users/haasn/followers","following_url":"https://api.github.com/users/haasn/following{/other_user}","gists_url":"https://api.github.com/users/haasn/gists{/gist_id}","starred_url":"https://api.github.com/users/haasn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/haasn/subscriptions","organizations_url":"https://api.github.com/users/haasn/orgs","repos_url":"https://api.github.com/users/haasn/repos","events_url":"https://api.github.com/users/haasn/events{/privacy}","received_events_url":"https://api.github.com/users/haasn/received_events","type":"User","site_admin":false},"created_at":"2017-08-09T08:55:35Z","updated_at":"2017-08-09T08:55:35Z","body":"Fixed in FFmpeg"}}
{"actor":{"display_login":"haasn"}}