Giter Club home page Giter Club logo

converter's Introduction

Converter

A simple python script to iterate over movies in given directory and convert them using ffmpeg to x265 codec (mkv container).

Installation

Download the converter.zip file from releases, then:

python converter.zip PATH_TO_CONVERT

How it works

It scans given directory for files with specified extensions ('.mp4', '.mkv', '.avi'). Then it checks if there is a stamp that conversion ended, in that case, file is already converted and we skip it. If there is only stamp saying conversion started, it means we haven't finished previous conversion of this file and we want to convert it again.

In this case, we refresh start stamp, and start the conversion. After the conversion is finished, we create end stamp, delete the start stamp and delete the original file (if specified in cmdline arguments).

File names

Some files may have strange unicode charcters in their name. This causes errors on printing which file is being converted. When you try to find your file and fail, look for '?' characters inside the printed text and replace them with * for searching in your system. These are the unprintable characters replaced to be visible. You may also fix this issue by renaming that file.

converter's People

Contributors

lunemec avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

converter's Issues

Don't like the cluttering of filesystem with stamp files

Possible solutions:
have sqlite db for each computer - some tmp or installation directory (installation directory may be the best option - but what with .zip file ... )
have sqlite db for each drive containing files to be converted (may be a problem with mounting separate directories or sym-hard links)

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.