FAQ about video translation and subtitles
Intelligent Media Services (IMS) provides video translation, intelligent subtitle extraction, subtitle removal, speech recognition, and subtitle generation for live streaming. The following sections answer common questions about prerequisites, task failures, unexpected output, and billing for these capabilities.
Common checks and constraints
Failures across video translation, intelligent subtitle extraction, subtitle removal, and speech recognition frequently trace back to the requirements in this section. Verify the following before you troubleshoot a specific symptom:
Output storage — To use video translation in the IMS console, specify an ApsaraVideo VOD storage location or an Object Storage Service (OSS) bucket to store the output files.
Edition — The Basic Edition subscription does not support video translation. Upgrade to Standard Edition or higher.
Region consistency — The OSS buckets used for input and output must reside in the same region as IMS, and the service region must match the region of the OSS storage address. Use a supported region such as Shanghai or Shenzhen.
Video translation
Why did only the subtitles change after video translation?
Video translation supports subtitle-level translation and voice-level (voiceover) translation. To replace the voiceover as well, select voice-level translation when you submit the task. Voice-level translation translates the voiceover and performs subtitle-level translation at the same time.
How do I output bilingual subtitles?
Bilingual subtitles require all of the following conditions to be met at the same time:
In the editing configuration, set the bilingual subtitle option to
true.In the subtitle configuration, set the font size to a value other than 0.
Use the combined optical character recognition (OCR) and speech recognition mode instead of the OCR-only mode.
What causes a video translation task to fail?
Video translation tasks commonly fail for the following reasons:
Missing output configuration parameters — Complete the output configuration based on the example in the API reference, and then submit the task again.
Input video address without a file name extension — The video address in the input configuration must carry the correct file name extension.
Inconsistent storage regions — Verify the region requirements described in Common checks and constraints.
What do I do if a video translation task takes a long time?
The subtitle translation stage takes a relatively long time. To track progress, query the task status by task ID, or configure a callback to obtain the processing result.
What do I do if the output result cannot be downloaded?
If the task is complete but the download button keeps spinning, first check whether the account has an overdue payment. An overdue account restricts output video downloads and console operations. Top up the account in the User Center, and then retry the download.
If the account has no overdue payment and the download button in the console does not respond, check the network requests and console errors in the browser developer tools, and then retry with a different browser. If the download still fails, submit a ticket and provide the task ID to help with troubleshooting.
Intelligent subtitle extraction
What do I do if the intelligent subtitle extraction result is empty?
Use the roi parameter to frame the region that contains the subtitles and improve the recognition hit rate:
{"roi": [[0.5,1],[0,1]]}The task is billed based on the actual processing duration even if the recognition result is empty.
Subtitle removal
What do I do if a subtitle removal task succeeds but the subtitles are not removed?
Inaccurate coordinates of the subtitle region are usually the cause. Specify accurate coordinates of the subtitle region when you submit the task. No API operation is available to calculate the subtitle region automatically.
Can subtitles and logos be removed in a single call?
No. Subtitles and logos require separate calls to the subtitle removal and logo removal capabilities, each with its own region.
The fees for subtitle removal and logo removal are cumulative.
When is the subtitle removal callback triggered?
The callback is triggered only after the task succeeds.
Speech recognition
How do I troubleshoot a failed speech recognition task submission?
Check the following requirements for the submitted task:
Storage address format — The storage address must use the
oss://bucket.endpoint/keyformat.Authorization — Confirm that the service-linked role is authorized.
Region — If the OSS bucket does not reside in the same region as IMS, the task fails quickly. For region requirements, see Common checks and constraints.
Files in ApsaraVideo VOD — To submit a recognition task for a file in ApsaraVideo VOD, first obtain an authenticated playback address through an ApsaraVideo VOD API operation, or grant the IMS service role the permissions to read objects and perform role assumption.
Can I control text normalization and punctuation in the speech recognition result?
No. Neither behavior is configurable at submission. The following limits apply to the recognition result:
Inverse text normalization (ITN) — Configuring ITN directly is not supported. Use a custom vocabulary (hotword list) to improve recognition quality, or normalize the text yourself after you obtain the recognition result.
Punctuation and proper nouns — The system adds punctuation to the recognition result automatically based on semantics. Specifying punctuation types or disabling a type of punctuation, such as replacing all question marks with periods, is not supported. If you have strict punctuation requirements, apply text post-processing on the business side after you obtain the recognition result. If proper nouns are recognized inaccurately, use a custom vocabulary (hotword list) to improve the result.
Live streaming subtitles
Does live streaming support subtitle generation?
Yes. Live streaming supports subtitle generation in SRT format. The VTT format is not supported.
Live streaming subtitle generation is billed based on the actual processing duration.
Output files
Why does the output file name differ from the file name in the bucket?
The output file name depends on the output configuration specified when the task is submitted. If the output configuration explicitly specifies the storage location and the file name, the file is stored under the specified path with the specified name. If no file name is specified, the system generates a unique file name to prevent files from overwriting each other. In this case, the name in storage does not match the task name displayed in the console.
For predictable file names, specify the complete output path and file name at submission, and avoid directing multiple tasks to the same output address to prevent files from overwriting each other.