Skip to content

slifty/tvarchive-adfinder

Repository files navigation

Ad Finder

This works with the Duplitron API to automatically find potential ad candidates from the Internet Archive's TV archive corpus. You need access to the corpus for this code to be useful (but could modify the IngestVideo task to use your own video!).

Dependencies

To run this code you need:

  • PHP >= 5.5.9
  • OpenSSL PHP Extension
  • PDO PHP Extension
  • Mbstring PHP Extension
  • Tokenizer PHP Extension
  • Composer for dependency management
  • PSQL

Installing

  1. Install Composer

  2. Clone this repository into a living breathing live php enabled directory mod rewrite should be enabled

  3. Install composer dependencies

    	cd /path/to/your/clone/here
    	composer install
  4. Set up a psql database

  5. Copy .env.example to .env in the root directory, then edit it

    	cd /path/to/your/clone/here
    	cp .env.example .env
    	vi .env
    • RSYNC_IDENTITY_FILE: a path to a private key that web root has 500 access to, with any media files you plan on importing
    • FPRINT_STORE: a path to the /storage/audfprint director inside of the repository
    • DOCKER_HOST: the location and port of the docker you set up for audfprint
  6. Install supervisor and enable the job queue.

    	cp adfinder-worker.conf.example /etc/supervisor/conf.d/adfinder-worker.conf
    	vi /etc/supervisor/conf.d/adfinder-worker.conf
    	sudo supervisorctl reread
    	sudo supervisorctl update
    	sudo supervisorctl start adfinder-worker:*

(ssh -fN -o"ControlPath none" -L 9999:tv-se.archive.org:8983 vm-home1.archive.org)

About

Uses the fingerprinting API to process new media and find ads.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published