How to extract audio from any Video using Command Line Android Termux [Also work for non-rooted Devices]
What is Termux?
Termux combines powerful terminal emulation with an extensive Linux package collection.
• Enjoy the bash and zsh shells.
• Edit files with nano and vim.
• Access servers over ssh.
• Develop in C with clang, make and gdb.
• Use the python console as a pocket calculator.
• Check out projects with git and subversion.
What Will I Learn?
How to extract audio from any Video using Command Line Termux
Requirements
Termux
Difficulty
- Intermediate
Tutorial Contents
- Set-up the Termux
- Install the ffmpeg Script on Termux.
- Make directories
- Set-up termux-file-editor on Termux
- Extract the audio from video
Procedure
- With this procedure, you can extract the audio voice from any of your video song or any recorded video by using the command line app Termux. Termux is the most popular command line app that mostly based on Linux.
- 1: Type command
apt-get update && apt-get upgrade
and press Enter. Press y if it asked for installing.
- 2: Now type command
termux-setup-storage
and press Enter and then click on Allow.
3: Type command
pkg install -y ffmpeg
and press Enter. Press y if it asked for installing.
4: Type command
pkg install wget
and press Enter.
5: Type command
mkdir ~/bin
and press Enter.6: Type command
mkdir ~/storage/shared/convertedFiles
and press Enter.7: Type command
wget http://pastebin.com/raw/JxKNaixQ -O ~/bin/termux-file-editor
and
press Enter.8: Now type command
dos2unix ~/bin/termux-file-editor
and press Enter.
9: Now go you file manager and select any video file that you want to extract audio and then share it with Termux app.
10: A popup box will open, enter the new file name and extension .mp3 and tap on Edit.
- Change the Extension to .mp3 and click on EDIT
- 11: Termux will run series of commands. Once it’s done, it’ll prompt you to press the Enter key. Do that.
- 12: Now, go to the internal storage of your Android and look for the folder convertedFiles, open it and there you’ll find all your converted files.
All Done! you extracted the audio from your Video. Lets test it.

Curriculum
How to setup and run python and C++ in Android Termux
Tutorial 2: How to make a call and send SMS using Android Termux
Tutorial 3: How to install SQLmap in Android Termux [Also work for non-rooted devices]
Tutorial 4: How to Trace exact IP Location on Android Termux [Also work for non-rooted devices]
Posted on Utopian.io - Rewarding Open Source Contributors
Thank you for the contribution. It has been approved.
You can contact us on Discord.
[utopian-moderator]
Hey @faisalamin I am @utopian-io. I have just upvoted you!
Achievements
Community-Driven Witness!
I am the first and only Steem Community-Driven Witness. Participate on Discord. Lets GROW TOGETHER!
Up-vote this comment to grow my power and help Open Source contributions like this one. Want to chat? Join me on Discord https://discord.gg/Pc8HG9x