[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: mplayer2 does not play MIDI files.



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.


Reply to: