Skip to main content
View as Markdown

Waveform Visualization - Content Management

Waveform Visualization​

Retrieve audio amplitude data for building visual waveform displays (useful for editing UIs).

media.getVolumeMap​

curl -X POST "$KALTURA_SERVICE_URL/service/media/action/getVolumeMap" \
-d "ks=$KALTURA_KS" \
-d "format=1" \
-d "entryId=$KALTURA_ENTRY_ID"

Response: CSV text with two columns per line: pts,rms_level

0.000000,-48.2
0.023220,-35.1
0.046440,-28.7
...

Resampling​

Use desiredLines to resample the waveform to a specific number of data points:

curl -X POST "$KALTURA_SERVICE_URL/service/media/action/getVolumeMap" \
-d "ks=$KALTURA_KS" \
-d "format=1" \
-d "entryId=$KALTURA_ENTRY_ID" \
-d "desiredLines=200"

flavorAsset.getVolumeMap​

Get waveform for a specific transcoded rendition:

curl -X POST "$KALTURA_SERVICE_URL/service/flavorAsset/action/getVolumeMap" \
-d "ks=$KALTURA_KS" \
-d "format=1" \
-d "flavorId=$KALTURA_FLAVOR_ASSET_ID"