Opened 12 years ago

Last modified 12 years ago

#1011 new defect

Truncated output file for *.wma to *.mp3 conversion (large files)

Reported by: wkraimer@… Owned by: reimar
Priority: normal Component: ao
Version: 1.0rc2 Severity: normal
Keywords: Cc:
Blocked By: Blocking:
Reproduced by developer: Analyzed by developer:

Description

Mplayer truncates the converted mp3 output of a large wma file (size >= 100MB) when the following pipe is run under linux (Debian 3.1r4, Slackware 12.0).

mplayer -msglevel all=-1 -vo null -vc dummy -ao pcm:waveheader:file=/dev/stdout | | dd ibs=1 skip=$skip | lame -h -ms -a -b$bitrate -

The bug is in the file libao2/ao_pcm.c line 130:

/* wavhdr.data_length=le2me_32(0x7ffff000);*/

wavhdr.data_length=le2me_32(0xffffffff);

This patch corrects the problem.

A second, mostly annoying "bug" in mplayer is the inability to turn off it's banner output when running from the command line. In the above pipe, the dd command is used to skip over this "garbage", even though the documentation claims that the flag "-msglevel all=-1" will turn this banner off.

Change History (1)

comment:1 Changed 12 years ago by compn

-really-quiet (in rc2 or newer) will turn all mplayer messages off

Note: See TracTickets for help on using tickets.