Giter Club home page Giter Club logo

bashalbumexporter's Introduction

bashAlbumExporter

This bash script uses ffmpeg to turn audio files (mp3 / flac) and an image into mp4 videos you can upload to YouTube.

 ./bashAlbumExporter.sh media/ mp3 front.jpg 1 . 1   

How to use:

  1. Download the bashAlbumExporter.sh file
  2. Run this command to give the script permissions
$ chmod 0755 bashAlbumExporter.sh
  1. Run the script with this command
$ ./bashAlbumExporter.sh media/ mp3 front.jpg 1 . 1

script command line format:

$./bashAlbumExporter.sh inputFolderPath audioInputFormat imageFilename fullAlbumOptionInt removeUpTo_char removeUpTo_offset

required command line arguments:

  • inputFolderPath = filepath to inputFolder from where your script is placed.
  • audioInputFormat = File type of the audio files you want to export (mp3, flac).
  • imageFilename = Name of the image file located in the inputFolderPath to use as background for the video.
  • fullAlbumOptionInt = Choice on rendering full album video, 0 = No, 1 = Yes, 2 = Only render full album.

optional command line arguments for setting video output filename:

  • removeUpTo_char = Remove text up to the first instance of this char.
  • removeUpTo_offset = Remove this number of chars from the start of the filename.

Example: If song filenames are formatted like = '01 - Song name.mp3', '02 - Martin Song.mp3',use the last two command line parameters to remove the leading '## - ' from the start of each filename for the output video filename:

Input files in media/ folder:
01 - Song name.mp3
02 - Martin's Song.mp3
front.jpg

$ ./bashAlbumExporter.sh media/ mp3 front.jpg 1 - 1

inputFolderPath = media/

audioInputFormat = mp3

imageFilename = front.jpg

fullAlbumOptionInt = 1

removeUpTo_char = -

removeUpTo_offset = 1

Output video files:
Song name.mp4
Martin's Song.mp4
fullAlbum.mp4

bashalbumexporter's People

Contributors

martinbarker avatar snus-kin avatar

Stargazers

Thien Nguyen avatar  avatar  avatar

Watchers

James Cloos avatar  avatar

Forkers

snus-kin

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.