Remove ffmpeg2theora
This port is not useful anymore, ffmpeg can transcode to and from OGG nowadays. With ffmpeg-4.x this port would break anway, so just zap it. Suggested by and OK juanfra
This commit is contained in:
parent
f720122b3a
commit
59048c7fc4
@ -1,4 +1,4 @@
|
||||
# $OpenBSD: Makefile,v 1.112 2019/01/19 02:43:15 ajacoutot Exp $
|
||||
# $OpenBSD: Makefile,v 1.113 2019/01/24 16:44:22 kn Exp $
|
||||
|
||||
SUBDIR =
|
||||
SUBDIR += assimp
|
||||
@ -12,7 +12,6 @@
|
||||
SUBDIR += dvdauthor
|
||||
SUBDIR += dvdbackup
|
||||
SUBDIR += dvdstyler
|
||||
SUBDIR += ffmpeg2theora
|
||||
SUBDIR += frei0r-plugins
|
||||
SUBDIR += get_flash_videos
|
||||
SUBDIR += get_iplayer
|
||||
|
@ -1,38 +0,0 @@
|
||||
# $OpenBSD: Makefile,v 1.29 2016/09/13 16:12:14 naddy Exp $
|
||||
|
||||
COMMENT= re-encode many media file formats to Ogg Theora
|
||||
|
||||
N= ffmpeg2theora
|
||||
DISTNAME= ${N}-0.29
|
||||
REVISION= 3
|
||||
CATEGORIES= multimedia
|
||||
EXTRACT_SUFX= .tar.bz2
|
||||
|
||||
HOMEPAGE= http://www.v2v.cc/~j/${N}/
|
||||
|
||||
# GPLv2+
|
||||
PERMIT_PACKAGE_CDROM= patents in FFmpeg
|
||||
PERMIT_PACKAGE_FTP= Yes
|
||||
|
||||
WANTLIB += avcodec avdevice avfilter avformat avutil c iconv m ogg postproc
|
||||
WANTLIB += swscale theoradec theoraenc vorbis vorbisenc
|
||||
WANTLIB += avresample opus pthread speex swresample vpx x264 x265
|
||||
|
||||
MASTER_SITES= ${HOMEPAGE}downloads/
|
||||
|
||||
LIB_DEPENDS= converters/libiconv \
|
||||
graphics/ffmpeg>=20121026 \
|
||||
audio/libvorbis \
|
||||
multimedia/libtheora
|
||||
|
||||
MODULES= devel/scons
|
||||
|
||||
MODSCONS_FLAGS= libkate=0
|
||||
|
||||
NO_TEST= Yes
|
||||
|
||||
do-install:
|
||||
${INSTALL_PROGRAM} ${WRKBUILD}/${N} ${PREFIX}/bin
|
||||
${INSTALL_MAN} ${WRKBUILD}/${N}.1 ${PREFIX}/man/man1
|
||||
|
||||
.include <bsd.port.mk>
|
@ -1,2 +0,0 @@
|
||||
SHA256 (ffmpeg2theora-0.29.tar.bz2) = IUEQ4qWv3Y/44L4YFS6JPb/12rwa4dESTmTZ+T6ulG0=
|
||||
SIZE (ffmpeg2theora-0.29.tar.bz2) = 90143
|
@ -1,35 +0,0 @@
|
||||
$OpenBSD: patch-src_ffmpeg2theora_c,v 1.3 2014/04/06 20:13:53 brad Exp $
|
||||
|
||||
Deal with deprecated FFmpeg API.
|
||||
|
||||
--- src/ffmpeg2theora.c.orig Thu Apr 3 01:58:34 2014
|
||||
+++ src/ffmpeg2theora.c Thu Apr 3 01:59:08 2014
|
||||
@@ -47,6 +47,8 @@
|
||||
#include "ffmpeg2theora.h"
|
||||
#include "avinfo.h"
|
||||
|
||||
+#define MAX_AUDIO_FRAME_SIZE 192000 // 1 second of 48khz 32bit audio
|
||||
+
|
||||
#define LENGTH(x) (sizeof(x) / sizeof(*x))
|
||||
|
||||
enum {
|
||||
@@ -1068,8 +1070,8 @@ void ff2theora_output(ff2theora this) {
|
||||
int first = 1;
|
||||
int audio_eos = 0, video_eos = 0, audio_done = 0, video_done = 0;
|
||||
int ret;
|
||||
- int16_t *audio_buf=av_malloc(4*AVCODEC_MAX_AUDIO_FRAME_SIZE);
|
||||
- int16_t *resampled=av_malloc(4*AVCODEC_MAX_AUDIO_FRAME_SIZE);
|
||||
+ int16_t *audio_buf=av_malloc(4*MAX_AUDIO_FRAME_SIZE);
|
||||
+ int16_t *resampled=av_malloc(4*MAX_AUDIO_FRAME_SIZE);
|
||||
int16_t *audio_p=NULL;
|
||||
int no_frames;
|
||||
int no_samples;
|
||||
@@ -1530,7 +1532,7 @@ void ff2theora_output(ff2theora this) {
|
||||
while((audio_eos && !audio_done) || avpkt.size > 0 ) {
|
||||
int samples=0;
|
||||
int samples_out=0;
|
||||
- int data_size = 4*AVCODEC_MAX_AUDIO_FRAME_SIZE;
|
||||
+ int data_size = 4*MAX_AUDIO_FRAME_SIZE;
|
||||
int bytes_per_sample = av_get_bytes_per_sample(aenc->sample_fmt);
|
||||
|
||||
if (avpkt.size > 0) {
|
@ -1,3 +0,0 @@
|
||||
ffmpeg2theora is a simple command line tool to convert media files to
|
||||
.ogg with Theora video and Vorbis audio streams. It supports reading any
|
||||
file format that FFmpeg can decode.
|
@ -1,3 +0,0 @@
|
||||
@comment $OpenBSD: PLIST,v 1.2 2008/07/09 02:13:01 jakemsr Exp $
|
||||
@bin bin/ffmpeg2theora
|
||||
@man man/man1/ffmpeg2theora.1
|
Loading…
Reference in New Issue
Block a user