Running Locally¶
Purpose¶
Use this flow when you want to run the HTTP service against local inputs and write outputs under .artifacts/output.
Prerequisites¶
- FFmpeg on
PATH - Bento4 tools on
PATH - Rust toolchain available
Start The Service¶
The default config file is config/service.toml.
Verify The Service¶
Expected result: 200 OK with an empty body.
Run A Local Sync Request¶
curl -X POST http://localhost:8080/v2/sync/c2pa/video \
-H "Content-Type: application/json" \
-d '{
"inputs": [
{
"type": "local_file_path",
"path": "./tests/fixtures/video/mp4/video1.mp4"
}
],
"params": {},
"output": {
"type": "local",
"name": "signed-videos"
}
}'
Outputs¶
- Outputs are written under
output_sinks.local.base_dir, composed asbase_dir / output.prefix / output.name / <per-input-leaf>(here./.artifacts/output/signed-videos/video1_c2pa.mp4) - The checked-in default
base_diris./.artifacts/output - Omit
outputto write directly underbase_dir; to keep the input filename instead of the_c2pasuffix, setoutput_sinks.local.naming = "in_place"in the service config (it is not a request field)