Skip to content

brawdev/tools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

braw-tools

Download videos from X (Twitter) and translate their audio to any language.

Requirements

Tool Install
yt-dlp brew install yt-dlp
ffmpeg brew install ffmpeg
openai-whisper pip install openai-whisper
deep-translator pip install deep-translator

Usage

Download a video

./download.sh <URL> [output_dir]
# Save next to the script (default)
./download.sh https://x.com/user/status/123/video/1

# Save to a specific directory
./download.sh https://x.com/user/status/123/video/1 ~/Desktop/videos

Translate a video

python3 translate.py <video> [video2 ...] [--lang LANG]
# Transcribe and translate to Spanish (default)
python3 translate.py video.mp4

# Translate to another language
python3 translate.py video.mp4 --lang pt   # Portuguese
python3 translate.py video.mp4 --lang fr   # French
python3 translate.py video.mp4 --lang en   # English

# Multiple videos at once
python3 translate.py video1.mp4 video2.mp4 --lang de

The output is saved as <video_name>_<LANG>.txt in the same directory as the video.

Supported formats

Any format supported by ffmpeg: mp4, mkv, mov, webm, avi, mp3, wav, m4a, and more.

About

Any

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors