Commit 09a9a3c1 authored by petter's avatar petter

even more verbose and skip deleting working versions of videos in case of errors


git-svn-id: https://www2.in.tum.de/repos/ttt/trunk@142 0463f305-d864-43cb-8a47-61cf597d4139
parent 0a913ca5
......@@ -241,13 +241,13 @@ public class PodcastCreator {
outMovieFile.delete();
outMovieTmpFile.delete();
windowImageFile.delete();
if(TTT.verbose){
System.out.println("Unable join slide movies using the command:");
String cmdline="";
for (String s:line) cmdline+=s+" ";
if(TTT.verbose){
System.out.println("Unable join slide movies using the command:");
System.out.println(cmdline);
System.out.println(exec.getListenerStream());}
throw new IOException("unable join slide movies using MP4Box");
throw new IOException("unable join slide movies using \n"+cmdline);
}
}
//replace outMovieFile by outMovieFileTmp
......@@ -326,15 +326,15 @@ public class PodcastCreator {
}
if (j != 0 || outMovieFile.length() == 0) {
//error while adding audio stream
outMovieFile.delete();
if(TTT.verbose){
System.out.println("Unable add audio stream using the command:");
String cmdline="";
for (String s:line) cmdline+=s+" ";
if(TTT.verbose){
System.out.println("Unable add audio stream using the command:");
System.out.println(cmdline);
System.out.println(exec.getListenerStream());
}
throw new IOException("unable to add audio stream using ffmpeg");
}else
outMovieFile.delete();
throw new IOException("unable to add audio stream via \n"+cmdline);
}
if(TTT.verbose){
System.out.println("Podcast created in " + Constants.getStringFromTime((int)(System.currentTimeMillis()-startTime)));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment