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.1.6.tar.gz (5.8 kB view hashes)

Uploaded source

Built Distribution

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

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page