#173 Bug with wilcards in build 36279


Mplayer 36279 still don't work with wildcards. My attempts to play all files in some catalog with '.mp3', '.' or '' ended only one result - mplayer playing one or two files, and moreover - in catalogue where lie 19 mp3 file named 01.mp3, 02.mp3 and so on, mplayer was play files 19.mp3 then 18.mp3 and exit.
Latest build that correctly work with wildcards was 34401, build 35968 also have this bug.


  • P. N.

    P. N. - 2013-05-23

    I came here to post this exact bug. There is something seriously messed up with wildcards not only when trying to play local files but in URLs as well.

    For example, try "mplayer http://blabla/?foo" and see that mplayer ignores completely the parameter and just dumps the help screen.

    This has to be a problem with the Sherpya builds since other windows builds (SVN-35923-4.6.1 built on Feb 24, 2013" works OK.

    Thanks again for the program!

  • Gianluigi Tiesi

    Gianluigi Tiesi - 2013-05-25

    windows cmd does not provide globbing, the glob is delegated to the application, so I've hooked my code in mplayer playlist add part.
    I need to decide if glob or not a command line, my current code was wrong because tries to glob http://etc, the idea is glob only if the path is a local path and the command line has * or ?, I've corrected the code to avoid globbing if : is found in command line after position 2 (i.e. a: is a local path), I still can't reproduce jrthwk problem, I can play 01.mp3 with the old code passing *.mp3 or ??.mp3

    • jrthwk

      jrthwk - 2013-05-26

      I still can't reproduce jrthwk problem,

      Mplayer unpacked in directory D:\Program\MPlayer36279. In directory for example, D:\0mp3s\aire lies 20 mp3's - 01.mp3, 02.mp3 and so on until 20.mp3
      I'm trying to run in windows cmd console command
      D:\Program\MPlayer36279\mplayer.exe D:\0mp3s\aire\05.mp3 - it's worked perfectly, yes.
      But then, when i'm trying command D:\Program\MPlayer36279\mplayer.exe D:\0mp3s\aire\* or D:\Program\MPlayer36279\mplayer.exe D:\0mp3s\aire\*.* - and mplayer play file 20.mp3, then 19.mp3 and exit.

      Last edit: jrthwk 2013-05-26
  • P. N.

    P. N. - 2013-05-25

    To reproduce the problem for local files, do this:
    - Create multiple blank files "01", "02", "03", "04", "05", "06", "07", "08".
    - Run "mplayer 0*".
    - mplayer then tries to play "08", then "07" and then it exits with "(end of file)."

  • Gianluigi Tiesi

    Gianluigi Tiesi - 2013-06-01
    • status: open --> open-accepted
  • Gianluigi Tiesi

    Gianluigi Tiesi - 2013-06-03
    • status: open-accepted --> open-remind
  • Gianluigi Tiesi

    Gianluigi Tiesi - 2013-06-03

    it should be fixed with r36295+g2976e2a, please report

  • P. N.

    P. N. - 2013-06-03

    Well, sort of.

    • "mplayer 0*" in the local directory now works (and well done for that).
    • "mplayer http://blablabla?foo" for URLs now works (and well done for that too).


    • "mplayer X:\*.mp3" does NOT work as intended. mplayer correctly identifies all files but it exits with multiple "File not found" errors. Probably, the reason is that in the case of drive letter wildcards, each expanded filename should be preceded by the drive letter. So, the expanded command line should be "mplayer X:\01.mp3 X:\02.mp3 X:\03.mp3" and so on...
    Last edit: P. N. 2013-06-03
  • jrthwk

    jrthwk - 2013-06-03

    Good, all works almost as it must. Thanks.

    About bug founded by P. N. - confirmed.
    Mplayer unpacked in directory D:\mplayer, 5 mp3's (01.mp3--05.mp3) lies in directory D:\mp3\1\

    If we stand in any directory except D:\mp3\1 and run D:\mplayer\mplayer.exe D:\mp3\1\* or D:\mplayer\mplayer.exe D:\mp3\1\*.mp3 - mplayer exit with multiple "File not found" errors.

    If we stand in directory D:\mp3\1\ and run same command - mplayer work's fine and plays all files in directory.

  • Gianluigi Tiesi

    Gianluigi Tiesi - 2013-09-14

    yes it's not really a full glob replacement, I'll try to add one when I'll find a good implementation around


Log in to post a comment.