GithubHelp home page GithubHelp logo

ocatias / automash Goto Github PK

View Code? Open in Web Editor NEW
8.0 1.0 1.0 85 KB

Automatically create YouTube mashups. Given videos and a text, AutoMash will cut the videos together so the speakers in the video appears to says the given text.

Python 100.00%
youtube speech-recognition speech-to-text ibm-watson-speech creative-coding memes meme-generator vosk deepspeech deep-speech

automash's People

Contributors

ocatias avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

joimjnbg

automash's Issues

I having problem on the Create the video step

When I run:

python src\create_video.py PROJECT_NAME

I get this error:

(AUTOMASHin) C:\Users\camer\Desktop\Video projects__SCRIPTS\AutoMash(USED FOR VIDEO CUTTING)>python src\create_video.py PROJECT_NAME
Moviepy - Building video tmp\the funny stuff is_0.02_0.02_0.1_0.05_0.05.mp4.
MoviePy - Writing audio in the funny stuff is_0.02_0.02_0.1_0.05_0.05TEMP_MPY_wvf_snd.mp4
chunk: 0%| | 0/23 [00:00<?, ?it/s, now=None]Traceback (most recent call last):
File "src\create_video.py", line 45, in
snippets_path = [get_snippet_path(fade_in_time, fade_out_time, data_path, lexicon, words, time_before + 0.02 , time_after + 0.02, pause_after + pause_between_phrases) for (words, time_before, time_after, pause_after) in data]
File "src\create_video.py", line 45, in
snippets_path = [get_snippet_path(fade_in_time, fade_out_time, data_path, lexicon, words, time_before + 0.02 , time_after + 0.02, pause_after + pause_between_phrases) for (words, time_before, time_after, pause_after) in data]
File "C:\Users\camer\Desktop\Video projects__SCRIPTS\AutoMash(USED FOR VIDEO CUTTING)\src\helpers.py", line 71, in get_snippet_path
video.write_videofile(output_path, audio_codec='aac')
File "", line 2, in write_videofile
File "D:_PROGRAMS\anaconda3NEW\envs\AUTOMASHin\lib\site-packages\moviepy\decorators.py", line 54, in requires_duration
return f(clip, *a, **k)
File "", line 2, in write_videofile
File "D:_PROGRAMS\anaconda3NEW\envs\AUTOMASHin\lib\site-packages\moviepy\decorators.py", line 137, in use_clip_fps_by_default
return f(clip, *new_a, **new_kw)
File "", line 2, in write_videofile
File "D:_PROGRAMS\anaconda3NEW\envs\AUTOMASHin\lib\site-packages\moviepy\decorators.py", line 22, in convert_masks_to_RGB
return f(clip, *a, **k)
File "D:_PROGRAMS\anaconda3NEW\envs\AUTOMASHin\lib\site-packages\moviepy\video\VideoClip.py", line 317, in write_videofile
logger=logger)
File "", line 2, in write_audiofile
File "D:_PROGRAMS\anaconda3NEW\envs\AUTOMASHin\lib\site-packages\moviepy\decorators.py", line 54, in requires_duration
return f(clip, *a, **k)
File "D:_PROGRAMS\anaconda3NEW\envs\AUTOMASHin\lib\site-packages\moviepy\audio\AudioClip.py", line 209, in write_audiofile
logger=logger)
File "", line 2, in ffmpeg_audiowrite
File "D:_PROGRAMS\anaconda3NEW\envs\AUTOMASHin\lib\site-packages\moviepy\decorators.py", line 54, in requires_duration
return f(clip, *a, **k)
File "D:_PROGRAMS\anaconda3NEW\envs\AUTOMASHin\lib\site-packages\moviepy\audio\io\ffmpeg_audiowriter.py", line 169, in ffmpeg_audiowrite
logger=logger):
File "D:_PROGRAMS\anaconda3NEW\envs\AUTOMASHin\lib\site-packages\moviepy\audio\AudioClip.py", line 85, in iter_chunks
fps=fps, buffersize=chunksize)
File "", line 2, in to_soundarray
File "D:_PROGRAMS\anaconda3NEW\envs\AUTOMASHin\lib\site-packages\moviepy\decorators.py", line 54, in requires_duration
return f(clip, *a, **k)
File "D:_PROGRAMS\anaconda3NEW\envs\AUTOMASHin\lib\site-packages\moviepy\audio\AudioClip.py", line 126, in to_soundarray
snd_array = self.get_frame(tt)
File "", line 2, in get_frame
File "D:_PROGRAMS\anaconda3NEW\envs\AUTOMASHin\lib\site-packages\moviepy\decorators.py", line 89, in wrapper
return f(*new_a, **new_kw)
File "D:_PROGRAMS\anaconda3NEW\envs\AUTOMASHin\lib\site-packages\moviepy\Clip.py", line 95, in get_frame
return self.make_frame(t)
File "D:_PROGRAMS\anaconda3NEW\envs\AUTOMASHin\lib\site-packages\moviepy\audio\AudioClip.py", line 296, in make_frame
for c, part in zip(self.clips, played_parts)
File "D:_PROGRAMS\anaconda3NEW\envs\AUTOMASHin\lib\site-packages\moviepy\audio\AudioClip.py", line 297, in
if (part is not False)]
File "", line 2, in get_frame
File "D:_PROGRAMS\anaconda3NEW\envs\AUTOMASHin\lib\site-packages\moviepy\decorators.py", line 89, in wrapper
return f(*new_a, **new_kw)
File "D:_PROGRAMS\anaconda3NEW\envs\AUTOMASHin\lib\site-packages\moviepy\Clip.py", line 95, in get_frame
return self.make_frame(t)
File "D:_PROGRAMS\anaconda3NEW\envs\AUTOMASHin\lib\site-packages\moviepy\Clip.py", line 138, in
newclip = self.set_make_frame(lambda t: fun(self.get_frame, t))
File "D:_PROGRAMS\anaconda3NEW\envs\AUTOMASHin\lib\site-packages\moviepy\audio\fx\audio_fadeout.py", line 11, in fading
gft = gf(t)
File "", line 2, in get_frame
File "D:_PROGRAMS\anaconda3NEW\envs\AUTOMASHin\lib\site-packages\moviepy\decorators.py", line 89, in wrapper
return f(*new_a, **new_kw)
File "D:_PROGRAMS\anaconda3NEW\envs\AUTOMASHin\lib\site-packages\moviepy\Clip.py", line 95, in get_frame
return self.make_frame(t)
File "D:_PROGRAMS\anaconda3NEW\envs\AUTOMASHin\lib\site-packages\moviepy\Clip.py", line 138, in
newclip = self.set_make_frame(lambda t: fun(self.get_frame, t))
File "D:_PROGRAMS\anaconda3NEW\envs\AUTOMASHin\lib\site-packages\moviepy\audio\fx\audio_fadein.py", line 10, in fading
gft = gf(t)
File "", line 2, in get_frame
File "D:_PROGRAMS\anaconda3NEW\envs\AUTOMASHin\lib\site-packages\moviepy\decorators.py", line 89, in wrapper
return f(new_a, **new_kw)
File "D:_PROGRAMS\anaconda3NEW\envs\AUTOMASHin\lib\site-packages\moviepy\Clip.py", line 95, in get_frame
return self.make_frame(t)
File "D:_PROGRAMS\anaconda3NEW\envs\AUTOMASHin\lib\site-packages\moviepy\Clip.py", line 138, in
newclip = self.set_make_frame(lambda t: fun(self.get_frame, t))
File "D:_PROGRAMS\anaconda3NEW\envs\AUTOMASHin\lib\site-packages\moviepy\Clip.py", line 190, in
return self.fl(lambda gf, t: gf(t_func(t)), apply_to,
File "", line 2, in get_frame
File "D:_PROGRAMS\anaconda3NEW\envs\AUTOMASHin\lib\site-packages\moviepy\decorators.py", line 89, in wrapper
return f(new_a, **new_kw)
File "D:_PROGRAMS\anaconda3NEW\envs\AUTOMASHin\lib\site-packages\moviepy\Clip.py", line 95, in get_frame
return self.make_frame(t)
File "D:_PROGRAMS\anaconda3NEW\envs\AUTOMASHin\lib\site-packages\moviepy\audio\io\AudioFileClip.py", line 78, in
self.make_frame = lambda t: self.reader.get_frame(t)
File "D:_PROGRAMS\anaconda3NEW\envs\AUTOMASHin\lib\site-packages\moviepy\audio\io\readers.py", line 180, in get_frame
self.buffer_around(fr_min)
File "D:_PROGRAMS\anaconda3NEW\envs\AUTOMASHin\lib\site-packages\moviepy\audio\io\readers.py", line 241, in buffer_around
self.seek(new_bufferstart)
File "D:_PROGRAMS\anaconda3NEW\envs\AUTOMASHin\lib\site-packages\moviepy\audio\io\readers.py", line 140, in seek
self.skip_chunk(pos-self.pos)
File "D:_PROGRAMS\anaconda3NEW\envs\AUTOMASHin\lib\site-packages\moviepy\audio\io\readers.py", line 102, in skip_chunk
s = self.proc.stdout.read(self.nchannels
chunksize
self.nbytes)
AttributeError: 'NoneType' object has no attribute 'stdout'

I tried to solve it by downgrading movie.py to 1.0.0, but then i got this error:

(AUTOMASHin) C:\Users\camer\Desktop\Video projects__SCRIPTS\AutoMash(USED FOR VIDEO CUTTING)>python src\create_video.py PROJECT_NAME
Moviepy - Building video tmp\the funny stuff is_0.02_0.02_0.1_0.05_0.05.mp4.
MoviePy - Writing audio in %s
MoviePy - Done.
Moviepy - Writing video tmp\the funny stuff is_0.02_0.02_0.1_0.05_0.05.mp4

Moviepy - Done !
Moviepy - video ready tmp\the funny stuff is_0.02_0.02_0.1_0.05_0.05.mp4
Moviepy - Building video tmp\what you_0.02_0.02_0.1_0.05_0.05.mp4.
MoviePy - Writing audio in %s
MoviePy - Done.
Moviepy - Writing video tmp\what you_0.02_0.02_0.1_0.05_0.05.mp4

Moviepy - Done !
Moviepy - video ready tmp\what you_0.02_0.02_0.1_0.05_0.05.mp4
Moviepy - Building video tmp\will_0.02_0.02_0.1_0.05_0.05.mp4.
MoviePy - Writing audio in %s
MoviePy - Done.
Moviepy - Writing video tmp\will_0.02_0.02_0.1_0.05_0.05.mp4

Moviepy - Done !
Moviepy - video ready tmp\will_0.02_0.02_0.1_0.05_0.05.mp4
Moviepy - Building video tmp\find_0.02_0.02_0.1_0.05_0.05.mp4.
MoviePy - Writing audio in %s
MoviePy - Done.
Moviepy - Writing video tmp\find_0.02_0.02_0.1_0.05_0.05.mp4

Moviepy - Done !
Moviepy - video ready tmp\find_0.02_0.02_0.1_0.05_0.05.mp4
Moviepy - Building video PROJECT_NAME.mp4.
Moviepy - Writing video PROJECT_NAME.mp4

Moviepy - Done !
Moviepy - video ready PROJECT_NAME.mp4
Exception ignored in: <function FFMPEG_AudioReader.del at 0x000001D9A02D1F78>
Traceback (most recent call last):
File "D:_PROGRAMS\anaconda3NEW\envs\AUTOMASHin\lib\site-packages\moviepy\audio\io\readers.py", line 254, in del
self.close_proc()
File "D:_PROGRAMS\anaconda3NEW\envs\AUTOMASHin\lib\site-packages\moviepy\audio\io\readers.py", line 150, in close_proc
self.proc.terminate()
File "D:_PROGRAMS\anaconda3NEW\envs\AUTOMASHin\lib\subprocess.py", line 1343, in terminate
_winapi.TerminateProcess(self._handle, 1)
OSError: [WinError 6] The handle is invalid

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.