ffprobe を使います。
はじめに
FFprobe
FFprobe でメディアファイルを解析し、構造化 JSON を受け取ります。
ストリーム情報、コーデック、長さ、コンテナ情報が必要な場合は
これは、次にどの FFmpeg コマンドを実行するか決める前の解析に向いています。
Documentation Index
Fetch the complete documentation index at: /docs/llms.txt
Use this file to discover all available pages before exploring further.
FFprobe でメディアファイルを解析し、構造化 JSON を受け取ります。
ffprobe を使います。
curl -X POST https://ffmpeg-api.cloud/v1/jobs \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"binary": "ffprobe",
"input": [
{
"type": "url",
"url": "https://example.com/input.mp4"
}
],
"ffmpegArgs": [
"-v",
"error",
"-show_format",
"-show_streams",
"-of",
"json",
"input0"
]
}'
curl https://ffmpeg-api.cloud/v1/jobs/JOB_ID/result \
-H "Authorization: Bearer YOUR_API_KEY"
