Notice: Undefined variable: name in /srv/http/vhosts/aur-dev.archlinux.org/public/web/lib/pkgfuncs.inc.php on line 248

Package Details: qpsnr 0.2.5-2

Git Clone URL: https://aur-dev.archlinux.org/qpsnr.git (read-only)
Package Base: qpsnr
Description: A quick PSNR/SSIM analyzer
Upstream URL: https://github.com/FallingSnow/qpsnr
Licenses: GPL3
Submitter: spider-mario
Maintainer: spider-mario (fthiery)
Last Packager: spider-mario
Votes: 2
Popularity: 0.000046
First Submitted: 2015-02-19 08:51
Last Updated: 2016-11-22 23:32

Latest Comments

fthiery commented on 2016-11-21 08:43

Actually, the previous link i mentioned does segfault, but this other fork does work:

https://github.com/FallingSnow/qpsnr

fthiery commented on 2016-11-16 22:59

Building with the following fork works:
https://github.com/elfurbe/qpsnr

Here is a working PKGBUILD; please consider adding me as co-maintainer

# Maintainer: spider-mario <spidermario@free.fr>
pkgname=qpsnr
pkgver=0.2.5
pkgrel=1
epoch=
pkgdesc="A quick PSNR/SSIM analyzer"
arch=('i686' 'x86_64')
url="https://github.com/elfurbe/qpsnr"
license=('GPL3')
depends=('ffmpeg' 'gcc-libs')
source=(git+https://github.com/elfurbe/qpsnr.git)
sha512sums=('SKIP')

build() {
cd qpsnr
make
}

package() {
cd qpsnr
install -D qpsnr "$pkgdir"/usr/bin/qpsnr
}

fthiery commented on 2016-11-16 22:50

This package is broken:

$ LANG=C makepkg
==> Making package: qpsnr 0.2.5-1 (Wed Nov 16 23:50:19 CET 2016)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Found qpsnr_0.2.5.tar.bz2
==> Validating source files with sha512sums...
qpsnr_0.2.5.tar.bz2 ... Passed
==> Extracting sources...
-> Extracting qpsnr_0.2.5.tar.bz2 with bsdtar
==> Removing existing $pkgdir/ directory...
==> Starting build()...
g++ -W -Wall -ggdb -O2 -D_REENTRANT -pthread -D__STDC_LIMIT_MACROS=1 -D__STDC_CONSTANT_MACROS=1 -D__STDC_FORMAT_MACROS==1 -std=gnu++98 -D_GNU_SOURCE src/qav.cpp -c -o obj/qav.o
g++ -W -Wall -ggdb -O2 -D_REENTRANT -pthread -D__STDC_LIMIT_MACROS=1 -D__STDC_CONSTANT_MACROS=1 -D__STDC_FORMAT_MACROS==1 -std=gnu++98 -D_GNU_SOURCE src/main.cpp -c -o obj/main.o
src/qav.cpp: In constructor 'qav::qvideo::qvideo(const char*, int, int)':
src/qav.cpp:46:60: warning: 'AVStream::codec' is deprecated [-Wdeprecated-declarations]
if (AVMEDIA_TYPE_VIDEO == pFormatCtx->streams[i]->codec->codec_type) {
^~~~~
In file included from src/qav.h:26:0,
from src/qav.cpp:20:
/usr/include/libavformat/avformat.h:893:21: note: declared here
AVCodecContext *codec;
^~~~~
src/qav.cpp:46:60: warning: 'AVStream::codec' is deprecated [-Wdeprecated-declarations]
if (AVMEDIA_TYPE_VIDEO == pFormatCtx->streams[i]->codec->codec_type) {
^~~~~
In file included from src/qav.h:26:0,
from src/qav.cpp:20:
/usr/include/libavformat/avformat.h:893:21: note: declared here
AVCodecContext *codec;
^~~~~
src/qav.cpp:46:60: warning: 'AVStream::codec' is deprecated [-Wdeprecated-declarations]
if (AVMEDIA_TYPE_VIDEO == pFormatCtx->streams[i]->codec->codec_type) {
^~~~~
In file included from src/qav.h:26:0,
from src/qav.cpp:20:
/usr/include/libavformat/avformat.h:893:21: note: declared here
AVCodecContext *codec;
^~~~~
src/qav.cpp:56:50: warning: 'AVStream::codec' is deprecated [-Wdeprecated-declarations]
pCodecCtx=pFormatCtx->streams[videoStream]->codec;
^~~~~
In file included from src/qav.h:26:0,
from src/qav.cpp:20:
/usr/include/libavformat/avformat.h:893:21: note: declared here
AVCodecContext *codec;
^~~~~
src/qav.cpp:56:50: warning: 'AVStream::codec' is deprecated [-Wdeprecated-declarations]
pCodecCtx=pFormatCtx->streams[videoStream]->codec;
^~~~~
In file included from src/qav.h:26:0,
from src/qav.cpp:20:
/usr/include/libavformat/avformat.h:893:21: note: declared here
AVCodecContext *codec;
^~~~~
src/qav.cpp:56:50: warning: 'AVStream::codec' is deprecated [-Wdeprecated-declarations]
pCodecCtx=pFormatCtx->streams[videoStream]->codec;
^~~~~
In file included from src/qav.h:26:0,
from src/qav.cpp:20:
/usr/include/libavformat/avformat.h:893:21: note: declared here
AVCodecContext *codec;
^~~~~
src/qav.cpp:67:35: error: 'avcodec_alloc_frame' was not declared in this scope
pFrame = avcodec_alloc_frame();
^
src/qav.cpp:87:119: error: 'PIX_FMT_RGB24' was not declared in this scope
img_convert_ctx = sws_getContext(pCodecCtx->width, pCodecCtx->height, pCodecCtx->pix_fmt, out_width, out_height, PIX_FMT_RGB24, SWS_BICUBIC, NULL, NULL, NULL);
^~~~~~~~~~~~~
src/qav.cpp: In member function 'bool qav::qvideo::get_frame(std::vector<unsigned char>&, int*, bool)':
src/qav.cpp:105:13: warning: 'int avpicture_get_size(AVPixelFormat, int, int)' is deprecated [-Wdeprecated-declarations]
out.resize(avpicture_get_size(PIX_FMT_RGB24, out_width, out_height));
^~~~~~~~~~~~~~~~~~
In file included from src/qav.h:25:0,
from src/qav.cpp:20:
/usr/include/libavcodec/avcodec.h:5467:5: note: declared here
int avpicture_get_size(enum AVPixelFormat pix_fmt, int width, int height);
^~~~~~~~~~~~~~~~~~
src/qav.cpp:105:32: error: 'PIX_FMT_RGB24' was not declared in this scope
out.resize(avpicture_get_size(PIX_FMT_RGB24, out_width, out_height));
^~~~~~~~~~~~~
src/qav.cpp:113:11: warning: 'int avcodec_decode_video2(AVCodecContext*, AVFrame*, int*, const AVPacket*)' is deprecated [-Wdeprecated-declarations]
if(0 > avcodec_decode_video2(pCodecCtx, pFrame, &frameFinished, &packet))
^~~~~~~~~~~~~~~~~~~~~
In file included from src/qav.h:25:0,
from src/qav.cpp:20:
/usr/include/libavcodec/avcodec.h:4811:5: note: declared here
int avcodec_decode_video2(AVCodecContext *avctx, AVFrame *picture,
^~~~~~~~~~~~~~~~~~~~~
src/qav.cpp:113:75: warning: 'int avcodec_decode_video2(AVCodecContext*, AVFrame*, int*, const AVPacket*)' is deprecated [-Wdeprecated-declarations]
if(0 > avcodec_decode_video2(pCodecCtx, pFrame, &frameFinished, &packet))
^
In file included from src/qav.h:25:0,
from src/qav.cpp:20:
/usr/include/libavcodec/avcodec.h:4811:5: note: declared here
int avcodec_decode_video2(AVCodecContext *avctx, AVFrame *picture,
^~~~~~~~~~~~~~~~~~~~~
src/qav.cpp:122:6: warning: 'int avpicture_fill(AVPicture*, const uint8_t*, AVPixelFormat, int, int)' is deprecated [-Wdeprecated-declarations]
avpicture_fill((AVPicture*)&picRGB, (unsigned char*)&out[0], PIX_FMT_RGB24, out_width, out_height);
^~~~~~~~~~~~~~
In file included from src/qav.h:25:0,
from src/qav.cpp:20:
/usr/include/libavcodec/avcodec.h:5452:5: note: declared here
int avpicture_fill(AVPicture *picture, const uint8_t *ptr,
^~~~~~~~~~~~~~
src/qav.cpp:124:101: warning: 'AVPicture::data' is deprecated [-Wdeprecated-declarations]
sws_scale(img_convert_ctx, pFrame->data, pFrame->linesize, 0, pCodecCtx->height, picRGB.data, picRGB.linesize);
^~~~
In file included from src/qav.h:25:0,
from src/qav.cpp:20:
/usr/include/libavcodec/avcodec.h:3891:39: note: declared here
uint8_t *data[AV_NUM_DATA_POINTERS]; ///< pointers to the image data planes
^
src/qav.cpp:124:101: warning: 'AVPicture::data' is deprecated [-Wdeprecated-declarations]
sws_scale(img_convert_ctx, pFrame->data, pFrame->linesize, 0, pCodecCtx->height, picRGB.data, picRGB.linesize);
^~~~
In file included from src/qav.h:25:0,
from src/qav.cpp:20:
/usr/include/libavcodec/avcodec.h:3891:39: note: declared here
uint8_t *data[AV_NUM_DATA_POINTERS]; ///< pointers to the image data planes
^
src/qav.cpp:124:101: warning: 'AVPicture::data' is deprecated [-Wdeprecated-declarations]
sws_scale(img_convert_ctx, pFrame->data, pFrame->linesize, 0, pCodecCtx->height, picRGB.data, picRGB.linesize);
^~~~
In file included from src/qav.h:25:0,
from src/qav.cpp:20:
/usr/include/libavcodec/avcodec.h:3891:39: note: declared here
uint8_t *data[AV_NUM_DATA_POINTERS]; ///< pointers to the image data planes
^
src/qav.cpp:124:114: warning: 'AVPicture::linesize' is deprecated [-Wdeprecated-declarations]
sws_scale(img_convert_ctx, pFrame->data, pFrame->linesize, 0, pCodecCtx->height, picRGB.data, picRGB.linesize);
^~~~~~~~
In file included from src/qav.h:25:0,
from src/qav.cpp:20:
/usr/include/libavcodec/avcodec.h:3893:38: note: declared here
int linesize[AV_NUM_DATA_POINTERS]; ///< number of bytes per line
^
src/qav.cpp:124:114: warning: 'AVPicture::linesize' is deprecated [-Wdeprecated-declarations]
sws_scale(img_convert_ctx, pFrame->data, pFrame->linesize, 0, pCodecCtx->height, picRGB.data, picRGB.linesize);
^~~~~~~~
In file included from src/qav.h:25:0,
from src/qav.cpp:20:
/usr/include/libavcodec/avcodec.h:3893:38: note: declared here
int linesize[AV_NUM_DATA_POINTERS]; ///< number of bytes per line
^
src/qav.cpp:124:114: warning: 'AVPicture::linesize' is deprecated [-Wdeprecated-declarations]
sws_scale(img_convert_ctx, pFrame->data, pFrame->linesize, 0, pCodecCtx->height, picRGB.data, picRGB.linesize);
^~~~~~~~
In file included from src/qav.h:25:0,
from src/qav.cpp:20:
/usr/include/libavcodec/avcodec.h:3893:38: note: declared here
int linesize[AV_NUM_DATA_POINTERS]; ///< number of bytes per line
^
src/qav.cpp:130:3: warning: 'void av_free_packet(AVPacket*)' is deprecated [-Wdeprecated-declarations]
av_free_packet(&packet);
^~~~~~~~~~~~~~
In file included from src/qav.h:25:0,
from src/qav.cpp:20:
/usr/include/libavcodec/avcodec.h:4472:6: note: declared here
void av_free_packet(AVPacket *pkt);
^~~~~~~~~~~~~~
src/qav.cpp:130:25: warning: 'void av_free_packet(AVPacket*)' is deprecated [-Wdeprecated-declarations]
av_free_packet(&packet);
^
In file included from src/qav.h:25:0,
from src/qav.cpp:20:
/usr/include/libavcodec/avcodec.h:4472:6: note: declared here
void av_free_packet(AVPacket *pkt);
^~~~~~~~~~~~~~
make: *** [Makefile:18: obj/qav.o] Error 1
make: *** Waiting for unfinished jobs....
==> ERROR: A failure occurred in build().
Aborting...