mirror of
https://github.com/rosenbjerg/FFMpegCore.git
synced 2024-11-10 08:34:12 +01:00
commit
2b0d2c4b44
6 changed files with 7 additions and 47 deletions
|
@ -1,14 +0,0 @@
|
|||
const fs = require('fs');
|
||||
const path = require('path');
|
||||
|
||||
const CONFIG_PATH = path.resolve('./FFMpegCore.Test/ffmpeg.config.json');
|
||||
|
||||
console.log('--- Configuring ffmpeg binary path for:', process.env.TRAVIS_OS_NAME);
|
||||
|
||||
let data = require(CONFIG_PATH);
|
||||
|
||||
data.RootDirectory = process.env.TRAVIS_OS_NAME === 'linux' ?
|
||||
'/usr/bin' :
|
||||
'/usr/local/bin';
|
||||
|
||||
fs.writeFileSync(CONFIG_PATH, JSON.stringify(data, null, 4));
|
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
|
@ -1,5 +1,5 @@
|
|||
name: CI
|
||||
on: [push, pull_request]
|
||||
on: pull_request
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
|
26
.travis.yml
26
.travis.yml
|
@ -1,26 +0,0 @@
|
|||
language: csharp
|
||||
mono: none
|
||||
dotnet: 3.1
|
||||
os:
|
||||
- linux
|
||||
- osx
|
||||
dist: trusty
|
||||
before_install:
|
||||
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo add-apt-repository -y ppa:mc3man/trusty-media; fi
|
||||
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo apt-get update; fi
|
||||
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo apt-get install -y ffmpeg libgdiplus; fi
|
||||
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew update; fi
|
||||
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew install ffmpeg mono-libgdiplus; fi
|
||||
- ffmpeg -hwaccels
|
||||
script:
|
||||
- nvm install --lts
|
||||
- nvm use --lts
|
||||
- node ./.build/travis-ffmpeg-config.js
|
||||
- dotnet restore
|
||||
- dotnet build ./FFMpegCore/
|
||||
- dotnet test ./FFMpegCore.Test/
|
||||
branches:
|
||||
only:
|
||||
- master
|
||||
- /fix\/.+/
|
||||
- /feature\/.+/
|
|
@ -318,10 +318,10 @@ public void Video_Join_Image_Sequence()
|
|||
public void Video_With_Only_Audio_Should_Extract_Metadata()
|
||||
{
|
||||
var video = VideoInfo.FromFileInfo(VideoLibrary.LocalVideoAudioOnly);
|
||||
Assert.AreEqual(video.VideoFormat, "none");
|
||||
Assert.AreEqual(video.AudioFormat, "aac");
|
||||
Assert.AreEqual(video.Duration.TotalSeconds, 79.451);
|
||||
Assert.AreEqual(video.Size, 1.25);
|
||||
Assert.AreEqual("none", video.VideoFormat);
|
||||
Assert.AreEqual("aac", video.AudioFormat);
|
||||
Assert.AreEqual(79.0, video.Duration.TotalSeconds, 0.1);
|
||||
Assert.AreEqual(1.25, video.Size);
|
||||
}
|
||||
|
||||
[TestMethod]
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
{
|
||||
"RootDirectory": ""
|
||||
"RootDirectory": "/usr/bin"
|
||||
}
|
|
@ -1,6 +1,6 @@
|
|||
# FFMpegCore
|
||||
[![NuGet Badge](https://buildstats.info/nuget/FFMpegCore)](https://www.nuget.org/packages/FFMpegCore/)
|
||||
[![Build Status](https://travis-ci.org/rosenbjerg/FFMpegCore.svg)](https://travis-ci.org/vladjerca/FFMpegCore)
|
||||
![CI](https://github.com/rosenbjerg/FFMpegCore/workflows/CI/badge.svg)
|
||||
|
||||
# Setup
|
||||
|
||||
|
|
Loading…
Reference in a new issue