Package Details: qmplay2 16.06.01-2

Git Clone URL: https://aur.archlinux.org/qmplay2.git (read-only)
Package Base: qmplay2
Description: QMPlay2 is a video and audio player which can play most formats and codecs
Upstream URL: http://qt-apps.org/content/show.php/QMPlay2?content=153339
Keywords: ass audio chiptune ffmpeg media mod movie player qt srt subtitles video youtube
Licenses: LGPL
Submitter: mrbit
Maintainer: zaps166
Last Packager: zaps166
Votes: 19
Popularity: 1.208003
First Submitted: 2012-10-13 22:02
Last Updated: 2016-06-14 22:26

Latest Comments

zaps166 commented on 2016-06-14 22:26

Switched to Qt5 :)

ahjolinna commented on 2016-04-23 14:41

yeah it's maybe smart to wait for 5.6.1, even kde neon project is waiting for it before they will release their first stable ISO

zaps166 commented on 2016-04-23 14:27

Still waiting for 5.6.1... QMPlay2 compilation script uses Qt 5.6.1 as default (if detected).

Qt 5.6.0 wrongly process important mouse enter/leave events on XCB (worse than Qt 5.5.1, so it is annoying):
https://codereview.qt-project.org/#/c/155866/
https://codereview.qt-project.org/#/c/145514/
https://codereview.qt-project.org/#/c/146627/

And for submenus with widgets (Video EQ in QMPlay2):
https://codereview.qt-project.org/#/c/146891/
https://codereview.qt-project.org/#/c/148771/

And other (not my own) patches which fixes DBus Menu - 5.5.x and 5.6.0 break more complicated tray context menus (QMPlay2 tray context menu) e.g. on KDE.

Currently qmplay2-git uses Qt5. I don't know when 5.6.1 will be released, so I can switch to Qt5 if you want....

ahjolinna commented on 2016-04-23 14:07

I think now when Qt5.6 (LTS) has arrived you you should use it instead of the obsolete Qt4

zaps166 commented on 2015-07-30 10:05

Thanks, fixed!

vagorafaelino commented on 2015-07-30 01:21

There's a typo in the makedepends array.
Please remove comma after gcc

mrbit commented on 2015-07-22 21:42

ok (y) :)

zaps166 commented on 2015-07-22 20:49

Hi,
Source directory is "QMPlay2-*".
This is bug in aur, but not in aur4 :)
I maintain aur4 package

ennorie commented on 2015-07-22 14:05

Hi,
as for today, MAKEPKG needs a little tweak :
Source directory is QMPlay2-15.07.13 and not QMPlay2-src

ennorie commented on 2015-07-22 14:04

Hi,
as for today, MAKEPKG needs a little tweak :
Source directory is QMPlay2-15.07.13 and not in QMPlay2-src.

zaps166 commented on 2015-06-06 09:20

Hi,
QMPlay2 doesn't use "openal" and minimum "ffmpeg" version is 2.0 (you don't have to specify version) :)

mrbit commented on 2015-01-04 12:57

Hi zaps166, done :)

zaps166 commented on 2015-01-04 11:41

Please remove all lines containing "sed" from PKGBUILD :)

piteq commented on 2015-01-03 20:23

../../app/lib/libqmplay2.so: undefined reference to `swr_free'
../../app/lib/libqmplay2.so: undefined reference to `swr_init'
../../app/lib/libqmplay2.so: undefined reference to `swr_convert'
../../app/lib/libqmplay2.so: undefined reference to `swr_alloc_set_opts'
../../app/lib/libqmplay2.so: undefined reference to `swr_set_matrix'
collect2: error: ld returned 1 exit status
Makefile:193: polecenia dla obiektu '../../app/bin/QMPlay2' nie powiodły się
make[2]: *** [../../app/bin/QMPlay2] Błąd 1
make[2]: Opuszczenie katalogu '/tmp/yaourt-tmp-piteq/aur-qmplay2/src/QMPlay2-src/src/gui'
Makefile:113: polecenia dla obiektu 'sub-gui-make_default-ordered' nie powiodły się
make[1]: *** [sub-gui-make_default-ordered] Błąd 2
make[1]: Opuszczenie katalogu '/tmp/yaourt-tmp-piteq/aur-qmplay2/src/QMPlay2-src/src'
Makefile:39: polecenia dla obiektu 'sub-src-make_default' nie powiodły się
make: *** [sub-src-make_default] Błąd 2

real 3m40.783s
user 3m8.367s
sys 0m9.395s
Build failed!


:(:(

mrbit commented on 2014-12-06 11:38

Hi urbanomad64, oops sorry , now work. Test please.

urbanomad64 commented on 2014-12-05 14:16

build fails
collect2: error: ld returned 1 exit status
Makefile:195: recipe for target '../../app/bin/QMPlay2' failed
make[2]: *** [../../app/bin/QMPlay2] Error 1
make[2]: Leaving directory '/tmp/yaourt-tmp-seansloanejohnson/aur-qmplay2/src/QMPlay2-src/src/gui'
Makefile:113: recipe for target 'sub-gui-make_default-ordered' failed
make[1]: *** [sub-gui-make_default-ordered] Error 2
make[1]: Leaving directory '/tmp/yaourt-tmp-seansloanejohnson/aur-qmplay2/src/QMPlay2-src/src'
Makefile:39: recipe for target 'sub-src-make_default' failed
make: *** [sub-src-make_default] Error 2

real 1m46.146s
user 1m37.853s
sys 0m4.850s
Build failed!
==> ERROR: A failure occurred in build().
Aborting...

ahjolinna commented on 2014-10-26 18:16

why not Qt5 instead?

mrbit commented on 2014-09-16 06:52

Hi metak, ok, done. reinstall

metak commented on 2014-09-16 03:07

@ Ilya87
Release page suggests following:

*libavresample:
Uncomment last three lines in "src/qmplay2/qmplay2.pro"

Fixes the problem for me.

Ilya87 commented on 2014-08-22 03:38

Using with ffmpeg-git gives error:
SndResampler.cpp: В функции-члене «bool SndResampler::create(int, int, int, int)»:
SndResampler.cpp:60:26: ошибка: нет декларации «SWR_CH_MAX» в этой области видимости
channel_map.fill( -1, SWR_CH_MAX );
^

mrbit commented on 2014-07-28 21:42

Hey zaps166
done.

zaps166 commented on 2014-07-28 18:59

Hi, new release because of bugs in .desktop files - (new checksum, because this is the same file name). Please remove ">=1.2" from ffmpeg dependency :)

zaps166 commented on 2014-07-27 20:18

Hi! There is new version :)
Please remove these lines (no longer needed):
mkdir -p $pkgdir/usr/share/icons/hicolor/128x128/apps
cp $pkgdir/usr/share/icons/QMPlay2.png $pkgdir/usr/share/icons/hicolor/128x128/apps/
And also you can replace "ffmpeg>=1.2" by "ffmpeg" because it may cause dependency conflicts.

mrbit commented on 2014-06-24 15:51

Thanks Ilya87, done..

Ilya87 commented on 2014-06-23 22:42

If icon is invisible in multimedia apps list add the following lines to the end of package() secti on
mkdir -p $pkgdir/usr/share/icons/hicolor/128x128/apps
mv $pkgdir/usr/share/icons/QMPlay2.png $pkgdir/usr/share/icons/hicolor/128x128/apps/

Ilya87 commented on 2014-05-25 19:39

Very strange, but now I can't reproduce this bug (with field order flags). But I have a new one - wmv3 format decodes using ffwmv3, not ffwmv3vdpau on hardware that supports wmv3 VDPAU acceleration.

zaps166 commented on 2014-05-23 09:56

Ilya87: Could you send me movie (or only fragment), which has incorrect field order flag? I think that field order flag does nothing without deinterlacing, so I must see that movie.

zaps166 commented on 2014-05-23 09:51

OK, VDPAU doesn't work. I don't know why, probably this is ffmpeg-git bug (VLC has the same crash).

You can apply this patch for ffmpeg-git (not for working FFMpeg from official repos, because some movies are less smooth in 1 thread (I don't know why :D)):

--- QMPlay2-src-orig/src/modules/FFMpeg/FFDecVDPAU.cpp 2014-02-22 21:53:12.000000000 +0100
+++ QMPlay2-src/src/modules/FFMpeg/FFDecVDPAU.cpp 2014-05-23 11:43:31.310613570 +0200
@@ -48,7 +48,7 @@
codec_ctx->hwaccel_context = av_mallocz( sizeof( AVVDPAUContext ) );
( ( AVVDPAUContext * )codec_ctx->hwaccel_context )->decoder = ( ( VDPAUWriter * )hwAccelWriter )->getVdpDecoder();
( ( AVVDPAUContext * )codec_ctx->hwaccel_context )->render = ( ( VDPAUWriter * )hwAccelWriter )->getVdpDecoderRender();
- codec_ctx->thread_count = LIBAVCODEC_VERSION_MAJOR < 55 ? 1 : 3;
+ codec_ctx->thread_count = 1;//LIBAVCODEC_VERSION_MAJOR < 55 ? 1 : 3;
codec_ctx->get_buffer = HWAccelHelper::get_buffer;
codec_ctx->release_buffer = HWAccelHelper::release_buffer;
codec_ctx->get_format = get_format;

zaps166 commented on 2014-05-23 09:50

OK, VDPAU doesn't work. I don't know why, probably this is ffmpeg-git bug (VLC has the same crash).

You can apply this patch for ffmpeg-git (not for working FFMpeg from official repos, because some movies are less smooth in 1 thread (I don't know why :D)):

--- QMPlay2-src/src/modules/FFMpeg/FFDecVDPAU.cpp 2014-05-23 11:43:31.310613570 +0200
+++ QMPlay2-src-orig/src/modules/FFMpeg/FFDecVDPAU.cpp 2014-02-22 21:53:12.000000000 +0100
@@ -48,7 +48,7 @@
codec_ctx->hwaccel_context = av_mallocz( sizeof( AVVDPAUContext ) );
( ( AVVDPAUContext * )codec_ctx->hwaccel_context )->decoder = ( ( VDPAUWriter * )hwAccelWriter )->getVdpDecoder();
( ( AVVDPAUContext * )codec_ctx->hwaccel_context )->render = ( ( VDPAUWriter * )hwAccelWriter )->getVdpDecoderRender();
- codec_ctx->thread_count = 1;//LIBAVCODEC_VERSION_MAJOR < 55 ? 1 : 3;
+ codec_ctx->thread_count = LIBAVCODEC_VERSION_MAJOR < 55 ? 1 : 3;
codec_ctx->get_buffer = HWAccelHelper::get_buffer;
codec_ctx->release_buffer = HWAccelHelper::release_buffer;
codec_ctx->get_format = get_format;

Ilya87 commented on 2014-05-22 21:24

This bug appears when VDPAU decoding enabled (and consequently is used for decoding).
P. S. Feature request - add please option (if possible) to set explicitly field order not only when deinterlacing filter is enabled and for VDPAU, because there are some videos that have wrong field order flag and decoding without correct flag leads to ugly picture without deinterlacing and ugly picture with VDPAU deinterlacing.

Ilya87 commented on 2014-05-22 21:22

This bug appears when VDPAU decoding enabled (and consequently is used for decoding).
P. S. Feature request - add please option (if possible) to set explicitly field order not only when deinterlacing filter is enabled and for VDPAU, because there are some videos that have wrong field order flag and decoding with or without correct flags leading to ugly picture without deinterlacing and ugly picture with VDPAU deinterlacing.

zaps166 commented on 2014-05-22 11:31

I compiled ffmpeg-git and qmplay2 and it works correctly. I can't fix bug which is unavailable for me. Could you tell me more about this API change?

Ilya87 commented on 2014-05-22 00:07

This commit is obviously in official ffmpeg's repo, that means QMPlay2 can't oark with ffmpeg-git. Even after recompilation of QMPlay2 it produces the same error. The commit was about API change.

zaps166 commented on 2014-05-21 13:40

This patch modifies libavutil/utils.c, but QMPlay2 crashes at assert in libavcodec/utils.c. I can't compile QMPlay2 with 502512ea0f179165782777265f441d4061ff6012 commit (it seems like libav, but QMPlay2 needs ffmpeg). You must recompile QMPlay2 after updating ffmpeg, otherwise you can have strange software behaviour.

Ilya87 commented on 2014-05-20 18:20

http://git.videolan.org/?p=ffmpeg.git;a=commit;h=502512ea0f179165782777265f441d4061ff6012 - This commit crashes QMPlay2:
Assertion desc->flags & (1 << 4) failed at libavcodec/utils.c:707
[20 may 2014 22:11:07] Program przerwał działanie (SIGABRT)

mrbit commented on 2014-03-08 20:17

Thanks zaps166, done.

zaps166 commented on 2014-03-08 17:24

You can add youtube-dl to optdepends for correct youtube URL decode

mrbit commented on 2014-02-16 23:02

done.

zaps166 commented on 2014-02-16 21:58

Thanks, but the version is 14.02.16 (sorry, my fault)

mrbit commented on 2014-02-16 21:50

Hi zaps166, done.

zaps166 commented on 2014-02-16 21:30

Hi, there is new version available! Please add 'taglib' and 'libcddb' to dependencies!

zaps166 commented on 2013-12-07 15:20

Hi, there is an update available. You should remove "sed"!

zaps166 commented on 2013-11-01 22:12

Hi, please add:
sed -i 's/.*reader->seek/if \( \( wh == 0 \&\& offset < 0 \) \|\| \!reader->seek/' src/modules/FFMpeg/FFDemux.cpp
Since FFMpeg 2.1 QMPlay2 crashes at MPEGTS files. This is a patch.

zaps166 commented on 2013-09-08 20:02

There is an update available. Now by default there is ALSA module instead of Portaudio on Linux, you should change depends in PKGBUILD.

willemw commented on 2013-08-23 06:51

Hi mrbit. You could remove makedepends and optdepends (or list the reason why pulseaudio is an optdepends after the ':' ). Use 'install -Dm755' instead of 'mv'. For more minor cleanup, in general: perhaps try to follow the wiki PKGBUILD guidelines even more closely (e.g. list the maintainer, don't mention the program name in the title, have quotes around paths containing $pkgdir and $srcdir, BTW there is no need for $srcdir here.)

mrbit commented on 2013-08-23 06:25

Hi willemw, what do you suggest ?

willemw commented on 2013-08-23 05:07

(No need for makedepends here. Could use 'install' instead of 'mv'. Is pulseaudio really an optdepends (i.e. does it give you additional qmplay2 features?) ..., ...)

zaps166 commented on 2013-08-19 08:20

Hmmm, I don't know why. Remove QMPlay2, check manually if it has been removed and reinstall.

mrbit commented on 2013-08-19 07:01

thanks zaps166, done
Wotk , but in the terminal : QMPlay2
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib pcm_dmix.c:961:(snd_pcm_dmix_open) The dmix plugin supports only playback stream
[19 ago 2013 08:57:28] Cannot load library /usr/bin/../share/qmplay2/modules/libVisualizations.so: (/usr/bin/../share/qmplay2/modules/libVisualizations.so: undefined symbol: _ZTI9VisWidget)

zaps166 commented on 2013-08-18 21:42

New version of QMPlay2, new versioning and you can remove all "sed" from PKGBUILD :)

mrbit commented on 2013-08-03 07:33

thanks zaps166, done

zaps166 commented on 2013-08-02 22:26

Since FFMpeg 2.0 there's no subtitles in MKV files, here is my patch:

Remove from PKGBUILD:
sed -i "1i#include <va/va_version.h>" src/modules/FFMpeg/VAApiWriter.hpp
sed -i "1i#include <va/va_compat.h>" src/modules/FFMpeg/VAApiWriter.hpp
and remove "ffmpeg-full" from "optdepends", because now Arch Linux FFMpeg package has "VAAPI".

And add to PKGBUILD:
sed -i 's/ packet.convergence_duration != QMPLAY2_NOPTS_VALUE/packet.convergence_duration > 0/' src/modules/FFMpeg/FFDemux.cpp
sed -i 's/qstrcmp( codecName, "ass" )/qstrcmp( codecName, "ass" ) \&\& qstrcmp( codecName, "ssa" )/' src/gui/PlayClass.cpp
sed -i 's/\!qstrcmp( streams\[ subtitlesStream \].codecName, "ass" )/(\!qstrcmp( streams\[ subtitlesStream \].codecName, "ass" ) \|\| \!qstrcmp( streams\[ subtitlesStream \].codecName, "ssa" ) )/' src/gui/PlayClass.cpp

Thanks :)

mrbit commented on 2013-07-12 14:38

done zaps166.

zaps166 commented on 2013-07-12 13:24

New version of QMPlay2, VAAPI fixed

zaps166 commented on 2013-07-11 13:28

fixed: vaCreateSurfaces(), new md5 sum: b34f5e0da05eaf23ffcb0095253671f9

jim1960 commented on 2013-06-30 10:10

makepkg error: (just pacman -Syu)
--------------
VAApiWriter.cpp:186:95: error: invalid conversion from ‘int’ to ‘VASurfaceID* {aka unsigned int*}’ [-fpermissive]
if ( vaCreateSurfaces( VADisp, realW, realH, VA_RT_FORMAT_YUV420, surface_count, VA_surfaces ) != VA_STATUS_SUCCESS )
^
VAApiWriter.cpp:186:95: error: invalid conversion from ‘VASurfaceID* {aka unsigned int*}’ to ‘unsigned int’ [-fpermissive]
VAApiWriter.cpp:186:95: error: too few arguments to function ‘VAStatus vaCreateSurfaces(VADisplay, unsigned int, unsigned int, unsigned int, VASurfaceID*, unsigned int, VASurfaceAttrib*, unsigned int)’
In file included from /usr/include/va/va_x11.h:27:0,
from ./VAApiWriter.hpp:10,
from VAApiWriter.cpp:11:
/usr/include/va/va.h:792:1: note: declared here
vaCreateSurfaces(
^
g++ -c -m64 -pipe -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -Wall -W -D_REENTRANT -fPIC -DQT_NO_DEBUG -DQT_PLUGIN -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++-64 -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I. -I../../qmplay2/headers -Ilibmodplug -Ibuild/moc -o build/obj/load_s3m.o libmodplug/load_s3m.cpp
make[3]: *** [build/obj/VAApiWriter.o] Error 1
-----------------

zaps166 commented on 2013-05-19 17:14

OK, thanks :)
//pkgdesc is truncated - should be in one line

mrbit commented on 2013-05-19 17:06

ok, zaps166, done

zaps166 commented on 2013-05-19 16:52

There is new QMPlay2, can You use this PKGBUILD:

# Contributer: giacomogiorgianni@gmail.com

pkgname=qmplay2
pkgver=19V2013
pkgrel=1
pkgdesc="QMPlay2 is a video player, it can plays all formats and stream supported by ffmpeg and libmodplug (including J2B). It has integrated Youtube browser"
arch=('i686' 'x86_64')
url="http://qt-apps.org/content/show.php/QMPlay2?content=153339"
license=('LGPL')
depends=('qt4' 'ffmpeg' 'libass' 'mesa' 'libva' 'libxv' 'portaudio' 'libcdio')
optdepends=('pulseaudio' 'ffmpeg-full')
makedepends=('make' 'gcc')
source=("http://sourceforge.net/projects/zaps166/files/QMPlay2/QMPlay2-src-${pkgver}.tar.bz2")
md5sums=(514ad7b96de3d94fde6c458b0065d9d6)

build()
{
cd $srcdir/QMPlay2-src
NOTERM=1 SYSTEM_BUILD=1 ./compile_unix 0
}

package()
{
mv $srcdir/QMPlay2-src/app $pkgdir/usr
}

? Thanks :)

zaps166 commented on 2013-05-19 16:12

There is new QMPlay2, can You use this PKGBUILD:

# Contributer: giacomogiorgianni@gmail.com

pkgname=qmplay2
pkgver=19V2013
pkgrel=1
pkgdesc="QMPlay2 is a video player, it can plays all formats and stream supported by ffmpeg and libmodplug (including J2B). It has integrated Youtube browser"
arch=('i686' 'x86_64')
url="http://qt-apps.org/content/show.php/QMPlay2?content=153339"
license=('LGPL')
depends=('qt4' 'ffmpeg' 'libass' 'mesa' 'libva' 'libxv' 'portaudio' 'libcdio')
optdepends=('pulseaudio' 'ffmpeg-full')
makedepends=('make' 'gcc')
source=("http://sourceforge.net/projects/zaps166/files/QMPlay2/QMPlay2-src-${pkgver}.tar.bz2")
md5sums=(069e24495ba8752da9933b91fe4d4859)

build()
{
cd $srcdir/QMPlay2-src
NOTERM=1 SYSTEM_BUILD=1 ./compile_unix 0
}

package()
{
mv $srcdir/QMPlay2-src/app $pkgdir/usr
}

? Thanks :)

zaps166 commented on 2013-03-25 17:35

QMPlay2 requires qt4, not qt (aka Qt5) and "pulseaudio" should be an optional package :)
Can You add to script "QMPlay2_enqueue.desktop" and "qmplay2-opencda.desktop" (for KDE4 CDAudio notifications) files into correct directories?
I think that "make" should detect number of CPU cores (or CPUs), look at my QMPlay2 compile script or in my old QMPlay PKGBUILD which detects and uses all CPU cores during compilation :)
Thanks :D

mrbit commented on 2013-01-20 09:54

done.

mrbit commented on 2013-01-20 09:46

yes..some requires ??

zaps166 commented on 2013-01-20 09:41

Can You add "mesa" to "depends" (for OpenGL plugin)?

mrbit commented on 2012-12-27 13:14

oops!! sorry! thanks ssharunas
done md5..

Anonymous comment on 2012-12-27 12:35

md5 does not match..

mrbit commented on 2012-11-04 10:51

Add "libcdio" to "depends in PKGBUID
ok. thanks zap166

zaps166 commented on 2012-11-04 10:18

Add "libcdio" to "depends", because new version uses this library for AudioCD.

mrbit commented on 2012-10-25 06:17

ok, fixed....Thanks archtux

archtux commented on 2012-10-25 03:35

==> Entering fakeroot environment...
==> Starting package()...
sed: can't read /home/antonio/QMPLAY2/src/QMPlay2-src/app/share/applications/QMPlay2.desktop: No such file or directory
==> ERROR: A failure occurred in package().
Aborting...

There is no desktop file in tarball.

mrbit commented on 2012-10-24 22:14

note ---> First uninstall qmplay2
update and fixed

zaps166 commented on 2012-10-22 21:38

Please update to new version. New files location in package, new download link.
Source code: http://zaps166.sourceforge.net/?QMPlay2Download=SourceCode

mrbit commented on 2012-10-13 23:14

add file desktop