Skip to content

Linux: can't play extended audio track if it's filename contains [ or ]

Hi,

There is a Linux, and there is a VLC installed in it. If I want to play a video with an external audio track I can follow the official guide: open multiple files... etc. and end up with VLC launching the command line like that: vlc /tmp/my.mkv :input-slave=file:///tmp/my.mka file-caching=1000

And this will work. But if external audio track's filename contains a [ or ] character - it fails: vlc /tmp/my.mkv :input-slave=file:///tmp/[jap]my.mka file-caching=1000 There is no 2nd audio channel in VLC audio menu...
And [tag] is often used to distinguish the external audio tracks....

This doesn't affect the video filename.
And this doesn't affect a command line if it's formed manually without the file://:
vlc /tmp/my.mkv :input-slave=/tmp/[jap]my.mka file-caching=1000 - works.
But VLC GUI forms only a command line with a file://...

The system is Kubuntu 21.10, so it's a KDE.
Let me know if it's not a generic linux issues - I won't be surprised and will forward a bug to a KDE.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information