Compare commits
8 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0144421f03
|
||
|
|
df9a6c6f36
|
||
|
|
15426a9e18
|
||
|
|
a28844e9b7
|
||
|
|
ae916931f6
|
||
|
|
e4dc5dd10b
|
||
|
|
878c35cbcd
|
||
|
|
8cf0036248
|
@@ -4,22 +4,7 @@ ENV PNPM_HOME="/pnpm"
|
|||||||
ENV PATH="$PNPM_HOME:$PATH"
|
ENV PATH="$PNPM_HOME:$PATH"
|
||||||
RUN corepack enable && corepack prepare pnpm@latest --activate
|
RUN corepack enable && corepack prepare pnpm@latest --activate
|
||||||
|
|
||||||
ENV FFMPEG_VERSION=3.0.2
|
RUN apk add --no-cache ffmpeg
|
||||||
|
|
||||||
WORKDIR /tmp/ffmpeg
|
|
||||||
|
|
||||||
RUN apk add --update build-base curl nasm tar bzip2 \
|
|
||||||
zlib-dev openssl-dev yasm-dev lame-dev libogg-dev x264-dev libvpx-dev libvorbis-dev x265-dev freetype-dev libass-dev libwebp-dev rtmpdump-dev libtheora-dev opus-dev && \
|
|
||||||
DIR=$(mktemp -d) && cd ${DIR} && \
|
|
||||||
curl -s http://ffmpeg.org/releases/ffmpeg-${FFMPEG_VERSION}.tar.gz | tar zxvf - -C . && \
|
|
||||||
cd ffmpeg-${FFMPEG_VERSION} && \
|
|
||||||
./configure \
|
|
||||||
--enable-version3 --enable-gpl --enable-nonfree --enable-small --enable-libmp3lame --enable-libx264 --enable-libx265 --enable-libvpx --enable-libtheora --enable-libvorbis --enable-libopus --enable-libass --enable-libwebp --enable-librtmp --enable-postproc --enable-avresample --enable-libfreetype --enable-openssl --disable-debug && \
|
|
||||||
make && \
|
|
||||||
make install && \
|
|
||||||
make distclean && \
|
|
||||||
rm -rf ${DIR} && \
|
|
||||||
apk del build-base curl tar bzip2 x264 openssl nasm && rm -rf /var/cache/apk/*
|
|
||||||
|
|
||||||
FROM base AS build
|
FROM base AS build
|
||||||
WORKDIR /usr/src/app
|
WORKDIR /usr/src/app
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@memegoat/backend",
|
"name": "@memegoat/backend",
|
||||||
"version": "1.5.1",
|
"version": "1.5.5",
|
||||||
"description": "",
|
"description": "",
|
||||||
"author": "",
|
"author": "",
|
||||||
"private": true,
|
"private": true,
|
||||||
|
|||||||
@@ -75,7 +75,7 @@ describe("MediaService", () => {
|
|||||||
toFormat: jest.fn().mockReturnThis(),
|
toFormat: jest.fn().mockReturnThis(),
|
||||||
videoCodec: jest.fn().mockReturnThis(),
|
videoCodec: jest.fn().mockReturnThis(),
|
||||||
audioCodec: jest.fn().mockReturnThis(),
|
audioCodec: jest.fn().mockReturnThis(),
|
||||||
outputOptions: jest.fn().mockReturnThis(),
|
addOutputOptions: jest.fn().mockReturnThis(),
|
||||||
on: jest.fn().mockImplementation(function (event, cb) {
|
on: jest.fn().mockImplementation(function (event, cb) {
|
||||||
if (event === "end") setTimeout(cb, 0);
|
if (event === "end") setTimeout(cb, 0);
|
||||||
return this;
|
return this;
|
||||||
|
|||||||
@@ -37,13 +37,13 @@ export class VideoProcessorStrategy implements IMediaProcessorStrategy {
|
|||||||
.toFormat("webm")
|
.toFormat("webm")
|
||||||
.videoCodec("libvpx-vp9")
|
.videoCodec("libvpx-vp9")
|
||||||
.audioCodec("libopus")
|
.audioCodec("libopus")
|
||||||
.outputOptions("-crf 30", "-b:v 0");
|
.addOutputOptions("-crf", "30", "-b:v", "0");
|
||||||
} else {
|
} else {
|
||||||
command = command
|
command = command
|
||||||
.toFormat("mp4")
|
.toFormat("mp4")
|
||||||
.videoCodec("libaom-av1")
|
.videoCodec("libaom-av1")
|
||||||
.audioCodec("libopus")
|
.audioCodec("libopus")
|
||||||
.outputOptions("-crf 34", "-b:v 0", "-strict experimental");
|
.addOutputOptions("-crf", "34", "-b:v", "0", "-strict", "experimental");
|
||||||
}
|
}
|
||||||
|
|
||||||
command
|
command
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@memegoat/frontend",
|
"name": "@memegoat/frontend",
|
||||||
"version": "1.5.1",
|
"version": "1.5.5",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "next dev",
|
"dev": "next dev",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@memegoat/source",
|
"name": "@memegoat/source",
|
||||||
"version": "1.5.1",
|
"version": "1.5.5",
|
||||||
"description": "",
|
"description": "",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"version:get": "cmake -P version.cmake GET",
|
"version:get": "cmake -P version.cmake GET",
|
||||||
|
|||||||
Reference in New Issue
Block a user