Former Associate Technical Director at Instrument with a background in graphic design. Previously at This Also and Huge.
I like to explore the interplay between code and art, and am interested in fun and playful ways to interact with computers.
A command line tool that prepares short videos for Whitewater Player
License: MIT License
Former Associate Technical Director at Instrument with a background in graphic design. Previously at This Also and Huge.
I like to explore the interplay between code and art, and am interested in fun and playful ways to interact with computers.
Allow users to choose a location and name for the output files to be saved.
Implement a flag that runs encode()
without creating the final output files.
Queue up multiple videos at once to be run one after the other.
This has the potential to conflict with reasonable implementations of issue #2.
When i type whitewater --help
I get below error..
Traceback (most recent call last):
File "C:\Users\Vishal\AppData\Local\Programs\Python\Python36-32\Scripts\whitewater-script.py", line 11, in <module>
load_entry_point('whitewater==1.0.1', 'console_scripts', 'whitewater')()
File "c:\users\vishal\appdata\local\programs\python\python36-32\lib\site-packages\pkg_resources\__init__.py", line 565, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "c:\users\vishal\appdata\local\programs\python\python36-32\lib\site-packages\pkg_resources\__init__.py", line 2631, in load_entry_point
return ep.load()
File "c:\users\vishal\appdata\local\programs\python\python36-32\lib\site-packages\pkg_resources\__init__.py", line 2291, in load
return self.resolve()
File "c:\users\vishal\appdata\local\programs\python\python36-32\lib\site-packages\pkg_resources\__init__.py", line 2297, in resolve
module = __import__(self.module_name, fromlist=['__name__'], level=0)
File "c:\users\vishal\appdata\local\programs\python\python36-32\lib\site-packages\whitewater\__init__.py", line 1, in <module>
from .whitewater import Whitewater
File "c:\users\vishal\appdata\local\programs\python\python36-32\lib\site-packages\whitewater\whitewater.py", line 641
print message
^
SyntaxError: Missing parentheses in call to 'print'
When I type whitewater /home/user/myvideo.mp4
, I get this error:
video not found
whitewater.whitewater.ProgramEnd
The file does exist, and I tried with the absolute path and the relative path and different videos.
I also tried adding double quotes whitewater "/home/user/myvideo.mp4"
but no luck on this one either.
I'm getting this error when trying to encode any video.
zommy:~ zomars$ whitewater /private/tmp/video-example-small.mp4
START /private/tmp/video-example-small.mp4
Traceback (most recent call last):
File "/usr/local/bin/whitewater", line 11, in <module>
sys.exit(main())
File "/usr/local/lib/python2.7/site-packages/whitewater/cli.py", line 113, in main
encoder.encode()
File "/usr/local/lib/python2.7/site-packages/whitewater/whitewater.py", line 79, in encode
for frame in enumerate(self.video):
File "/usr/local/lib/python2.7/site-packages/imageio/core/format.py", line 375, in iter_data
im, meta = self._get_data(i)
File "/usr/local/lib/python2.7/site-packages/imageio/plugins/ffmpeg.py", line 326, in _get_data
result = self._read_frame()
File "/usr/local/lib/python2.7/site-packages/imageio/plugins/ffmpeg.py", line 526, in _read_frame
s = self._read_frame_data()
File "/usr/local/lib/python2.7/site-packages/imageio/plugins/ffmpeg.py", line 512, in _read_frame_data
raise RuntimeError(fmt % (err1, err2))
RuntimeError: Could not read frame:
=== stderr ===
ffmpeg version 3.1.4 Copyright (c) 2000-2016 the FFmpeg developers
built with Apple LLVM version 8.0.0 (clang-800.0.38)
configuration: --prefix=/usr/local/Cellar/ffmpeg/3.1.4 --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-opencl --enable-libx264 --enable-libmp3lame --enable-libxvid --enable-libfdk-aac --disable-lzma --enable-nonfree --enable-vda
libavutil 55. 28.100 / 55. 28.100
libavcodec 57. 48.101 / 57. 48.101
libavformat 57. 41.100 / 57. 41.100
libavdevice 57. 0.101 / 57. 0.101
libavfilter 6. 47.100 / 6. 47.100
libavresample 3. 0. 0 / 3. 0. 0
libswscale 4. 1.100 / 4. 1.100
libswresample 2. 1.100 / 2. 1.100
libpostproc 54. 0.100 / 54. 0.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/private/tmp/video-example-small.mp4':
Metadata:
major_brand : mp42
minor_version : 512
compatible_brands: isomiso2avc1mp41
creation_time : 2016-10-03 23:09:10
encoder : HandBrake 0.10.5 2016021100
Duration: 00:00:09.58, start: 0.000000, bitrate: 1935 kb/s
Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709), 960x540 [SAR 1:1 DAR 16:9], 1857 kb/s, 23.98 fps, 23.98 tbr, 90k tbn, 180k tbc (default)
Metadata:
creation_time : 2016-10-03 23:09:10
handler_name : VideoHandler
Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 83 kb/s (default)
Metadata:
creation_time : 2016-10-03 23:09:10
handler_name : Stereo
[image2pipe @ 0x7fc43e010a00] Using AVStream.codec to pass codec parameters to muxers is deprecated, use AVStream.codecpar instead.
Output #0, image2pipe, to 'pipe:':
Metadata:
major_brand : mp42
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf57.41.100
Stream #0:0(und): Video: rawvideo (RGB[24] / 0x18424752), rgb24, 960x540 [SAR 1:1 DAR 16:9], q=2-31, 200 kb/s, 23.98 fps, 23.98 tbn, 23.98 tbc (default)
Metadata:
creation_time : 2016-10-03 23:09:10
handler_name : VideoHandler
encoder : Lavc57.48.101 rawvideo
Stream mapping:
... showing only last few lines ...
frame= 195 fps=0.4 q=-0.0 size= 296156kB time=00:00:08.13 bitrate=298300.1kbits/s speed=0.0148x
frame= 196 fps=0.4 q=-0.0 size= 297675kB time=00:00:08.17 bitrate=298300.1kbits/s speed=0.0148x
frame= 197 fps=0.4 q=-0.0 size= 299194kB time=00:00:08.21 bitrate=298300.1kbits/s speed=0.0148x
frame= 198 fps=0.4 q=-0.0 size= 300712kB time=00:00:08.25 bitrate=298300.1kbits/s speed=0.0148x
frame= 199 fps=0.4 q=-0.0 size= 302231kB time=00:00:08.29 bitrate=298300.1kbits/s speed=0.0148x
frame= 200 fps=0.4 q=-0.0 size= 303750kB time=00:00:08.34 bitrate=298300.1kbits/s speed=0.0148x
frame= 201 fps=0.4 q=-0.0 size= 305269kB time=00:00:08.38 bitrate=298300.1kbits/s speed=0.0148x
frame= 202 fps=0.4 q=-0.0 size= 306788kB time=00:00:08.42 bitrate=298300.1kbits/s speed=0.0149x
frame= 203 fps=0.4 q=-0.0 size= 308306kB time=00:00:08.46 bitrate=298300.1kbits/s speed=0.0149x
frame= 204 fps=0.4 q=-0.0 size= 309825kB time=00:00:08.50 bitrate=298300.1kbits/s speed=0.0149x
frame= 205 fps=0.4 q=-0.0 size= 311344kB time=00:00:08.55 bitrate=298300.1kbits/s speed=0.0149x
frame= 206 fps=0.4 q=-0.0 size= 312862kB time=00:00:08.59 bitrate=298300.1kbits/s speed=0.0149x
frame= 207 fps=0.4 q=-0.0 size= 314381kB time=00:00:08.63 bitrate=298300.1kbits/s speed=0.0148x
frame= 208 fps=0.4 q=-0.0 size= 315900kB time=00:00:08.67 bitrate=298300.1kbits/s speed=0.0148x
frame= 209 fps=0.4 q=-0.0 size= 317419kB time=00:00:08.71 bitrate=298300.1kbits/s speed=0.0146x
frame= 210 fps=0.3 q=-0.0 size= 318938kB time=00:00:08.75 bitrate=298300.1kbits/s speed=0.0146x
frame= 211 fps=0.3 q=-0.0 size= 320456kB time=00:00:08.80 bitrate=298300.1kbits/s speed=0.0145x
frame= 212 fps=0.3 q=-0.0 size= 321975kB time=00:00:08.84 bitrate=298300.1kbits/s speed=0.0145x
frame= 213 fps=0.3 q=-0.0 size= 323494kB time=00:00:08.88 bitrate=298300.1kbits/s speed=0.0145x
frame= 214 fps=0.3 q=-0.0 size= 325012kB time=00:00:08.92 bitrate=298300.1kbits/s speed=0.0145x
frame= 215 fps=0.3 q=-0.0 size= 326531kB time=00:00:08.96 bitrate=298300.1kbits/s speed=0.0145x
frame= 216 fps=0.3 q=-0.0 size= 328050kB time=00:00:09.00 bitrate=298300.1kbits/s speed=0.0143x
frame= 217 fps=0.3 q=-0.0 size= 329569kB time=00:00:09.05 bitrate=298300.1kbits/s speed=0.0143x
frame= 218 fps=0.3 q=-0.0 size= 331088kB time=00:00:09.09 bitrate=298300.1kbits/s speed=0.0143x
frame= 219 fps=0.3 q=-0.0 size= 332606kB time=00:00:09.13 bitrate=298300.1kbits/s speed=0.0143x
frame= 220 fps=0.3 q=-0.0 size= 334125kB time=00:00:09.17 bitrate=298300.1kbits/s speed=0.0143x
frame= 221 fps=0.3 q=-0.0 size= 335644kB time=00:00:09.21 bitrate=298300.1kbits/s speed=0.0142x
frame= 222 fps=0.3 q=-0.0 size= 337162kB time=00:00:09.25 bitrate=298300.1kbits/s speed=0.0142x
frame= 223 fps=0.3 q=-0.0 size= 338681kB time=00:00:09.30 bitrate=298300.1kbits/s speed=0.0142x
frame= 224 fps=0.3 q=-0.0 size= 340200kB time=00:00:09.34 bitrate=298300.1kbits/s speed=0.0142x
frame= 225 fps=0.3 q=-0.0 size= 341719kB time=00:00:09.38 bitrate=298300.1kbits/s speed=0.0142x
frame= 226 fps=0.3 q=-0.0 size= 343238kB time=00:00:09.42 bitrate=298300.1kbits/s speed=0.0143x
frame= 227 fps=0.3 q=-0.0 size= 344756kB time=00:00:09.46 bitrate=298300.1kbits/s speed=0.0143x
frame= 228 fps=0.3 q=-0.0 size= 346275kB time=00:00:09.50 bitrate=298300.1kbits/s speed=0.0143x
frame= 228 fps=0.3 q=-0.0 size= 346275kB time=00:00:09.50 bitrate=298300.1kbits/s speed=0.0142x
frame= 228 fps=0.3 q=-0.0 Lsize= 346275kB time=00:00:09.50 bitrate=298300.1kbits/s speed=0.0142x
video:346275kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.000000%
With or without sudo, I am unable to install the encoder, here is the stack trace:
Requirement already satisfied (use --upgrade to upgrade): whitewater in /Library/Python/2.7/site-packages/whitewater-1.0.1-py2.7.egg
Collecting docopt>=0.6.2 (from whitewater)
Downloading docopt-0.6.2.tar.gz
Collecting imageio>=1.4 (from whitewater)
Downloading imageio-1.5-cp26.cp27.cp33.cp34.cp35-none-macosx_10_5_x86_64.macosx_10_6_intel.whl (4.8MB)
100% |████████████████████████████████| 4.8MB 255kB/s
Collecting numpy>=1.10.2 (from whitewater)
Downloading numpy-1.11.1-cp27-cp27m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl (3.9MB)
100% |████████████████████████████████| 3.9MB 336kB/s
Collecting Pillow>=3.0.0 (from whitewater)
Downloading Pillow-3.3.0-cp27-cp27m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl (3.2MB)
100% |████████████████████████████████| 3.2MB 409kB/s
Installing collected packages: docopt, imageio, numpy, Pillow
Running setup.py install for docopt ... done
Found existing installation: numpy 1.8.0rc1
DEPRECATION: Uninstalling a distutils installed project (numpy) has been deprecated and will be removed in a future version. This is due to the fact that uninstalling a distutils project will only partially uninstall the project.
Uninstalling numpy-1.8.0rc1:
Exception:
Traceback (most recent call last):
File "/Library/Python/2.7/site-packages/pip-8.1.2-py2.7.egg/pip/basecommand.py", line 215, in main
status = self.run(options, args)
File "/Library/Python/2.7/site-packages/pip-8.1.2-py2.7.egg/pip/commands/install.py", line 317, in run
prefix=options.prefix_path,
File "/Library/Python/2.7/site-packages/pip-8.1.2-py2.7.egg/pip/req/req_set.py", line 736, in install
requirement.uninstall(auto_confirm=True)
File "/Library/Python/2.7/site-packages/pip-8.1.2-py2.7.egg/pip/req/req_install.py", line 742, in uninstall
paths_to_remove.remove(auto_confirm)
File "/Library/Python/2.7/site-packages/pip-8.1.2-py2.7.egg/pip/req/req_uninstall.py", line 115, in remove
renames(path, new_path)
File "/Library/Python/2.7/site-packages/pip-8.1.2-py2.7.egg/pip/utils/__init__.py", line 267, in renames
shutil.move(old, new)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py", line 302, in move
copy2(src, real_dst)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py", line 131, in copy2
copystat(src, dst)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py", line 103, in copystat
os.chflags(dst, st.st_flags)
OSError: [Errno 1] Operation not permitted: '/tmp/pip-ecyc3D-uninstall/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/numpy-1.8.0rc1-py2.7.egg-info'
I think it has something to do with the deprecated command? Anyone have a better guess? I'm a bit rusty on my Python.
Some additional information:
I'm on a mac running OS X 10.11.5 (15F34).
Python Version: Python 2.7.10
I'll provide more if needed.
EDIT:
I also tried installing it in a CentOS6.7 machine and I got the same error.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.