Giter Site home page Giter Site logo

pyup-transcoder's Introduction

#pyup-transcoder

a Python-based software to transcode videos and upload files to a remote server or S3-bucket

##Usage ~$ python transcoder.py -h usage: transcoder.py [-h] -in INPUT [-out OUTPUT] [-r] [-t] [-up] [-via {ftp,s3}] [-ftphost HOST] [-ftpport PORT] [-ftpusername USERNAME] [-ftppassword PASSWORD] [-ftpbasedir BASEDIR] [-ftppath PATH] [-s3keyid S3KEYID] [-s3secretkey S3SECRETKEY] [-s3bucket BUCKET]

A simple transcoder and uploader software

optional arguments:
  -h, --help            show this help message and exit
  -in INPUT, --input INPUT
                    input folder
  -out OUTPUT, --output OUTPUT
                    optional output folder
-r, --removelocal     remove created files after execution
-t, --transcode       whether to transcode or not
-up, --upload         whether to upload or not
-via {ftp,s3}         upload with [ftp] or [s3]
-ftphost HOST         FTP host
-ftpport PORT         FTP port
-ftpusername USERNAME
                      FTP username
-ftppassword PASSWORD
                      FTP password
-ftpbasedir BASEDIR   FTP base directory to connect to
-ftppath PATH         FTP destination path to be created
-s3keyid S3KEYID      Your AWS Access Key ID
-s3secretkey S3SECRETKEY
                      Your AWS Secret Access Key
-s3bucket BUCKET      S3 bucket name
-f, --externalfile    whether parameters should be taken from an external
                    file
-extpath EXTPATH, --externalfilepath EXTPATH
                    path of external file contining parameters

Note configuration parameters from command line take precedence over file ones.

Trasconde

Trascoding is performed using GStreamer framework. Videos are encoded using a pipeline with the following features:

  • H.264/AVC as video codec
  • AAC as audio codec
  • MP4 as container

A custom GStreamer pipeline can be provided via file (A basic knowledge of GStreamer is required)

Upload

Upload is allowed via:

  • FTP (authenticated/anonymous)
  • Amazon Web Services S3 (exinsting/new Bucket)

Credentials and several options can be provided via file

TODO

  • OO version
  • GStreamer via gst-python lib
  • GUI
  • FTP TLS

pyup-transcoder's People

Contributors

sw360cab avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.