"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) {
if ( p.getName().equals( "Generic MP4" )){
profile = p;
break;
}
}
if ( profile == null ){
throw( new Exception( "Analyser transcode profile not found" ));
}
listener.updateActivity( "Analysing media" );
final Map<String,Object> b_map = new HashMap<String,Object>();
b_map.put( "state", new Integer( 1 ));
b_map.put( "msg", MessageText.getString( "stream.analysing.media" ));
buffering_method.invoke(player, new Object[] { b_map });
final TranscodeJob tj = queue.add( dmr, profile, file, true );
try{
final AESemaphore sem = new AESemaphore( "analyserWait" );
synchronized( StreamManager.this ){