try{
DeviceManager dm = DeviceManagerFactory.getSingleton();
TranscodeManager tm = dm.getTranscodeManager();
DeviceMediaRenderer dmr =
(DeviceMediaRenderer)dm.addVirtualDevice(
Device.DT_MEDIA_RENDERER,
"18a0b53a-a466-6795-1d0f-cf38c830ca0e",
"generic",
"Media Analyser" );
dmr.setHidden(true);
TranscodeQueue queue = tm.getQueue();
TranscodeJob[] jobs = queue.getJobs();
for ( TranscodeJob job: jobs ){
if ( job.getTarget() == dmr ){
job.removeForce();
}
}
TranscodeProfile[] profiles = dmr.getTranscodeProfiles();
TranscodeProfile profile = null;
for (TranscodeProfile p : profiles) {