mifi / mifi/editly

Chinese can not wraps lines automatically

Open
#258 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
5.5k
Forks
374
PR merge metrics
No merged PRs in 30d

Description

  • I have tried with the newest version of editly: npm i -g editly or npm i editly@latest
  • I have tried ffmpeg newest stable version
  • I have searched for existing issues

json5:

{
  outPath: './chinese.mp4',
  clips: [
    {
      duration: 3,
      layers: [
        { type: 'image', path: './assets/img1.jpg'},
        { type: 'subtitle', text: '这是一段文字,这是一段文字来试试文字的切换这是一段文字,这是一段文字来试试文字的切换这是一段文字,这是一段文字来试试文字的切换', backgroundColor: 'rgba(0,0,0,0.5)' },
      ]
    }
  ]
}

Here is the result:

20230504202348_rec_

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by running the provided editly configuration with the Chinese subtitle text and compare the generated video with the linked result. Then trace the subtitle layer's text-wrapping behavior; done means long Chinese text wraps into multiple lines automatically without the subtitle being clipped or remaining on one line.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
audio-video-rtc, cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.