Hello everybody,
I have now found time to update my Slimserver to Squeezecenter. After
the update, all conversions of the standard files like APE, MPC, AAC
work fine again. Conversion of ac3 does not work yet, however. This is
the output when I use mplayer with the "-v" option to play the file as
suggested. As you can see, I have aborted playback after a few seconds
by pressing Crtl+C:
------------------------------------------------
D:\Musiq>c:\programme\mplayer\mplayer -v -af resample=44100:0:1 -ao
win32 test.a
c3
MPlayer 1.0pre8-3.4.2 (C) 2000-2006 MPlayer Team
CPU: AMD Athlon(tm) 64 Processor 3200+ (Family: 15, Model: 4, Stepping:
10)
CPUflags: MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 0 SSE2: 0
Compiled with runtime CPU detection.
get_path('codecs.conf') -> 'c:/programme/mplayer/mplayer/codecs.conf'
Reading c:/programme/mplayer/mplayer/codecs.conf: Can't open
'c:/programme/mplay
er/mplayer/codecs.conf': No such file or directory
Reading /usr/local/etc/mplayer/codecs.conf: Can't open
'/usr/local/etc/mplayer/c
odecs.conf': No such file or directory
Using built-in default codecs.conf.
CommandLine: '-v' '-af' 'resample=44100:0:1' '-ao' 'win32' 'test.ac3'
init_freetype
get_path('font/font.desc') ->
'c:/programme/mplayer/mplayer/font/font.desc'
font: can't open file: c:/programme/mplayer/mplayer/font/font.desc
font: can't open file: /usr/local/share/mplayer/font/font.desc
Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay
Using Windows native timing
get_path('input.conf') -> 'c:/programme/mplayer/mplayer/input.conf'
Can't open input config file c:/programme/mplayer/mplayer/input.conf:
No such fi
le or directory
Can't open input config file /usr/local/etc/mplayer/input.conf: No such
file or
directory
Falling back on default (hardcoded) input config
get_path('test.ac3.conf') ->
'c:/programme/mplayer/mplayer/test.ac3.conf'
Playing test.ac3.
get_path('sub/') -> 'c:/programme/mplayer/mplayer/sub/'
WINSOCK2 init: 0
[file] File size is 5331352 bytes
STREAM: [file] test.ac3
STREAM: Description: File
STREAM: Author: Albeu
STREAM: Comment: based on the code from ??? (probably Arpi)
Checking for YUV4MPEG2
ASF_check: not ASF guid!
Checking for NuppelVideo
Checking for REAL
Checking for SMJPEG
Searching demuxer type for filename test.ac3 ext: .ac3
Trying demuxer 35 based on filename extension
LAVF_check: raw ac3
libavformat file format detected.
==> Found audio stream: 0
======= WAVE Format =======
Format Tag: 8192 (0x2000)
Channels: 2
Samplerate: 48000
avg byte/sec: 32000
Block align: 0
bits/sample: 0
cbSize: 0
==========================================================================
LAVF: 1 audio and 0 video streams found
LAVF: build 3277824
==========================================================================
Opening audio decoder: [liba52] AC3 decoding with liba52
dec_audio: Allocating 3840 bytes for input buffer.
dec_audio: Allocating 6144 + 65536 = 71680 bytes for output buffer.
Using 3DNowEx optimized IMDCT transform
AC3: 2.0 (stereo) 48000 Hz 256.0 kbit/s
A52 flags before a52_frame: 0x2A
A52 flags after a52_frame: 0x2
Using MMX optimized resampler
AUDIO: 48000 Hz, 2 ch, s16le, 256.0 kbit/16.67% (ratio: 32000->192000)
Selected audio codec: [a52] afm: liba52 (AC3-liba52)
==========================================================================
Building audio filter chain for 48000Hz/2ch/s16le -> 0Hz/0ch/??...
[libaf] Adding filter resample
[resample] Changing sample rate to 44100Hz
[resample] Using integer processing and exact frequecy conversion.
[resample] New filter designed up: 147 down: 160
[resample] Using integer processing and exact frequecy conversion.
ao_win32: Samplerate:44100Hz Channels:2 Format:s16le
ao_win32: Buffersize:4096
AO: [win32] 44100Hz 2ch s16le (2 bytes per sample)
AO: Description: Windows waveOut audio output
AO: Author: Sascha Sommer <[EMAIL PROTECTED]>
Building audio filter chain for 48000Hz/2ch/s16le ->
44100Hz/2ch/s16le...
[resample] Using integer processing and exact frequecy conversion.
[resample] Using integer processing and exact frequecy conversion.
Video: no video
Freeing 0 unused video chunks.
Starting playback...
[libaf] Reallocating memory in module resample, old len = 0, new len =
60212
MPlayer interrupted by signal 2 in module: play_audio
Uninit audio filters...
[libaf] Removing filter resample
Uninit audio: liba52
WINSOCK2 uninit
waveOut device closed
buffer memory freed
------------------------------------------------
I have also taken a look at the squeezecenter logs. The interesting
lines I get when I try to play an ac3 file are these:
------------------------------------------------
[08-03-22 11:17:40.9557] Slim::Player::Source::openSong (1897) This is
an ac3 file: file:///D:/Musiq/test.ac3
[08-03-22 11:17:40.9560] Slim::Player::Source::openSong (1898) file
type: ac3 format: wav inrate: 0 maxRate: 0
[08-03-22 11:17:40.9563] Slim::Player::Source::openSong (1899)
command: [mplayer] -really-quiet -af resample=44100:0:1 -ao
pcm:nowaveheader:file=#PIPE# $FILE$
[08-03-22 11:17:40.9570]
Slim::Player::TranscodingHelper::tokenizeConvertCommand (360) Using
command for conversion:
"C:\PROGRA~1\SQUEEZ~1\server\Bin\MSWin32-x86-multi-thread\mplayer.exe"
-really-quiet -af resample=44100:0:1 -ao pcm:nowaveheader:file=#PIPE#
"D:\Musiq\test.ac3" |
[08-03-22 11:17:40.9988] Slim::Utils::Misc::msg (1241) Warning:
[11:17:41.9983] Use of uninitialized value in multiplication (*) at
/<C:\PROGRA~1\SQUEEZ~1\server\SQUEEZ~1.EXE>Slim/Player/Source.pm line
2041.
[08-03-22 11:17:40.9992] Slim::Player::Source::openSong (2061)
Streaming with format: wav
[08-03-22 11:17:41.2378] Slim::Player::Source::playmode (401)
78:7c:31:02:3d:31 New play mode: play
[08-03-22 11:17:41.2508] Slim::Player::Transporter::play (99) Setting
DigitalInput to 0 for [file:///D:/Musiq/test.ac3]
[08-03-22 11:17:41.2514] Slim::Player::Transporter::setDigitalInput
(179) Switching to digital input 0
[08-03-22 11:17:41.2539] Slim::Utils::Misc::msg (1241) Warning:
[11:17:41.2534] Use of uninitialized value in hash element at
/<C:\PROGRA~1\SQUEEZ~1\server\SQUEEZ~1.EXE>Slim/Player/Squeezebox.pm
line 1170.
[08-03-22 11:17:41.2562] Slim::Player::Source::playmode (556)
78:7c:31:02:3d:31: Current playmode: play
[08-03-22 11:17:50.8281] Slim::Player::Source::readNextChunk (2320)
Read to end of file or pipe
[08-03-22 11:17:50.8285] Slim::Player::Source::readNextChunk (2343) end
of file or error on socket, opening next song, (song pos: 299(tell says:
. 0 but true), totalbytes: 0)
[08-03-22 11:17:50.8288] Slim::Player::Source::gotoNext (1206) Opening
next song...
------------------------------------------------
So i found out that Squeezecenter uses this line for conversion:
mplayer.exe -really-quiet -af resample=44100:0:1 -ao
pcm:nowaveheader:file=#PIPE# "D:\Musiq\test.ac3" |
I tried this line to do a ac3->mp3 conversion and it failed.
mplayer.exe -really-quiet -af resample=44100:0:1 -ao
pcm:nowaveheader:file=#PIPE# "D:\Musiq\test.ac3" | lame -b 80 -
test.mp3
results in a PCM file called #PIPE# and and mp3 file that contains only
a short bleep.
Could it be that the #PIPE# construction does not work as supposed on
my system? I am running Windows XP Home SP2. Is there any way to fix it
or to use a different method to get the pcm stream piped?
Thanks for you help and happy Easter to all who celebrate it.
rumpel
--
rumpel
------------------------------------------------------------------------
rumpel's Profile: http://forums.slimdevices.com/member.php?userid=10589
View this thread: http://forums.slimdevices.com/showthread.php?t=29638
_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/lists/listinfo/unix