Commit d43cd06f authored by petter's avatar petter

Copy orignal files for direct playback; do not generate deprecated stuff by default

git-svn-id: https://www2.in.tum.de/repos/ttt/trunk@172 0463f305-d864-43cb-8a47-61cf597d4139
parent 857ce7b1
...@@ -438,7 +438,8 @@ public class Index { ...@@ -438,7 +438,8 @@ public class Index {
buffer.flush(); buffer.flush();
// write length of extension // write length of extension
out.writeInt(byteArrayOutputStream.size()); int tmp = byteArrayOutputStream.size();
out.writeInt(tmp);
// write extension // write extension
out.write(byteArrayOutputStream.toByteArray()); out.write(byteArrayOutputStream.toByteArray());
} // else no index available } // else no index available
...@@ -779,7 +780,7 @@ public class Index { ...@@ -779,7 +780,7 @@ public class Index {
} }
} }
if(TTT.verbose){ if(TTT.verbose){
System.out.print("."); System.out.print(".");
} }
// set time of index // set time of index
IndexEntry indexEntry = index.get(i); IndexEntry indexEntry = index.get(i);
......
...@@ -151,7 +151,7 @@ public class PostProcessorPanel extends GradientPanel { ...@@ -151,7 +151,7 @@ public class PostProcessorPanel extends GradientPanel {
mp3CheckBox.setEnabled(false); mp3CheckBox.setEnabled(false);
} }
if (FlashContext.isCreationPossible(recording)) { if (FlashContext.isCreationPossible(recording)) {
flashCheckBox.setToolTipText("generate a flash/swf version of this recording"); flashCheckBox.setToolTipText("generate a flash/swf version of this recording (deprecated)");
if (recording.getExistingFileBySuffix("mp3").exists() == false) { if (recording.getExistingFileBySuffix("mp3").exists() == false) {
flashCheckBox.addItemListener(new ItemListener() { flashCheckBox.addItemListener(new ItemListener() {
public void itemStateChanged(ItemEvent event) { public void itemStateChanged(ItemEvent event) {
...@@ -173,7 +173,7 @@ public class PostProcessorPanel extends GradientPanel { ...@@ -173,7 +173,7 @@ public class PostProcessorPanel extends GradientPanel {
} }
if (Html5Context.isCreationPossible(recording)) { if (Html5Context.isCreationPossible(recording)) {
html5CheckBox.setToolTipText("generate a HTML5 version of this recording"); html5CheckBox.setToolTipText("generate a HTML5 version of this recording (deprecated)");
if (recording.getExistingFileBySuffix("mp3").exists() == false) { if (recording.getExistingFileBySuffix("mp3").exists() == false) {
html5CheckBox.addItemListener(new ItemListener() { html5CheckBox.addItemListener(new ItemListener() {
public void itemStateChanged(ItemEvent event) { public void itemStateChanged(ItemEvent event) {
...@@ -207,7 +207,7 @@ public class PostProcessorPanel extends GradientPanel { ...@@ -207,7 +207,7 @@ public class PostProcessorPanel extends GradientPanel {
html5CheckBox.setSelected(false); html5CheckBox.setSelected(false);
html5CheckBox.setEnabled(false); html5CheckBox.setEnabled(false);
} }
html5PlayerCheckBox.setToolTipText("generate the HTML5 player files necessary for playing the HTML5 recording"); html5PlayerCheckBox.setToolTipText("generate the HTML5 player files necessary for playing the HTML5 recording (deprecated)");
...@@ -730,16 +730,16 @@ public class PostProcessorPanel extends GradientPanel { ...@@ -730,16 +730,16 @@ public class PostProcessorPanel extends GradientPanel {
ocrCheckBox.setText("perform Tesseract/OCR for fulltext search"); ocrCheckBox.setText("perform Tesseract/OCR for fulltext search");
ocrCheckBox.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0)); ocrCheckBox.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
flashCheckBox.setSelected(true); flashCheckBox.setSelected(false);
flashCheckBox.setText("Flash/SWF"); flashCheckBox.setText("Flash/SWF (deprecated)");
flashCheckBox.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0)); flashCheckBox.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
html5CheckBox.setSelected(true); html5CheckBox.setSelected(false);
html5CheckBox.setText("HTML5 video"); html5CheckBox.setText("HTML5 video (deprecated)");
html5CheckBox.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0)); html5CheckBox.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
html5PlayerCheckBox.setSelected(true); html5PlayerCheckBox.setSelected(false);
html5PlayerCheckBox.setText("HTML5 player"); html5PlayerCheckBox.setText("HTML5 player (deprecated)");
html5PlayerCheckBox.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0)); html5PlayerCheckBox.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
createButton.setText("Create"); createButton.setText("Create");
...@@ -776,8 +776,8 @@ public class PostProcessorPanel extends GradientPanel { ...@@ -776,8 +776,8 @@ public class PostProcessorPanel extends GradientPanel {
mp3StatusField.setText("not found"); mp3StatusField.setText("not found");
oggVorbisCheckBox.setSelected(true); oggVorbisCheckBox.setSelected(false);
oggVorbisCheckBox.setText("Ogg Vorbis audio"); oggVorbisCheckBox.setText("Ogg Vorbis audio (not needed)");
oggVorbisCheckBox.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0)); oggVorbisCheckBox.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
oggVorbisStatusField.setText("not found"); oggVorbisStatusField.setText("not found");
...@@ -1355,6 +1355,10 @@ public class PostProcessorPanel extends GradientPanel { ...@@ -1355,6 +1355,10 @@ public class PostProcessorPanel extends GradientPanel {
System.out.println("\nCopying data to server " + user + "@" + host + ":" + basePath); System.out.println("\nCopying data to server " + user + "@" + host + ":" + basePath);
System.out.println(); System.out.println();
// copy recording
session.publish(recording.getDirectory() + recording.getFileBase() + ".ttt", basePath, batch);
session.publish(recording.getDirectory() + recording.getFileBase() + ".mp3", basePath, batch);
// copy zips // copy zips
session.publish(recording.getDirectory() + recording.getFileBase() + "_a.zip", basePath, batch); session.publish(recording.getDirectory() + recording.getFileBase() + "_a.zip", basePath, batch);
session.publish(recording.getDirectory() + recording.getFileBase() + "_av.zip", basePath, batch); session.publish(recording.getDirectory() + recording.getFileBase() + "_av.zip", basePath, batch);
......
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