-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #210 from kokorin/develop
Develop
- Loading branch information
Showing
12 changed files
with
156 additions
and
158 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
--- | ||
name: Issue | ||
about: Create an issue to help us improve | ||
title: '' | ||
|
||
--- | ||
|
||
**Describe the issue** | ||
A clear and concise description of what the issue is. | ||
|
||
**To Reproduce** | ||
Steps to reproduce the behavior: | ||
1. Go to '...' | ||
2. Click on '....' | ||
3. Scroll down to '....' | ||
4. See error | ||
|
||
**Sample file** | ||
If applicable, attach a file with which the issue can be reproduced | ||
|
||
**Expected behavior** | ||
A clear and concise description of what you expected to happen. | ||
|
||
**Logs** | ||
If applicable, add logs to help explain your problem. | ||
|
||
**Additional context** | ||
Add any other context about the problem here. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# Contribution Guidelines | ||
|
||
If you want to raise a Pull Request, please follow these guidelines: | ||
|
||
* Fork the repo | ||
* Create your feature branch based on the `develop` branch | ||
* Raise a PR that targets the `kokorin:develop` branch | ||
* Include appropriate Unit Tests | ||
* Consider using `com.github.kokorin.jaffree.Artifacts` for sample files used in the tests. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
package com.github.kokorin.jaffree; | ||
|
||
import org.slf4j.Logger; | ||
import org.slf4j.LoggerFactory; | ||
|
||
import java.nio.file.Path; | ||
import java.nio.file.Paths; | ||
|
||
public class Config { | ||
private static final Logger LOGGER = LoggerFactory.getLogger(Config.class); | ||
public static final Path FFMPEG_BIN = getFfmpegBin(); | ||
|
||
private static Path getFfmpegBin() { | ||
String ffmpegHome = System.getProperty("FFMPEG_BIN"); | ||
if (ffmpegHome != null) { | ||
LOGGER.info("Using FFMPEG_BIN from system property: {}", ffmpegHome); | ||
return Paths.get(ffmpegHome); | ||
} | ||
|
||
ffmpegHome = System.getenv("FFMPEG_BIN"); | ||
if (ffmpegHome != null) { | ||
LOGGER.info("Using FFMPEG_BIN from environment variable: {}", ffmpegHome); | ||
return Paths.get(ffmpegHome); | ||
} | ||
|
||
LOGGER.warn("FFMPEG_BIN not configured: expecting to find ffmpeg on PATH"); | ||
return null; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.