mplayer2 does not play MIDI files.

2013-01-04 Thread Sthu Deus
Good time of the day.


$ mplayer 1.mid
MPlayer2 UNKNOWN (C) 2000-2012 MPlayer Team
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 1.mid.
Failed to recognize file format.

Exiting... (End of file)

How do I fix it on Wheezy?!


Thanks for Your time.


Sthu.


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/50e69966.0781980a.0315.2...@mx.google.com



Re: mplayer2 does not play MIDI files.

2013-01-04 Thread Raffaele Morelli
2013/1/4 Sthu Deus sthu.d...@gmail.com

 Good time of the day.


 $ mplayer 1.mid
 MPlayer2 UNKNOWN (C) 2000-2012 MPlayer Team
 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 1.mid.
 Failed to recognize file format.

 Exiting... (End of file)

 How do I fix it on Wheezy?!


It won't fix at all because mplayer doesn't play midi files...

-r


Re: mplayer2 does not play MIDI files.

2013-01-04 Thread Rob Owens
On Fri, Jan 04, 2013 at 10:17:16AM +0100, Raffaele Morelli wrote:
 2013/1/4 Sthu Deus sthu.d...@gmail.com
 
  Good time of the day.
 
 
  $ mplayer 1.mid
  MPlayer2 UNKNOWN (C) 2000-2012 MPlayer Team
  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 1.mid.
  Failed to recognize file format.
 
  Exiting... (End of file)
 
  How do I fix it on Wheezy?!
 
 
 It won't fix at all because mplayer doesn't play midi files...
 
You can use timidity for midi files.  I wrote this a while back to
convert a bunch of midi files to ogg.  Beware -- it deletes the midi
files after conversion.

#!/bin/bash

for file in *.mid; do
WAVFILE=$(basename $file mid)wav
OGGFILE=$(basename $file mid)ogg
timidity $file -Ow -o $WAVFILE  rm $file
ffmpeg -i $WAVFILE -acodec vorbis $OGGFILE  rm $WAVFILE
done


I'm sure there are better ways of doing it.  Also, note that it uses
ffmpeg.  That has been replaced in Debian with something else.  ffmpeg is
still available in the 3rd-party deb-multimedia repo, but I think you might
as well use oggenc instead of ffmpeg anyway.

-Rob


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20130104161420.ga5...@aurora.owens.net



Re: mplayer2 does not play MIDI files.

2013-01-04 Thread Sthu Deus
Good time of the day, Rob.


Big thanks for Your time and answer! You wrote:

 You can use timidity for midi files.  I wrote this a while back to
 convert a bunch of midi files to ogg.  Beware -- it deletes the midi
 files after conversion.
 
 #!/bin/bash
 
 for file in *.mid; do
 WAVFILE=$(basename $file mid)wav
 OGGFILE=$(basename $file mid)ogg
 timidity $file -Ow -o $WAVFILE  rm $file
 ffmpeg -i $WAVFILE -acodec vorbis $OGGFILE  rm $WAVFILE
 done
 
 
 I'm sure there are better ways of doing it.  Also, note that it uses
 ffmpeg.  That has been replaced in Debian with something else.
 ffmpeg is still available in the 3rd-party deb-multimedia repo, but I
 think you might as well use oggenc instead of ffmpeg anyway.

No problem, I will solve that convertion myself. I thought I could play
MIDI w/ mplayer2 - I did install/remove a lot of software - thinking it
will help me w/ some sound fonts, etc. I too use timidity for playing
MIDI.


Sthu.


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/50e710d8.2691980a.6812.8...@mx.google.com