mirror of
https://github.com/game-stop/veejay.git
synced 2025-12-14 20:00:01 +01:00
build fixes debian sid, add support for libav 11.1
This commit is contained in:
@@ -585,9 +585,9 @@ PKG_CHECK_MODULES( MJPEGTOOLS, [mjpegtools >= 1.6],
|
||||
AC_DEFINE_UNQUOTED(HAVE_FFMPEG_UNINSTALLED,,
|
||||
[Defined if building against uninstalled FFmpeg source])
|
||||
|
||||
PKG_CHECK_MODULES(LIBAVUTIL, [libavutil >= 49.7.0 libavutil < 52.48],have_avutil=true,have_avutil=false)
|
||||
PKG_CHECK_MODULES(LIBAVCODEC,[libavcodec >= 51.35.2 libavcodec < 55.39],have_avcodec=true,have_avcodec=false)
|
||||
PKG_CHECK_MODULES(LIBAVFORMAT,[libavformat >= 52.14.0 libavformat < 55.19],have_avformat=true,have_avformat=false)
|
||||
PKG_CHECK_MODULES(LIBAVUTIL, [libavutil >= 49.7.0],have_avutil=true,have_avutil=false)
|
||||
PKG_CHECK_MODULES(LIBAVCODEC,[libavcodec >= 51.35.2],have_avcodec=true,have_avcodec=false)
|
||||
PKG_CHECK_MODULES(LIBAVFORMAT,[libavformat >= 52.14.0],have_avformat=true,have_avformat=false)
|
||||
PKG_CHECK_MODULES(LIBSWSCALE,[libswscale >= 0.7.1],have_swscale=true,have_swscale=false)
|
||||
if test x$have_swscale = xfalse;
|
||||
then
|
||||
|
||||
99
veejay-current/veejay-server/libel/av.h
Executable file
99
veejay-current/veejay-server/libel/av.h
Executable file
@@ -0,0 +1,99 @@
|
||||
/* veejay - Linux VeeJay
|
||||
* (C) 2002-2015 Niels Elburg <nwelburg@gmail.com>
|
||||
*
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*/
|
||||
|
||||
#ifndef AV_H
|
||||
#define AV_H
|
||||
#include <libavcodec/version.h>
|
||||
#if LIBAVCODEC_VERSION_MAJOR > 55
|
||||
|
||||
#ifndef CODEC_ID_MJPEGB
|
||||
#define CODEC_ID_MJPEGB AV_CODEC_ID_MJPEGB
|
||||
#endif
|
||||
|
||||
#ifndef CODEC_ID_MPEG4
|
||||
#define CODEC_ID_MPEG4 AV_CODEC_ID_MPEG4
|
||||
#endif
|
||||
|
||||
#ifndef CODEC_ID_MSMPEG4V3
|
||||
#define CODEC_ID_MSMPEG4V3 AV_CODEC_ID_MSMPEG4V3
|
||||
#endif
|
||||
|
||||
#ifndef CODEC_ID_DVVIDEO
|
||||
#define CODEC_ID_DVVIDEO AV_CODEC_ID_DVVIDEO
|
||||
#endif
|
||||
|
||||
#ifndef CODEC_ID_LJPEG
|
||||
#define CODEC_ID_LJPEG AV_CODEC_ID_LJPEG
|
||||
#endif
|
||||
|
||||
#ifndef CODEC_ID_SP5X
|
||||
#define CODEC_ID_SP5X AV_CODEC_ID_SP5X
|
||||
#endif
|
||||
|
||||
#ifndef CODEC_ID_THEORA
|
||||
#define CODEC_ID_THEORA AV_CODEC_ID_THEORA
|
||||
#endif
|
||||
|
||||
#ifndef CODEC_ID_H264
|
||||
#define CODEC_ID_H264 AV_CODEC_ID_H264
|
||||
#endif
|
||||
|
||||
#ifndef CODEC_ID_MJPEG
|
||||
#define CODEC_ID_MJPEG AV_CODEC_ID_MJPEG
|
||||
#endif
|
||||
|
||||
#ifndef CODEC_ID_PNG
|
||||
#define CODEC_ID_PNG AV_CODEC_ID_PNG
|
||||
#endif
|
||||
|
||||
#ifndef CODEC_ID_MSMPEG4V2
|
||||
#define CODEC_ID_MSMPEG4V2 AV_CODEC_ID_MSMPEG4V2
|
||||
#endif
|
||||
|
||||
#ifndef CODEC_ID_MSMPEG4V1
|
||||
#define CODEC_ID_MSMPEG4V1 AV_CODEC_ID_MSMPEG4V1
|
||||
#endif
|
||||
|
||||
#ifndef CODEC_ID_HUFFYUV
|
||||
#define CODEC_ID_HUFFYUV AV_CODEC_ID_HUFFYUV
|
||||
#endif
|
||||
|
||||
#ifndef CODEC_ID_CYUV
|
||||
#define CODEC_ID_CYUV AV_CODEC_ID_CYUV
|
||||
#endif
|
||||
|
||||
#ifndef CODEC_ID_SVQ1
|
||||
#define CODEC_ID_SVQ1 AV_CODEC_ID_SVQ1
|
||||
#endif
|
||||
|
||||
#ifndef CODEC_ID_SVQ3
|
||||
#define CODEC_ID_SVQ3 AV_CODEC_ID_SVQ3
|
||||
#endif
|
||||
|
||||
#ifndef CODEC_ID_RPZA
|
||||
#define CODEC_ID_RPZA AV_CODEC_ID_RPZA
|
||||
#endif
|
||||
|
||||
#ifndef CODEC_ID_FIRST_AUDIO
|
||||
#define CODEC_ID_FIRST_AUDIO AV_CODEC_ID_FIRST_AUDIO
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
#endif
|
||||
@@ -34,6 +34,7 @@
|
||||
#include <libavcodec/avcodec.h>
|
||||
#include <libavcodec/version.h>
|
||||
#include <libavformat/avformat.h>
|
||||
#include <libel/av.h>
|
||||
#ifdef STRICT_CHECKING
|
||||
#include <assert.h>
|
||||
#endif
|
||||
@@ -585,7 +586,17 @@ static int vj_avcodec_copy_frame( vj_encoder *av, uint8_t *src[3], uint8_t *dst
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
#if LIBAVCODEC_VERSION_MAJOR > 55
|
||||
static int avcodec_encode_video( AVCodecContext *ctx, uint8_t *buf, int len, AVFrame *frame)
|
||||
{
|
||||
AVPacket pkt;
|
||||
veejay_memset(&pkt,0,sizeof(pkt));
|
||||
int got_packet_ptr = 0;
|
||||
pkt.data = buf;
|
||||
pkt.size = len;
|
||||
return avcodec_encode_video2( ctx, &pkt, frame, &got_packet_ptr);
|
||||
}
|
||||
#endif
|
||||
|
||||
int vj_avcodec_encode_frame(void *encoder, long nframe,int format, uint8_t *src[3], uint8_t *buf, int buf_len,
|
||||
int in_fmt)
|
||||
|
||||
@@ -43,6 +43,7 @@
|
||||
#include <libavutil/avutil.h>
|
||||
#include <libavcodec/avcodec.h>
|
||||
#include <libavformat/avformat.h>
|
||||
#include <libel/av.h>
|
||||
#include <veejay/vj-task.h>
|
||||
#include <liblzo/lzo.h>
|
||||
#include <math.h>
|
||||
|
||||
@@ -84,6 +84,7 @@
|
||||
#include <veejay/jpegutils.h>
|
||||
#include <libavutil/avutil.h>
|
||||
#include <libavcodec/avcodec.h>
|
||||
#include <libel/av.h>
|
||||
//#include <pthread.h>
|
||||
typedef struct {
|
||||
void *start;
|
||||
|
||||
Reference in New Issue
Block a user