Read an XMEML or FCPXML timeline
curl --request POST \
--url http://localhost:6699/api/v1/timeline/parse-xml \
--header 'Content-Type: application/json' \
--header 'X-License-Key: <api-key>' \
--data '
{
"xml_path": "<string>",
"xml_string": "<string>"
}
'import requests
url = "http://localhost:6699/api/v1/timeline/parse-xml"
payload = {
"xml_path": "<string>",
"xml_string": "<string>"
}
headers = {
"X-License-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-License-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({xml_path: '<string>', xml_string: '<string>'})
};
fetch('http://localhost:6699/api/v1/timeline/parse-xml', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "6699",
CURLOPT_URL => "http://localhost:6699/api/v1/timeline/parse-xml",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'xml_path' => '<string>',
'xml_string' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-License-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "http://localhost:6699/api/v1/timeline/parse-xml"
payload := strings.NewReader("{\n \"xml_path\": \"<string>\",\n \"xml_string\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-License-Key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("http://localhost:6699/api/v1/timeline/parse-xml")
.header("X-License-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"xml_path\": \"<string>\",\n \"xml_string\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:6699/api/v1/timeline/parse-xml")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Post.new(url)
request["X-License-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"xml_path\": \"<string>\",\n \"xml_string\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"format": "xmeml",
"sequence_name": "<string>",
"timebase": 123,
"ntsc": true,
"frame_rate": 123,
"clip_count": 123,
"clips": [
{
"source_path": "<string>",
"start_seconds": 123,
"end_seconds": 123,
"timeline_start_seconds": 123,
"track": "video",
"label": "<string>",
"fps": 123,
"track_index": 123,
"video_track_index": 123,
"audio_track_index": 123,
"source_duration_seconds": 123,
"has_audio": true,
"audio_channels": 123,
"audio_sample_rate": 123
}
],
"warnings": [
"<string>"
]
}Export
Read an XMEML or FCPXML timeline
Reads a Premiere Pro XML (XMEML) or Final Cut Pro XML (FCPXML) timeline and returns
its clips in the shape /export/premiere-xml accepts, so you can read a sequence,
change it, and export it again. Send the XML as a file path or as a string.
- Clips are sorted by timeline position. At the same position, audio clips come
first, then
both, then video.start_secondsandend_secondsare the source in and out points, counted from the start of the media file.timeline_start_secondscounts from the start of the sequence. bothclips havevideo_track_indexandaudio_track_index; other clips havetrack_index. Track indices are one-based.- XMEML: a video and an audio clip with the same source, source range, timeline
position, and name become one
bothclip. - FCPXML: a clip whose asset has video and audio is a
bothclip. When the asset doesn’t say which streams it has, Jumper probes the source file. - Clips with no source path in the XML are skipped and named in
warnings. Paths aren’t checked on disk, so clips with offline media are still returned. Zero-length clips are dropped without a warning. - XMEML transitions become cuts, with a warning.
POST
/
timeline
/
parse-xml
Read an XMEML or FCPXML timeline
curl --request POST \
--url http://localhost:6699/api/v1/timeline/parse-xml \
--header 'Content-Type: application/json' \
--header 'X-License-Key: <api-key>' \
--data '
{
"xml_path": "<string>",
"xml_string": "<string>"
}
'import requests
url = "http://localhost:6699/api/v1/timeline/parse-xml"
payload = {
"xml_path": "<string>",
"xml_string": "<string>"
}
headers = {
"X-License-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-License-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({xml_path: '<string>', xml_string: '<string>'})
};
fetch('http://localhost:6699/api/v1/timeline/parse-xml', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "6699",
CURLOPT_URL => "http://localhost:6699/api/v1/timeline/parse-xml",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'xml_path' => '<string>',
'xml_string' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-License-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "http://localhost:6699/api/v1/timeline/parse-xml"
payload := strings.NewReader("{\n \"xml_path\": \"<string>\",\n \"xml_string\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-License-Key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("http://localhost:6699/api/v1/timeline/parse-xml")
.header("X-License-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"xml_path\": \"<string>\",\n \"xml_string\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:6699/api/v1/timeline/parse-xml")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Post.new(url)
request["X-License-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"xml_path\": \"<string>\",\n \"xml_string\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"format": "xmeml",
"sequence_name": "<string>",
"timebase": 123,
"ntsc": true,
"frame_rate": 123,
"clip_count": 123,
"clips": [
{
"source_path": "<string>",
"start_seconds": 123,
"end_seconds": 123,
"timeline_start_seconds": 123,
"track": "video",
"label": "<string>",
"fps": 123,
"track_index": 123,
"video_track_index": 123,
"audio_track_index": 123,
"source_duration_seconds": 123,
"has_audio": true,
"audio_channels": 123,
"audio_sample_rate": 123
}
],
"warnings": [
"<string>"
]
}Authorizations
Body
application/json
Response
Parsed timeline
Was this page helpful?

