Video Translation Into Text

Overview

2021/12/9

The project has been updated

Added a home screen

image

Just drag it onto the screen

image

The final results

image




\

2021/12/9 项目已更新

添加了主界面

image

拖到即可

image

最后结果

image







\

Using the tutorial

About the project creation process https://invinciby.github.io/

How is this project used?

Environment configuration:

Install this first:https://www.gyan.dev/ffmpeg/builds/ffmpeg-release-full.7z

import re
from urllib import request, parse
import os
from pydub import AudioSegment
import math
import json
import random
import requests
from hashlib import md5

Download the code and open it in the order shown below

step

1 BYBaiduapi,py

https://ai.baidu.com/tech/speech/asr Follow the instructions in the blog above to register for aipkey and password

Fill in the appropriate location in the code

2 translateByBAIDU.py

https://ai.baidu.com/ai-doc/SPEECH/pk38lxi60 Register for the aiPkey and password by following the steps in the above blog. ( Note: this is different from the AIP operation above, where the translation interface is implemented and the speech recognition interface is implemented in operation 1 )

Fill in the appropriate location in the code

3 mainMeun.py

Run directly from here, input the video path, you can get the original audio file and translation file (currently only support English translation, you can also modify the relevant content to change the translation language)

使用教程

关于项目创建历程:https://invinciby.github.io/

如何使用该项目?

环境配置:

需要先安装ffmpeg https://www.gyan.dev/ffmpeg/builds/ffmpeg-release-full.7z

import re
from urllib import request, parse
import os
from pydub import AudioSegment
import math
import json
import random
import requests
from hashlib import md5

下载代码,按照下面图片的顺序依次打开

step

1 BYBaiduapi,py

https://ai.baidu.com/tech/speech/asr依照上面博客里面的操作进行注册,获取aipkey以及password

填入代码中相应位置

2 translateByBAIDU.py

https://ai.baidu.com/ai-doc/SPEECH/pk38lxi60依照上面博客里面的操作进行注册,获取aipkey以及password(注意:这里与上面操作的aip不一样,此处实现的是翻译接口,操作1实现的是语音识别接口)

填入代码中相应位置

3 mainMeun.py

从此处直接开始运行,输入视频路径,可获得原音频文件以及翻译文件(目前仅支持英译中,也可以修改相关内容改变翻译语言)

You might also like...
Telegram Video Chat Video Streaming bot 🇱🇰
Telegram Video Chat Video Streaming bot 🇱🇰

🧪 Get SESSION_NAME from below: Pyrogram 🎭 Preview ✨ Features Music & Video stream support MultiChat support Playlist & Queue support Skip, Pause, Re

Play Video & Music on Telegram Group Video Chat
Play Video & Music on Telegram Group Video Chat

🖤 DEMONGIRL 🖤 ʜᴇʟʟᴏ ❤️ 🇱🇰 Join us ᴠɪᴅᴇᴏ sᴛʀᴇᴀᴍ ɪs ᴀɴ ᴀᴅᴠᴀɴᴄᴇᴅ ᴛᴇʟᴇʀᴀᴍ ʙᴏᴛ ᴛʜᴀᴛ's ᴀʟʟᴏᴡ ʏᴏᴜ ᴛᴏ ᴘʟᴀʏ ᴠɪᴅᴇᴏ & ᴍᴜsɪᴄ ᴏɴ ᴛᴇʟᴇɢʀᴀᴍ ɢʀᴏᴜᴘ ᴠɪᴅᴇᴏ ᴄʜᴀᴛ 🧪 ɢ

Takes a video as an input and creates a video which is suitable to upload on Youtube Shorts and Tik Tok (1080x1920 resolution).

Shorts-Tik-Tok-Creator Takes a video as an input and creates a video which is suitable to upload on Youtube Shorts and Tik Tok (1080x1920 resolution).

Video-to-GIF-Converter - A small code snippet that can be used to convert any video to a gif

Video to GIF Converter Project Description: This is a small code snippet that ca

Video-stream - A telegram video stream bot repo
Video-stream - A telegram video stream bot repo

This is a Telegram Video stream Bot. Binary Tech 💫 Features stream videos downl

Terminal-Video-Player - A program that can display video in the terminal using ascii characters

Terminal-Video-Player - A program that can display video in the terminal using ascii characters

Convert Video Files To Text And Audio

Video-To-Text Convert Video Files To Text And Audio Convert To Audio 1: open dvtt folder in cmd 2: run this command in cmd = main.py Audio Convert To

A Telegram bot to convert videos into x265/x264 format via ffmpeg.

Video Encoder Bot A Telegram bot to convert videos into x265/x264 format via ffmpeg. Configuration Add values in environment variables or add them in

pygamevideo module helps developer to embed videos into their Pygame display

pygamevideo module helps developer to embed videos into their Pygame display. Audio playback doesn't use pygame.mixer.

Owner
null
Turn any live video stream or locally stored video into a dataset of interesting samples for ML training, or any other type of analysis.

Sieve Video Data Collection Example Find samples that are interesting within hours of raw video, for free and completely automatically using Sieve API

Sieve 72 Aug 1, 2022
OpenShot Video Editor is an award-winning free and open-source video editor for Linux, Mac, and Windows, and is dedicated to delivering high quality video editing and animation solutions to the world.

OpenShot Video Editor is an award-winning free and open-source video editor for Linux, Mac, and Windows, and is dedicated to delivering high quality v

OpenShot Studios, LLC 3.1k Jan 1, 2023
video streaming userbot (vsu) based on pytgcalls for streaming video trought the telegram video chat group.

VIDEO STREAM USERBOT ✨ an another telegram userbot for streaming video trought the telegram video chat. Environmental Variables ?? API_ID : Get this v

levina 6 Oct 17, 2021
A python program which converts images and video into excel spreadsheets.

image2excel A program which converts images and video into Excel spreadsheets. Usage examples can be found in examples Videos can take a long time to

Oscar Peace 2 Aug 9, 2021
Splat a video into a mosaic by sampling a frame at regular intervals

Splat a video into a mosaic by sampling a frame at regular intervals. Useful for seeing the changes over time of an entire video or movie.

Ryan Fox 4 Oct 16, 2022
MoviePy is a Python library for video editing, can read and write all the most common audio and video formats

MoviePy is a Python library for video editing: cutting, concatenations, title insertions, video compositing (a.k.a. non-linear editing), video processing, and creation of custom effects. See the gallery for some examples of use.

null 10k Jan 8, 2023
A youtube video link or id to video thumbnail python package.

Youtube-Video-Thumbnail A youtube video link or id to video thumbnail python package. Made with Python3

Fayas Noushad 10 Oct 21, 2022
Text2Video's purpose is to help people create videos quickly and easily by simply typing out the video’s script and a description of images to include in the video.

Text2Video Text2Video's purpose is to help people create videos quickly and easily by simply typing out the video’s script and a description of images

Josh Chen 19 Nov 22, 2022
Filtering user-generated video content(SberZvukTechDays)Filtering user-generated video content(SberZvukTechDays)

Filtering user-generated video content(SberZvukTechDays) Table of contents General info Team members Technologies Setup Result General info This is a

Roman 6 Apr 6, 2022
Extracting frames from video and create video using frames

Extracting frames from video and create video using frames This program uses opencv library to extract the frames from video and create video from ext

null 1 Nov 19, 2021