[MPlayer-users] Some suggestions about console output

Victor Farias nk21507 at hotmail.com
Wed Apr 19 21:47:09 CEST 2006


Hi ;)

I have been using MPlayer for a long time. I was very happy using the 
"-really-quiet" option, but then I wanted to know technical details about 
the file being played (codec, length, audio streams, subtitles streams, etc) 
so I deleted "really-quiet=yes" from my "config" file.

... Because of that, I want to report what I think can be improved :)

- When you play more than one file it is really difficult to see in the 
console output the end of the previous file and the start of the next file. 
For example, playing two files, the console output will be like this:

>A: 288.1 (04:48.0) of 288.0 (04:48.0)  0.0%
>Playing arisaka mika - getsumei fuuei.flac.

As you can see, there is not a "new line" before the "playing <filename>." 
message. I modified the "help_mp-en.h" file at line 112:

>-#define MSGTR_Playing "Playing %s.\n"
>+#define MSGTR_Playing "\nPlaying %s.\n"

... And the result was quiet good ;)

>A: 288.1 (04:48.0) of 288.0 (04:48.0)  0.0%
>
>Playing arisaka mika - getsumei fuuei.flac.

This time it is really easy to see where is the end of the previous file and 
the start of the next file.

This is JUST a suggestion, but I think it could be very useful!!!

- When Playing "audio only" files (FLAC, MP3 and WAV) the console output 
will display "Audio file file format detected.":

>Playing arisaka mika - getsumei fuuei.flac.
>Audio file file format detected.

As you can see, this behavior can be improved. I modified the 
"demux_audio.c" file at line 737:

>-  "Audio file",
>+  "Audio",

... and now the message looks better ;)

>Playing arisaka mika - getsumei fuuei.flac.
>Audio file format detected.

Again, this is JUST a suggestion, but I think it could be very useful!!!

- When seeking while playing "audio only" files, the console will be flooded 
with a lot of strange characters (note: this behavior is only reproducible 
under Windows).

I made some research and I found the posible cause of this behavior. In the 
"mplayerc.c" file at line 244 you can see this:

>static char* term_osd_esc = "\x1b[A\r\x1b[K";

I think (and I have zero programming knowledge) that the Windows console is 
not able to understand that "escape sequence" and is displaying those 
strange characters ("©[K").

When seeking using the "right" key:
>©[KPosition: 4 %of 288.0 (04:48.0)  0.0%
>©[K 12.5 (12.5) of 288.0 (04:48.0)  0.1%

When pausing using the "space bar" key:
>©[K  =====  PAUSE  ===== (04:48.0)  0.1%
>©[K

I know I can use the "&#8722;noterm-osd" option, but I wanted to report this 
anyway (because it is a "Windows only" problem).

I am using current CVS (2006-04-18) compiled under a MinGW (candidate) 
environment.

My system: AMD Athlon 64 3200+ S939, 512MB RAM, NVIDIA GeForce FX 5700LE 
(ForceWare 81.98), Windows XP Professional SP2.

I hope you can reproduce these behaviors with all the information I have 
provided... If you need more information, just ask for it.

Thanks to the MPlayer dev team for the great work!!!

Byes :p

* Sorry for my poor english.



Yakusoku wa iranai.

_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE! 
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/




More information about the MPlayer-users mailing list