동영상 편집을 위한 오픈 소스 프레임워크

· 1년 전 · 397

Motion Canvas라는 인기 있는 TypeScript 라이브러리 편집기에서 파생된 프로그래밍 방식 동영상 편집을 위한 오픈 소스 프레임워크입니다.

 

https://re.video/

 

import {Audio, Img, Video, makeScene2D} from '@revideo/2d';
import {all, chain, createRef, waitFor} from '@revideo/core';

export default makeScene2D(function* (view) {
  const logoRef = createRef<Img>();

  yield view.add(
    <>
      <Video
        src={'https://revideo-example-assets.s3.amazonaws.com/stars.mp4'}
        size={['100%', '100%']}
        play={true}
      />
      <Audio
        src={'https://revideo-example-assets.s3.amazonaws.com/chill-beat.mp3'}
        play={true}
        time={17.0}
      />
    </>,
  );

  yield* waitFor(1);

  view.add(
    <Img
      width={'1%'}
      ref={logoRef}
      src={
        'https://revideo-example-assets.s3.amazonaws.com/revideo-logo-white.png'
      }
    />,
  );

  yield* chain(
    all(logoRef().scale(40, 2), logoRef().rotation(360, 2)),
    logoRef().scale(60, 1),
  );
});

 

웹학교 무료강좌 / 웹학교 컨텐츠몰 / PHP포탈

By 웹학교

|
댓글을 작성하시려면 로그인이 필요합니다.

365ok IT뉴스

+
제목 글쓴이 날짜 조회
1년 전 조회 360
1년 전 조회 376
1년 전 조회 325
1년 전 조회 421
1년 전 조회 566
1년 전 조회 340
1년 전 조회 314
1년 전 조회 331
1년 전 조회 332
1년 전 조회 404
1년 전 조회 416
1년 전 조회 514
1년 전 조회 414
1년 전 조회 338
1년 전 조회 398
1년 전 조회 345
1년 전 조회 302
1년 전 조회 506
1년 전 조회 336
1년 전 조회 451
1년 전 조회 451
1년 전 조회 422
1년 전 조회 405
1년 전 조회 463
1년 전 조회 450
1년 전 조회 373
1년 전 조회 384
1년 전 조회 357
1년 전 조회 334
1년 전 조회 449