Skip to content
Draft
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
7 changes: 7 additions & 0 deletions server/pypi/packages/chaquopy-ffmpeg/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash
export ANDROID_SDK_HOME=$ANDROID_HOME
export ANDROID_NDK_HOME=$ANDROID_HOME/ndk/22.1.7171670

set -eu

./ffmpeg-android-maker.sh
11 changes: 11 additions & 0 deletions server/pypi/packages/chaquopy-ffmpeg/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{% set version = "2.8.4" %}

package:
name: chaquopy-ffmpeg
version: {{ version }}

build:
number: 0

source:
url: https://github.com/Javernaut/ffmpeg-android-maker/archive/refs/tags/v{{version}}.tar.gz
13 changes: 13 additions & 0 deletions server/pypi/packages/chaquopy-ffmpeg/test/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import unittest

class TestFFmpegPackage(unittest.TestCase):

def test_input_output(self):
import ffmpeg

self.input_file = 'input.mp4'
self.output_file = 'output.mp4'
stream = ffmpeg.input(self.input_file).output(self.output_file)
args = stream.get_args()
expected_args = ['-i', self.input_file, self.output_file]
self.assertEqual(args, expected_args)
Empty file.
Empty file.
1 change: 1 addition & 0 deletions server/pypi/pkgtest/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ def PROTOBUF_REQ = "protobuf<4.25"
ext.TEST_PACKAGES = [
"argon2-cffi-bindings": ["argon2-cffi"],
"backports-zoneinfo": ["tzdata"],
"chaquopy-ffmpeg": ["ffmpeg-python"],
"dlib": ["numpy"],
"grpcio": [PROTOBUF_REQ],
"photutils": ["scipy"],
Expand Down