Reference:
Interested in particle astrophysics and plasma astrophysics. This blog is my research/private notebook.
Monday, July 27, 2020
Sunday, July 12, 2020
Upload audio to Youtube
Since the youtube is a video website, you can upload audio file (for example, mp3). We need to convert the file into video format, for example mp4, mkv format. We can use ffmpeg in linux to convert the audio file to video file, and then upload it to YouTube. reduce the picture size (option)
sudo apt-get install imagemagick convert image.jpg -resize 1024x512! cover.jpgInstall ffmpeg and convert audio.mp3 to output.mkv with cover cover.png.
sudo apt-get install ffmpeg ffmpeg -loop 1 -framerate 2 -i cover.png -i audio.mp3 -c:v libx264 -preset medium -tune stillimage -crf 18 -c:a copy -shortest -pix_fmt yuv420p output.mkvReference: http://trac.ffmpeg.org/wiki/Encode/YouTube
Subscribe to:
Posts (Atom)