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.

Inactive Publication Date: 2021-07-30
武永鑫
View PDF4 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] To this end, the present invention provides a method and system for adding subtitles to videos, which can automatically add subtitles to videos and translate without subtitles, and solve the problem of time-consuming and high cost of adding subtitles to videos without subtitles.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Video subtitle adding method and system
  • Video subtitle adding method and system
  • Video subtitle adding method and system

Examples

Experimental program
Comparison scheme
Effect test

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...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a video subtitle adding method and system, and the method comprises the steps: obtaining a video object to be added with subtitles, and determining the state attribute of the video object; acquiring an audio file contained in the video object, importing the audio file into an ffmpy3 library, and acquiring a storage directory of the video object and the audio file; processing by using an OS module, and converting the video object into an audio file; using an FFmpeg algorithm to endow the converted audio file with audio attributes; calling an interface in a voice Url form, and calling an API to transcribe an audio file; after the transcription is completed, obtaining a transcription result and outputting a transcribed text file; combining the text file with the video object to add video subtitles; and exporting the video object added with the video subtitles. According to the invention, subtitles are added to a movie in an artificial intelligence manner, and people can watch foreign videos conveniently while the movie watching effect is improved by automatically adding the subtitles; manpower and material resources brought by manual translation can be greatly reduced, and translation cost is reduced.

Description

technical field [0001] The invention relates to the technical field of video processing, in particular to a method and system for adding video subtitles. Background technique [0002] With the development of computer networks, videos have become more and more common. Whether watching movies online or offline, or communicating through videos, videos have played an increasingly important role in people's lives. Video is still a means of communication between countries in today's society. Due to the diversity of languages ​​and the fact that most people are not proficient in multiple languages, this hinders people from further understanding foreign languages. [0003] At this stage, people mostly use specific viewing software to watch movies. The movies in them are manually translated and subtitled. Foreign language movies with foreign language subtitles or no subtitles have become an obstacle for people to watch movies. In addition, when people browse websites in foreign lang...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): H04N21/439H04N21/44H04N21/488G10L15/26
CPCH04N21/439H04N21/44008H04N21/44016H04N21/4884
Inventor 武永鑫
Owner 武永鑫
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products