I'm looking for a media player on Linux (Ubuntu 16.04). The important feature to me is continuous playing; so starting from a video, it continuously plays the next video after the previous one is finished (possibly with lowest delay so it will be a smooth watching experience).

Any recommendations would be appreciated.

UPDATE: The number of the files in the directory are not determined in advance, and files are being added to the folder in real-time. The only thing is that they are in alphabetical order.

1 Answer 1


VLC is the ultimate media player.

  • Install the Ubuntu default repository version:

    sudo apt install vlc
  • Install the latest version (has Blu-ray support):

    sudo snap install vlc

How to make a playlist:



Same deal applies

What you can do is run VLC in single instance mode and run this bash command when you have a new file:

vlc --playlist-enqueue FILENAME

use inotifywait to catch new files

so something like this would work:


inotifywait -m /path -e create -e moved_to |
    while read path action file; do
        vlc --playlist-enqueue $path/$file

Credit: https://unix.stackexchange.com/questions/24952/script-to-monitor-folder-for-new-files

  • Why do I need a playlist? The system keeps adding videos to the folder. It is not constant.
    – angel_30
    Commented Dec 20, 2017 at 21:37
  • @TinaJ Apologies i did not see the update. I edited my answer. Commented Dec 20, 2017 at 21:52
  • Tnx. I will test it. Please make sure the bash script is correct.
    – angel_30
    Commented Dec 20, 2017 at 22:08
  • 1
    @TinaJ Removed single quotes, This should do it Commented Dec 20, 2017 at 22:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.