Skip to content
TheChatArchiveThe Chat Archive
Claudeclaude-3-5-haiku-20241022· AnthropicHugging Face LMArena Human Preference 140K

how to automatically play next file in directory when playing a video file in mpv

From a Chatbot Arena battleThe same person sent this prompt to two anonymous models at once. Compare it with Claudeclaude-3-5-sonnet-20241022’s answer.
  1. User

    how to automatically play next file in directory when playing a video file in mpv

  2. Claude Assistant

    Here's how to configure mpv to automatically play the next file in the directory:

    1. Open or create the mpv configuration file:

      • On Linux/macOS: ~/.config/mpv/mpv.conf
      • On Windows: %APPDATA%\mpv\mpv.conf
    2. Add these lines to the configuration file:

    # Automatically play next file in directory
    playlist-auto-start=yes
    playlist-shuffle=no  # Optional: set to 'yes' if you want random order
    
    1. Alternative method using command line options:
    mpv --playlist-auto-start=yes directory/path/
    
    1. If you want to create a playlist manually before playing:
    mpv --playlist=playlist.m3u directory/path/
    

    Additional tips:

    • The playlist-auto-start option ensures mpv automatically moves to the next file
    • You can customize playlist behavior further in the configuration file
    • This works for video, audio, and image files in the same directory

    Note: Make sure you're using a recent version of mpv for these options to work correctly.

Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.