Video subtitle adding method and system
A subtitle and video technology, applied in the field of video subtitle adding method and system, can solve the problem of time-consuming and high cost of non-subtitle video, and achieve the effect of improving the viewing effect, reducing manpower and material resources, and facilitating viewing.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0072] see figure 1 , figure 2 and image 3 , providing a method for adding video subtitles, including the following steps:
[0073] S1. Obtain a video object to be subtitled, and determine the status attribute of the video object;
[0074] S2. Obtain the audio file contained in the video object:
[0075] S21. Read the storage directory of the video object and audio file, and judge whether there is an audio directory, a) when there is an audio directory, store the audio file in the corresponding audio directory; b) when there is no audio directory , create an audio directory, and then store the audio file in the created audio directory;
[0076] S22, import ffmpy3 storehouse, obtain the storage directory of described video object and audio file;
[0077] S23. Using the OS module to process, convert the video object into an audio file in WAV format;
[0078] S24, using the FFmpeg algorithm to assign audio attributes to the converted audio files;
[0079] S3. Calling the...
Embodiment 2
[0116] In a second aspect, a system for adding video subtitles is provided, using the method for adding video subtitles in Embodiment 1 or any possible implementation thereof, the system for adding video subtitles includes:
[0117] Video object loading module 1 is used to obtain the video object to be added with subtitles, and judge the state attribute of the video object;
[0118] Audio file loading module 2, for obtaining the audio file that described video object comprises: read the storage directory of described video object and audio file, judge whether there is audio directory, a) when there is audio directory, described audio file Store in the corresponding audio directory; b) when there is no audio directory, create an audio directory, and then store the audio file in the created audio directory;
[0119] The storage directory extraction module 3 is used to import the ffmpy3 library to obtain the storage directory of the video object and audio file;
[0120] The OS m...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com