GNOME Bugzilla – Bug 594680
I have four midi files which crash timidity plugin but played successfully by original timidity
Last modified: 2009-09-12 15:34:12 UTC
Created attachment 142816 [details] "bad" midi files # for i in * ; do echo ">>>>>$i"; gst-launch filesrc location=$i \! timidity \! alsasink; done >>>>>Krysha_doma_tvoego.mid Setting pipeline to PAUSED ... Pipeline is PREROLLING ... ERROR: from element /pipeline0/timidity0: Could not decode stream. Additional debug info: gsttimidity.c(641): gst_timidity_loop (): /pipeline0/timidity0: Unable to parse midi ERROR: pipeline doesn't want to preroll. Setting pipeline to NULL ... FREEING pipeline ... >>>>>Lanfren-lanfra.mid Setting pipeline to PAUSED ... Pipeline is PREROLLING ... ERROR: from element /pipeline0/timidity0: Could not decode stream. Additional debug info: gsttimidity.c(641): gst_timidity_loop (): /pipeline0/timidity0: Unable to parse midi ERROR: pipeline doesn't want to preroll. Setting pipeline to NULL ... FREEING pipeline ... >>>>>Marionetki.mid Setting pipeline to PAUSED ... Pipeline is PREROLLING ... ERROR: from element /pipeline0/timidity0: Could not decode stream. Additional debug info: gsttimidity.c(641): gst_timidity_loop (): /pipeline0/timidity0: Unable to parse midi ERROR: pipeline doesn't want to preroll. Setting pipeline to NULL ... FREEING pipeline ... >>>>>Veter_peremen.kar Setting pipeline to PAUSED ... Pipeline is PREROLLING ... ERROR: from element /pipeline0/timidity0: Could not decode stream. Additional debug info: gsttimidity.c(641): gst_timidity_loop (): /pipeline0/timidity0: Unable to parse midi ERROR: pipeline doesn't want to preroll. Setting pipeline to NULL ... FREEING pipeline ... #
All 4 files play just fine with the wildmidi plugin so maybe use that instead. The problem with the timidity plugin is, that timidity by default doesn't build any shared libraries. The error you get comes from some call into timidity so I guess something wrong goes on in timidity or it's shared library flavor. I can't test that here though
I ask author of libtimidity to fix bug in his software. He does not have ability (experience ?) for it. Personally I do not have free time for it. In any case this is not bug in gst-plugins-bad.
Vitaly, you could try wildmidi. It is a library, we have a plugin for it and it uses same soundfonts as timidity.
Thanks, I will think about this idea.