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

hung when creating the avi #1

Closed
juul1a opened this issue Jan 7, 2018 · 9 comments
Closed

hung when creating the avi #1

juul1a opened this issue Jan 7, 2018 · 9 comments

Comments

@juul1a
Copy link

@juul1a juul1a commented Jan 7, 2018

maybe i didn't wait long enough, but after I hit stop recording the program hung here:

about to execute:
mencoder mf://*.png -mf type=png:w=800:h=600:fps=25 -ovc lavc -lavcopts vcodec=mpeg4 -oac copy -o output.avi

no output file, but all the screenshots are there and happy. any ideas?

awesome tool btw :) hope i can get it working

@mre

This comment has been minimized.

Copy link
Owner

@mre mre commented Jan 8, 2018

Oh, hey there. 👋

The tool is quite a few years old, so I forgot the details.
What happens if you run the command directly from the commandline?
Also, what Operating System are you running on and what's your version of mencoder (mencoder -v)?

We could also switch to ffmpeg as the underlying encoder, given the fact that mencoder uses ffmpeg in the background. 🤔

Nice website, btw.

@juul1a

This comment has been minimized.

Copy link
Author

@juul1a juul1a commented Jan 9, 2018

Oh 😅 thank you!!

Lets see... running the command and mencoder -v gives me a good ol' command not found so that's definitely something. I just looked up mencoder for mac and people are saying it comes with MPlayer? Tried installing mencoder and mplayer using homebrew and neither of those did a thing. I'm on Mac OS 10.12.6. I do have experience ffmpeg though so maybe we just adjust it to use that without mencoder.

Thanks for hte quick reply (:

@mre

This comment has been minimized.

Copy link
Owner

@mre mre commented Jan 9, 2018

So I moved to ffmpeg and updated the docs. Can you give it another shot?

@juul1a

This comment has been minimized.

Copy link
Author

@juul1a juul1a commented Jan 15, 2018

Thanks! I'll download again and give it a go, then let you know. Appreciate your help + efforts (:

@juul1a

This comment has been minimized.

Copy link
Author

@juul1a juul1a commented Jan 20, 2018

Ok sweet, it works!! It threw an error initially:
File "timelapse.py", line 33, in <module> class Timelapse(NSObject): File "timelapse.py", line 103, in Timelapse @objc.python_method AttributeError: 'module' object has no attribute 'python_method'
so I just went in and commented out @objc.python_method on lines 103, and 121, then it worked like a charm :)

Thanks so much for your help!

@mre

This comment has been minimized.

Copy link
Owner

@mre mre commented Jan 20, 2018

Ah yeah, that's because you have an old version of the Objective C bindings.
Something like a pip install --force-reinstall pyobjc might help.
Alternatively, I've added a requirements.txt, so you could use virtualenv and do the following:

virtualenv venv
source venv/bin/activate
pip install -r requirements.txt

Glad it works, though.
One warning: please copy the output file to a safe place after each run, because the output file is hardcoded to output.mp4 for now. 😉

@ju5td0m7m1nd

This comment has been minimized.

Copy link

@ju5td0m7m1nd ju5td0m7m1nd commented Jan 25, 2018

Great job @mre!
However I didn't see the requirements.txt in this repo

@mre

This comment has been minimized.

Copy link
Owner

@mre mre commented Jan 25, 2018

Oh, thanks for the heads-up @ju5td0m7m1nd. Pushed it to the repo now. 👍

@mre

This comment has been minimized.

Copy link
Owner

@mre mre commented Oct 27, 2018

I think this can be closed now.

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

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.