Giter Site home page Giter Site logo

xamhans / video-2-text Goto Github PK

View Code? Open in Web Editor NEW
65.0 65.0 24.0 6.98 MB

Video2Text - Easily convert your video to text

Home Page: https://video2text.de

TypeScript 10.40% JavaScript 0.10% SCSS 59.04% CSS 1.95% HTML 24.68% Python 3.83%
fastapi nextjs openai whisper

video-2-text's Introduction

  • ๐Ÿ‘‹ Hi, Iโ€™m Johannes

  • ๐Ÿ‘€ I am here to build great stuff in order to help people before I have to go.

  • More about me here

video-2-text's People

Contributors

xamhans avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

video-2-text's Issues

file not found errro

Hi I am getting a file not found error. can you please help?

Traceback (most recent call last):
File "C:\Users\DELL\Desktop\video2txt\video2txtenv\lib\site-packages\streamlit\runtime\scriptrunner\script_runner.py", line 541, in _run_script
exec(code, module.dict)
File "C:\Users\DELL\Desktop\video2txt\video-2-text\webserver\app.py", line 66, in
main()
File "C:\Users\DELL\Desktop\video2txt\video-2-text\webserver\app.py", line 43, in main
transcript = transcribeVideoOrchestrator(url, model)
File "C:\Users\DELL\Desktop\video2txt\video-2-text\webserver\businessLogic.py", line 10, in transcribeVideoOrchestrator
transcription = transcribe(video, model_name)
File "C:\Users\DELL\Desktop\video2txt\video-2-text\webserver\businessLogic.py", line 20, in transcribe
result = model.transcribe(video['path'], )
File "C:\Users\DELL\Desktop\video2txt\video2txtenv\lib\site-packages\whisper\transcribe.py", line 121, in transcribe
mel = log_mel_spectrogram(audio, padding=N_SAMPLES)
File "C:\Users\DELL\Desktop\video2txt\video2txtenv\lib\site-packages\whisper\audio.py", line 143, in log_mel_spectrogram
audio = load_audio(audio)
File "C:\Users\DELL\Desktop\video2txt\video2txtenv\lib\site-packages\whisper\audio.py", line 60, in load_audio
out = run(cmd, capture_output=True, check=True).stdout
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.3568.0_x64__qbz5n2kfra8p0\lib\subprocess.py", line 505, in run
with Popen(*popenargs, **kwargs) as process:
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.3568.0_x64__qbz5n2kfra8p0\lib\subprocess.py", line 951, in init
self._execute_child(args, executable, preexec_fn, close_fds,
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.3568.0_x64__qbz5n2kfra8p0\lib\subprocess.py", line 1420, in _execute_child
hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
FileNotFoundError: [WinError 2] The system cannot find the file specified

Can't download video with PyTube

Hi @XamHans ,
I am trying your source code. I installed Python lib and ran the app. But when I tried to use the application, the source couldn't download the YouTube link and gave a Timeout error. I tried to fix it but was not successful. So, can you help me to fix it?
Thanks so much.

image

Customizable language option

Hello!

I believe the app is set to automatically translate to English, would it make sense to leave this option customizable via the frontend?

Suggested functionality

You could add the option of selecting a video directly from the PC, without needing YouTube

HTTPError: HTTP Error 410: Gone

I am getting a HTTPError: HTTP Error 410: Gone error when I try to Transcribe any URL. 2 examples I used are:
https://www.youtube.com/watch?v=YCyTP_Gg_3Y
https://www.youtube.com/watch?v=q2y2ZsXev_Q

This is the stack trace:
File "G:\Python\Python310\lib\site-packages\streamlit\runtime\scriptrunner\script_runner.py", line 552, in run_script
exec(code, module.dict)
File "G:\github\brianmcaudill\video-2-text\webserver\app.py", line 66, in
main()
File "G:\github\brianmcaudill\video-2-text\webserver\app.py", line 43, in main
transcript = transcribeVideoOrchestrator(url, model)
File "G:\github\brianmcaudill\video-2-text\webserver\businessLogic.py", line 9, in transcribeVideoOrchestrator
video = downloadYoutubeVideo(youtube_url)
File "G:\github\brianmcaudill\video-2-text\webserver\businessLogic.py", line 25, in downloadYoutubeVideo
yt = YouTube(youtube_url)
File "G:\Python\Python310\lib\site-packages\pytube_main
.py", line 91, in init
self.prefetch()
File "G:\Python\Python310\lib\site-packages\pytube_main_.py", line 181, in prefetch
self.vid_info_raw = request.get(self.vid_info_url)
File "G:\Python\Python310\lib\site-packages\pytube\request.py", line 36, in get
return _execute_request(url).read().decode("utf-8")
File "G:\Python\Python310\lib\site-packages\pytube\request.py", line 24, in _execute_request
return urlopen(request) # nosec
File "G:\Python\Python310\lib\urllib\request.py", line 216, in urlopen
return opener.open(url, data, timeout)
File "G:\Python\Python310\lib\urllib\request.py", line 525, in open
response = meth(req, response)
File "G:\Python\Python310\lib\urllib\request.py", line 634, in http_response
response = self.parent.error(
File "G:\Python\Python310\lib\urllib\request.py", line 557, in error
result = self._call_chain(*args)
File "G:\Python\Python310\lib\urllib\request.py", line 496, in _call_chain
result = func(*args)
File "G:\Python\Python310\lib\urllib\request.py", line 749, in http_error_302
return self.parent.open(new, timeout=req.timeout)
File "G:\Python\Python310\lib\urllib\request.py", line 525, in open
response = meth(req, response)
File "G:\Python\Python310\lib\urllib\request.py", line 634, in http_response
response = self.parent.error(
File "G:\Python\Python310\lib\urllib\request.py", line 563, in error
return self._call_chain(*args)
File "G:\Python\Python310\lib\urllib\request.py", line 496, in _call_chain
result = func(*args)
File "G:\Python\Python310\lib\urllib\request.py", line 643, in http_error_default
raise HTTPError(req.full_url, code, msg, hdrs, fp)

age restricted content

Hi,

Nor sure if this is an issue from my side. But I'm getting an age restricted error, saying "have to be logged in".

Is there anyway around this?

Thanks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.