aMule Bug Tracker - aMule
View Issue Details
0000297aMuleMiscpublic2005-02-16 20:122005-02-25 15:24
mherbert 
phoenix 
normalminoralways
resolvedfixed 
2.0.0-rc8 
SVN 
0000297: mplayer needs stdout
this is about the "preview" feature. It simply does not work for movies in my configuration: mplayer pops up and crashes immediately.

The workaround is to replace /usr/bin/mplayer by a shell script wrapper that does: 1>/tmp/anything mplayer "$@"

I dont know about the best fix, but it may imply giving a proper file descriptor number 1 before forking mplayer.

Actually a way to configure previewers would be even better.
No tags attached.
Issue History
2005-02-16 20:12mherbertNew Issue
2005-02-16 20:29mherbertNote Added: 0000638
2005-02-16 20:59mherbertNote Added: 0000642
2005-02-17 03:01phoenixNote Added: 0000646
2005-02-17 03:01phoenixNote Edited: 0000646
2005-02-17 03:03phoenixStatusnew => confirmed
2005-02-20 15:58phoenixStatusconfirmed => closed
2005-02-25 15:24phoenixStatusclosed => resolved
2005-02-25 15:24phoenixFixed in Version => CVS
2005-02-25 15:24phoenixResolutionopen => fixed
2005-02-25 15:24phoenixAssigned To => phoenix

Notes
(0000638)
mherbert   
2005-02-16 20:29   
some tracing in the wrapper gives this information :

file /dev/stdout
 --> /proc/self/fd/1: broken symbolic link to `pipe:[287510]'
(0000642)
mherbert   
2005-02-16 20:59   
Delete the node about broken symbolic link (debugging stdout can be confusing!).
Here is a mplayer wrapper that workarounds great for me:

#!/bin/sh
# let's try to dup fd 1 just to see. Hopefully fd 9 is not used already.
if exec 9>&1
then :
else exec 1>/tmp/mplayer_amule.log
fi
/usr/bin/mplayer.real "$@"
(0000646)
phoenix   
2005-02-17 03:01   
Your script does not work for me, mplayer keeps getting strange chars and interpreting them as keyboard functions. Otoh, this script works for me (the file name is mplayer.sh, and the permissions are 0755):

#!/bin/bash
mplayer -vo xv "$@" >/dev/null </dev/null

edited on: 02-17-05 03:01