Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
~ Reformat solution #1
  • Loading branch information
dargmuesli committed Sep 19, 2016
1 parent af033a6 commit 40ebf41
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,11 @@ This problem stands somehow in relation to FFVideo, but is definitly a problem w

##### Solution

The fix is admittedly dirty, but it works. Add `from ffvideo import VideoStream` to [/yowsup/common/tools.py](https://github.com/tgalal/yowsup/blob/master/yowsup/common/tools.py) and change the `VideoTools` class to the following:
The fix is admittedly dirty, but it works. To [/yowsup/common/tools.py](https://github.com/tgalal/yowsup/blob/master/yowsup/common/tools.py) add one import and change the `VideoTools` class:

```python
from ffvideo import VideoStream

class VideoTools:
@staticmethod
def getVideoProperties(videoFile):
Expand All @@ -103,7 +105,7 @@ I simply removed this is both functions:

```python
with FFVideoOptionalModule() as imp:
VideoStream = imp("VideoStream")
VideoStream = imp("VideoStream")
```

#### 2. Attribute
Expand Down

0 comments on commit 40ebf41

Please sign in to comment.