Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions .github/workflows/deploy_prerelease.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Deploy Pre-release Image

on:
workflow_call:
workflow_dispatch:
inputs:
tag:
description: "Tag to use for the image"
required: true

jobs:
build_web:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
with:
ref: ${{ github.head_ref }}
fetch-depth: 0
- run: |
echo "${{ secrets.ENVFILE }}" > .env
- name: Kaniko build
uses: aevea/action-kaniko@master
with:
image: destcom/stroygetter
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
tag: ${{ github.event.inputs.tag || 'alpha' }}
tag_with_latest: false
path: .
build_file: Dockerfile
18 changes: 9 additions & 9 deletions app/api/video-converter/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,20 +117,20 @@ const mergeAudioVideo = (
const ffmpegCommand = ffmpeg().input(video_path).input(audio_path);

if (hasNvidiaGpu) {
ffmpegCommand.outputOptions([
"-c:v h264_nvenc",
"-preset fast",
"-cq 23",
"-c:a aac",
"-b:a 128k",
]);
ffmpegCommand
.inputOptions(["-hwaccel cuda", "-hwaccel_device 0", "-c:v h264_cuvid"])
.outputOptions([
"-c:v h264_nvenc",
"-preset fast",
"-cq 23",
"-c:a copy",
]);
} else {
ffmpegCommand.outputOptions([
"-c:v libx264",
"-preset ultrafast",
"-crf 23",
"-c:a aac",
"-b:a 128k",
"-c:a copy",
]);
}

Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "stroygetter",
"version": "3.2.0",
"version": "3.3.0",
"private": true,
"scripts": {
"dev": "next dev && node copy-binaries.js",
Expand Down
Loading