Opened 16 years ago

Last modified 14 years ago

#1021 closed defect (fixed)

-nosound ignored on audio-only files

Reported by: jidanni@… Owned by: r_togni@…
Priority: normal Component: demuxer
Version: HEAD Severity: normal
Keywords: Cc: compn
Blocked By: Blocking:
Reproduced by developer: no Analyzed by developer: no

Description

The man page says

-nosound

Do not play/encode sound. Useful for benchmarking.

But
$ mplayer -nosound rec001.wav
does anyway.

Anyway, there is no option to just print out file information without
also playing the file, short of using file(1).

Change History (4)

comment:1 by diego@…, 16 years ago

Component: DOCSdemuxer
Owner: changed from diego@… to r_togni@…
Priority: if idlenormal
Severity: trivialnormal
Summary: mplayer -nosound file.wav-nosound ignored on audio-only files
Version: 1.0rc2HEAD

Indeed, -nosound gets ignored on audio-only files.

To print out file information without playing a file use "-frames 0".

comment:2 by jidanni@…, 16 years ago

To print out file information without playing a file use "-frames 0".

OK, be sure to mention that on the man page.
By the way, that still produces the message "Playing"... at least.
Also mention how to examine if a e.g., MP3 file is intact and in good
health, in batch mode, without having to listen to the whole song, or
even listen to anything. E.g., how to detect if the file is actually a
injured partial download with e.g., its latter portions filled with
0x0 nulls at the end, etc. or any other unhealthy conditions that can
be detected without needing a human's ear.

comment:3 by compn, 15 years ago

use -ao null -benchmark -speed 90
to see if there are any decoding errors :)

comment:4 by compn, 14 years ago

Resolution: fixed
Status: newclosed, patriotact@gmail.com

mplayer -nosound file.wav was fixed, but i dont know when..

Playing 55.7KB-lbfmt.wav.
Audio only file format detected.
No stream found.

Exiting... (End of file)

Note: See TracTickets for help on using tickets.