[MPlayer-users] mplayer read from stdin thru ssh delay
Keith McLaughlin
keythree at gmail.com
Thu Aug 14 06:35:17 CEST 2008
Hi all. I'm using the following command to play mp3's over a network
/usr/bin/ssh $ipaddress "find $musicdir -type f -wholename
\*$search_string\*.mp3 -exec cat '{}' \;" | mplayer - -cache 64 -v
The problem I'm having, is it seem that mplayer has a very hard time to
determine the filetype that it is receiving through stdin. It only takes a
split second to read a local stream from stdin, but through ssh it takes
over a minute. Here is my output.
MPlayer 1.0rc2-4.1.0 (C) 2000-2007 MPlayer Team
> CPU: Intel(R) Pentium(R) 4 CPU 2.40GHz (Family: 15, Model: 2, Stepping: 7)
> CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
> Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2
> get_path('codecs.conf') -> '/home/kmclaugh/.mplayer/codecs.conf'
> Reading /home/kmclaugh/.mplayer/codecs.conf: Can't open
> '/home/kmclaugh/.mplayer/codecs.conf': No such file or directory
> Reading /usr/local/etc/mplayer/codecs.conf: Can't open
> '/usr/local/etc/mplayer/codecs.conf': No such file or directory
> Using built-in default codecs.conf.
> Configuration:
> CommandLine: '-' '-cache' '64' '-v'
> init_freetype
> get_path('font/font.desc') -> '/home/kmclaugh/.mplayer/font/font.desc'
> font: can't open file: /home/kmclaugh/.mplayer/font/font.desc
> font: can't open file: /usr/local/share/mplayer/font/font.desc
> Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay
> get_path('fonts') -> '/home/kmclaugh/.mplayer/fonts'
> Using nanosleep() timing
> get_path('input.conf') -> '/home/kmclaugh/.mplayer/input.conf'
> Can't open input config file /home/kmclaugh/.mplayer/input.conf: No such
> file 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('-.conf') -> '/home/kmclaugh/.mplayer/-.conf'
>
> Playing -.
> Reading from stdin...
> [file] File size is -1 bytes
> STREAM: [file] -
> STREAM: Description: File
> STREAM: Author: Albeu
> STREAM: Comment: based on the code from ??? (probably Arpi)
> CACHE_PRE_INIT: 0 [0] 0 pre:13107 eof:0
> Cache fill: 0.00% (0 bytes)
> LAVF_check: MPEG audio
> Checking for YUV4MPEG2
> ASF_check: not ASF guid!
> Checking for NuppelVideo
> Checking for REAL
> Checking for SMJPEG
> Searching demuxer type for filename - ext: (null)
> Checking for Nullsoft Streaming Video
> Cannot seek backward in linear streams!
> Seek failed
> Checking for MOV
> Checking for VIVO
> AVS: avs_check_file - attempting to open file -
> Win32 LoadLibrary failed to load: avisynth.dll,
> /usr/local/lib/codecs/avisynth.dll, /usr/lib/win32/avisynth.dll,
> /usr/local/lib/win32/avisynth.dll
> AVS: failed to load avisynth.dll
> AVS: Init failed
> Checking for PVA
> Checking for MPEG-TS...
> TRIED UP TO POSITION 68532, FOUND 47, packet_size= 0, SEEMS A TS? 0
> Cannot seek backward in linear streams!
> Seek failed
> Checking for LMLM4 Stream Format
> Invalid packet in LMLM4 stream: ch=4613 size=-1722261396
> LMLM4 Stream Format not found
> sync_mpeg_ps: seems to be MP3 stream...
> MPEG Stream reached EOF
> ds_fill_buffer: EOF reached (stream: video)
> MPEG packet stats: p100: 0 p101: 0 p1B6: 0 p12x: 0 sli: 0 a: 0 b: 0 c: 0
> idr: 0 sps: 0 pps: 0 PES: 0 MP3: 129, synced: 0
> Not MPEG System Stream format... (maybe Transport Stream?)
> Cannot seek backward in linear streams!
> Seek failed
> sync_mpeg_ps: seems to be MP3 stream...
> MPEG Stream reached EOF
> ds_fill_buffer: EOF reached (stream: video)
> MPEG packet stats: p100: 0 p101: 0 p1B6: 0 p12x: 1 sli: 0 a: 0 b: 0 c: 0
> idr: 0 sps: 0 pps: 0 PES: 0 MP3: 111, synced: 0
> Not MPEG System Stream format... (maybe Transport Stream?)
> Cannot seek backward in linear streams!
> Seek failed
> ==> Found audio stream: 0
> demux_audio: seeking from 0x1C25 to start pos 0x13B
> demux_audio: audio data 0x13B - 0x0
> Audio file file format detected.
> ==========================================================================
> Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
> dec_audio: Allocating 4608 + 65536 = 70144 bytes for output buffer.
> mp3lib: using SSE optimized decore!
> MP3lib: init layer2&3 finished, tables done
> mpg123: Can't rewind stream by 228 bits!
> MPEG 1.0, Layer III, 44100 Hz 192 kbit Joint-Stereo, BPF: 626
> Channels: 2, copyright: No, original: Yes, CRC: No, emphasis: 0
> AUDIO: 44100 Hz, 2 ch, s16le, 192.0 kbit/13.61% (ratio: 24000->176400)
> Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)
> ==========================================================================
>
Are there any flags that I can set to make mplayer try mp3lib first, or any
other way to speed up the process?
--
Keith McLaughlin
University of South Florida
Department of Physics
4202 E. Fowler Ave
Tampa, FL 33620
More information about the MPlayer-users
mailing list