Skip to content
This repository has been archived by the owner on Mar 9, 2024. It is now read-only.

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 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
Copy link
Owner

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
Copy link
Author

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
Copy link
Owner

mre commented Jan 9, 2018

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

@juul1a
Copy link
Author

juul1a commented Jan 15, 2018

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

@juul1a
Copy link
Author

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
Copy link
Owner

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
Copy link

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

@mre
Copy link
Owner

mre commented Jan 25, 2018

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

@mre
Copy link
Owner

mre commented Oct 27, 2018

I think this can be closed now.

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

No branches or pull requests

3 participants