Skip to content
中文

Understandings

Reprocess existing assets

Allowed kinds are visual, frames, transcript, and embedding. Without kinds, only failed tasks for the current asset version are rerun. Explicit kinds force selected ready, failed, or unsupported tasks back to pending for a rerun. Tasks already pending or running are skipped unchanged; repeated requests do not enqueue duplicate work.

Kinds must apply to the asset type: images have visual and embedding; audio has transcript and embedding; video has frames, visual, transcript, and embedding; raw files have none. When no requested kind applies, the request returns 400 INVALID_PARAMS listing the kinds available for that asset. When some apply, only those are processed and the rest are ignored (the returned Asset has no field naming ignored kinds; check processing.kinds).

Rerunning visual, frames, or transcript immediately supersedes the old results and sets embedding and the asset’s semantic state to pending. The previous vectors keep serving semantic search until the new vectors are written, so the asset does not drop out of results while it is reprocessed; matches in that window may show the asset name instead of the old caption. Reads return only current results by default; use include_superseded=true to inspect history. The request returns the updated Asset immediately; processing completes asynchronously.

Transcript hallucination filtering

Transcript segments are normalized by converting full-width characters to half-width, lowercasing, and removing leading and trailing whitespace and punctuation. Segments that become empty or exactly match a known hallucination phrase are discarded. Matching is whole-segment only: “thank you for the report” is retained.

The phrase list includes: thank you; thanks for watching; thank you for watching; please subscribe; subscribe; you; bye; 字幕由amara.org社区提供; 请不吝点赞 订阅 转发 打赏支持明镜与点点栏目; 谢谢观看; 优优独播剧场——yoyo television series exclusive.

Discarded segments do not enter transcript text, keyword indexes, or transcript vectors. If all segments are filtered, the transcript understanding remains ready, content is an empty string, and data is { "filtered_segments": n }, where n counts the discarded segments. No transcript vectors are generated for that asset.

Guide →

Base URL and authentication

List understandings

GET /media/v1/libraries/{library_id}/assets/{asset_id}/understandings

Parameter Location Type Description
library_id path string Library ID
asset_id path string Asset ID
include_superseded query boolean Include superseded results; only true or false
kind query caption / tags / ocr / transcript / frame / overview / audio / loudness / beats / content / embedding Understanding or processing kind; filters the understanding list
cursor query string Previous next_cursor
limit query integer 1–200 items per page, default 200

Returns: UnderstandingPage.

Response

HTTP 200

Successful response.

application/json

Name Type Description
data array<object> Understanding results in this page, ordered by creation time ascending.
data[].text_original string Original hallucination-filtered ASR text before correction, present on correction-enabled transcript records. Omitted on legacy records and other kinds.
data[].text string Corrected transcript, also returned as content and used for subtitles and search. Equals text_original when correction fails. Original segment timestamps remain unchanged.
data[].correction object Transcript correction audit, accepted edits and optional reference ASR. Present on correction-enabled transcript records, including failed corrections.
data[].id string Generated identifier of this understanding result.
data[].asset_id string Identifier of the asset from which this result was produced.
data[].asset_version number Asset version processed to produce this result; compare with the asset’s current version.
data[].kind string Result kind: caption is a visual description, tags are recognized labels, ocr is text recognized in the image, transcript is speech text, and frame is a description of a video segment. audio describes sampled speech, music, ambient sound and silence; overview is a full-video summary with chapters, IAB categories and an unverified location; embedding reports a failed embedding step. loudness is the measured BS.1770-4 loudness of the audio (integrated loudness, loudness range, true and sample peak, a one-point-per-second series, the clipped sections and waveform, 200 or fewer peak values from 0 to 1 with bucket_s seconds per value, mapped from momentary loudness between -60 and 0 LUFS; assets measured before this field existed have no waveform until they are measured again with reprocess measure); beats is the measured tempo, beat and bar grid with the sections of the music, recorded as not_applicable with a reason when the asset has no music; content is derived from those measurements and from the transcript into speech, music and silence percentages and sections. Their time values are seconds and their data is not model output.
data[].producer string Producer model identifier; a failure may use the configured model when no model response is available.
data[].producer_version string Version of the producer that generated this understanding result.
data[].segment object | null Source-media time range for a frame or transcript segment; null for results without a segment.
data[].status string Result status: ready contains completed output; failed records an error.
data[].content string | null Text output, such as a caption, recognized text or transcript; null for structured-only or failed results.
data[].data any | null Structured producer output; null when absent. Transcript data retains a timed-segment array with corrected text and text_original on each segment; its first segment also carries the correction audit. Silent transcripts use an object with filtered_segments and correction. Legacy transcript arrays retain their original shape. Transcript segments may contain speaker (a diarization label, not a verified identity), words (text, start_ms and end_ms in source-media milliseconds) and producer (the actual fallback model when different from the record producer). Overview data contains chapters (first_shot, title, summary, start_ms, end_ms), iab (tier1, optional tier2, confidence from 0 to 1), and location (an unverified place guess or null); content is the full-video summary. Audio data contains segments (start_s and end_s in source-media seconds; type is speech, music, ambient or silence), has_music, genre, mood, bpm_estimate (nullable), bpm_is_estimate=true and analyzed_ranges (start_s, end_s in seconds). Genre and mood are nullable model labels. Audio understanding samples only the first 120 seconds in at most three windows of at most 40 seconds, with at most three metered model calls per asset. BPM is an estimate, not an exact tempo; has_music=false only means no music was detected within analyzed_ranges.
data[].confidence number | null Confidence value recorded by the producer; null when no confidence value is recorded.
data[].error object | null Failure code and message, or null for a successful result.
data[].superseded boolean Whether a newer result or asset version has replaced this result. Excluded from listing unless include_superseded is true.
data[].created_at string Time this immutable result was recorded, in UTC.
next_cursor string | null Opaque token to pass as cursor to listUnderstandings; null means no further page.
shots array<object> Current-version video shots, repeated on every understanding page. Absent on legacy records, images and audio. New video processing with image-capable embedding samples at 1 fps, at most 600 frames, and produces at most 60 shots. Long clips increase the interval and merge adjacent short shots; sub-second cuts may be missed. Each shot uses one to three keyframes in one vision call. Text-only legacy embedding profiles retain frame-based processing.
shots[].start_ms number Inclusive shot start in milliseconds.
shots[].end_ms number Exclusive shot end in milliseconds.
shots[].index number Zero-based shot index in timeline order.
shots[].keyframes_ms array<number> One to three sampled frame timestamps in milliseconds within this shot.
shots[].visual object Structured interpretation, present after this shot completes visual processing.
shots[].folder_mismatch boolean Lexical location hint: true if the leaf folder and location guess share no place-name token. Unknown locations abstain; this is not a verified geolocation.
shots[].producer string Vision model that generated this shot interpretation.
终端窗口
curl -X GET "https://api.deepraxis.com/media/v1/libraries/${LIBRARY_ID}/assets/2c25673fd03c41929a22fe860b33d920/understandings" \
-H "Authorization: Bearer $PRAXIS_API_KEY"

HTTP 200

{
"data": [],
"next_cursor": null
}

UnderstandingPage

Field Type Required Description
data Understanding[] yes Results in this page
next_cursor string / null yes Next-page cursor; null or absent at the end
shots UnderstoodShot[] no —

Understanding

Field Type Required Description
text_original string no —
text string no Natural-language query using semantic search
correction TranscriptCorrection no —
id UnderstandingId yes Resource ID
asset_id AssetId yes Asset ID
asset_version number yes Asset version understood
kind UnderstandingKind yes Understanding or processing kind; filters the understanding list
producer string yes Understanding producer
producer_version string yes Producer version
segment Segment / null yes Start/end milliseconds; null for whole assets
status "ready" / "failed" yes Resource status
content string / null yes Text content
data JSON / null yes Results in this page
confidence number / null yes Confidence; may be null
error object / null yes Error code and message; null on success
superseded boolean yes Whether superseded by a newer version
created_at IsoTimestamp yes Creation time

Segment

Field Type Required Description
start_ms number yes Segment start in milliseconds
end_ms number yes Segment end in milliseconds