Skip to content

Commit

Permalink
Merge pull request #94 from patcon/example-fontpaths
Browse files Browse the repository at this point in the history
Add fontPath and fixed typos in examples that use text
  • Loading branch information
mifi authored Dec 8, 2020
2 parents a061f11 + 044de4b commit feb8d44
Show file tree
Hide file tree
Showing 9 changed files with 23 additions and 5 deletions.
1 change: 1 addition & 0 deletions examples/audio-transition.json5
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
defaults: {
duration: 3,
transition: { duration: 1, name: 'directional' },
layer: { fontPath: './assets/Patua_One/PatuaOne-Regular.ttf' },
},
clips: [
{ layers: [
Expand Down
1 change: 1 addition & 0 deletions examples/audio1.json5
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
keepSourceAudio: true,
defaults: {
transition: null,
layer: { fontPath: './assets/Patua_One/PatuaOne-Regular.ttf' },
},
clips: [
{ duration: 0.5, layers: [{ type: 'video', path: './assets/lofoten.mp4', cutFrom: 0.4, cutTo: 2 }] },
Expand Down
5 changes: 4 additions & 1 deletion examples/audio2.json5
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
// enableFfmpegLog: true,
outPath: './audio2.mp4',
width: 200, height: 200,
defaults: {
layer: { fontPath: './assets/Patua_One/PatuaOne-Regular.ttf' },
},
clips: [
{ layers: [{ type: 'video', path: './assets/lofoten.mp4', cutFrom: 1, cutTo: 2 }] },
{ duration: 15, layers: { type: 'title-background', text: 'Audio track' } },
Expand All @@ -13,4 +16,4 @@
{ path: './assets/winxp.mp3', mixVolume: 10, cutFrom: 1, cutTo: 2, start: 2 },
{ path: './assets/Julen_ribas.m4a', mixVolume: 50, cutTo: 7, start: 5 },
],
}
}
5 changes: 4 additions & 1 deletion examples/audio3.json5
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
{
outPath: './audio3.mp4',
width: 200, height: 200,
defaults: {
layer: { fontPath: './assets/Patua_One/PatuaOne-Regular.ttf' },
},
clips: [
{ layers: [{ type: 'video', path: './assets/lofoten.mp4', cutTo: 2 }, { type: 'title', text: 'Arbitrary audio' }] },
{ duration: 3, layers: [{ type: 'title-background', text: 'Voice starts in 1 sec' }, { type: 'detached-audio', path: './assets/Julen_ribas.m4a', mixVolume: 50, cutFrom: 2, start: 1 }] },
Expand All @@ -12,4 +15,4 @@
audioTracks: [
{ path: './assets/High [NCS Release] - JPB (No Copyright Music)-R8ZRCXy5vhA.m4a', cutFrom: 18 },
],
}
}
3 changes: 3 additions & 0 deletions examples/audioLoop.json5
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
loopAudio: true,
// Should properly cut off and not crash with EPIPE if loopAudio=false and audio duration is shorter than total duration
// loopAudio: false,
defaults: {
layer: { fontPath: './assets/Patua_One/PatuaOne-Regular.ttf' },
},
clips: [
{ duration: 10, layers: [{ type: 'title-background', text: 'Looping audio!' }] },
],
Expand Down
4 changes: 2 additions & 2 deletions examples/losslesscut.json5
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
audioFilePath: './Believe - Roa [Vlog No Copyright Music]-qldyHxWPFUY.m4a',
defaults: {
transition: { name: 'crossZoom', duration: 1 },
layer: { fontPath: './Patua_One/PatuaOne-Regular.ttf' },
layer: { fontPath: './assets/Patua_One/PatuaOne-Regular.ttf' },
},
clips: [
{ duration: 3, layers: [{ type: 'title-background', text: 'LosslessCut', background: { type: 'linear-gradient' } }] },
Expand All @@ -33,4 +33,4 @@
{ duration: 4, layers: [{ type: 'title-background', text: 'Get it from\nMac App Store\nWindows Store', background: { type: 'color', color: 'black' } }] },
{ duration: 2, layers: [{ type: 'editly-banner' }] },
],
}
}
3 changes: 3 additions & 0 deletions examples/slideInText.json5
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
{
outPath: './slideInText.mp4',
defaults: {
layer: { fontPath: './assets/Patua_One/PatuaOne-Regular.ttf' },
},
clips: [
{ duration: 3, layers: [
{ type: 'image', path: 'assets/img2.jpg' },
Expand Down
3 changes: 2 additions & 1 deletion examples/videos2.json5
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@
transition: {
name: 'linearblur',
},
layer: { fontPath: './assets/Patua_One/PatuaOne-Regular.ttf' },
},
clips: [
{ layers: [{ type: 'video', path: './assets/changi.mp4', cutFrom: 0, cutTo: 2 }, { type: 'title', text: 'Video 1' }] },
{ layers: [{ type: 'video', path: './assets/IMG_1884.MOV', cutFrom: 0, cutTo: 2 }] },
],
}
}
3 changes: 3 additions & 0 deletions examples/visibleFromUntil.json5
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
{
// enableFfmpegLog: true,
outPath: './visibleFromUntil.mp4',
defaults: {
layer: { fontPath: './assets/Patua_One/PatuaOne-Regular.ttf' },
},
clips: [
{ duration: 2, layers: [
{ type: 'video', path: './assets/lofoten.mp4', cutFrom: 0.4, cutTo: 2 },
Expand Down

0 comments on commit feb8d44

Please sign in to comment.