Giter Club home page Giter Club logo

videfix's Introduction

videfix

a command line tool to ease video files metadata edition (title, audio track languages)

features

  • supports the video containers : avi, mp4 and mkv
  • allows the user to display or set the audio language of audio tracks
  • allows the user to interactively fix video files :
    • the audio track languages
    • the video title
  • a flexible mechanism to suggest video title from the video file name

requirements

  • videfix requires python 3, the language in which it is written
  • videfix uses ffmpeg toolset (https://ffmpeg.org/) as a backend, and more specifically the executables ffmpeg and ffprobe

usage examples

to display the audio tracks languages of a set of video files:

videfix.py show-audio-languages ~/videos/*.avi
/home/bob/videos/1976 - pinky pou.avi  [fra] 
/home/bob/videos/1976 - carroyage.avi  [und] 
/home/bob/videos/1997 - hypoman.avi  [jpn, eng] 
/home/bob/videos/2024 - the blue tortoise.avi  [und, und] 

to edit the title and audio track languages of a set of video files:

videfix.py modify-metadata --fix-undefined-audio-languages --fix-title --add-title-guesser 'filename_re:^(?P<year>[0-9]+) - (?P<title>[^\\[.]+)' --movie-file-path ~/videos/*.avi
/home/bob/videos/1976 - pinky pou.avi :
Current track languages : [fra]
Choose a title (old title : '') : pinky pou
changing title from '' to 'pinky pou'

/home/bob/videos/1976 - carroyage.avi :
Current track languages : [und]
Choose a language for the undefined audiotrack #0 : fra
setting audio track languages to [fra]
Choose a title (old title : 'carroyage') : carroyage

/home/bob/videos/1997 - hypoman.avi:
Current track languages : [jpn, eng]
Choose a title (old title : '') : hypoman
changing title from '' to 'hypoman'

/home/bob/videos/2024 - the blue tortoise.avi  [und, und] :
Current track languages : [und, und]
Choose a language for the undefined audiotrack #0 : fre
 unexpected language fre : valid values are ['und', 'eng', 'fra', 'jpn', 'kor', 'spa'] 
Choose a language for the undefined audiotrack #0 : fra 
Choose a language for the undefined audiotrack #1 : eng
setting audio track languages to [fra, eng]
Choose a title (old title : '') : the blue tortoise
changing title from '' to 'the blue tortoise'

videfix's People

Contributors

g-raffy avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  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.