You are not logged in.
Now I am confused.
Disabling hardware acceleration leads to zero(!) dropped frames. Of course, CPU usage is shown as about 80 percent, but I am surprised that this older hardware (Nvidia nforce 8200 with a AMD Athlon 64 2000GHZ Dual Core) is capable of 1080i playback at all without the help of hardware acceleration.
Update:
I deinstalled the package extra/libva-vdpau-driver, and now cmplayer behaves the same concerning CPU usage - with hardware acceleration enabled or not in the preferences. I guess with the package installed cmplayer uses vaapi with the help of this layer and this slows down everything instead of accelerating.
In addition I tried recent 0.8.11-2 packages on my intel-hd-2000 graphics PC and here everything works fine again as well - hardware acceleration showing great release towards CPU usage. Thanks again for watching and this marvellous work.
Last edited by bernd_b (2014-02-13 21:28:28)
Offline
I would like to ask if this could be looked at:
I created this file (00001.mkv) from a TV record with the help of ffmpeg:
ffmpeg -i 00001.ts -map 0:0 -map 0:2 -map 0:3 -vcodec copy -acodec copy -scodec dvdsub 00001.mkv
The subtitles of the original file (00001.ts) are shown fine by cmplayer. With the converted one (00001.mkv), a subtitle track is still shown by the osd but no subtitles are displayed.
In fact, (s)mplayer is the only player I found who shows the subtitles of the converted file as well. Is this a fault of ffmpeg or a missing feature of mpv/cmplayer?
Last edited by bernd_b (2014-02-13 22:09:10)
Offline
@bernd_b Yes, you're right. CMPlayer uses VA-API for hardware acceleration(hwacc) and on NVIDIA GPUs, it's doen through vdpau backend implementation of VA-API.
It seems that all these problems occured by update of NVIDIA driver, maybe there are some bugs in the driver for old GPUs, because there are also people who don't have problem with libva-vdpau-driver.
I'm trying to implmenet vdpau backend. The latest git repo sources contain some experimetal implementation of VDPAU backend. If you're interested in it, you can switch the backend to VDPAU by setting the environment variable CMPLAYER_HWACC_BACKEND to 'vdpau'. Maybe it's not so useful because in current implementation, decoded frame in VRAM detour to RAM and it is reuploaded to VRAM.
I've tested your file. I think it's a bug of ffmpeg or mpv. I've made a workaround fix in my forked mpv, so latest git build should display the subtitle. I'll make a report about at mpv's issue tracker. Thank you.
Offline
@bernd_b
The fix has been merged into mpv upstream, so next mpv version can show the subtitle, too. Also, mpv guys told me that the file is broken and it's caused by ffmpeg's bug apparently. The fix is just a workarond to handle such broken files.
Offline
Thank you very much for taking actions so quickly. The subtitles playback works indeed out of the box now. May I should report this issue to ffmpeg?
But no luck with changing to vdpau backend:
OSD (activated by tabs) counts about 10 dropped frames per second, video seems to play in slow motion and audio, which plays fine, is ahead of video (and subtitles now shown!).
bernd_b@amd64-archlinux ]$ export CMPLAYER_HWACC_BACKEND=vdpau
[bernd_b@amd64-archlinux ]$ CMPLAYER_MPV_OPTIONS=-v cmplayer
"Qt Warning - invalid keysym: dead_actute"
[OpenGL] Check OpenGL stuffs.
[OpenGL] Version: 2.1
[OpenGL] FBO is not available. FBO support is essential.
[OpenGL] FBO texture format: GL_RGBA16
[OpenGL] Available extensions: GL_ARB_texture_rg, GL_ARB_texture_float, GL_NV_vdpau_interop, GL_ARB_framebuffer_object
Initialize engine
Initialize mpv with ("cmplayer-mpv", "-v", "--no-config", "--idle", "--no-fs", "--mouse-movements", "--af=dummy:address=31769456", "--vo=null:address=31769488", "--softvol=yes", "--softvol-max=1000.0", "--fixed-vo", "--no-autosub", "--osd-level=0", "--quiet", "--no-consolecontrols", "--no-mouse-movements", "--subcp=utf8", "--ao=null,", "--ad-lavc-downmix=no", "--channels=3")
[cplayer] mpv git-ce392f3 (C) 2000-2014 mpv/MPlayer/mplayer2 projects
[cplayer] built on 2014-02-15T10:50:18
[cplayer] ffmpeg library versions:
[cplayer] libavutil 52.48.101
[cplayer] libavcodec 55.39.101
[cplayer] libavformat 55.19.104
[cplayer] libswscale 2.5.101
[cplayer] libswresample 0.17.104
[cplayer]
[cplayer] Setting option 'v' = '' (flags = 8)
[cplayer] Setting option 'no-config' = '' (flags = 8)
[cplayer] Setting option 'idle' = '' (flags = 8)
[cplayer] Setting option 'no-fs' = '' (flags = 8)
[cplayer] Setting option 'mouse-movements' = '' (flags = 8)
[cplayer] Setting option 'af' = 'dummy:address=31769456' (flags = 8)
[cplayer] Setting option 'vo' = 'null:address=31769488' (flags = 8)
[cplayer] Setting option 'softvol' = 'yes' (flags = 8)
[cplayer] Setting option 'softvol-max' = '1000.0' (flags = 8)
[cplayer] Setting option 'fixed-vo' = '' (flags = 8)
[cplayer] Setting option 'no-autosub' = '' (flags = 8)
[cplayer] Setting option 'osd-level' = '0' (flags = 8)
[cplayer] Setting option 'quiet' = '' (flags = 8)
[cplayer] Setting option 'no-consolecontrols' = '' (flags = 8)
[cplayer] Setting option 'no-mouse-movements' = '' (flags = 8)
[cplayer] Setting option 'subcp' = 'utf8' (flags = 8)
[cplayer] Setting option 'ao' = 'null,' (flags = 8)
[cplayer] Setting option 'ad-lavc-downmix' = 'no' (flags = 8)
[cplayer] Setting option 'channels' = '3' (flags = 8)
[cplayer] Configuration: ./waf configure --disable-manpage-build --disable-pdf-build --disable-vf-dlopen-filters --disable-macosx-bundle --enable-iconv --disable-terminfo --disable-termcap --disable-termios --disable-shm --disable-libguess --disable-libsmbclient --disable-encoding --disable-joystick --disable-lirc --disable-vcd --disable-libbluray --enable-dvdread --enable-dvdnav --disable-enca --enable-mpg123 --disable-ladspa --disable-libbs2b --disable-lcms2 --enable-libswresample --disable-libavfilter --disable-vf-lavfi --disable-af-lavfi --disable-libavdevice --disable-libpostproc --disable-libavresample --disable-sdl2 --disable-sdl1 --disable-rsound --disable-sndio --disable-openal --disable-dsound --disable-wasapi --disable-cocoa --disable-wayland --disable-x11 --disable-xss --disable-xext --disable-xv --disable-xinerama --disable-xf86vm --disable-xf86xk --disable-gl-cocoa --disable-gl-x11 --disable-gl-wayland --disable-gl-win32 --disable-gl --disable-corevideo --disable-vdpau --disable-vdpau-gl-x11 --disable-vaapi --disable-vaapi-vpp --disable-vaapi-glx --disable-caca --disable-dvb --disable-dvbin --disable-jpeg --disable-direct3d --disable-vda-gl --disable-vdpau-decoder --disable-radio --disable-radio-capture --disable-radio-v4l2 --disable-tv --disable-tv-v4l2 --disable-libv4l2 --disable-pvr --disable-audio-input --disable-lua --enable-oss-audio --enable-pulse --enable-jack --enable-alsa --disable-libquvi4
[cplayer] Command line: '-v' '--no-config' '--idle' '--no-fs' '--mouse-movements' '--af=dummy:address=31769456' '--vo=null:address=31769488' '--softvol=yes' '--softvol-max=1000.0' '--fixed-vo' '--no-autosub' '--osd-level=0' '--quiet' '--no-consolecontrols' '--no-mouse-movements' '--subcp=utf8' '--ao=null,' '--ad-lavc-downmix=no' '--channels=3'
[input] enable section 'default'
[input] Falling back on default (hardcoded) input config
[global] mp_find_user_config_file('fonts') -> '/home/bernd_b/.mpv/fonts'
Make connections
[cplayer] Audio: no audio
Recover states
""
Try system tray icon
Create system tray icon
QOpenGLFramebufferObject: Framebuffer incomplete attachment.
QOpenGLFramebufferObject: Framebuffer incomplete attachment.
[global] mp_find_user_config_file('00001.mkv.conf') -> '/home/bernd_b/.mpv/00001.mkv.conf'
[cplayer] Playing: /mnt/sda9/video/ITV_HD/2013-09-14.13.03.188-0.rec/00001.mkv
[file] File size is 153113063 bytes
[file] Opened: [file] /mnt/sda9/video/ITV_HD/2013-09-14.13.03.188-0.rec/00001.mkv
[input] Command vf: more than 1 arguments required.
[input] Command was defined at .
[demux] Trying demuxer: edl (force-level: normal)
[demux] Trying demuxer: cue (force-level: normal)
[demux] Trying demuxer: rawaudio (force-level: normal)
[demux] Trying demuxer: rawvideo (force-level: normal)
[demux] Trying demuxer: libass (force-level: normal)
[demux] Trying demuxer: mkv (force-level: normal)
[mkv] Found the head...
[mkv] + a segment...
[mkv] /---- [ parsing seek head ] ---------
[mkv] Element 0x1549a966 at 282.
[mkv] Element 0x1654ae6b at 363.
[mkv] Element 0x1254c367 at 737.
[mkv] Element 0x1c53bb6b at 153106584.
[mkv] \---- [ parsing seek head ] ---------
[mkv] |+ segment information...
[mkv] | + timecode scale: 1000000
[mkv] | + duration: 176.449s
[mkv] | + segment uid 3e 70 45 71 e5 11 e9 bc 3f 4f c7 9a 72 e2 17 c9
[mkv] |+ segment tracks...
[mkv] | + a track...
[mkv] | + Track number: 1
[mkv] | + Track type: Video
[mkv] | + Video track
[mkv] | + Display width: 1920
[mkv] | + Display height: 1080
[mkv] | + Pixel width: 1920
[mkv] | + Pixel height: 1080
[mkv] | + Codec ID: V_MPEG4/ISO/AVC
[mkv] | + CodecPrivate, length 41
[mkv] | + Language: und
[mkv] | + Default duration: 40.000ms ( = 25.000 fps)
[mkv] | + a track...
[mkv] | + Track number: 2
[mkv] | + Track type: Audio
[mkv] | + Audio track
[mkv] | + Sampling frequency: 48000.000000
[mkv] | + Channels: 2
[mkv] | + Codec ID: A_AC3
[mkv] | + Language: eng
[mkv] | + a track...
[mkv] | + Track number: 3
[mkv] | + Track type: Subtitle
[mkv] | + Codec ID: S_VOBSUB
[mkv] | + CodecPrivate, length 136
[mkv] | + Language: eng
[mkv] |+ found cluster
[mkv] Deferring reading cues.
[mkv] All headers are parsed!
[mkv] Aspect: 1.777778
[demux] Detected file format: Matroska
[global] mp_find_user_config_file('subfont.ttf') -> '/home/bernd_b/.mpv/subfont.ttf'
[global] mp_find_user_config_file('fonts.conf') -> '/home/bernd_b/.mpv/fonts.conf'
[libass] Setting up fonts...
[libass] Done.
[demux] Clip info:
[demux] ENCODER: Lavf55.28.101
[cplayer] [stream] Video (+) --vid=1 (h264)
[cplayer] [stream] Audio (+) --aid=1 --alang=eng (*) (ac3)
[cplayer] [stream] Subs (+) --sid=1 --slang=eng (*) (dvd_subtitle)
[cplayer] [V] fourcc:0x31637661 size:1920x1080 fps:25.000
[vo/null] Setting option 'address' = '31769488' (flags = 0)
[vd] Codec list:
[vd] lavc:h264 - H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10
[vd] lavc:h264_vdpau (h264) - H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 (VDPAU acceleration)
[vd] Opening video decoder lavc:h264
[vd] Trying to use hardware decoding.
[vd] Selected video codec: H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 [lavc:h264]
[ad] Codec list:
[ad] lavc:ac3 - ATSC A/52A (AC-3)
[ad] Opening audio decoder lavc:ac3
[ad] INFO: libavcodec "ac3" init OK!
[ad] Initial decode succeeded after 1 packets.
[ad] Selected audio codec: ATSC A/52A (AC-3) [lavc:ac3]
[ad] AUDIO: 48000 Hz, 2 ch, floatp
[ad] Building audio filter chain for 48000Hz stereo 2ch floatp -> 0Hz empty 0ch ??...
[af] Adding filter dummy
[af] Setting option 'address' = '31769456' (flags = 0)
[af] Audio filter chain:
[af] [in] 48000Hz stereo 2ch floatp
[af] [dummy] 48000Hz stereo 2ch floatp
[af] [out] 48000Hz stereo 2ch floatp
[af] [ao] 0Hz empty 0ch ??
[ao] Trying preferred audio driver 'alsa'
[ao/alsa] requested format: 48000 Hz, stereo channels, floatp
[ao/alsa] using device: default
[ao/alsa] using ALSA version: 1.0.27.2
[ao/alsa] pcm opened in blocking mode
[ao/alsa] got buffersize=16384 samples
[ao/alsa] got period size 1024
[ao/alsa] opened: 48000 Hz/2 channels/32 bps/16384 samples buffer/Float 32 bit Little Endian
[cplayer] AO: [alsa] 48000Hz stereo 2ch floatp
[cplayer] AO: Description: ALSA-0.9.x-1.x audio output
[ad] Building audio filter chain for 48000Hz stereo 2ch floatp -> 48000Hz stereo 2ch floatp...
[af] Audio filter chain:
[af] [in] 48000Hz stereo 2ch floatp
[af] [dummy] 48000Hz stereo 2ch floatp
[af] [out] 48000Hz stereo 2ch floatp
[af] [ao] 48000Hz stereo 2ch floatp
[sub] Subtitle filter chain: lavc (dvd_subtitle)
[cplayer] Starting playback...
[mkv] /---- [ parsing cues ] -----------
[mkv] \---- [ parsing cues ] -----------
[vd] Pixel formats supported by decoder: vaapi_vld vdpau yuv420p
[vd] Pixel formats supported by decoder: vaapi_vld vdpau yuv420p
[ffmpeg/video] h264: mmco: unref short failure
[vd] VIDEO: 1920x1080 25.000 fps 0.0 kbps ( 0.0 kB/s)
[vd] VDec: vo config request - 1920 x 1080 (vdpau)
[vd] VO Config (1920x1080->1920x1080,0x45C)
[vf] Video filter chain:
[vf] [in] 1920x1080 vdpau BT.709 (HD)/TV
[vf] [out] 1920x1080 vdpau BT.709 (HD)/TV
[cplayer] VO: [null] 1920x1080 => 1920x1080 vdpau
[cplayer] VO: Description: CMPlayer video output
[global] mp_find_user_config_file('fonts') -> '/home/bernd_b/.mpv/fonts'
[global] mp_find_user_config_file('subfont.ttf') -> '/home/bernd_b/.mpv/subfont.ttf'
[global] mp_find_user_config_file('fonts.conf') -> '/home/bernd_b/.mpv/fonts.conf'
[osd/libass] Setting up fonts...
[osd/libass] Done.
[global] mp_find_user_config_file('fonts') -> '/home/bernd_b/.mpv/fonts'
[global] mp_find_user_config_file('subfont.ttf') -> '/home/bernd_b/.mpv/subfont.ttf'
[global] mp_find_user_config_file('fonts.conf') -> '/home/bernd_b/.mpv/fonts.conf'
[osd/libass] Setting up fonts...
[osd/libass] Done.
[global] mp_find_user_config_file('fonts') -> '/home/bernd_b/.mpv/fonts'
[global] mp_find_user_config_file('subfont.ttf') -> '/home/bernd_b/.mpv/subfont.ttf'
[global] mp_find_user_config_file('fonts.conf') -> '/home/bernd_b/.mpv/fonts.conf'
[osd/libass] Setting up fonts...
[osd/libass] Done.
[ffmpeg/video] h264: mmco: unref short failure
[ffmpeg/video] h264: Increasing reorder buffer to 1
[ffmpeg/video] h264: Increasing reorder buffer to 2
[ffmpeg/video] h264: mmco: unref short failure
[cplayer]
[cplayer]
[cplayer] *************************************************
[cplayer] **** Audio/Video desynchronisation detected! ****
[cplayer] *************************************************
[cplayer]
[cplayer] This means either the audio or the video is played too slowly.
[cplayer] Possible reasons, problems, workarounds:
[cplayer] - Your system is simply too slow for this file.
[cplayer] Transcode it to a lower bitrate file with tools like HandBrake.
[cplayer] - Broken/buggy _audio_ driver.
[cplayer] Experiment with different values for --autosync, 30 is a good start.
[cplayer] If you have PulseAudio, try --ao=alsa .
[cplayer] - Slow video output.
[cplayer] Try a different -vo driver (-vo help for a list) or try -framedrop!
[cplayer] - Playing a video file with --vo=opengl with higher FPS than the monitor.
[cplayer] This is due to vsync limiting the framerate.
[cplayer] - Playing from a slow network source.
[cplayer] Download the file instead.
[cplayer] - Try to find out whether audio/video/subs are causing this by experimenting
[cplayer] with --no-video, --no-audio, or --no-sub.
[cplayer] - If you swiched audio or video tracks, try seeking to force synchronization.
[cplayer] If none of this helps you, file a bug report.
[cplayer]
[ffmpeg/video] h264: illegal short term buffer state detected
[ao/alsa] pause not supported by hardware
[cplayer] EOF code: 7
[cplayer]
[ad] Uninit audio filters...
[af] Removing filter dummy
[ad] Uninit audio decoder.
[vd] Uninit video.
[ao/alsa] uninit: pcm closed
terminate loop
[cplayer]
[cplayer] Exiting... (Quit)
terminate engine
But as said, on this nvidia pc with built in GeForce 8200 Graphics, it works without hw-acceleration (up to 1080i tested so far).
Last edited by bernd_b (2014-02-15 14:30:55)
Offline
@bernd_b It seems that all these problems occured by update of NVIDIA driver, maybe there are some bugs in the driver for old GPUs
I just noticed that my softdevice frontend "xineliboutput" for my TV Software vdr seems to behave very similar:
On the same Geforce 8200 based pc watching 1080i TV with vdpau enabled is unusable, while with using xv as video driver the picture is nearly as perfect as with cmplayer. So I would bet you are right, there is some problem with vdpau here.
Offline
I again switched to openbox, and i again have problem with activating "screensaver" (activating blank screen), after 10-15 minute of reproducing video in cmplayer, it activate blank screen (black screen). in smplayer, vlc and i not have that problems, only in cmplyer.
I also have LxDE and cmplayer there work fine. Here is log, i hope they something show useful.
Also tried Fluxbox and when i predd letter F for fullscreen it is vieable fluxbox bottom panel.
Offline
I updated to latest a few days ago (still latest), now I have no sound. Other programs (including MPV) play sound just fine. The media info also claims to be outputting sound.
Edit: Terminal Output
Create App instance
"Qt Warning - invalid keysym: dead_actute"
Create MainWindow instance
libva info: VA-API version 0.34.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib/dri/nvidia_drv_video.so
libva info: va_openDriver() returns -1
Initialize engine
Initialize mpv with ("cmplayer-mpv", "--no-config", "--idle", "--no-fs", "--mouse-movements", "--af=dummy:address=37907968", "--vo=null:address=37851744", "--softvol=yes", "--softvol-max=1000.0", "--fixed-vo", "--no-autosub", "--osd-level=0", "--quiet", "--no-consolecontrols", "--no-mouse-movements", "--subcp=utf8", "--ao=null,", "--ad-lavc-downmix=no", "--channels=3")
Make connections
Audio: no audio
Recover states
More output
QXcbWindow: Unhandled client message: "_E_COMP_FLUSH"
QXcbWindow: Unhandled client message: "_E_COMP_DUMP"
Playing: /media/Storage/Downloads/[HorribleSubs] Gintama - 182 [480p] [CB1B7F03].mkv
[input] Command vf: more than 1 arguments required.
[input] Command was defined at .
Detected file format: Matroska
[stream] Video (+) --vid=1 (h264)
[stream] Audio (+) --aid=1 (*) (aac)
[stream] Subs (+) --sid=1 (*) (ass)
Selected video codec: H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 [lavc:h264]
Selected audio codec: AAC (Advanced Audio Coding) [lavc:aac]
[ao/alsa] Format floatp is not supported by hardware, trying default.
AO: [alsa] 96000Hz stereo 2ch s16
VO: [null] 640x480 => 647x480 420p
Last edited by rabcor (2014-02-19 20:09:19)
Offline
Unfortunately, I seem to be having a few problems with cmplayer. I had it working a few weeks ago but have recently reinstalled (Manjaro 8.9rc3 xfce) and now when I launch cmplayer I get:
cmplayer
Create App instance
Segmentation fault (core dumped)
Nothing more. Mpv works as does smplayer2/mplayer2.
Not sure if this is correct but backtrace shows:
Program received signal SIGSEGV, Segmentation fault.
0x00007ffff07acd54 in QOpenGLContext::makeCurrent(QSurface*) () from /usr/lib/libQt5Gui.so.5
(gdb) backtrace
#0 0x00007ffff07acd54 in QOpenGLContext::makeCurrent(QSurface*) () from /usr/lib/libQt5Gui.so.5
#1 0x000000000043cd9e in main ()
I've tried git and non-git versions of cmplayer/mpv with the same result.
Edit: dmesg:
[ 3746.022800] cmplayer[5657]: segfault at 308 ip 00007f4c11688d54 sp 00007fff32c77eb0 error 4 in libQt5Gui.so.5.2.1[7f4c11578000+42f000]
[ 3773.801462] cmplayer[5727]: segfault at 308 ip 00007f8489d38d54 sp 00007fffd856ab70 error 4 in libQt5Gui.so.5.2.1[7f8489c28000+42f000]
Last edited by Shtick (2014-02-19 07:47:50)
Offline
I am unable to compile cmplayer-git
gcc -c -include release/cmplayer -pipe -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -fvisibility=hidden -pthread -Wall -W -D_REENTRANT -fPIE -DCMPLAYER_SKINS_PATH=\"/usr/share/cmplayer/skins\" -DCMPLAYER_IMPORTS_PATH=\"/usr/share/cmplayer/imports\" -DCMPLAYER_RELEASE -DUSING_PCH -DHAVE_PORTAUDIO=1 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -D_REENTRANT -DQT_NO_DEBUG -DQT_QUICK_LIB -DQT_QML_LIB -DQT_X11EXTRAS_LIB -DQT_WIDGETS_LIB -DQT_DBUS_LIB -DQT_XML_LIB -DQT_SQL_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/lib/qt/mkspecs/linux-g++ -I. -I../mpv -I../mpv/build -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/fribidi -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/quvi-0.9 -I/usr/include/chardet -I/usr/include/alsa -I/usr/include/qt -I/usr/include/qt/QtQuick -I/usr/include/qt/QtQml -I/usr/include/qt/QtX11Extras -I/usr/include/qt/QtWidgets -I/usr/include/qt/QtDBus -I/usr/include/qt/QtXml -I/usr/include/qt/QtSql -I/usr/include/qt/QtNetwork -I/usr/include/qt/QtGui -I/usr/include/qt/QtCore -Irelease -I. -o release/dither.o ../mpv/video/out/dither.c
../mpv/video/out/dither.c: In function ‘makegauss’:
../mpv/video/out/dither.c:79:5: error: ‘for’ loop initial declarations are only allowed in C99 mode
for (index_t c = 0; c < k->size2; c++)
^
../mpv/video/out/dither.c:79:5: note: use option -std=c99 or -std=gnu99 to compile your code
../mpv/video/out/dither.c:84:5: error: ‘for’ loop initial declarations are only allowed in C99 mode
for (index_t gy = 0; gy <= k->gauss_radius; gy++) {
^
../mpv/video/out/dither.c:85:9: error: ‘for’ loop initial declarations are only allowed in C99 mode
for (index_t gx = 0; gx <= gy; gx++) {
^
../mpv/video/out/dither.c:102:18: error: redefinition of ‘c’
for (index_t c = 0; c < k->size2; c++) {
^
../mpv/video/out/dither.c:79:18: note: previous definition of ‘c’ was here
for (index_t c = 0; c < k->size2; c++)
^
../mpv/video/out/dither.c:102:5: error: ‘for’ loop initial declarations are only allowed in C99 mode
for (index_t c = 0; c < k->size2; c++) {
^
../mpv/video/out/dither.c: In function ‘getmin’:
../mpv/video/out/dither.c:130:5: error: ‘for’ loop initial declarations are only allowed in C99 mode
for (index_t c = 0; c < size2; c++) {
^
../mpv/video/out/dither.c: In function ‘makeuniform’:
../mpv/video/out/dither.c:152:5: error: ‘for’ loop initial declarations are only allowed in C99 mode
for (index_t c = 0; c < size2; c++) {
^
../mpv/video/out/dither.c: In function ‘mp_make_fruit_dither_matrix’:
../mpv/video/out/dither.c:166:5: error: ‘for’ loop initial declarations are only allowed in C99 mode
for(index_t y = 0; y < k->size; y++) {
^
../mpv/video/out/dither.c:167:9: error: ‘for’ loop initial declarations are only allowed in C99 mode
for(index_t x = 0; x < k->size; x++)
^
../mpv/video/out/dither.c: In function ‘mp_make_ordered_dither_matrix’:
../mpv/video/out/dither.c:176:5: error: ‘for’ loop initial declarations are only allowed in C99 mode
for (int sz = 1; sz < size; sz *= 2) {
^
../mpv/video/out/dither.c:178:9: error: ‘for’ loop initial declarations are only allowed in C99 mode
for (int i = 0; i < 4; i++)
^
../mpv/video/out/dither.c:179:13: error: ‘for’ loop initial declarations are only allowed in C99 mode
for (int y = 0; y < sz * size; y += size)
^
../mpv/video/out/dither.c:180:17: error: ‘for’ loop initial declarations are only allowed in C99 mode
for (int x = 0; x < sz; x++)
^
Makefile.Release:71191: recipe for target 'release/dither.o' failed
make[2]: *** [release/dither.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory '/tmp/yaourt-tmp-test/aur-cmplayer-git/src/cmplayer/src/cmplayer'
Makefile:34: recipe for target 'release' failed
make[1]: *** [release] Error 2
make[1]: Leaving directory '/tmp/yaourt-tmp-test/aur-cmplayer-git/src/cmplayer/src/cmplayer'
Makefile:38: recipe for target 'cmplayer' failed
make: *** [cmplayer] Error 2
==> ERROR: A failure occurred in build().
Aborting...
==> ERROR: Makepkg was unable to build cmplayer-git.
==> Restart building cmplayer-git ? [y/N]
==> -------------------------------------
==>
Offline
I can confirm that, i cannot compile it to.
Offline
I managed to get the git version running by following the instructions, posted by imoutits, on the Aur page. However, when using hardware decoding video has a blue tinge. I can recreate this in mpv with:
mpv --vo=opengl --hwdec=vaapi
Whereas:
mpv --vo=vaapi --hwdec=vaapi
works as expected.
Offline
Compilation issue should be fixed now.
@Kosava, So, LXDE is ok but plain OpenBox has problem? I've tested in LXDE only, so I'll try OpenBox and let you know.
@rabcor Can you try latest git package?
@Shtick, What is your graphics driver? Please check the recent update log whether the graphics driver is updated or not. By the way, what's the post you mentioned?
Last edited by xylosper (2014-03-03 10:00:48)
Offline
LxDE is ok. Plain Openbox not work.
Last edited by Kosava (2014-03-03 13:44:31)
Offline
@Kosava I have tested with OpenBox but I couldn't find any problem. What does 'xset q' say in your PC?
Offline
Thanks very much for the updates.
Question concerning vdpau:
My card is supposed to have support for BOB, Temporal and Temporal Spatial Hardware-bases-Deinterlacing. CMPlayer only offers me BOB under HW-Decoding tab related to deinterlacing. Can I be sure that BOB is chosen and no other hardware deinteracer is running silently? (=which would be the easiest explanation for me why I get better performance without HW-Decoding support on my nvidia box although it works terrific with xine choosing BOB).
Offline
@bernd_b
So, vdpau works for you now? That's good.
You're right. CMPlayer uses only BOB deinterlacer for hwacc.
I want to support other algorithms but I have no PC which supports them, so I can't test and debug them.
Offline
Yes, it works in principal for me now.
But concerning picture quality I am better of without hw-acceleration. With vdpau turned on playback gets skippy (meaning no smooth playback meaning video stops and skips some pictures about two times a second although CPU load is significantly lower than with turning vdpau of).
I have the same effect with current vlc-2.1.4. Playback is much better leaving vdpau disabled although CPU load gets high on my not so up to date vdpau pc (Geforce 8200 with AMD Athlon(tm) 64 X2 Dual Core Processor 5200+ real MHZ=2700!). In fact only xine shows me how vdpau could work correctly. From here I know that I can only use BOB HW-Deinterlacing without getting into playback trouble with 1080 i/p -footage. But this works very nicely.
On my intel HD-Graphics box current cmplayer release brings with vaapi turned on the ease expected: lowering CPU use without lost of playback quality.
Again with all this reporting of "problems" I still want to emphasize my thanks for your great work.
Last edited by bernd_b (2014-03-09 09:23:51)
Offline
@bernd_b How about mpv? Try mpv --vo=opengl-hq --hwdec=vdpau (check actual CPU usage).
Offline
Yes, I forgot about this.
Playback behaves differently. The Video is played too slow, audio running ahead of it but audio sounds fine.
mpv --vo=opengl-hq --hwdec=vdpau Shetland.ts
Playing: Shetland.ts
[ffmpeg/video] h264: mmco: unref short failure
[ffmpeg/video] h264: number of reference frames (0+5) exceeds max (4; probably corrupt input), discarding one
[ffmpeg/demuxer] mpegts: PES packet size mismatch
[ffmpeg/demuxer] mpegts: PES packet size mismatch
[lavf] LAVF: Program 132
Detected file format: MPEG-TS (MPEG-2 Transport Stream) (libavformat)
[stream] Video (+) --vid=1 (h264)
[stream] Audio (+) --aid=1 --alang=NAR (mp2)
[stream] Audio --aid=2 --alang=eng (ac3)
[stream] Subs --sid=1 --slang=eng (dvb_subtitle)
Trying to use hardware decoding.
Selected video codec: H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 [lavc:h264]
Selected audio codec: MP2 (MPEG audio layer 2) [lavc:mp2]
AO: [alsa] 48000Hz stereo 2ch s16p
VO: [opengl-hq] 1920x1080 => 1920x1080 vdpau
AV: 17:37:27 / 01:08:59 (0%) A-V: 0.001
[ffmpeg/video] h264: mmco: unref short failure
[ffmpeg/video] h264: number of reference frames (0+5) exceeds max (4; probably corrupt input), discarding one
AV: 17:37:29 / 01:08:59 (0%) A-V: 1.667 ct: 0.061 Late: 50
*************************************************
**** Audio/Video desynchronisation detected! ****
*************************************************
This means either the audio or the video is played too slowly.
Possible reasons, problems, workarounds:
- Your system is simply too slow for this file.
Transcode it to a lower bitrate file with tools like HandBrake.
- Broken/buggy _audio_ driver.
Experiment with different values for --autosync, 30 is a good start.
If you have PulseAudio, try --ao=alsa .
- Slow video output.
Try a different -vo driver (-vo help for a list) or try -framedrop!
- Playing a video file with --vo=opengl with higher FPS than the monitor.
This is due to vsync limiting the framerate.
- Playing from a slow network source.
Download the file instead.
- Try to find out whether audio/video/subs are causing this by experimenting
with --no-video, --no-audio, or --no-sub.
- If you swiched audio or video tracks, try seeking to force synchronization.
If none of this helps you, file a bug report.
AV: 17:38:07 / 01:08:59 (1%) A-V: 16.679 Late: 1038
[ffmpeg/demuxer] mpegts: PES packet size mismatch
AV: 17:38:07 / 01:08:59 (1%) A-V: 16.690 Late: 1039
[ffmpeg/audio] mp2: Header missing
AV: 17:38:24 / 01:08:59 (2%) A-V: 23.363 ct: 0.099 Late: 1464
CPU Load is about 30 percent so I don't see why mpv complains about my system being too slow. I'll try to check to check if it could be the choose of the "wrong" hw-deinterlacer.
Last edited by bernd_b (2014-03-09 09:30:15)
Offline
Thank you and sorry, I've forgotten to mention that also try 'mpv --vo=vdpau --hwdec=vdpau'.
If the latter works for you, it's difficult for me to fix this because it means some bottleneck exists somewhere between OpenGL and VDPAU.
Also, check frame drop in CMPlayer's playback information.
Offline
Yes, there are nearly 20 dropped frames in 10 seconds (video is 25i frames per seconds).
And yes,
mpv -autofit=50% -hwdec=vdpau --deinterlace=yes -vo=vdpau:deint=-2 Shetland.ts
(where -autofit is just to ease the testing) seems to bring me where I left with xine's vdpau support.
Offline
So, you have no problem with vo=vdpau? Unfortunately, because CMPlayer cannot handle vdpau surface directly, maybe your problem won't be fixed until the driver fixed.
Just for more informations, can you post the logs with 'cmplayer --debug'? Also, how about without deinterlacer? You can toggle the deinterlacer with Ctrl+D.
Offline
Yes, -vo=vdpau seems to do quite a load of magic.
Here is, as requested the output with cmplayer --debug. I chose a session with deinterlacing turned off:
cmplayer --debug Shetland.ts
"Qt Warning - invalid keysym: dead_actute"
[OpenGL] Check OpenGL stuffs.
[OpenGL] Version: 2.1
[OpenGL] FBO texture format: GL_RGBA16
[OpenGL] Available extensions: GL_ARB_texture_rg, GL_ARB_texture_float, GL_NV_vdpau_interop, GLX_EXT_swap_control, GLX_SGI_swap_control, GL_ARB_framebuffer_object
[VDPAU] VDPAU device is initialized.
libva info: VA-API version 0.34.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib/dri/nvidia_drv_video.so
libva info: Found init function __vaDriverInit_0_33
libva info: va_openDriver() returns 0
[VA-API] VA-API is initialized.
[Engine] Create audio/video plugins
[Engine] Make registrations and connections
[Engine] Initialized
[Engine] Start playloop thread
[mpv/cplayer] Setting option 'fs' = 'no' (flags = 0)
[mpv/cplayer] Setting option 'mouse-movements' = 'yes' (flags = 0)
[mpv/cplayer] Setting option 'softvol' = 'yes' (flags = 0)
[mpv/cplayer] Setting option 'softvol-max' = '1000.0' (flags = 0)
[mpv/cplayer] Setting option 'autosub' = 'no' (flags = 0)
[mpv/cplayer] Setting option 'osd-level' = '0' (flags = 0)
[mpv/cplayer] Setting option 'quiet' = 'yes' (flags = 0)
[mpv/cplayer] Setting option 'consolecontrols' = 'no' (flags = 0)
[mpv/cplayer] Setting option 'ao' = 'null,' (flags = 0)
[mpv/cplayer] Setting option 'ad-lavc-downmix' = 'no' (flags = 0)
[mpv/cplayer] Setting option 'channels' = '3' (flags = 0)
[mpv/input] enable section 'default'
[mpv/global] user config path: 'input.conf' -> '/home/bernd_b/.mpv/input.conf'
[mpv/global] global config path: 'input.conf' -> '/mnt/sda8/makepkg/cmplayer/src/cmplayer-0.8.12/build/etc/mpv/input.conf'
[mpv/global] any config path: 'input.conf' -> '(NULL)'
[mpv/input] Falling back on default (hardcoded) input config
[mpv/global] user config path: 'fonts' -> '/home/bernd_b/.mpv/fonts'
[Engine] Error property unavailable: Couldn't set property deinterlace=0.
[Main] Show MainWindow.
[Main] Start main event loop.
[OpenGL] OpenGL debug logger was requested but it is not supported.
QOpenGLFramebufferObject: Framebuffer incomplete attachment.
QOpenGLFramebufferObject: Framebuffer incomplete attachment.
[Engine] Load: file:///mnt/sda9/ProjectX/Shetland.ts (ao="",hwdec=vdpau,hwdec-codecs="mpeg1video,mpeg2video,mpeg4,h264,vc1,wmv3",deinterlace=no,volume=10,mute=no,audio-delay=0,sub-delay=0,cache=no,pause=no,af="dummy:address=13831120:use_scaler=1:layout=3",vo="null:address=13829808:swdec_deint=Bob|0|OpenGL:hwdec_deint=Bob|0|GPU")
[mpv/global] user config path: 'Shetland.ts.conf' -> '/home/bernd_b/.mpv/Shetland.ts.conf'
[mpv/global] user config path: 'watch_later/2C019FC0A4C5AA0103B3BC0C36D01EAD' -> '/home/bernd_b/.mpv/watch_later/2C019FC0A4C5AA0103B3BC0C36D01EAD'
[mpv/cplayer] Setting option 'ao' = '' (flags = 16)
[mpv/cplayer] Setting option 'hwdec' = 'vdpau' (flags = 16)
[mpv/cplayer] Setting option 'hwdec-codecs' = 'mpeg1video,mpeg2video,mpeg4,h264,vc1,wmv3' (flags = 16)
[mpv/cplayer] Setting option 'deinterlace' = 'no' (flags = 16)
[mpv/cplayer] Setting option 'volume' = '10' (flags = 16)
[mpv/cplayer] Setting option 'mute' = 'no' (flags = 16)
[mpv/cplayer] Setting option 'audio-delay' = '0' (flags = 16)
[mpv/cplayer] Setting option 'sub-delay' = '0' (flags = 16)
[mpv/cplayer] Setting option 'cache' = 'no' (flags = 16)
[mpv/cplayer] Setting option 'pause' = 'no' (flags = 16)
[mpv/cplayer] Setting option 'af' = 'dummy:address=13831120:use_scaler=1:layout=3' (flags = 16)
[mpv/cplayer] Setting option 'vo' = 'null:address=13829808:swdec_deint=Bob|0|OpenGL:hwdec_deint=Bob|0|GPU' (flags = 16)
[mpv/file] File size is 2682998196 bytes
[mpv/file] Opened: [file] /mnt/sda9/ProjectX/Shetland.ts
[mpv/demux] Trying demuxer: edl (force-level: normal)
[mpv/demux] Trying demuxer: cue (force-level: normal)
[mpv/demux] Trying demuxer: rawaudio (force-level: normal)
[mpv/demux] Trying demuxer: rawvideo (force-level: normal)
[mpv/demux] Trying demuxer: libass (force-level: normal)
[mpv/demux] Trying demuxer: mkv (force-level: normal)
[mpv/demux] Trying demuxer: lavf (force-level: normal)
[mpv/lavf] Found 'mpegts' at score=100 size=2048.
[mpv/ffmpeg/video] h264: Increasing reorder buffer to 2
[mpv/ffmpeg/video] h264: Increasing reorder buffer to 3
[VDPAU] VDPAU Mixer initialized.
[App] Initialize screensaver functions.
[App] Try to connect 'org.gnome.SessionManager'.
[App] Failed to connect 'org.gnome.SessionManager'. Fallback to 'org.freedesktop.ScreenSaver'.
[App] Failed to connect 'org.freedesktop.ScreenSaver'. Fallback to XResetScreenSaver().
[App] Disable screensaver with XResetScreenSaver().
[mpv/ffmpeg/demuxer] mpegts: max_analyze_duration 5000000 reached at 5024000 microseconds
[mpv/lavf] demux_lavf: avformat_find_stream_info() finished after 0 bytes.
[mpv/lavf] PROGRAM_ID=132
[mpv/lavf] LAVF: build 3609448
[mpv/global] user config path: 'subfont.ttf' -> '/home/bernd_b/.mpv/subfont.ttf'
[mpv/global] user config path: 'fonts.conf' -> '/home/bernd_b/.mpv/fonts.conf'
[mpv/global] global config path: 'fonts.conf' -> '/mnt/sda8/makepkg/cmplayer/src/cmplayer-0.8.12/build/etc/mpv/fonts.conf'
[mpv/global] any config path: 'fonts.conf' -> '(NULL)'
[mpv/libass] Setting up fonts...
[mpv/libass] Done.
[mpv/cplayer] [V] fourcc:0x1B size:1920x1080 fps:25.000
[mpv/vo/null] Setting option 'address' = '13829808' (flags = 0)
[mpv/vo/null] Setting option 'swdec_deint' = 'Bob|0|OpenGL' (flags = 0)
[mpv/vo/null] Setting option 'hwdec_deint' = 'Bob|0|GPU' (flags = 0)
[mpv/vd] Codec list:
[mpv/vd] lavc:h264 - H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10
[mpv/vd] lavc:h264_vdpau (h264) - H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 (VDPAU acceleration)
[mpv/vd] Opening video decoder lavc:h264
[mpv/ad] Codec list:
[mpv/ad] lavc:mp2 - MP2 (MPEG audio layer 2)
[mpv/ad] lavc:mp2float (mp2) - MP2 (MPEG audio layer 2)
[mpv/ad] Opening audio decoder lavc:mp2
[mpv/ad] INFO: libavcodec "mp2" init OK!
[mpv/ad] Initial decode succeeded after 1 packets.
[mpv/ad] AUDIO: 48000 Hz, 2 ch, s16p
[mpv/ad] Building audio filter chain for 48000Hz stereo 2ch s16p -> 0Hz empty 0ch ??...
[mpv/af] Adding filter dummy
[mpv/af] Setting option 'address' = '13831120' (flags = 0)
[mpv/af] Setting option 'use_scaler' = '1' (flags = 0)
[mpv/af] Setting option 'layout' = '3' (flags = 0)
[mpv/af] Audio filter chain:
[mpv/af] [in] 48000Hz stereo 2ch s16p
[mpv/af] [dummy] 48000Hz stereo 2ch s16p
[mpv/af] [out] 48000Hz stereo 2ch s16p
[mpv/af] [ao] 0Hz empty 0ch ??
[mpv/ao/pulse] requested format: 48000 Hz, stereo channels, s16p
[mpv/ao/alsa] requested format: 48000 Hz, stereo channels, s16p
[mpv/ao/alsa] using device: default
[mpv/ao/alsa] using ALSA version: 1.0.27.2
[mpv/ao/alsa] pcm opened in blocking mode
[mpv/ao/alsa] got buffersize=16384 samples
[mpv/ao/alsa] got period size 1024
[mpv/ao/alsa] opened: 48000 Hz/2 channels/16 bps/16384 samples buffer/Signed 16 bit Little Endian
[mpv/cplayer] AO: Description: ALSA-0.9.x-1.x audio output
[mpv/ad] Building audio filter chain for 48000Hz stereo 2ch s16p -> 48000Hz stereo 2ch s16p...
[mpv/af] Audio filter chain:
[mpv/af] [in] 48000Hz stereo 2ch s16p
[mpv/af] [dummy] 48000Hz stereo 2ch s16p
[mpv/af] [out] 48000Hz stereo 2ch s16p
[mpv/af] [ao] 48000Hz stereo 2ch s16p
[mpv/cplayer] Starting playback...
[mpv/vd] Pixel formats supported by decoder: vaapi_vld vdpau yuv420p
[mpv/vd] VIDEO: 1920x1080 25.000 fps 0.0 kbps ( 0.0 kB/s)
[mpv/vd] VDec: vo config request - 1920 x 1080 (vdpau)
[mpv/vd] VO Config (1920x1080->1920x1080,0x45C)
[mpv/vf] Video filter chain:
[mpv/vf] [in] 1920x1080 vdpau BT.709 (HD)/TV
[mpv/vf] [out] 1920x1080 vdpau BT.709 (HD)/TV
[mpv/cplayer] VO: Description: CMPlayer video output
[mpv/global] user config path: 'fonts' -> '/home/bernd_b/.mpv/fonts'
[mpv/global] user config path: 'subfont.ttf' -> '/home/bernd_b/.mpv/subfont.ttf'
[mpv/global] user config path: 'fonts.conf' -> '/home/bernd_b/.mpv/fonts.conf'
[mpv/global] global config path: 'fonts.conf' -> '/mnt/sda8/makepkg/cmplayer/src/cmplayer-0.8.12/build/etc/mpv/fonts.conf'
[mpv/global] any config path: 'fonts.conf' -> '(NULL)'
[mpv/osd/libass] Setting up fonts...
[mpv/osd/libass] Done.
[mpv/global] user config path: 'fonts' -> '/home/bernd_b/.mpv/fonts'
[mpv/global] user config path: 'subfont.ttf' -> '/home/bernd_b/.mpv/subfont.ttf'
[mpv/global] user config path: 'fonts.conf' -> '/home/bernd_b/.mpv/fonts.conf'
[mpv/global] global config path: 'fonts.conf' -> '/mnt/sda8/makepkg/cmplayer/src/cmplayer-0.8.12/build/etc/mpv/fonts.conf'
[mpv/global] any config path: 'fonts.conf' -> '(NULL)'
[mpv/osd/libass] Setting up fonts...
[mpv/osd/libass] Done.
[mpv/global] user config path: 'fonts' -> '/home/bernd_b/.mpv/fonts'
[mpv/global] user config path: 'subfont.ttf' -> '/home/bernd_b/.mpv/subfont.ttf'
[mpv/global] user config path: 'fonts.conf' -> '/home/bernd_b/.mpv/fonts.conf'
[mpv/global] global config path: 'fonts.conf' -> '/mnt/sda8/makepkg/cmplayer/src/cmplayer-0.8.12/build/etc/mpv/fonts.conf'
[mpv/global] any config path: 'fonts.conf' -> '(NULL)'
[mpv/osd/libass] Setting up fonts...
[mpv/osd/libass] Done.
[mpv/ffmpeg/video] h264: Increasing reorder buffer to 1
[mpv/ffmpeg/video] h264: Increasing reorder buffer to 2
[mpv/ffmpeg/video] h264: Increasing reorder buffer to 3
[mpv/ao/alsa] pause not supported by hardware
[App] Enable screensaver with XResetScreenSaver().
[Engine] Error property unavailable: Couldn't get property 'time-pos'.
[Engine] Finish playloop thread
[Main] Exit...
[Engine] Finalized
Maybe my graphic card is just too slow for openGL HQ-video?
Last edited by bernd_b (2014-03-09 17:03:03)
Offline
@Kosava I have tested with OpenBox but I couldn't find any problem. What does 'xset q' say in your PC?
Here it is http://pastebin.com/LVGA6Pmd
For me after 10-15 min goes blank screen in openbox, when i play videos with cmplayer still...
Offline