Repository navigation
feat(musicvideo): 曲の拍と盛り上がりに合わせてライブラリ動画を自動編集するミュージックビデオ機能を追加 - #60
Merged
Merged
Conversation
added 9 commits
November 4, 2026 02:35
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #59
概要
音楽ファイル(MP3 / WAV / M4A 等)のテンポ・拍(ビート)・盛り上がりを自動解析し、ライブラリ内の動画から動きの大きさが一致する区間を拍に合わせて切り出して1本のミュージックビデオ(HMV)を自動生成・カット単位で編集・MP4書き出しできる機能(Issue #59)を実装しました。
あわせて、二重起動時アラートの前面表示および30秒タイムアウトによる確実なプロセス終了を追加しています。
主な変更点
BeatAnalyzer):静か/中/盛り上がり)の盛り上がり判定を実装。VisualAnalyzer/ClipPoolBuilder):VisualAnalyzer.analyzeにtimeRange指定を追加し、長尺動画でも複数ウィンドウのみを高速解析してMusicVideoCacheにキャッシュ。素材全体でのパーセンタイル正規化(SourceMotionProfile)を実装。CutPlanner):控えめ/標準/激しい)に応じた拍数でカット境界を拍上に揃え、動きの一致度・連続同一動画の回避・重複使用ペナルティを考慮して決定論的に素材区間を選択。MusicVideoComposer):AVMutableVideoCompositionでアスペクト比維持の画面充填(横1080p / 横720p / 縦1080p / 縦720p、BT.709)を構成し、画質プリセット(高画質/標準/小さめ)に応じたビットレートでキャンセル安全な H.264 + AAC MP4 書き出しと出力検証を実装。MusicVideoViewModel/MusicVideoView/SidebarRailView):MusicTimelineView)、カット編集パネル(MusicVideoCutEditorView)、素材・音楽フォルダ選択シート、Undo/Redo、「HMV」アルバムへの書き出し追加を実装。LibraryViewModel):NSApp.activateでアラートを前面に出し、操作がない場合も30秒後に自動終了するよう改善。機能・変更内容別コミット一覧
9ebf201-fix(library): 二重起動警告アラートの前面表示とタイムアウト強制終了を追加ArkServer/Features/Library/ViewModels/LibraryViewModel.swift8d6acf5-feat(scene): VisualAnalyzer.analyzeに解析区間(timeRange)の指定を追加ArkServer/Features/SceneExtraction/Services/VisualAnalyzer.swift64d7167-feat(musicvideo): ミュージックビデオ生成のデータモデルと設定保存ロジックを追加ArkServer/Features/MusicVideo/Models/MusicVideoModels.swiftArkServer/Features/MusicVideo/Models/MusicVideoPreferences.swiftArkServer/Features/MusicVideo/Models/MusicVideoSourceSelection.swift1a55279-feat(musicvideo): 音声ビート・盛り上がり解析と素材動画モーション解析サービスを追加ArkServer/Features/MusicVideo/Services/BeatAnalyzer.swiftArkServer/Features/MusicVideo/Services/ClipPoolBuilder.swift72081bc-feat(musicvideo): 拍同期カット割り計画とAVFoundation映像合成・MP4書き出しサービスを追加ArkServer/Features/MusicVideo/Services/CutPlanner.swiftArkServer/Features/MusicVideo/Services/MusicVideoComposer.swift50d0674-feat(musicvideo): ミュージックビデオ作成・カット編集・プレビュー・書き出しを管理するMusicVideoViewModelを追加ArkServer/Features/MusicVideo/ViewModels/MusicVideoViewModel.swift5bdf096-feat(musicvideo): ミュージックビデオ作成画面・タイムライン・カット編集・素材/曲選択シートのUIを追加ArkServer/Features/MusicVideo/Views/MusicVideoSettingsComponents.swiftArkServer/Features/MusicVideo/Views/MusicTimelineView.swiftArkServer/Features/MusicVideo/Views/MusicVideoCutEditorView.swiftArkServer/Features/MusicVideo/Views/MusicVideoSourcePickerSheet.swiftArkServer/Features/MusicVideo/Views/MusicVideoMusicPickerSheet.swiftArkServer/Features/MusicVideo/Views/MusicVideoView.swiftb2ca682-feat(navigation): サイドバーとメイン画面遷移にミュージックビデオ画面を統合ArkServer/App/Models/NavigationSelection.swiftArkServer/App/ViewModels/AppViewModel.swiftArkServer/App/Views/ContentView.swiftArkServer/Features/Navigation/Views/SidebarRailView.swift4ee0487-test(musicvideo): ビート解析・カット割り・モーション解析・映像合成・書き出し・編集の単体テストを追加ArkServerTests/MusicVideoTests.swift