rebuilt with ffmpeg 2.2 [release 0.29-2mamba;Tue Mar 25 2014]

This commit is contained in:
Silvan Calarco 2024-01-05 22:16:03 +01:00
parent 907152edc0
commit 915218699a
3 changed files with 90 additions and 0 deletions

View File

@ -1,2 +1,4 @@
# ffmpeg2theora # ffmpeg2theora
A simple converter to create Ogg Theora files.

View File

@ -0,0 +1,22 @@
--- ffmpeg2theora-0.29/src/ffmpeg2theora.c.0000 2012-01-29 16:00:19.000000000 +0800
+++ ffmpeg2theora-0.29/src/ffmpeg2theora.c 2013-07-12 17:55:12.561372785 +0800
@@ -1068,8 +1068,8 @@
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*192000);
+ int16_t *resampled=av_malloc(4*192000);
int16_t *audio_p=NULL;
int no_frames;
int no_samples;
@@ -1530,7 +1530,7 @@
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*192000;
int bytes_per_sample = av_get_bytes_per_sample(aenc->sample_fmt);
if (avpkt.size > 0) {

66
ffmpeg2theora.spec Normal file
View File

@ -0,0 +1,66 @@
Name: ffmpeg2theora
Version: 0.29
Release: 2mamba
Summary: A simple converter to create Ogg Theora files
Group: Applications/Multimedia
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://v2v.cc/~j/ffmpeg2theora/
Source: http://v2v.cc/~j/ffmpeg2theora/downloads/ffmpeg2theora-%{version}.tar.bz2
Patch0: ffmpeg2theora-0.29-ffmpeg-2.0.patch
License: GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libavcodec-ffmpeg-devel
BuildRequires: libavdevice-ffmpeg-devel
BuildRequires: libavfilter-ffmpeg-devel
BuildRequires: libavformat-ffmpeg-devel
BuildRequires: libavutil-ffmpeg-devel
BuildRequires: libkate-devel
BuildRequires: libogg-devel
BuildRequires: libpostproc-ffmpeg-devel
BuildRequires: libswresample-ffmpeg-devel
BuildRequires: libswscale-ffmpeg-devel
BuildRequires: libtheora-devel
BuildRequires: libvorbis-devel
## AUTOBUILDREQ-END
BuildRequires: scons
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
A simple converter to create Ogg Theora files.
%prep
%setup -q
%patch0 -p1
%build
scons APPEND_LINKFLAGS="-lm"
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
scons install \
prefix=%{buildroot}%{_prefix} \
mandir=%{buildroot}%{_mandir} \
APPEND_LINKFLAGS="-lm"
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files
%defattr(-,root,root)
%{_bindir}/ffmpeg2theora
%{_mandir}/man1/ffmpeg2theora.1*
%doc AUTHORS COPYING
#ChangeLog README TODO
%changelog
* Tue Mar 25 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 0.29-2mamba
- rebuilt with ffmpeg 2.2
* Tue Sep 04 2012 Automatic Build System <autodist@mambasoft.it> 0.29-1mamba
- automatic version update by autodist
* Mon Aug 15 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 0.28-1mamba
- package created by autospec