To play all the music files within the directory using ffmpeg library, you can do the following in the terminal:-
The -autoexit option automatically terminates the music file once it has been played.- Change you current working directory to the directory which you want to play.
- Now type the following script in the terminal: $ for f in *.m*; do ffplay -autoexit "${f}"; done;
- Hit the return key and you are done. Enjoy the music now!
Screenshot:-
Comments