mpv-player / mpv

🎥 Command line video player
https://mpv.io
Other
28.61k stars 2.92k forks source link

60FPS Frame Interpolation Problem #2049

Closed lubuntulux closed 9 years ago

lubuntulux commented 9 years ago

Hi there!

I have recently stumbled upon mpv's frame interpolation functionality and cannot seem to make it work. http://www.reddit.com/r/linux/comments/2u3bpw/mpv_ver_073_can_interpolate_videos_to_60fps/ https://launchpad.net/~mc3man/+archive/ubuntu/mpv-tests

My setup: Lubuntu 14.04 , nvidia-352 xorg, GTX 750 TI, i3 4330, compiz and 42" Bravia TV Mpv (ffmpeg version), ffmpeg and x264 have been downloaded from mc3man's ppa as instructed by the post.

I have also used every code variation suggested by the OP and other members, both in the mpv.conf and directly from the terminal with -- .

For example:

vo=opengl:smoothmotion:smoothmotion-threshold=0.0 hwdec=no display-fps=60

I constantly get the following mpv output when I run it:

"[vo/opengl] Warning: option smoothmotion was replaced with interpolation and might be removed in the future. [vo/opengl] Warning: option smoothmotion-threshold was replaced with tscale-param1 and might be removed in the future."

I generally cannot detect a difference in image behavior with the interpolation option on/off.

I have also tried disabling composite.

Could I be missing some packages or depdencies, necessary for mpv to function properly? It's really frustrating since a lot of people seem to have been able to set it up.

Hopefully someone can help me out.

http://textuploader.com/wqxh

Regards

ghost commented 9 years ago

I'm not immediately sure what could have gone wrong.

CC @haasn

haasn commented 9 years ago

Holy shit that reddit thread is full of misinformation.

[vo/opengl] Warning: option smoothmotion was replaced with interpolation and might be removed in the future.

Well yes, “smoothmotion” doesn't exist anymore.

I generally cannot detect a difference in image behavior with the interpolation option on/off.

You could try posting a log with mpv -v --msg-level=vo=debug. Apart from that, there's nothing I can do to help you without knowing more specifics.

Could I be missing some packages or depdencies, necessary for mpv to function properly?

No, it requires no external dependencies.

lubuntulux commented 9 years ago

@haasn : thanks for the quick reply, here's the log:

jackson@jackson:~$ mpv -v --msg-level=vo=debug [cplayer] Command line options: '-v' '--msg-level=vo=debug' [cplayer] mpv git-f72028d (C) 2000-2015 mpv/MPlayer/mplayer2 projects [cplayer] built on 2015-06-09T04:39:21 [cplayer] ffmpeg library versions: [cplayer] libavutil 54.27.100 [cplayer] libavcodec 56.41.101 [cplayer] libavformat 56.34.100 [cplayer] libswscale 3.1.101 [cplayer] libavfilter 5.16.101 [cplayer] libswresample 1.2.100 [cplayer] [cplayer] Configuration: ./waf configure --enable-cdda --enable-pdf-build --prefix=/usr --confdir=/etc/mpv [cplayer] List of enabled features: alsa asm atomic-builtins atomics audio-input av-pix-fmt-mmal avcodec-chroma-pos-api avframe-metadata avframe-skip-samples build-date cdda cplayer debug-build dlopen drm dvbin dvdnav dvdread enca encoding fchmod gl gl-x11 glibc-thread-name glob iconv jack jpeg ladspa lcms2 libass libass-osd libav libavdevice libavfilter libbluray libbs2b libdl libguess libm librt libsmbclient libswresample libv4l2 linux-fstatfs lua nanosleep optimize oss-audio oss-audio-native posix posix-or-mingw posix-spawn pthreads pulse pvr resampler rubberband shm subprocess termios tv tv-v4l2 vaapi vaapi-glx vaapi-hwaccel vaapi-vpp vdpau vdpau-gl-x11 vdpau-hwaccel videodev vt.h x11 xext xinerama xrandr xss xv zlib [global] config path: '' -> '/home/jackson/.config/mpv' [global] config path: 'mpv.conf' -> '/home/jackson/.config/mpv/mpv.conf' [global] config path: 'config' -/-> '/home/jackson/.config/mpv/config' [global] config path: 'mpv.conf' -/-> '/home/jackson/.mpv/mpv.conf' [global] config path: 'config' -/-> '/home/jackson/.mpv/config' [global] config path: 'mpv.conf' -/-> '/etc/mpv/mpv.conf' [global] config path: 'config' -/-> '/etc/mpv/config' [cplayer] Reading config file /home/jackson/.config/mpv/mpv.conf [cplayer] Setting option 'vo' = 'opengl:smoothmotion:smoothmotion-threshold=0.0' (flags = 4) [cplayer] Warning: option smoothmotion was replaced with interpolation and might be removed in the future. [cplayer] Warning: option smoothmotion-threshold was replaced with tscale-param1 and might be removed in the future. [cplayer] Setting option 'hwdec' = 'no' (flags = 4) [cplayer] Setting option 'display-fps' = '60' (flags = 4) [cplayer] Setting option 'v' = '' (flags = 8) [cplayer] Setting option 'msg-level' = 'vo=debug' (flags = 8) [cplayer] mpv git-f72028d (C) 2000-2015 mpv/MPlayer/mplayer2 projects [cplayer] built on 2015-06-09T04:39:21 [cplayer] ffmpeg library versions: [cplayer] libavutil 54.27.100 [cplayer] libavcodec 56.41.101 [cplayer] libavformat 56.34.100 [cplayer] libswscale 3.1.101 [cplayer] libavfilter 5.16.101 [cplayer] libswresample 1.2.100 [cplayer] [cplayer] Usage: mpv [options] [url|path/]filename [cplayer] [cplayer] Basic options: [cplayer] --start=

haasn commented 9 years ago

What I meant was: You need to use those options while actually playing back a file.

lubuntulux commented 9 years ago

Here's the log of a 1080p mkv: http://textuploader.com/n3cb

haasn commented 9 years ago

Seems like it was working fine, at least until you paused.

lubuntulux commented 9 years ago

Can I use the debug command in conjunction with an interpolation parameter, in order for you review that log as well? Is it possible for you to determine anything from the previous log, in terms of why interpolation isn't working?

lubuntulux commented 9 years ago

Could it actually be, that interpolation is working, while my understanding of the process and subsequent image result and behavior is simply flawed?

I am comparing the output and "smoothness" to SVP on windows.

When using the interpolation command, the image is clear and smooth, as if I had turned down the refresh rate of my monitor to 24hz, in order to match the fps of the mkv, which is what I normally do on Linux. My monitor is set to 60hz, though. I should also note, that the image looks exactly the same, when not using the interpolation command.

However, it certainly does not seem to have achieved the level of smoothness one would expect from 60FPS video, regarding SVP etc.

Argon- commented 9 years ago

SVP and mpv's interpolation are not the same thing: https://github.com/mpv-player/mpv/wiki/Interpolation So comparing them is not really useful.

lubuntulux commented 9 years ago

Thank you for that link.

I understand, that it does not use the same interpolation process as SVP, hence producing a different image and behavior, however it still does not look anything like 60FPS video.

What else can I do to figure out this problem? I have read that people downgraded mesa in order to run mpv's frame interpolation properly. Could it be a problem with my kernel or version of Ubuntu?

I am quite stranded here.

lubuntulux commented 9 years ago

@haasn: Hab grad gesehen dass du ein Deutscher bist.:-) Du scheinst mir wirklich Ahnung von der Materie zu haben, und ich möchte es mir einfach nicht antun im unfreundlichen ubuntu DE Forum nach der Antwort zu betteln.

Fällt dir nichts mehr ein?

haasn commented 9 years ago

the image is clear and smooth, as if I had turned down the refresh rate of my monitor to 24hz

Sounds like it's working as intended then.

lubuntulux commented 9 years ago

Yes, but the image looks exactly the same when I do not enter any interpolation parameters, which leads me to believe, that it isn't working as intended.

What else could I check for? Any other logs or data to provide?

haasn commented 9 years ago

You are playing back a 24 Hz file on a 60 Hz monitor with interpolation turned off and it looks just as smooth?

lubuntulux commented 9 years ago

Yes, exactly the same.

When I just enter mpv /file path it looks the same as mpv --vo=opengl-hq:interpolation /file path. (If not slightly better).

lubuntulux commented 9 years ago

The image actually seems slightly smoother and displays less judder when I don't use any interpolation options.

Without interpolation options, it is as if I had turned down my monitor's refresh rate to 24hz, in order to match the file's fps, which is what I normally do with other players, so I know what it looks like.

When I turn it on, there is clear judder and lagging during panning shots and fast scenes, which does not occur when disabled.

ghost commented 9 years ago

The image actually seems slightly smoother and displays less judder when I don't use any interpolation options.

Maybe your GPU is too slow.

lubuntulux commented 9 years ago

I strongly doubt that, seeing as I use a GTX750TI. My CPU (i3 4330 Dual Core) usage stays below 10% and GPU usage below 7% when interpolation options are added. The process is not initiated, and I simply cannot figure out why.

You have advised another member to verify whether vsynch might be occupied by compiz and hence unobtainable for mpv to use. I have SynchToVBlank enabled both in my Nvidia-Settings and Compiz, and will try to turn it off in the latter.
I have also edited my xorg.conf in order to enable Performance Mode and TripleBuffering. I will try to disable those as well.

Edit: DIsabling SynchtoVBlank or Composite and OpenGl settings in compiz did not help. Also disabling Triplebuffering and performance mode had no effect.

Do you have any other ideas?

lubuntulux commented 9 years ago

Here the output when I add an interpolation option: Interpolation isn't even mentioned.

jackson@jackson:~$ mpv --vo=opengl-hq:interpolation /media/jackson/b7d573e4-b6f9-42a9-bf71-1c9935c57738/abc.mkv Playing: /media/jackson/b7d573e4-b6f9-42a9-bf71-1c9935c57738/abc.mkv (+) Video --vid=1 (h264) (+) Audio --aid=1 --alang=ger () (ac3) Audio --aid=2 --alang=eng (dts) (+) Subs --sid=1 --slang=ger () (sub) AO: [pulse] 48000Hz 5.1(side) 6ch float VO: [opengl-hq] 1920x800 yuv420p AV: 00:00:49 / 01:41:35 (0%) A-V: 0.000

lubuntulux commented 9 years ago

This guy seemed to have the exact same problem and hardware. https://github.com/mpv-player/mpv/issues/1645

He stated, that he solved the problem with " vaapi-copy+opengl" and later on the 0.8.2 version of mpv. (What does he mean by that?)

Quote: "i managed to test another system, it is an i3-3110M with an intel HD4000 on board. While it confirmed my old findings (vdpau+opengl:smoothmotion not working), i managed to try vaapi-copy+opengl and there smoothmotion worked (even with the hq preset), while it failed on vaapi+opengl"

He also mentioned an additional parameter "speed", that made my video look exactly like 60FPS, without any skipped frames, judder or lag at all. --hwdec=vdpau --vo=opengl:smoothmotion --speed=2

haasn commented 9 years ago

You are not even using hwdec, so I highly doubt it's the same problem.

ghost commented 9 years ago

If you play a video with mpv --no-config --speed=3 file.mkv (this is with interpolation disabled), do you see any framedrops?

lubuntulux commented 9 years ago

@haasn: I have tried all variations, including hardware acceleration on/off.

@wm4: with mpv --no-config --speed=3 file.mkv the image looks 100% smooth, without a single dropped frame or judder. It seems interpolated and exactly like 60FPS. (Obviously, sound and video are still accelerated, though) The same occurs with speed 2, while again no frame skipping, dropping or judder.

jackson@jackson:~$ mpv --no-config --speed=3 /tmp/ramdisk/abc.mkv

Playing: /tmp/ramdisk/abc.mkv (+) Video --vid=1 (h264) (+) Audio --aid=1 --alang=ger () (ac3) Audio --aid=2 --alang=eng (dts) (+) Subs --sid=1 --slang=ger () (sub) AO: [pulse] 48000Hz 5.1(side) 6ch float VO: [opengl] 1920x800 yuv420p AV: 00:02:59 / 01:41:35 (2%) x3.00 A-V: 0.000 Dropped: 715

ghost commented 9 years ago

with mpv --no-config --speed=3 file.mkv the image looks 100% smooth, without a single dropped frame or judder.

This sounds wrong. If the file is ~23fps, the screen is ~60hz, and it worked as intended, it must have dropped frames. Which means the GL driver apparently doesn't block on vsync, which breaks the entirely logic mpv's interpolation code is relying on.

ghost commented 9 years ago

Dropped: 715

Actually.. it does drop frames. Why did you say it doesn't?

lubuntulux commented 9 years ago

I saw that too, but it really looks like not a single frame is dropped. Absolutely no lag or judder, that would indicate frame dropping. Either the output is flawed due to an error within mpv, or something is causing it to output false values.

What did the fact, that increasing the speed lead to smooth image behavior, tell us?

lubuntulux commented 9 years ago

I ran --msg-level=vo=debug to check if interpolation was actually active. "interpolation queue underrun" keeps popping up. Could this be the issue? jackson@jackson:~$ mpv --msg-level=vo=debug --vo=opengl=interpolation /tmp/ramdisk/abc.mkv Playing: /tmp/ramdisk/abc.mkv (+) Video --vid=1 (h264) (+) Audio --aid=1 --alang=ger () (ac3) Audio --aid=2 --alang=eng (dts) (+) Subs --sid=1 --slang=ger () (subrip) [vo/opengl] Setting option 'interpolation' = '' (flags = 0) [vo/opengl] Initializing OpenGL backend 'x11' [vo/opengl/x11] X11 opening display: :0 [vo/opengl/x11] X11 running at 1920x1080 (":0" => local display) [vo/opengl/x11] Detected wm supports NetWM. [vo/opengl/x11] Detected wm supports FULLSCREEN state. [vo/opengl/x11] Detected wm supports ABOVE state. [vo/opengl/x11] Detected wm supports BELOW state. [vo/opengl/x11] Display 0 (HDMI-0): [0, 0, 1920, 1080] @ 60.000000 FPS [vo/opengl/x11] Current display FPS: 60.000000 [vo/opengl] GLX chose FB config with ID 0xad [vo/opengl] GLX chose visual with ID 0x27 [vo/opengl] screen size: 1920x1080 [vo/opengl] GL_VERSION='4.5.0 NVIDIA 352.09' [vo/opengl] Detected desktop OpenGL 4.5. [vo/opengl] GL_VENDOR='NVIDIA Corporation' [vo/opengl] GL_RENDERER='GeForce GTX 750 Ti/PCIe/SSE2' [vo/opengl] GL_SHADING_LANGUAGE_VERSION='4.50 NVIDIA' [vo/opengl] OpenGL legacy compat. found. [vo/opengl] Combined OpenGL extensions string: [vo/opengl] GLX_EXT_visual_info GLX_EXT_visual_rating GLX_SGIX_fbconfig GLX_SGIX_pbuffer GLX_SGI_video_sync GLX_SGI_swap_control GLX_EXT_swap_control GLX_EXT_swap_control_tear GLX_EXT_texture_from_pixmap GLX_EXT_buffer_age GLX_ARB_create_context GLX_ARB_create_context_profile GLX_EXT_create_context_es_profile GLX_EXT_create_context_es2_profile GLX_ARB_create_context_robustness GLX_NV_delay_before_swap GLX_EXT_stereo_tree GLX_ARB_context_flush_control GLX_ARB_multisample GLX_NV_float_buffer GLX_ARB_fbconfig_float GLX_EXT_framebuffer_sRGB GLX_NV_copy_image GLX_ARB_get_proc_address GL_AMD_multi_draw_indirect GL_AMD_seamless_cubemap_per_texture GL_ARB_arrays_of_arrays GL_ARB_base_instance GL_ARB_bindless_texture GL_ARB_blend_func_extended GL_ARB_buffer_storage GL_ARB_clear_buffer_object GL_ARB_clear_texture GL_ARB_clip_control GL_ARB_color_buffer_float GL_ARB_compatibility GL_ARB_compressed_texture_pixel_storage GL_ARB_conservative_depth GL_ARB_compute_shader GL_ARB_compute_variable_group_size GL_ARB_conditional_render_inverted GL_ARB_copy_buffer GL_ARB_copy_image GL_ARB_cull_distance GL_ARB_debug_output GL_ARB_depth_buffer_float GL_ARB_depth_clamp GL_ARB_depth_texture GL_ARB_derivative_control GL_ARB_direct_state_access GL_ARB_draw_buffers GL_ARB_draw_buffers_blend GL_ARB_draw_indirect GL_ARB_draw_elements_base_vertex GL_ARB_draw_instanced GL_ARB_enhanced_layouts GL_ARB_ES2_compatibility GL_ARB_ES3_compatibility GL_ARB_ES3_1_compatibility GL_ARB_explicit_attrib_location GL_ARB_explicit_uniform_location GL_ARB_fragment_coord_conventions GL_ARB_fragment_layer_viewport GL_ARB_fragment_program GL_ARB_fragment_program_shadow GL_ARB_fragment_shader GL_ARB_framebuffer_no_attachments GL_ARB_framebuffer_object GL_ARB_framebuffer_sRGB GL_ARB_geometry_shader4 GL_ARB_get_program_binary GL_ARB_get_texture_sub_image GL_ARB_gpu_shader5 GL_ARB_gpu_shader_fp64 GL_ARB_half_float_pixel GL_ARB_half_float_vertex GL_ARB_imaging GL_ARB_indirect_parameters GL_ARB_instanced_arrays GL_ARB_internalformat_query GL_ARB_internalformat_query2 GL_NV_internalformat_sample_query GL_ARB_invalidate_subdata GL_ARB_map_buffer_alignment GL_ARB_map_buffer_range GL_ARB_multi_bind GL_ARB_multi_draw_indirect GL_ARB_multisample GL_ARB_multitexture GL_ARB_occlusion_query GL_ARB_occlusion_query2 GL_ARB_pipeline_statistics_query GL_ARB_pixel_buffer_object GL_ARB_point_parameters GL_ARB_point_sprite GL_ARB_program_interface_query GL_ARB_provoking_vertex GL_ARB_robust_buffer_access_behavior GL_ARB_robustness GL_ARB_sample_shading GL_ARB_sampler_objects GL_ARB_seamless_cube_map GL_ARB_seamless_cubemap_per_texture GL_ARB_separate_shader_objects GL_ARB_shader_atomic_counters GL_ARB_shader_bit_encoding GL_ARB_shader_draw_parameters GL_ARB_shader_group_vote GL_ARB_shader_image_load_store GL_ARB_shader_image_size GL_ARB_shader_objects GL_ARB_shader_precision GL_ARB_query_buffer_object GL_ARB_shader_storage_buffer_object GL_ARB_shader_subroutine GL_ARB_shader_texture_image_samples GL_ARB_shader_texture_lod GL_ARB_shading_language_100 GL_ARB_shading_language_420pack GL_ARB_shading_language_include GL_ARB_shading_language_packing GL_ARB_shadow GL_ARB_sparse_buffer GL_ARB_sparse_texture GL_ARB_stencil_texturing GL_ARB_sync GL_ARB_tessellation_shader GL_ARB_texture_barrier GL_ARB_texture_border_clamp GL_ARB_texture_buffer_object GL_ARB_texture_buffer_object_rgb32 GL_ARB_texture_buffer_range GL_ARB_texture_compression GL_ARB_texture_compression_bptc GL_ARB_texture_compression_rgtc GL_ARB_texture_cube_map GL_ARB_texture_cube_map_array GL_ARB_texture_env_add GL_ARB_texture_env_combine GL_ARB_texture_env_crossbar GL_ARB_texture_env_dot3 GL_ARB_texture_float GL_ARB_texture_gather GL_ARB_texture_mirror_clamp_to_edge GL_ARB_texture_mirrored_repeat GL_ARB_texture_multisample GL_ARB_texture_non_power_of_two GL_ARB_texture_query_levels GL_ARB_texture_query_lod GL_ARB_texture_rectangle GL_ARB_texture_rg GL_ARB_texture_rgb10_a2ui GL_ARB_texture_stencil8 GL_ARB_texture_storage GL_ARB_texture_storage_multisample GL_ARB_texture_swizzle GL_ARB_texture_view GL_ARB_timer_query GL_ARB_transform_feedback2 GL_ARB_transform_feedback3 GL_ARB_transform_feedback_instanced GL_ARB_transform_feedback_overflow_query GL_ARB_transpose_matrix GL_ARB_uniform_buffer_object GL_ARB_vertex_array_bgra GL_ARB_vertex_array_object GL_ARB_vertex_attrib_64bit GL_ARB_vertex_attrib_binding GL_ARB_vertex_buffer_object GL_ARB_vertex_program GL_ARB_vertex_shader GL_ARB_vertex_type_10f_11f_11f_rev GL_ARB_vertex_type_2_10_10_10_rev GL_ARB_viewport_array GL_ARB_window_pos GL_ATI_draw_buffers GL_ATI_texture_float GL_ATI_texture_mirror_once GL_S3_s3tc GL_EXT_texture_env_add GL_EXT_abgr GL_EXT_bgra GL_EXT_bindable_uniform GL_EXT_blend_color GL_EXT_blend_equation_separate GL_EXT_blend_func_separate GL_EXT_blend_minmax GL_EXT_blend_subtract GL_EXT_compiled_vertex_array GL_EXT_Cg_shader GL_EXT_depth_bounds_test GL_EXT_direct_state_access GL_EXT_draw_buffers2 GL_EXT_draw_instanced GL_EXT_draw_range_elements GL_EXT_fog_coord GL_EXT_framebuffer_blit GL_EXT_framebuffer_multisample GL_EXTX_framebuffer_mixed_formats GL_EXT_framebuffer_multisample_blit_scaled GL_EXT_framebuffer_object GL_EXT_framebuffer_sRGB GL_EXT_geometry_shader4 GL_EXT_gpu_program_parameters GL_EXT_gpu_shader4 GL_EXT_multi_draw_arrays GL_EXT_packed_depth_stencil GL_EXT_packed_float GL_EXT_packed_pixels GL_EXT_pixel_buffer_object GL_EXT_point_parameters GL_EXT_polygon_offset_clamp GL_EXT_provoking_vertex GL_EXT_rescale_normal GL_EXT_secondary_color GL_EXT_separate_shader_objects GL_EXT_separate_specular_color GL_EXT_shader_image_load_formatted GL_EXT_shader_image_load_store GL_EXT_shader_integer_mix GL_EXT_shadow_funcs GL_EXT_stencil_two_side GL_EXT_stencil_wrap GL_EXT_texture3D GL_EXT_texture_array GL_EXT_texture_buffer_object GL_EXT_texture_compression_dxt1 GL_EXT_texture_compression_latc GL_EXT_texture_compression_rgtc GL_EXT_texture_compression_s3tc GL_EXT_texture_cube_map GL_EXT_texture_edge_clamp GL_EXT_texture_env_combine GL_EXT_texture_env_dot3 GL_EXT_texture_filter_anisotropic GL_EXT_texture_integer GL_EXT_texture_lod GL_EXT_texture_lod_bias GL_EXT_t [vo/opengl] Detected OpenGL features: [vo/opengl] - Framebuffers [vo/opengl] - VAOs [vo/opengl] - Float textures [vo/opengl] - RG textures [vo/opengl] - 1D textures [vo/opengl] - 3D textures [vo/opengl] - debugging extensions [vo/opengl] 16 bit texture depth: 16. [vo/opengl] Display depth: R=8, G=8, B=8 [vo/opengl] Testing user-set FBO format (0x805b) [vo/opengl] Create FBO: 16x16 [vo/opengl] Assuming 60.000000 FPS for framedrop. [vo/opengl/x11] Disabling screensaver. AO: [pulse] 48000Hz 5.1(side) 6ch float VO: [opengl] 1920x800 yuv420p [vo/opengl] screen size: 1920x1080 [vo/opengl] Resize: 1908x800 [vo/opengl] aspect(0) fitin: 1908x800 monitor_par: 1.00 [vo/opengl] aspect(1) wh: 1908x795 (org: 1920x800) [vo/opengl] aspect(2) wh: 1908x795 (org: 1920x800) [vo/opengl] Window size: 1908x800 [vo/opengl] Video source: 1920x800 (1920x800) [vo/opengl] Video display: (0, 0) 1920x800 -> (0, 2) 1908x795 [vo/opengl] Video scale: 0.993750/0.993750 [vo/opengl] OSD borders: l=0 t=2 r=0 b=3 [vo/opengl] Video borders: l=0 t=2 r=0 b=3 [vo/opengl] Testing user-set FBO format (0x805b) [vo/opengl] Create FBO: 16x16 [vo/opengl] Texture for plane 0: 1920x800 [vo/opengl] Texture for plane 1: 960x400 [vo/opengl] Texture for plane 2: 960x400 [vo/opengl] Reinit rendering. [vo/opengl] Create FBO: 2048x1024 [vo/opengl] recompiling a shader program: [vo/opengl] [ 1] vec4 color; [vo/opengl] [ 2] vec2 chroma = vec2(texture(texture1, texcoord1).r, texture(texture2, texcoord2).r); [vo/opengl] [ 3] float luma = texture(texture0, texcoord0).r; [vo/opengl] [ 4] color = vec4(luma, chroma, 1.0); [vo/opengl] [ 5] // color conversion [vo/opengl] [ 6] color.rgb = mat3(colormatrix) * color.rgb + colormatrix_c; [vo/opengl] [ 7] color.a = 1.0; [vo/opengl] [ 8] // scaler pre-conversion [vo/opengl] [ 9] // main scaling [vo/opengl] [ 10] // scaler post-conversion [vo/opengl] vertex shader source: [vo/opengl] [ 1] #version 150 [vo/opengl] [ 2] in vec2 position; [vo/opengl] [ 3] in vec2 vertex_texcoord0; [vo/opengl] [ 4] out vec2 texcoord0; [vo/opengl] [ 5] in vec2 vertex_texcoord1; [vo/opengl] [ 6] out vec2 texcoord1; [vo/opengl] [ 7] in vec2 vertex_texcoord2; [vo/opengl] [ 8] out vec2 texcoord2; [vo/opengl] [ 9] in vec2 vertex_texcoord3; [vo/opengl] [ 10] out vec2 texcoord3; [vo/opengl] [ 11] in vec2 vertex_texcoord4; [vo/opengl] [ 12] out vec2 texcoord4; [vo/opengl] [ 13] in vec2 vertex_texcoord5; [vo/opengl] [ 14] out vec2 texcoord5; [vo/opengl] [ 15] void main() { [vo/opengl] [ 16] gl_Position = vec4(position, 1.0, 1.0); [vo/opengl] [ 17] texcoord0 = vertex_texcoord0; [vo/opengl] [ 18] texcoord1 = vertex_texcoord1; [vo/opengl] [ 19] texcoord2 = vertex_texcoord2; [vo/opengl] [ 20] texcoord3 = vertex_texcoord3; [vo/opengl] [ 21] texcoord4 = vertex_texcoord4; [vo/opengl] [ 22] texcoord5 = vertex_texcoord5; [vo/opengl] [ 23] } [vo/opengl] fragment shader source: [vo/opengl] [ 1] #version 150 [vo/opengl] [ 2] #define RG rg [vo/opengl] [ 3] #define texture1D texture [vo/opengl] [ 4] #define texture3D texture [vo/opengl] [ 5] out vec4 out_color; [vo/opengl] [ 6] in vec2 texcoord0; [vo/opengl] [ 7] in vec2 texcoord1; [vo/opengl] [ 8] in vec2 texcoord2; [vo/opengl] [ 9] in vec2 texcoord3; [vo/opengl] [ 10] in vec2 texcoord4; [vo/opengl] [ 11] in vec2 texcoord5; [vo/opengl] [ 12] uniform mat3 colormatrix; [vo/opengl] [ 13] uniform vec3 colormatrix_c; [vo/opengl] [ 14] uniform sampler2D texture0; [vo/opengl] [ 15] uniform vec2 texture_size0; [vo/opengl] [ 16] uniform sampler2D texture1; [vo/opengl] [ 17] uniform vec2 texture_size1; [vo/opengl] [ 18] uniform sampler2D texture2; [vo/opengl] [ 19] uniform vec2 texture_size2; [vo/opengl] [ 20] void main() { [vo/opengl] [ 21] vec4 color; [vo/opengl] [ 22] vec2 chroma = vec2(texture(texture1, texcoord1).r, texture(texture2, texcoord2).r); [vo/opengl] [ 23] float luma = texture(texture0, texcoord0).r; [vo/opengl] [ 24] color = vec4(luma, chroma, 1.0); [vo/opengl] [ 25] // color conversion [vo/opengl] [ 26] color.rgb = mat3(colormatrix) * color.rgb + colormatrix_c; [vo/opengl] [ 27] color.a = 1.0; [vo/opengl] [ 28] // scaler pre-conversion [vo/opengl] [ 29] // main scaling [vo/opengl] [ 30] // scaler post-conversion [vo/opengl] [ 31] out_color = color; [vo/opengl] [ 32] } [vo/opengl] shader link log (status=1): [vo/opengl] recompiling a shader program: [vo/opengl] [ 1] vec4 color = texture(texture0, texcoord0); [vo/opengl] [ 2] // color management [vo/opengl] vertex shader source: [vo/opengl] [ 1] #version 150 [vo/opengl] [ 2] in vec2 position; [vo/opengl] [ 3] in vec2 vertex_texcoord0; [vo/opengl] [ 4] out vec2 texcoord0; [vo/opengl] [ 5] in vec2 vertex_texcoord1; [vo/opengl] [ 6] out vec2 texcoord1; [vo/opengl] [ 7] in vec2 vertex_texcoord2; [vo/opengl] [ 8] out vec2 texcoord2; [vo/opengl] [ 9] in vec2 vertex_texcoord3; [vo/opengl] [ 10] out vec2 texcoord3; [vo/opengl] [ 11] in vec2 vertex_texcoord4; [vo/opengl] [ 12] out vec2 texcoord4; [vo/opengl] [ 13] in vec2 vertex_texcoord5; [vo/opengl] [ 14] out vec2 texcoord5; [vo/opengl] [ 15] void main() { [vo/opengl] [ 16] gl_Position = vec4(position, 1.0, 1.0); [vo/opengl] [ 17] texcoord0 = vertex_texcoord0; [vo/opengl] [ 18] texcoord1 = vertex_texcoord1; [vo/opengl] [ 19] texcoord2 = vertex_texcoord2; [vo/opengl] [ 20] texcoord3 = vertex_texcoord3; [vo/opengl] [ 21] texcoord4 = vertex_texcoord4; [vo/opengl] [ 22] texcoord5 = vertex_texcoord5; [vo/opengl] [ 23] } [vo/opengl] fragment shader source: [vo/opengl] [ 1] #version 150 [vo/opengl] [ 2] #define RG rg [vo/opengl] [ 3] #define texture1D texture [vo/opengl] [ 4] #define texture3D texture [vo/opengl] [ 5] out vec4 out_color; [vo/opengl] [ 6] in vec2 texcoord0; [vo/opengl] [ 7] in vec2 texcoord1; [vo/opengl] [ 8] in vec2 texcoord2; [vo/opengl] [ 9] in vec2 texcoord3; [vo/opengl] [ 10] in vec2 texcoord4; [vo/opengl] [ 11] in vec2 texcoord5; [vo/opengl] [ 12] uniform sampler2D texture0; [vo/opengl] [ 13] uniform vec2 texture_size0; [vo/opengl] [ 14] void main() { [vo/opengl] [ 15] vec4 color = texture(texture0, texcoord0); [vo/opengl] [ 16] // color management [vo/opengl] [ 17] out_color = color; [vo/opengl] [ 18] } [vo/opengl] shader link log (status=1): AV: 00:00:00 / 01:41:35 (0%) A-V: 0.000 [vo/opengl] Create FBO: 2048x1024 [vo/opengl] inter frame ppts: 10195445, pts: 10273191, vsync: 10256051, mix: 0.000000 [vo/opengl] recompiling a shader program: [vo/opengl] [ 1] vec4 color = mix(texture(texture0, texcoord0), texture(texture1, texcoord1), inter_coeff); [vo/opengl] [ 2] // color management [vo/opengl] vertex shader source: [vo/opengl] [ 1] #version 150 [vo/opengl] [ 2] in vec2 position; [vo/opengl] [ 3] in vec2 vertex_texcoord0; [vo/opengl] [ 4] out vec2 texcoord0; [vo/opengl] [ 5] in vec2 vertex_texcoord1; [vo/opengl] [ 6] out vec2 texcoord1; [vo/opengl] [ 7] in vec2 vertex_texcoord2; [vo/opengl] [ 8] out vec2 texcoord2; [vo/opengl] [ 9] in vec2 vertex_texcoord3; [vo/opengl] [ 10] out vec2 texcoord3; [vo/opengl] [ 11] in vec2 vertex_texcoord4; [vo/opengl] [ 12] out vec2 texcoord4; [vo/opengl] [ 13] in vec2 vertex_texcoord5; [vo/opengl] [ 14] out vec2 texcoord5; [vo/opengl] [ 15] void main() { [vo/opengl] [ 16] gl_Position = vec4(position, 1.0, 1.0); [vo/opengl] [ 17] texcoord0 = vertex_texcoord0; [vo/opengl] [ 18] texcoord1 = vertex_texcoord1; [vo/opengl] [ 19] texcoord2 = vertex_texcoord2; [vo/opengl] [ 20] texcoord3 = vertex_texcoord3; [vo/opengl] [ 21] texcoord4 = vertex_texcoord4; [vo/opengl] [ 22] texcoord5 = vertex_texcoord5; [vo/opengl] [ 23] } [vo/opengl] fragment shader source: [vo/opengl] [ 1] #version 150 [vo/opengl] [ 2] #define RG rg [vo/opengl] [ 3] #define texture1D texture [vo/opengl] [ 4] #define texture3D texture [vo/opengl] [ 5] out vec4 out_color; [vo/opengl] [ 6] in vec2 texcoord0; [vo/opengl] [ 7] in vec2 texcoord1; [vo/opengl] [ 8] in vec2 texcoord2; [vo/opengl] [ 9] in vec2 texcoord3; [vo/opengl] [ 10] in vec2 texcoord4; [vo/opengl] [ 11] in vec2 texcoord5; [vo/opengl] [ 12] uniform float inter_coeff; [vo/opengl] [ 13] uniform sampler2D texture0; [vo/opengl] [ 14] uniform vec2 texture_size0; [vo/opengl] [ 15] uniform sampler2D texture1; [vo/opengl] [ 16] uniform vec2 texture_size1; [vo/opengl] [ 17] void main() { [vo/opengl] [ 18] vec4 color = mix(texture(texture0, texcoord0), texture(texture1, texcoord1), inter_coeff); [vo/opengl] [ 19] // color management [vo/opengl] [ 20] out_color = color; [vo/opengl] [ 21] } [vo/opengl] shader link log (status=1): [vo/opengl] recompiling a shader program: [vo/opengl] [ 1] // OSD (libass) [vo/opengl] [ 2] vec4 color = vec4(ass_color.rgb, ass_color.a * texture(osdtex, texcoord).r); [vo/opengl] [ 3] // color management [vo/opengl] vertex shader source: [vo/opengl] [ 1] #version 150 [vo/opengl] [ 2] in vec2 position; [vo/opengl] [ 3] in vec2 vertex_texcoord; [vo/opengl] [ 4] out vec2 texcoord; [vo/opengl] [ 5] in vec4 vertex_ass_color; [vo/opengl] [ 6] out vec4 ass_color; [vo/opengl] [ 7] void main() { [vo/opengl] [ 8] gl_Position = vec4(position, 1.0, 1.0); [vo/opengl] [ 9] texcoord = vertex_texcoord; [vo/opengl] [ 10] ass_color = vertex_ass_color; [vo/opengl] [ 11] } [vo/opengl] fragment shader source: [vo/opengl] [ 1] #version 150 [vo/opengl] [ 2] #define RG rg [vo/opengl] [ 3] #define texture1D texture [vo/opengl] [ 4] #define texture3D texture [vo/opengl] [ 5] out vec4 out_color; [vo/opengl] [ 6] in vec2 texcoord; [vo/opengl] [ 7] in vec4 ass_color; [vo/opengl] [ 8] uniform sampler2D osdtex; [vo/opengl] [ 9] void main() { [vo/opengl] [ 10] // OSD (libass) [vo/opengl] [ 11] vec4 color = vec4(ass_color.rgb, ass_color.a * texture(osdtex, texcoord).r); [vo/opengl] [ 12] // color management [vo/opengl] [ 13] out_color = color; [vo/opengl] [ 14] } [vo/opengl] shader link log (status=1): [vo/opengl] inter frame ppts: 10195445, pts: 10273191, vsync: 10276410, mix: 1.000000 AV: 00:00:00 / 01:41:35 (0%) A-V: 0.000 [vo/opengl] Create FBO: 2048x1024 [vo/opengl] inter frame ppts: 10273191, pts: 10314918, vsync: 10300810, mix: 0.153486 AV: 00:00:00 / 01:41:35 (0%) A-V: 0.000 [vo/opengl] Create FBO: 2048x1024 [vo/opengl] inter frame ppts: 10314918, pts: 10357236, vsync: 10334151, mix: 0.000000 [vo/opengl] inter frame ppts: 10314918, pts: 10357236, vsync: 10350764, mix: 0.611664 AV: 00:00:00 / 01:41:35 (0%) A-V: 0.000 [vo/opengl] Create FBO: 2048x1024 [vo/opengl] inter frame ppts: 10357236, pts: 10400052, vsync: 10384651, mix: 0.075903 AV: 00:00:00 / 01:41:35 (0%) A-V: 0.000 [vo/opengl] Create FBO: 2048x1024 [vo/opengl] inter frame ppts: 10400052, pts: 10443356, vsync: 10418024, mix: 0.000000 [vo/opengl] inter frame ppts: 10400052, pts: 10443356, vsync: 10438837, mix: 0.728849 AV: 00:00:00 / 01:41:35 (0%) A-V: 0.000 [vo/opengl] Create FBO: 2048x1024 [vo/opengl] inter frame ppts: 10443356, pts: 10486360, vsync: 10468281, mix: 0.000000 [vo/opengl] inter frame ppts: 10443356, pts: 10486360, vsync: 10485269, mix: 0.934537 AV: 00:00:00 / 01:41:35 (0%) A-V: 0.000 [vo/opengl] Create FBO: 2048x1024 [vo/opengl] inter frame ppts: 10486360, pts: 10529241, vsync: 10501861, mix: 0.000000 [vo/opengl] inter frame ppts: 10486360, pts: 10529241, vsync: 10518771, mix: 0.371775 AV: 00:00:00 / 01:41:35 (0%) A-V: 0.000 [vo/opengl] Create FBO: 2048x1024 [vo/opengl] inter frame ppts: 10529241, pts: 10572373, vsync: 10550910, mix: 0.000000 [vo/opengl] inter frame ppts: 10529241, pts: 10572373, vsync: 10567642, mix: 0.716129 AV: 00:00:00 / 01:41:35 (0%) A-V: 0.000 [vo/opengl] Create FBO: 2048x1024 [vo/opengl] inter frame ppts: 10572373, pts: 10615060, vsync: 10600849, mix: 0.147306 [vo/opengl] interpolation queue underrun AV: 00:00:00 / 01:41:35 (0%) A-V: 0.000 [vo/opengl] inter frame ppts: 10615060, pts: 10657796, vsync: 10634210, mix: 0.000000 [vo/opengl] inter frame ppts: 10615060, pts: 10657796, vsync: 10650869, mix: 0.584363 [vo/opengl] interpolation queue underrun AV: 00:00:00 / 01:41:35 (0%) A-V: 0.000 [vo/opengl] inter frame ppts: 10657796, pts: 10700234, vsync: 10684491, mix: 0.055382 [vo/opengl] interpolation queue underrun AV: 00:00:00 / 01:41:35 (0%) A-V: 0.000 [vo/opengl] inter frame ppts: 10700234, pts: 10742713, vsync: 10717474, mix: 0.000000 [vo/opengl] inter frame ppts: 10700234, pts: 10742713, vsync: 10734289, mix: 0.494540 [vo/opengl] interpolation queue underrun AV: 00:00:00 / 01:41:35 (0%) A-V: 0.000 [vo/opengl] inter frame ppts: 10742713, pts: 10785004, vsync: 10767602, mix: 0.000000 [vo/opengl] inter frame ppts: 10742713, pts: 10785004, vsync: 10784143, mix: 0.948338 AV: 00:00:00 / 01:41:35 (0%) A-V: 0.000 [vo/opengl] inter frame ppts: 10785004, pts: 10826990, vsync: 10800922, mix: 0.000000 [vo/opengl] inter frame ppts: 10785004, pts: 10826990, vsync: 10817494, mix: 0.430217 [vo/opengl] interpolation queue underrun AV: 00:00:00 / 01:41:35 (0%) A-V: 0.000 [vo/opengl] inter frame ppts: 10826990, pts: 10869013, vsync: 10850769, mix: 0.000000 [vo/opengl] inter frame ppts: 10826990, pts: 10869013, vsync: 10867653, mix: 0.918397 AV: 00:00:00 / 01:41:35 (0%) A-V: 0.000 [vo/opengl] inter frame ppts: 10869013, pts: 10910922, vsync: 10884202, mix: 0.000000 [vo/opengl] inter frame ppts: 10869013, pts: 10910922, vsync: 10900803, mix: 0.392836 [vo/opengl/x11] Enabling screensaver. [vo/opengl] interpolation queue underrun (Paused) AV: 00:00:00 / 01:41:35 (0%) A-V: 0.000 [vo/opengl] interpolation queue underrun [vo/opengl] interpolation queue underrun (Paused) AV: 00:00:00 / 01:41:35 (0%) A-V: 0.000 [vo/opengl] interpolation queue underrun [vo/opengl] interpolation queue underrun (Paused) AV: 00:00:00 / 01:41:35 (0%) A-V: 0.000 [vo/opengl] interpolation queue underrun (Paused) AV: 00:00:00 / 01:41:35 (0%) A-V: 0.000 [vo/opengl] interpolation queue underrun [vo/opengl/x11] Disabling screensaver. AV: 00:00:00 / 01:41:35 (0%) A-V: 0.000 [vo/opengl] inter frame ppts: 10910922, pts: 11128548, vsync: 11100789, mix: 0.000000 [vo/opengl] inter frame ppts: 10910922, pts: 11128548, vsync: 11109595, mix: 0.000000 [vo/opengl] inter frame ppts: 10910922, pts: 11128548, vsync: 11118362, mix: 0.388816 [vo/opengl] interpolation queue underrun [vo/opengl] interpolation queue underrun [vo/opengl] interpolation queue underrun AV: 00:00:00 / 01:41:35 (0%) A-V: 0.000 [vo/opengl] inter frame ppts: 11128548, pts: 11170304, vsync: 11167434, mix: 0.827793 AV: 00:00:00 / 01:41:35 (0%) A-V: 0.000 [vo/opengl] inter frame ppts: 11170304, pts: 11212002, vsync: 11184261, mix: 0.000000 [vo/opengl] inter frame ppts: 11170304, pts: 11212002, vsync: 11201054, mix: 0.343094 [vo/opengl] interpolation queue underrun AV: 00:00:00 / 01:41:35 (0%) A-V: 0.000 [vo/opengl] inter frame ppts: 11212002, pts: 11253636, vsync: 11238034, mix: 0.063843 [vo/opengl] interpolation queue underrun [vo/opengl] interpolation queue underrun AV: 00:00:00 / 01:41:35 (0%) A-V: 0.000 [vo/opengl] inter frame ppts: 11253636, pts: 11295236, vsync: 11284131, mix: 0.333673 [vo/opengl] interpolation queue underrun AV: 00:00:00 / 01:41:35 (0%) A-V: 0.000 [vo/opengl] inter frame ppts: 11295236, pts: 11336806, vsync: 11317448, mix: 0.000000 [vo/opengl] inter frame ppts: 11295236, pts: 11336806, vsync: 11334199, mix: 0.843574 [vo/opengl] interpolation queue underrun AV: 00:00:00 / 01:41:35 (0%) A-V: 0.000 [vo/opengl] inter frame ppts: 11336806, pts: 11378299, vsync: 11367622, mix: 0.359354 [vo/opengl] interpolation queue underrun AV: 00:00:01 / 01:41:35 (0%) A-V: 0.000 [vo/opengl] inter frame ppts: 11378299, pts: 11419769, vsync: 11400844, mix: 0.000000 [vo/opengl] inter frame ppts: 11378299, pts: 11419769, vsync: 11417492, mix: 0.863375 [vo/opengl] interpolation queue underrun AV: 00:00:01 / 01:41:35 (0%) A-V: 0.000 [vo/opengl] inter frame ppts: 11419769, pts: 11461223, vsync: 11450843, mix: 0.377175 [vo/opengl] interpolation queue underrun [vo/opengl] interpolation queue underrun AV: 00:00:01 / 01:41:35 (0%) A-V: 0.000 [vo/opengl] inter frame ppts: 11461223, pts: 11502595, vsync: 11500823, mix: 0.893676 AV: 00:00:01 / 01:41:35 (0%) A-V: 0.000 [vo/opengl] inter frame ppts: 11502595, pts: 11544081, vsync: 11517527, mix: 0.000000 [vo/opengl] inter frame ppts: 11502595, pts: 11544081, vsync: 11534151, mix: 0.404176 [vo/opengl] interpolation queue underrun AV: 00:00:01 / 01:41:35 (0%) A-V: 0.000 [vo/opengl] inter frame ppts: 11544081, pts: 11585500, vsync: 11567458, mix: 0.000000 [vo/opengl] inter frame ppts: 11544081, pts: 11585500, vsync: 11584163, mix: 0.919777 [vo/opengl] interpolation queue underrun AV: 00:00:01 / 01:41:35 (0%) A-V: 0.000 [vo/opengl] inter frame ppts: 11585500, pts: 11626856, vsync: 11617483, mix: 0.437598 [vo/opengl] interpolation queue underrun AV: 00:00:01 / 01:41:35 (0%) A-V: 0.000 [vo/opengl] inter frame ppts: 11626856, pts: 11668174, vsync: 11651182, mix: 0.000000 [vo/opengl/x11] Enabling screensaver. [vo/opengl] inter frame ppts: 11626856, pts: 11668174, vsync: 11667443, mix: 0.956138 (Paused) AV: 00:00:01 / 01:41:35 (0%) A-V: 0.000 [vo/opengl] interpolation queue underrun (Paused) AV: 00:00:01 / 01:41:35 (0%) A-V: 0.000 [vo/opengl] interpolation queue underrun (Paused) AV: 00:00:01 / 01:41:35 (0%) A-V: 0.000 [vo/opengl] interpolation queue underrun [vo/opengl] interpolation queue underrun [vo/opengl] interpolation queue underrun (Paused) AV: 00:00:01 / 01:41:35 (0%) A-V: 0.000 [vo/opengl] interpolation queue underrun (Paused) AV: 00:00:01 / 01:41:35 (0%) A-V: 0.000 [vo/opengl] interpolation queue underrun (Paused) AV: 00:00:01 / 01:41:35 (0%) A-V: 0.000 [vo/opengl] interpolation queue underrun [vo/opengl] interpolation queue underrun (Paused) AV: 00:00:01 / 01:41:35 (0%) A-V: 0.000 [vo/opengl] interpolation queue underrun [vo/opengl] interpolation queue underrun (Paused) AV: 00:00:01 / 01:41:35 (0%) A-V: 0.000 [vo/opengl] interpolation queue underrun (Paused) AV: 00:00:01 / 01:41:35 (0%) A-V: 0.000 [vo/opengl] interpolation queue underrun (Paused) AV: 00:00:01 / 01:41:35 (0%) A-V: 0.000 [vo/opengl] interpolation queue underrun [vo/opengl] interpolation queue underrun (Paused) AV: 00:00:01 / 01:41:35 (0%) A-V: 0.000 [vo/opengl] interpolation queue underrun (Paused) AV: 00:00:01 / 01:41:35 (0%) A-V: 0.000 [vo/opengl] interpolation queue underrun [vo/opengl] interpolation queue underrun (Paused) AV: 00:00:01 / 01:41:35 (0%) A-V: 0.000 [vo/opengl] interpolation queue underrun [vo/opengl] interpolation queue underrun (Paused) AV: 00:00:01 / 01:41:35 (0%) A-V: 0.000

ghost commented 9 years ago

[vo/opengl] interpolation queue underrun

That looks bad?

lubuntulux commented 9 years ago

What does that mean, or rather, what is it caused by? I read in another post, that "interpolation queue underrun" is considered a normal occurrence with tscale and oversample.

Could it be the cause of lacking smoothness in this interpolation case, however?

ghost commented 9 years ago

that "interpolation queue underrun" is considered a normal occurrence with tscale and oversample.

Could be. I don't even know how this works. I just thought I'd point this out since it looks kind of suspicious. And also, you edited your post (and added this log), so people who use email notification won't realize it was added.

lubuntulux commented 9 years ago

OK, I will post it again.

Here is the glxinfo: http://textuploader.com/w9wd

And here the log of an mkv file with interpolation: http://textuploader.com/w9pn

Thank you very much for the time you have invested so far, but this problem really drives me insane. Especially because so many people seem to have set it up successfully.

Is there anything else that I could provide in order to increase the chances for this problem to be solved?

haasn commented 9 years ago

One thing you can try tscale=mitchell and seeing if you still get any interpolation queue underruns. That mode of operation should in theory cause none, and it would also be much easier to debug than tscale=oversample.

Apart from that, it still looks like it should sort of be working correctly.

ghost commented 9 years ago

http://textuploader.com/

This site doesn't even provide raw links. Use a better site. I recommend http://sprunge.us or https://0x0.st/ .

lubuntulux commented 9 years ago

@haasn:tscale=mitchell has eliminated the judder that would occur with interpolation. There has definitely been an improvement in image quality and smoothness, however I still don't feel that 60FPS are being displayed.

It now seems like a a perfect 24fps on 24Hz representation, however not interpolated 60FPS imagery.

Here the log with --vo=opengl-hq=tscale=mitchell http://textuploader.com/w01p

Here the log with --vo=opengl=tscale=mitchel --hwdec=no (no hardware accel and composite) http://textuploader.com/w01v

I now have an idea why interpolation might not work. Here my version of mpv: mpv git-72808be (C) 2000-2015 mpv/MPlayer/mplayer2 projects built on 2015-06-17T02:56:57 ffmpeg library versions: libavutil 54.27.100 libavcodec 56.41.100 libavformat 56.36.100 libswscale 3.1.101 libavfilter 5.17.100 libswresample 1.2.100

In the reddit post, the OP states that interpolation is a functionality exclusive to the 0.73 version. http://www.reddit.com/r/linux/comments/2u3bpw/mpv_ver_073_can_interpolate_videos_to_60fps/ The version that is available to me from mc3man's ppa is far more advanced than that. Could the newer version be the problem?

I will purge the current version, install 0.73 and report later this evening.

Thank you very much so far, tsacle=mitchell definitely helped!

haasn commented 9 years ago

It now seems like a a perfect 24fps on 24Hz representation, however not interpolated 60FPS imagery.

“Sounds like it's working as intended then.”

lubuntulux commented 9 years ago

So why doesn't it work the same way with interpolation? I cannot seem to find a significant difference between the tscale and interpolation command.

The "mitchell" option must be the cause of this sudden change.

Would you mind to elaborate?

haasn commented 9 years ago

Interpolation just turns it on or off, tscale changes the interpolation method used. (This is all documented in the manual, by the way.)

lubuntulux commented 9 years ago

I have read the documentation multiple times. Am I correctly assuming, that in order to achieve true 60FPS interpolation, the likes of SVP produce, I need to get into vapoursynth and mpv?

The interpolation method in question here, simply displays a lower fps file on a 60+ hz screen, as if the refresh rate had been reduced to match the file's?

haasn commented 9 years ago

Yes to both

lubuntulux commented 9 years ago

Well, thank you very much so far.

I have read that mitchell seems to invoke an inferior interpolation method, which is less demanding.

Is this true?

haasn commented 9 years ago

No, mitchell is somewhat more demanding than oversample and in my opinion also much better (smoother).

Some users dislike the extra blur/fringing it introduces though, which is why oversample is the default - in part also due to backwards compatibility (oversample was the only mode of operation from back when it was called smoothmotion instead of interpolation).

lubuntulux commented 9 years ago

It also works fine with oversample, which I too, as you have described, consider to be clearer.

After some experimenting I have settled with these settings: mpv --vo=opengl-hq=scale=ewa_lanczossharp --hwdec=vdpau --fps=60

I find ewa_lanczossharp to be the sharpest, clearest and smoothest filter. It also seems to be the only one that causes 18% CPU and 15% GPU load. ewa_lanczossharp only works with scale though, an error occurs when I attempt to use it with tscale.

Any final suggestions for improvements and more testing? In case there is an even more demanding option and filter I would like to know, since the hardware is there to be salvaged.(Couldn't really find any here, though https://github.com/mpv-player/mpv/blob/master/DOCS/man/vo.rst)

haasn commented 9 years ago

Your posts are not making any more sense. You said oversample was not working, but now it works fine? And suddenly you are using --fps=60? That won't even affect anything unless you're using --no-correct-pts as well..

ewa_lanczossharp isn't even related in the slightest.

lubuntulux commented 9 years ago

I had never used the option scale=oversample before, as I wasn't aware of it. I have only recently found the page with all the commands. interpolation would never work and smoothmotion, which was "replaced" by such, as the output stated.

I experience an even smoother experience with --fps=60, not sure why. I will add --no-correct-pts and see what happens.

lubuntulux commented 9 years ago

Tried this now: mpv --vo=opengl-hq=tscale=oversample --hwdec=vdpau --fps=60 --no-correct-pts

The addition of--no-correct-pts simply speeds up the video, as if I had added the --speed=2 or 3 option. Although, the audio remains at normal speed. And again, the video seems 60FPS smooth, exactly like in SVP.

And in terms of ewa_lancozossharp, it is listed among the filters in the documentation, where oversample and mitchell are noted, as well. https://github.com/mpv-player/mpv/blob/master/DOCS/man/vo.rst "A slightly sharpened version of ewa_lanczos, preconfigured to use an ideal radius and parameter. If your hardware can run it, this is probably what you should use by default."

haasn commented 9 years ago

I had never used the option scale=oversample before, as I wasn't aware of it.

scale is irrelevant. tscale=oversample is the default.

I experience an even smoother experience with --fps=60, not sure why.

https://en.wikipedia.org/wiki/Placebo

lubuntulux commented 9 years ago

--fps=60 + --no-correct-pts affects the image dramatically. This is what I want, as it seems like true 60FPS.

The only problem is, that the video is speeded up. If you could help me slow it down, while retaining the frame count, that would be awesome.

haasn commented 9 years ago

If you could help me slow it down, while retaining the frame count, that would be awesome.

No. There is no such feature in mpv.

kevmitch commented 9 years ago

--fps=60 + --no-correct-pts

to clarify, this by definition will speed up / slow down the video so that one source frame will be displayed 60 times per second. With regard to smoothness it is completely expected that it will achieve ideal results because it forces the source frame rate to match the display refresh rate (assuming it's 60hz). The same result is more conventionally achieved without timing side effects by setting the display refresh rate to the source frame rate (where possible).

In any case, haasn wasn't recommmending that you use it, but merely stating that --fps=60 alone does nothing.

If you could help me slow it down, while retaining the frame count, that would be awesome.

That is exactly what "interpolation" tries to do. It fills in the additional frames needed to display 24 fps material on a 60hz display using one of the various algorithms. However because it has to interpolate those frames, the result will never be as good as just matching the two rates.

lubuntulux commented 9 years ago

Thank you sooo much for all your support guys, please know, that I will relink both issues on the UbuntuForum, since you are awesome and this is guide material. :-)

I have one last question about Youtube streaming. I am running mpv 0.9.2 (vapoursynth enabled) from this ppa: https://launchpad.net/~djcj/+archive/ubuntu/vapoursynth youtube-dl via deb (youtube-dl_2015.06.04.1-1_all.deb) :https://packages.debian.org/sid/all/youtube-dl/download

When I try to stream a Youtube video with mpv, both with or without the vapoursynth script I get an error:

When I try to play something like this however, it works fine, both with and without the vapoursynth script: mpv --vf=vapoursynth=/home/jackson/Downloads/60fps.py --hwdec=no http://wpage.unina.it/aorefice/sharevari/tearingandsmoothness.mp4

Here the errors that exclusively occur with youtube: jackson@jackson:~$ mpv --vf=vapoursynth=/home/jackson/Downloads60fps.py --hwdec=no https://www.youtube.com/watch?v=Z_mf9aCHag8 Playing: https://www.youtube.com/watch?v=Z_mf9aCHag8 [ffmpeg] ?: https protocol not found, recompile with openssl or gnutls enabled. [ffmpeg] Protocol not found. Make sure ffmpeg/Libav is compiled with networking support. Failed to open https//r1---sn-4g57knes.googlevideo.com/videoplayback?lmt=1434341533454883&key=yt5&dur=185.411&fexp=936117%2C9407136%2C9407141%2C9407992%2C9408142%2C9408420%2C9408710%2C9409206%2C9412770%2C9412773%2C9412985%2C9413503%2C9415304%2C9415397%2C9415560%2C9416126%2C9416283%2C952626&initcwndbps=2165000&ipbits=0&mime=video%2Fmp4&nh=IgpwcjAyLmZyYTAzKgkxMjcuMC4wLjE&requiressl=yes&source=youtube&signature=627ADFD5F329FB6ADF25025F029C001A5108947A.7991EF1641E00A9A4112C6E57D0030D5AC3C02E3&hcs=yes&upn=XEsijOCEiQc&itag=22&mt=1434642035&pl=20&mv=m&ms=au&mm=31&expire=1434663769&id=o-ACkvgXZLOw6hTXU6kl1XBpKsgJeKTCoQRzwvKtVoR1tJ&ratebypass=yes&sver=3&ip=84.113.177.182&mn=sn-4g57knes&sparams=dur%2Chcs%2Cid%2Cinitcwndbps%2Cip%2Cipbits%2Citag%2Clmt%2Cmime%2Cmm%2Cmn%2Cms%2Cmv%2Cnh%2Cpl%2Cratebypass%2Crequiressl%2Cshardbypass%2Csource%2Cupn%2Cexpire&shardbypass=yes. Exiting... (Errors when loading file)

The same happens when I don't use the vapoursynth script, hence the problem must be elsewhere: jackson@jackson:~$ mpv https://www.youtube.com/watch?v=Z_mf9aCHag8 Playing: https://www.youtube.com/watch?v=Z_mf9aCHag8 [ffmpeg] ?: https protocol not found, recompile with openssl or gnutls enabled. [ffmpeg] Protocol not found. Make sure ffmpeg/Libav is compiled with networking support. Failed to open https//r1---sn-4g57knes.googlevideo.com/videoplayback?requiressl=yes&dur=185.411&id=o-AHTuyjkfh2iy6OAy91OjLgroMvvr9BEdDjYZYwafotYn&mn=sn-4g57knes&pl=20&mm=31&source=youtube&fexp=9406128%2C9407141%2C9407535%2C9407663%2C9408142%2C9408420%2C9408710%2C9409095%2C9413503%2C9414806%2C9414916%2C9414936%2C9415304%2C9415810%2C9415972%2C9416126%2C9416573%2C952626%2C952640&ms=au&mv=m&mt=1434642151&hcs=yes&shardbypass=yes&upn=N1FSBRoSffE&itag=22&key=yt5&mime=video%2Fmp4&ip=84.113.177.182&nh=IgpwcjAyLmZyYTAzKgkxMjcuMC4wLjE&sver=3&lmt=1434341533454883&initcwndbps=2150000&sparams=dur%2Chcs%2Cid%2Cinitcwndbps%2Cip%2Cipbits%2Citag%2Clmt%2Cmime%2Cmm%2Cmn%2Cms%2Cmv%2Cnh%2Cpl%2Cratebypass%2Crequiressl%2Cshardbypass%2Csource%2Cupn%2Cexpire&signature=B93CB6FE8DDC55ABE4049B593AFAB1172D26D32F.AFE99161949293A67F7EB4856A81A0483229489F&ratebypass=yes&expire=1434663821&ipbits=0. Exiting... (Errors when loading file)