Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OSError: [WinError 193] %1 n’est pas une application Win32 valide #221

Closed
BowgartField opened this issue Oct 25, 2015 · 15 comments
Closed

Comments

@BowgartField
Copy link

Hello,
When I want to to concateante two videos, I have a probleme:
My code:
from moviepy.editor import *
clip1 = VideoFileClip("clip1.mp4")
clip2 = VideoFileClip("clip2.mp4")
final = concatenate_videoclips([clip1,clip2])
final.write_videofile("final.mp4")

Error code:
Traceback (most recent call last):
File "C:\wamp\www\LinkMyFriends\montage\test.py", line 3, in
clip1 = VideoFileClip("clip1.mp4")
File "C:\Python34\lib\site-packages\moviepy\video\io\VideoFileClip.py", line 55, in init
reader = FFMPEG_VideoReader(filename, pix_fmt=pix_fmt)
File "C:\Python34\lib\site-packages\moviepy\video\io\ffmpeg_reader.py", line 32, in init
infos = ffmpeg_parse_infos(filename, print_infos, check_duration)
File "C:\Python34\lib\site-packages\moviepy\video\io\ffmpeg_reader.py", line 237, in ffmpeg_parse_infos
proc = sp.Popen(cmd, **popen_params)
File "C:\Python34\lib\subprocess.py", line 859, in init
restore_signals, start_new_session)
File "C:\Python34\lib\subprocess.py", line 1112, in _execute_child
startupinfo)
OSError: [WinError 193] %1 n’est pas une application Win32 valide

@Zulko
Copy link
Owner

Zulko commented Oct 25, 2015

Have a look in the previous issues I think I have already seen that error somewhere. Another thing you can do is intall ffmpeg and tell me if it makes things better. If no luck, please provide the moviepy version you are using as well as the windows version. For moviepy:

from moviepy import __version__
print (__version__)

Bonne chance ;)

@BowgartField
Copy link
Author

Thanks you,
I already install ffmeg and add the variable to my windows path but it didn't make anything,
I use 0.2.2.11 of movie.At time i try to upgrade to the last version, It install numpy now.
I use also windows 10 :)
I see you speak a little French ;)

@BowgartField
Copy link
Author

?

@Zulko
Copy link
Owner

Zulko commented Oct 26, 2015

??

@BowgartField
Copy link
Author

What can I do ?

@Zulko
Copy link
Owner

Zulko commented Oct 26, 2015

Switch to Linux !

Just kidding. I don't have enough infos to know what went wrong. Did you install ffmpeg the conventional way (and are you sure you're using the 32-bit version) ? Did you change the settings (path to binaries) of moviepy in any way ? Are you running on a server ? (not sure if it matters).

@BowgartField
Copy link
Author

xD I think i going to switch on linux :)
I using windows 10 64bits and I install ffmpeg 64bits on the official web site.The path is the bin directory of ffmpeg, and i doesn't use moviepy on server now but when my code is finish i want to use it on server.

@Zulko
Copy link
Owner

Zulko commented Oct 26, 2015

Did you go to the config.py file of moviepy and change anything ?

@BowgartField
Copy link
Author

No i don't touch config.py.
I thinks the probleme is on the file in C:/User/AppData/local/imageio/ffmpeg/ffmpeg.win32.exe.

@Zulko
Copy link
Owner

Zulko commented Oct 26, 2015

Ah ok. Then try this at the beginning of your script (this will force the use of your locally installed ffmpeg):

from moviepy.config import change_settings
change_settings({"FFMPEG_BINARY":"ffmpeg.exe"})

(I assumed that the ffmpeg binary you installed is actually named ffmpeg.exe)

@BowgartField
Copy link
Author

At time it working !!! So I deduce the ffmpeg version of imageio is wrong !
I repost when it finish :)
Can I get the step of mounting in python to send this in AJAX ?
Merci ;)

@Zulko
Copy link
Owner

Zulko commented Oct 26, 2015

Not clear what you mean by : Can I get the step of mounting in python to send this in AJAX ? I need a longer description.

@BowgartField
Copy link
Author

2 hours later ... It finily working !!
I want to use moviepy on server like youtube so I have to receive the video advancement mounting to create a progress bar on my web page. Is it possible to view the preview on web browser ?

@BowgartField
Copy link
Author

?

@keikoro
Copy link
Collaborator

keikoro commented Feb 19, 2017

I'm closing this because the original question/problem was answered/resolved and the follow-up actually posted separately as well (#224).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants