Skip to content

jork07/VSD

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

About This Repository

This repository contains Python implementations of VSD(Video Storage in DNA). It mainly includes the following functions:

  1. Video segmentation.
  2. DNA encoding and decoding.

Datasets

  1. FoundingCeremony(https://www.youtube.com/watch?v=BIHPFgAulS0&list=PLm9ClEu2__aKddRGDNHR-vLFwW1E26zVv)
  2. BandungConference(https://www.bilibili.com/video/BV18v41167CG/?spm_id_from=333.337.search-card.all.click&vd_source=4dccd6a2608eb13d97efd2ac532857be)
  3. Macao1999(https://www.youtube.com/watch?v=cZ_E2BPghbc)
  4. HongKong1997(https://www.youtube.com/watch?v=d2_Hl1DGnks)

We obtained other formats of videos in the paper from the sample website(https://filesamples.com/)

Installation

Step-by-step installation is as follows:

Tools and environment

Install Python IDE, PyCharm from here https://www.jetbrains.com/pycharm/download/?section=windows,

Install following Python packages

  • codecs
  • binascii
  • galois
  • numpy
  • blast
  • struct

Experimental steps

Video Segmentation

Step 1: Open segmentation.py script(Confirm that you have installed ffmpeg);

Step 2: Choose a mp4 file, and set the output path & srgment duration;

Step 3: Run the script, it will will quickly complete video segmentation, and each video can be played separately.

DNA Encode

Step 1: Open VSD_codec.py script, drop down to line 250;

Step 2: Choose a mp4 segmentation file, and set the DNA file output path;

Step 3: Run the script,It will automatically perform a quaternary conversion and output a DNA sequence file in fasta format.

DNA Decode

Step 1: Open VSD_codec.py script, drop down to line 250;

Step 2: Choose a mp4 segmentation file, and set the DNA file output path;

Step 3: Run the script,It will automatically perform a quaternary conversion and output a DNA sequence file in fasta format.

License

VSD is licensed under the GNU General Public License; for more information, read the LICENSE file or refer to:

http://www.gnu.org/licenses/

Citation

A related paper is submitted to the SCI journal.

About

This repository contains Python implementations of VSD(Video Storage in DNA).

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published