[MPlayer-users] Unsplit file for playback

Reimar Döffinger Reimar.Doeffinger at gmx.de
Mon Oct 31 20:31:51 CET 2011


On Mon, Oct 31, 2011 at 07:16:46PM +0300, - - wrote:
> Is it somehow possible to use filename expansion in concat: syntax?
> 
> file.ext.01
> file.ext.02
> 
> ffmpeg://concat:*.ext.*
> 
> doesn't work.
> 
> Actually I have a problem with filename expansion in other options too,
> such as -sub for loading subtitles:
> 
> movie.txt
> movie.srt
> 
> -sub *.txt
> -sub *.srt
> -sub movie.txt,movie.srt
> 
> The above works.
> 
> -sub *.txt,*.srt
> 
> This doesn't work.

MPlayer doesn't handle globbing in any way, it must get the full file
names. Thus it is a matter of making your shell do what you want.
E.g. for the sub case:
mplayer $(printf -- "-sub %s " *.txt *.str)


More information about the MPlayer-users mailing list