[Banshee-List] TranscoderService Enqueue always throws exception



Hello,
I want to transcode tracks to pcm/wav. So I wrote this code fragment:


        private void convert2wav(Banshee.Collection.Database.DatabaseTrackInfo track)
        {
            Banshee.MediaEngine.TranscoderService transcoder = new Banshee.MediaEngine.TranscoderService();
            Banshee.MediaProfiles.MediaProfileManager profilemanager = new Banshee.MediaProfiles.MediaProfileManager();
            Banshee.MediaProfiles.Profile profile = "">
            Banshee.MediaProfiles.ProfileConfiguration config = profile.Configuration;
            MMTranscoderHandler handleservice = new MMTranscoderHandler();
            try{
                Hyena.SafeUri outputUri = new Hyena.SafeUri ("/home/kirchrath/m.wav");
                transcoder.Enqueue(track, outputUri, config, handleservice.transcoded, handleservice.cancelled, handleservice.error);
            }
            catch(Exception e)
            {
                Hyena.Log.Exception(e);
            }
            Hyena.Log.Information("Fertig");
        }

I did not found a documentation, so I wrote this just by trying. The following exception is thrown:

[1 Warn  21:12:31.093] Caught an exception - System.NullReferenceException: Object reference not set to an instance of an object (in `Banshee.GStreamer')
  at Banshee.GStreamer.Transcoder.TranscodeTrack (Banshee.Collection.TrackInfo track, Hyena.SafeUri outputUri, Banshee.MediaProfiles.ProfileConfiguration config) [0x00000] in <filename unknown>:0 
  at Banshee.MediaEngine.TranscoderService.ProcessQueue () [0x00000] in <filename unknown>:0 
  at Banshee.MediaEngine.TranscoderService.Enqueue (Banshee.Collection.TrackInfo track, Hyena.SafeUri out_uri, Banshee.MediaProfiles.ProfileConfiguration config, Banshee.MediaEngine.TrackTranscodedHandler handler, Banshee.MediaEngine.TranscodeCancelledHandler cancelledHandler, Banshee.MediaEngine.TranscodeErrorHandler errorHandler) [0x00000] in <filename unknown>:0

I would be really happy if anybody could help me - even it is just a link to a documentation.

Thank you all
Chandra


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