Skip to main content

Quick and simple video and audio obfuscation

Project description

Sanzan

PyPI Release tests PyPI Version

Quick and simple video and audio obfuscation

Demo

Encrypted Video:

Encrypted

Decrypted Video:

Decrypted

Prerequisites

ffmpeg must be installed and in PATH.

Installation

pip install sanzan

Usage

Encryption

With password

sz -e original.mp4 -o encrypted.mp4 -pw <password>

With randomly generated key

sz -e original.mp4 -o encrypted.mp4

On streams

sz -e https://youtu.be/dQw4w9WgXcQ -o encrypted.mp4

Decryption

With password

sz -d encrypted.mp4 -o decrypted.mp4 -pw <password>

With keyfile

sz -d encrypted.mp4 -o decrypted.mp4 -k <keyfile>

More Usage

Use the optional -p flag to view a real time preview of the output. This flag can be used alone or along with the -o argument.

sz -d encrypted.mp4 -o decrypted.mp4 -k <keyfile> -p

Use the optional -s flag to hide progress bars. Might improve performance.

Use the optional -c flag to specify the audio chunksize. The default is 100.

Use the optional -ex flag to export keyfiles.

When encrypting, use the optional -k flag to specify the path of the generated keyfile.

sz -e original.mp4 -o encrypted.mp4 -k <generated keyfile>

Note

  • cv2.waitKey is unable to maintain a consistent playback framerate for cv2.imshow.
  • Audio is not yet finally supported!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Sanzan-0.2.3.tar.gz (5.8 kB view hashes)

Uploaded Source

Built Distribution

Sanzan-0.2.3-py3-none-any.whl (6.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page