GithubHelp home page GithubHelp logo

jsejcksn / audio-on-youtube Goto Github PK

View Code? Open in Web Editor NEW
11.0 3.0 3.0 989 KB

Convert an audio file to video for uploading to YouTube

License: MIT License

ffmpeg-script convert-audio convert-videos audio video youtube

audio-on-youtube's Introduction

audio-on-youtube

Convert an audio file to a video for uploading to YouTube—without any video editing software!

This script uses ffmpeg to combine an audio file with a still image to produce a video that can be uploaded to YouTube.

Don't upload anything you make unless you own the copyright to the audio/image.

Requirements

  • a copy of the ffmpeg binary in your $PATH (use the link above if you need to get a copy)

  • an audio file

  • a 16:9 aspect ratio image (blank png supplied) for the still visual part of the video

The audio and image files can be any format supported by ffmpeg.

Usage

  1. In the media folder, replace audio.wav with your audio file (and image.png if you'd like).

  2. Open your terminal to the media directory of this repository and then run the following command:

ffmpeg -loop 1 -i image.png -i audio.wav -c:v libx264 -tune stillimage -c:a aac -b:a 192k -pix_fmt yuv420p -vf scale=1280:720 -shortest video.mp4

When the script finishes converting your video, it will be saved to media/video.mp4.

  1. Upload your new video to YouTube and enjoy the audio.

audio-on-youtube's People

Contributors

jsejcksn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

audio-on-youtube's Issues

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.