Upgrade to Pro — share decks privately, control downloads, hide ads and more …

映画のエンドロール風の動画を自動生成するツールを作った

 映画のエンドロール風の動画を自動生成するツールを作った

【第06回】Funabashi.dev supported by KIKKAKE CREATION
https://funabashidev.connpass.com/event/382000/

Avatar for uutan1108

uutan1108

April 18, 2026

More Decks by uutan1108

Other Decks in Programming

Transcript

  1. % afinfo --help Audio File Info Version: 2.0 Copyright 2003-2016,

    Apple Inc. All Rights Reserved. Specify -h (-help) for command options Usage: afinfo [option...] audio_file(s) Options: (may appear before or after arguments) {-h --help} print help {-b --brief} print a brief (one line) description of the audio file {-r --real} get the estimated duration after obtaining the real packet count { --leaks } run leaks at the end { -i --info } print contents of the InfoDictionary { -u --userprop } 4-cc find and print a property or user data property (as hex string) [does not print to xml] { -c --chunkdata } 4-cc find and print a chunk (as hex string) [does not print to xml] { -x --xml } print output in xml format { --warnings } print warnings if any (by default warnings are not printed in non-xml output mode)
  2. afinfo でできること • 音声ファイルの再生時間を取得 • ビットレート / サンプルレート / チャンネル数

    を確認 • メタデータ (タグ情報)を取得 • XML形式などで構造化出力 • 必要に応じて正確な再生時間を再計算
  3. % afinfo public/music/126_BPM142.mp3 File: public/music/126_BPM142.mp3 File type ID: MPG3 Num

    Tracks: 1 ---- Data format: 2 ch, 48000 Hz, .mp3 (0x00000000) 0 bits/channel, 0 bytes/packet, 1152 frames/packet, 0 bytes/frame no channel layout. estimated duration: 230.328000 sec audio bytes: 5527872 audio packets: 9597 bit rate: 192000 bits per second packet size upper bound: 968 maximum packet size: 576 audio data file offset: 256809 optimized ----