Offset (milliseconds fromLivePath (an HLS playlist or MPD URL) or VodUrlVodUrl takes precedence. Theffmpeg to extract the frame, then uploads the JPEG.1099) if Offset falls outside the available recording| Code | Message | Cause |
|---|---|---|
1000 | success | Thumbnail is available at ImagePath |
1018 | the request param abnormal. | LivePath is malformed or cannot be parsed |
1019 | init aws s3 sdk failed, please contact TVU Support. | S3 SDK initialization failed for the source bucket |
1024 | open or create file fail. | Failed to read the generated local thumbnail file |
1050 | (locate ts source failed) | Cannot find the TS segment at the requested Offset |
1077 | upload fail | Generated thumbnail failed to upload to the image server |
1086 | get source ts signature url fail. | Failed to generate a signed URL for the source TS file |
1099 | Media processing encountered an exception. Please retry... | Thumbnail generation (ffmpeg) failed; possibly invalid time offset |
curl --location 'https://api.tvunetworks.com/thumbnail?LivePath=https%3A%2F%2Fmma-video-new.s3.us-east-1.amazonaws.com%2Fts%2FPRODUCER_RECORDINGS%2Fsource-001%2Flive-001%2F1%2Fplay.m3u8&VodUrl=https%3A%2F%2Fmedia-export-bucket.s3.us-east-1.amazonaws.com%2Fexport%2Fclip_20231114_30s.mp4&Offset=15000' \
--header 'SID: 92575d36dcb631ac94745e6b157de17a5a13d65b31e44869f06854ab928dd80235d4daae8696b4a92a7be5f802c45a219648701fc9ca59f44e9c0f022d5d38a7'{
"ErrorCode": 1000,
"ErrorMessage": "success",
"ImagePath": "/export/4B999DC458FBC4C80000000000000002/00_13_12.jpg",
"Resolution": "1920x1080"
}