editly icon indicating copy to clipboard operation
editly copied to clipboard

got image file list ,audio file and srt file,how to write json5

Open wanghaisheng opened this issue 5 years ago • 7 comments

{
  // width: 2166, height: 1650, fps: 30,
  width: 720, height: 1280, fps: 30,
  outPath: './commonFeatures.mp4',
  // outPath: './commonFeatures.gif',
  audioFilePath: '.HowtoMakeYour_ucto.aiff',
  clips: [
    { duration: 92, transition: { name: 'directionalWarp' }, layers: [{ type: 'image', path: './EWMYRHY72JAE5DT3QURHTS7K2Y.jpg', zoomDirection: 'out' }] },
    { duration: 92, transition: { name: 'directionalWarp' }, layers: [{ type: 'image', path: './How to Make Your Own Hand Sanitizer Gel.jpg', zoomDirection: 'out' }] },
    { duration: 92, transition: { name: 'directionalWarp' }, layers: [{ type: 'image', path: './merlin_170906667_661ce5e5-85e1-4215-8efd-8d2bca2e758b-superJumbo.jpg', zoomDirection: 'out' }] },
    { duration: 92, transition: { name: 'directionalWarp' }, layers: [{ type: 'image', path: './photo-1583947215259-38e31be8751f.jpeg', zoomDirection: 'out' }] },
    { duration: 92, transition: { name: 'directionalWarp' }, layers: [{ type: 'image', path: './photo-1583947581380-3d27ed02f76f.jpeg', zoomDirection: 'out' }] },
    { duration: 92, transition: { name: 'directionalWarp' }, layers: [{ type: 'image', path: './photo-1583947582387-6f2336412460.jpeg', zoomDirection: 'out' }] },
    { duration: 92, transition: { name: 'directionalWarp' }, layers: [{ type: 'image', path: './photo-1583947582411-e3ce8469d1ee.jpeg', zoomDirection: 'out' }] },
    { duration: 92, transition: { name: 'directionalWarp' }, layers: [{ type: 'image', path: './photo-1583947582886-f40ec95dd752.jpeg', zoomDirection: 'out' }] },
    { duration: 92, transition: { name: 'directionalWarp' }, layers: [{ type: 'image', path: './photo-1584483720412-ce931f4aefa8.jpeg', zoomDirection: 'out' }] },
    { duration: 92, transition: { name: 'directionalWarp' }, layers: [{ type: 'image', path: './sanitizer-1.jpg', zoomDirection: 'out' }] },

  ],
}

wanghaisheng avatar May 08 '20 10:05 wanghaisheng

Hi. Just save it as file.json5 and then run editly file.json5

mifi avatar May 17 '20 13:05 mifi

@mifi where and how to set srt file name ,location?

wanghaisheng avatar May 18 '20 06:05 wanghaisheng

srt is not supported.

mifi avatar May 18 '20 08:05 mifi

I think you could embed the srt afterwards losslessly:

it can be done using https://github.com/mifi/lossless-cut

https://stackoverflow.com/questions/8672809/use-ffmpeg-to-add-text-subtitles https://gist.github.com/scottopell/5764a12aa488eb68e730b627c0ae06ef

or Aegisub http://docs.aegisub.org/manual/Attaching_subtitles_to_video http://www.aegisub.org/

edit subtitles with https://www.nikse.dk/subtitleedit

instead of building support for srt someone could write a function which would convert srt to title-background json5 format but adding srt to an existing json5 could be a little complex

chapmanjacobd avatar May 18 '20 08:05 chapmanjacobd

Yea I thought about whether we could "overlay" and srt onto an existing json5 cutspec, but then I was thinking: how useful is it really? how often do you want to make a video like this from an SRT file

mifi avatar May 18 '20 09:05 mifi

if it is dedicated to automatic workflow ,then it is a must

wanghaisheng avatar May 20 '20 02:05 wanghaisheng

You can make it part of an automatic workflow by post-processing after running editly.

Embedded subtitles offer the most advantages but if you need to hardcode them then you'll need to do another pass after rendering the video in editly.

Do you need hardcoded "burned-in" subtitles or just embedded? Everyone's needs will be different in this regard so it will be difficult to fully cover the use case.

In professional filmmaking subtitles are always made after there is a final cut and a rendered video

chapmanjacobd avatar May 20 '20 03:05 chapmanjacobd