Browse Source

rename file extensions to .jvc

master
Jonathan Cobb 3 years ago
parent
commit
058c2a5dc5
13 changed files with 25 additions and 25 deletions
  1. +12
    -12
      README.md
  2. +2
    -2
      docs/running.md
  3. +11
    -11
      src/test/java/javicle/test/BasicTest.java
  4. +0
    -0
      src/test/resources/tests/test_add_silence.jvc
  5. +0
    -0
      src/test/resources/tests/test_concat.jvc
  6. +0
    -0
      src/test/resources/tests/test_ken_burns.jvc
  7. +0
    -0
      src/test/resources/tests/test_letterbox.jvc
  8. +0
    -0
      src/test/resources/tests/test_merge_audio.jvc
  9. +0
    -0
      src/test/resources/tests/test_overlay.jvc
  10. +0
    -0
      src/test/resources/tests/test_remove_track.jvc
  11. +0
    -0
      src/test/resources/tests/test_scale.jvc
  12. +0
    -0
      src/test/resources/tests/test_split.jvc
  13. +0
    -0
      src/test/resources/tests/test_trim.jvc

+ 12
- 12
README.md View File

@@ -31,7 +31,7 @@ With ffmpeg and bash, you might do something like this:
done done
``` ```
With JVCL, you'd write this spec file and save it to a file With JVCL, you'd write this spec file and save it to a file
(for example `my-spec.jvcl`):
(for example `my-spec.jvc`):
```json ```json
{ {
"assets": [ {"name": "src", "path": "/tmp/my/source.mp4"} ], "assets": [ {"name": "src", "path": "/tmp/my/source.mp4"} ],
@@ -45,7 +45,7 @@ With JVCL, you'd write this spec file and save it to a file
``` ```
and then run it like this: and then run it like this:
```shell script ```shell script
jvcl my-spec.jvcl
jvcl my-spec.jvc
``` ```
Yes, the JVCL is longer, but I think many would agree it is easier to read Yes, the JVCL is longer, but I think many would agree it is easier to read
and maintain. and maintain.
@@ -88,37 +88,37 @@ Today, JVCL supports several basic operations.
For each operation listed below, the header links to an example from the JVCL For each operation listed below, the header links to an example from the JVCL
test suite. test suite.


### [add-silence](src/test/resources/tests/test_add_silence.jvcl)
### [add-silence](src/test/resources/tests/test_add_silence.jvc)
Add a silent audio track to a video asset. Add a silent audio track to a video asset.


### [concat](src/test/resources/tests/test_concat.jvcl)
### [concat](src/test/resources/tests/test_concat.jvc)
Concatenate audio/video assets together into one asset. Concatenate audio/video assets together into one asset.


### [ken-burns](src/test/resources/tests/test_ken_burns.jvcl)
### [ken-burns](src/test/resources/tests/test_ken_burns.jvc)
Transform still images into video via a fade-pan (aka Ken Burns) effect. Transform still images into video via a fade-pan (aka Ken Burns) effect.


### [letterbox](src/test/resources/tests/test_letterbox.jvcl)
### [letterbox](src/test/resources/tests/test_letterbox.jvc)
Transform a video from one size to another size, maintaining the aspect ratio Transform a video from one size to another size, maintaining the aspect ratio
of the video and adding letterboxes on the sides or top/bottom. of the video and adding letterboxes on the sides or top/bottom.
Handy for embedding mobile videos into other screen formats. Handy for embedding mobile videos into other screen formats.


### [merge-audio](src/test/resources/tests/test_merge_audio.jvcl)
### [merge-audio](src/test/resources/tests/test_merge_audio.jvc)
Merge an audio asset into the audio track of a video asset. Merge an audio asset into the audio track of a video asset.


### [overlay](src/test/resources/tests/test_overlay.jvcl)
### [overlay](src/test/resources/tests/test_overlay.jvc)
Overlay one asset onto another. Overlay one asset onto another.


### [remove-track](src/test/resources/tests/test_remove_track.jvcl)
### [remove-track](src/test/resources/tests/test_remove_track.jvc)
Remove a track from a video asset. Remove a track from a video asset.


### [scale](src/test/resources/tests/test_scale.jvcl)
### [scale](src/test/resources/tests/test_scale.jvc)
Scale a video asset from one size to another. Scaling can be proportional Scale a video asset from one size to another. Scaling can be proportional
or anamorphic. or anamorphic.


### [split](src/test/resources/tests/test_split.jvcl)
### [split](src/test/resources/tests/test_split.jvc)
Split an audio/video asset into multiple assets of equal time lengths. Split an audio/video asset into multiple assets of equal time lengths.


### [trim](src/test/resources/tests/test_trim.jvcl)
### [trim](src/test/resources/tests/test_trim.jvc)
Trim audio/video; crop a section of an asset, becomes a new asset. Trim audio/video; crop a section of an asset, becomes a new asset.


## Complex Example ## Complex Example


+ 2
- 2
docs/running.md View File

@@ -39,11 +39,11 @@ There examples for every JVCL operation.
## Executing a JVCL Spec ## Executing a JVCL Spec
To execute a spec stored in the file `my-spec.json`, you would run: To execute a spec stored in the file `my-spec.json`, you would run:
```shell script ```shell script
jvcl my-spec.jvcl
jvcl my-spec.jvc
``` ```
or use stdin: or use stdin:
```shell script ```shell script
cat my-spec.jvcl | jvcl
cat my-spec.jvc | jvcl
``` ```


## Command Line Options ## Command Line Options


+ 11
- 11
src/test/java/javicle/test/BasicTest.java View File

@@ -1,6 +1,6 @@
package javicle.test; package javicle.test;


import jvcl.main.Jvcl;
import jvcl.main.jvc;
import lombok.Cleanup; import lombok.Cleanup;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.junit.Test; import org.junit.Test;
@@ -19,18 +19,18 @@ import static org.junit.Assert.fail;
public class BasicTest { public class BasicTest {


@Test public void testSplitConcatTrimScaleLetterbox () { @Test public void testSplitConcatTrimScaleLetterbox () {
runSpec("tests/test_split.jvcl");
runSpec("tests/test_concat.jvcl");
runSpec("tests/test_trim.jvcl");
runSpec("tests/test_scale.jvcl");
runSpec("tests/test_letterbox.jvcl");
runSpec("tests/test_split.jvc");
runSpec("tests/test_concat.jvc");
runSpec("tests/test_trim.jvc");
runSpec("tests/test_scale.jvc");
runSpec("tests/test_letterbox.jvc");
} }


@Test public void testOverlay () { runSpec("tests/test_overlay.jvcl"); }
@Test public void testKenBurns () { runSpec("tests/test_ken_burns.jvcl"); }
@Test public void testRemoveTrack () { runSpec("tests/test_remove_track.jvcl"); }
@Test public void testMergeAudio () { runSpec("tests/test_merge_audio.jvcl"); }
@Test public void testAddSilence () { runSpec("tests/test_add_silence.jvcl"); }
@Test public void testOverlay () { runSpec("tests/test_overlay.jvc"); }
@Test public void testKenBurns () { runSpec("tests/test_ken_burns.jvc"); }
@Test public void testRemoveTrack () { runSpec("tests/test_remove_track.jvc"); }
@Test public void testMergeAudio () { runSpec("tests/test_merge_audio.jvc"); }
@Test public void testAddSilence () { runSpec("tests/test_add_silence.jvc"); }


private void runSpec(String specPath) { private void runSpec(String specPath) {
try { try {


src/test/resources/tests/test_add_silence.jvcl → src/test/resources/tests/test_add_silence.jvc View File


src/test/resources/tests/test_concat.jvcl → src/test/resources/tests/test_concat.jvc View File


src/test/resources/tests/test_ken_burns.jvcl → src/test/resources/tests/test_ken_burns.jvc View File


src/test/resources/tests/test_letterbox.jvcl → src/test/resources/tests/test_letterbox.jvc View File


src/test/resources/tests/test_merge_audio.jvcl → src/test/resources/tests/test_merge_audio.jvc View File


src/test/resources/tests/test_overlay.jvcl → src/test/resources/tests/test_overlay.jvc View File


src/test/resources/tests/test_remove_track.jvcl → src/test/resources/tests/test_remove_track.jvc View File


src/test/resources/tests/test_scale.jvcl → src/test/resources/tests/test_scale.jvc View File


src/test/resources/tests/test_split.jvcl → src/test/resources/tests/test_split.jvc View File


src/test/resources/tests/test_trim.jvcl → src/test/resources/tests/test_trim.jvc View File


Loading…
Cancel
Save