Open GoogleCodeExporter opened 9 years ago
I just got it to work for me about 15 minutes ago... :)
I am on Ubuntu and not mac, so I'm not sure how different the install will be.
You're going to need to do a svn checkout to get the code - I'm assuming that
you're familiar with the command line here...
The command as per the source page is:
svn checkout http://movie-content-editor.googlecode.com/svn/trunk/ movie-content-editor-read-only
You'll need VLC installed on your computer - I'm not really sure how to go
about that on a Mac, but it is definitely a requirement. The VLC python
bindings are looking for VLC to be installed at /Applications/VLC.app/, so
you'll want to make sure it's located there.
Next, the vlc.py that ships with this project is out of date, so you'll want to
get the latest at
http://git.videolan.org/?p=vlc/bindings/python.git;a=blob_plain;f=generated/vlc.
py;hb=HEAD. Replace the vlc.py file in this project with that one.
Next, you'll need to edit the edit.py file as the VLC python api has one small
change - on lines 163 and 170, instance.audio_set_mute should be changed to
player.audio_set_mute.
Finally, open a terminal, cd to the directory, and enter:
python edit.py
That will play the included Kung Fu Panda clip, filtering out the bad words
found in badwords.txt.
Overly complicated, I know... I may do some work on a simpler version of this
project in my spare time.
BTW, python SubIt.ph -f [filename] will download the subtitles for the given
filename if it can determine the movie from the file.
Let me know if that works for you!
Thanks,
Jacob
Original comment by jacobwg7600@gmail.com
on 5 Jan 2011 at 5:38
Forgot to mention that I'm using VLC version 1.1.5
Jacob
Original comment by jacobwg7600@gmail.com
on 5 Jan 2011 at 5:39
Jacob,
Thank you very much for your help. I finally got it to at least run! Snow
Leopard is 64 bit and tries to use 64 bit Python, which seems to cause a few
problems.
1. Followed your steps
2. Downloaded the 32 bit version of VLC
3. Set Mac OS X Snow Leopard to use 32 bit python
4. Installed XCode, QT, SIP, PyQt
(http://blog.oak-tree.us/index.php/2010/05/27/pyqt-snow-leopard)
5. Built 32 bit versions of SIP & PyQt
(https://bugs.launchpad.net/bzr-mac-installers/+bug/529987/comments/9)
I appreciate your help!
Original comment by nspr...@gmail.com
on 6 Jan 2011 at 4:11
I would greatly appreciate any help getting this to work on Windows 7. Could
someone advise on where to put the files, what needs changed, and how to use
them? I was able to get it working on Ubuntu (following Jacob's instructions),
but really want to try it out on Windows.
Here's what I've done so far:
1. svn checkout (got files using TortoiseSVN)
2. Installed VLC 2.0.4
3. Installed python 2.7.3 for windows x64
4. Made edits that Jacob mentioned above
5. Tried to run the edit.py file using python cmd line
6. Receive the following error:
C:\Program Files\VideoLAN\VLC\plugins\Movie Content Editor>python edit.py
Traceback (most recent call last):
File "edit.py", line 2, in <module>
import vlc
File "C:\Program Files\VideoLAN\VLC\plugins\Movie Content Editor\vlc.py", line
161, in <module>
dll, plugin_path = find_lib()
File "C:\Program Files\VideoLAN\VLC\plugins\Movie Content Editor\vlc.py", line
134, in find_lib
dll = ctypes.CDLL('libvlc.dll')
File "C:\Python27\lib\ctypes\__init__.py", line 365, in __init__
self._handle = _dlopen(self._name, mode)
WindowsError: [Error 193] %1 is not a valid Win32 application
7. Is this because I'm using a 64bit version of Windows?
Thanks for all the hard work that has gone into this!
Original comment by mode...@gmail.com
on 24 Dec 2012 at 1:56
Got it! Had to install the experimental 64bit version of VLC and put it here:
C:\Program Files\VideoLAN\vlc\.
Experimental Windows 64bit VLC can be found here:
http://download.videolan.org/pub/videolan/vlc/last/win64/
Now, is there anyway to pause/fast forward/rewind . . .?
Original comment by mode...@gmail.com
on 24 Dec 2012 at 2:27
to run edit.py I had to add () to print (' ') and print( msg )
now it runs, but returns "file not found" message when I run it.
Any suggestions?
Windows 7, Python 3.3
Original comment by Moore.St...@gmail.com
on 13 Jan 2013 at 7:58
Is it ready yet. if yes, from where i can download it.
Original comment by picwellw...@gmail.com
on 7 Aug 2013 at 7:19
Original issue reported on code.google.com by
nspr...@gmail.com
on 4 Jan 2011 at 3:32