ffmpeg-python
Advanced tools
| Metadata-Version: 1.1 | ||
| Name: ffmpeg-python | ||
| Version: 0.1.13 | ||
| Summary: Python bindings for FFmpeg - with support for complex filtering | ||
| Version: 0.1.14 | ||
| Summary: Python bindings for FFmpeg - with complex filtering support | ||
| Home-page: https://github.com/kkroening/ffmpeg-python | ||
@@ -9,3 +9,3 @@ Author: Karl Kroening | ||
| License: UNKNOWN | ||
| Download-URL: https://github.com/kkroening/ffmpeg-python/archive/v0.1.13.zip | ||
| Download-URL: https://github.com/kkroening/ffmpeg-python/archive/v0.1.14.zip | ||
| Description: ffmpeg-python: Python bindings for FFmpeg | ||
@@ -12,0 +12,0 @@ ========================================= |
+18
-8
@@ -33,3 +33,3 @@ from __future__ import unicode_literals | ||
| @stream_operator() | ||
| def view(stream_spec, **kwargs): | ||
| def view(stream_spec, detail=False, filename=None, pipe=False, **kwargs): | ||
| try: | ||
@@ -41,5 +41,6 @@ import graphviz | ||
| filename = kwargs.pop('filename', None) | ||
| show_labels = kwargs.pop('show_labels', True) | ||
| if filename is None: | ||
| if pipe and filename is not None: | ||
| raise ValueError('Can\'t specify both `filename` and `pipe`') | ||
| elif not pipe and filename is None: | ||
| filename = tempfile.mktemp() | ||
@@ -50,3 +51,3 @@ | ||
| sorted_nodes, outgoing_edge_maps = topo_sort(nodes) | ||
| graph = graphviz.Digraph() | ||
| graph = graphviz.Digraph(format='png') | ||
| graph.attr(rankdir='LR') | ||
@@ -59,3 +60,10 @@ if len(list(kwargs.keys())) != 0: | ||
| graph.node(str(hash(node)), node.short_repr, shape='box', style='filled', fillcolor=color) | ||
| if detail: | ||
| lines = [node.short_repr] | ||
| lines += ['{!r}'.format(arg) for arg in node.args] | ||
| lines += ['{}={!r}'.format(key, node.kwargs[key]) for key in sorted(node.kwargs)] | ||
| node_text = '\n'.join(lines) | ||
| else: | ||
| node_text = node.short_repr | ||
| graph.node(str(hash(node)), node_text, shape='box', style='filled', fillcolor=color) | ||
| outgoing_edge_map = outgoing_edge_maps.get(node, {}) | ||
@@ -85,9 +93,11 @@ | ||
| graph.view(filename, cleanup=True) | ||
| if pipe: | ||
| return graph.pipe() | ||
| else: | ||
| graph.view(filename, cleanup=True) | ||
| return stream_spec | ||
| return stream_spec | ||
| __all__ = [ | ||
| 'view', | ||
| ] |
+3
-3
| Metadata-Version: 1.1 | ||
| Name: ffmpeg-python | ||
| Version: 0.1.13 | ||
| Summary: Python bindings for FFmpeg - with support for complex filtering | ||
| Version: 0.1.14 | ||
| Summary: Python bindings for FFmpeg - with complex filtering support | ||
| Home-page: https://github.com/kkroening/ffmpeg-python | ||
@@ -9,3 +9,3 @@ Author: Karl Kroening | ||
| License: UNKNOWN | ||
| Download-URL: https://github.com/kkroening/ffmpeg-python/archive/v0.1.13.zip | ||
| Download-URL: https://github.com/kkroening/ffmpeg-python/archive/v0.1.14.zip | ||
| Description: ffmpeg-python: Python bindings for FFmpeg | ||
@@ -12,0 +12,0 @@ ========================================= |
+10
-0
@@ -102,2 +102,12 @@ # ffmpeg-python: Python bindings for FFmpeg | ||
| Here are a few of the examples: | ||
| - [Convert video to numpy array](https://github.com/kkroening/ffmpeg-python/blob/master/examples/README.md#convert-video-to-numpy-array) | ||
| - [Generate thumbnail for video](https://github.com/kkroening/ffmpeg-python/blob/master/examples/README.md#generate-thumbnail-for-video) | ||
| - [Read raw PCM audio via pipe](https://github.com/kkroening/ffmpeg-python/blob/master/examples/README.md#convert-sound-to-raw-pcm-audio) | ||
| - [Jupyter Stream Editor](https://github.com/kkroening/ffmpeg-python/blob/master/examples/README.md#jupyter-stream-editor) | ||
| <img src="https://raw.githubusercontent.com/kkroening/ffmpeg-python/master/doc/jupyter-demo.gif" alt="jupyter demo" width="75%" /> | ||
| See the [Examples README](https://github.com/kkroening/ffmpeg-python/tree/master/examples) for additional examples. | ||
| ## [API Reference](https://kkroening.github.io/ffmpeg-python/) | ||
@@ -104,0 +114,0 @@ |
+2
-2
| from setuptools import setup | ||
| from textwrap import dedent | ||
| version = '0.1.13' | ||
| version = '0.1.14' | ||
| download_url = 'https://github.com/kkroening/ffmpeg-python/archive/v{}.zip'.format(version) | ||
@@ -62,3 +62,3 @@ | ||
| version=version, | ||
| description='Python bindings for FFmpeg - with support for complex filtering', | ||
| description='Python bindings for FFmpeg - with complex filtering support', | ||
| author='Karl Kroening', | ||
@@ -65,0 +65,0 @@ author_email='karlk@kralnet.us', |
Alert delta unavailable
Currently unable to show alert delta for PyPI packages.
67764
1.95%1221
0.91%