[MPlayer-users] mplayer hanging when no audio in stream

Matthew Kwan mkwan at vivatel.com.au
Sat May 16 15:31:13 CEST 2009


Hi.

We're attempting to stream live video from a customer's webcam. This was
mostly working fine, until they decided to switch off the microphone.
Now mplayer hangs during startup.

We can fix the problem by using the -nosound option, but this will be
used by an application that doesn't know in advance whether a URL will
have audio or not, so we can't hard-code the option.

We really need a working solution in a few days, and we're willing to
patch the mplayer code to make it happen. Can anyone suggest any options
and/or source code changes to make this happen?

Below is the output from mplayer, which hung for a minute until I hit
CTRL-c and it exited. We got the same behaviour from the latest source
build, but it's only configured to do pcm audio output - which has
problems of its own - and I don't want to confuse the issue.

Regards,


mkwan


MPlayer SVN-r28461-4.3.0 (C) 2000-2009 MPlayer Team
CPU: Intel(R) Celeron(R) CPU 2.40GHz (Family: 15, Model: 2, Stepping: 9)
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.

Playing http://XXX.XX.192.14/img/video.asf.
Resolving XXX.XX.192.14 for AF_INET6...
Couldn't resolve name for AF_INET6: XXX.XX.192.14
Connecting to server XXX.XX.192.14[XXX.XX.192.14]: 80...
Cache size set to 320 KBytes
Cache fill: 17.50% (57344 bytes)   
ASF file format detected.
[asfheader] Video stream found, -vid 1
[asfheader] Audio stream found, -aid 2


MPlayer interrupted by signal 2 in module: demux_open


MPlayer interrupted by signal 2 in module: enable_cache
nop_streaming_read error : Interrupted system call
ASF: No audio stream found -> no sound.
VIDEO:  [M4S2]  320x240  24bpp  1000.000 fps    0.0 kbps ( 0.0 kbyte/s)
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffodivx] vfm: ffmpeg (FFmpeg MPEG-4)
==========================================================================
Audio: no sound
Starting playback...
VDec: vo config request - 320 x 240 (preferred colorspace: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
VO: [xv] 320x240 => 320x240 Planar YV12 
V:   0.0   1/  1 ??% ??% ??,?% 0 0 0%                                           
Exiting... (Quit)


More information about the MPlayer-users mailing list