Skip to content

feat: video conversion - #4

Open
SotaTamura wants to merge 3 commits into
mainfrom
feat/video
Open

feat: video conversion#4
SotaTamura wants to merge 3 commits into
mainfrom
feat/video

Conversation

@SotaTamura

@SotaTamura SotaTamura commented Aug 11, 2026

Copy link
Copy Markdown
Contributor
  • 動画ファイルの形式変換をFFmpegで実装
  • PNG, JPEG, WebPの変換処理をFFmpegに統合
  • 入力ファイルの形式により変換後の形式の選択肢が自動で切り替わる

Comment thread src/App.tsx
@@ -53,8 +72,10 @@ function App() {
const selectFile = (file?: File) => {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

avi形式のファイルをアップロードしたときはじかれました。
mimeTypesでAVIを"video/x-msvideo"としていますが、私の環境ではvideo/vnd.aviとなっていたので、環境ごとの差異を吸収する必要がありそうです。

Comment thread src-tauri/src/lib.rs Outdated
let _ = std::fs::remove_file(&in_path);
return Err("システムに FFmpeg が見つかりませんでした。FFmpeg をインストールしてください。".to_string());
};

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ffmpegのコマンドの探索がlinuxとmacOSのみなので、windowsの場合も含めた方がよいと思います。
あるいはtauriのsidecarという機能?を使ってみてもよいのかもしれません。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants