Hi Han,
Thanks for your reply. I made a few changes and now there is no warning message (“processing files based on .eaf file 010829.eaf”). Processing seems to start with the first file in the .txt file too, so I think that is solved. The changes were: removed spaces from the file path, and removed any files NOT listed in the .txt file from the folder. The other problems remain.
Re: your first point, I’ve checked the time formats for clip.media.txt. It is sec. ms format (pasted below), and the .txt file I’m trying to call is the same (also below). Note, I’ve fiddled a bit with the decimal places, and have settled on one decimal place as recommend by you in a previous thread. (I needed to make this a non-0 decimal or the decimal deletes in the text file and the videos end up x microseconds long instead of x seconds…)
osascript …/Resources/qtp_clip_10_10_export.scpt $in_file $out_file $begin(sec.ms) $end(sec.ms)
418.6 448.6 30 /Users/emilyr/Documents/CHILDES_corpora_and_ELAN_templates/Providence/Providence/William/010427.c2elan.eaf
2857.1 2887.1 30 /Users/emilyr/Documents/CHILDES_corpora_and_ELAN_templates/Providence/Providence/William/010605.c2elan.eaf
990.1 1020.1 30 /Users/emilyr/DocumentsCHILDES_corpora_and_ELAN_templates/Providence/Providence/William/010829.c2elan.eaf
172.1 202.1 30 /Users/emilyr/DocumentsCHILDES_corpora_and_ELAN_templates/Providence/Providence/William/010912.c2elan.eaf
1673.7 1703.7 30 /Users/emilyr/Documents/CHILDES_corpora_and_ELAN_templates/Providence/Providence/William/010912.c2elan.eaf
1724.2 1754.2 30 /Users/emilyr/Documents/CHILDES_corpora_and_ELAN_templates/Providence/Providence/William/010912.c2elan.eaf
A few things: 1) Quicktime error remains the same as above (and still seems to be solved if mp4s are opened prior to running the function). 2) The wrong videos are still being clipped. I don’t know which ones, but the .mp4 files are in the same folder as the .eafs in the text file, so I can’t think what the problem would be here. 3) The .txt file currently contains 6 files. However, only 4 files ever get clipped. In case it matters, I’ve noticed the two files that aren’t being clipped are the ones that start latest (2851 seconds and 1724 seconds), so maybe whatever video it’s trying to clip (see problem 2) just isn’t that long.
Here is the processing report:
Process report:
Starting multiple file clipping…
Script file: /Users/emilyr/Library/Preferences/ELAN/clip-media.txt
Executable: osascript
Parameter part: /Users/emilyr/Library/Preferences/ELAN/qtp_clip_10_10_export.scpt $in_file $out_file $begin(sec.ms) $end(sec.ms)
Input file: /Users/emilyr/Documents/CHILDES_summary_evidential_data/Providence_video_subset_actually_tokens_William_May2fw2.txt
Output folder is: /Users/emilyr/Documents/844 clips original en-coding/William/1 decimal place no 0s
Encountered file /Users/emilyr/Documents/CHILDES_corpora_and_ELAN_templates/Providence/Providence/William/010427.c2elan.eaf. Linked media files will be clipped.
Encountered file /Users/emilyr/Documents/CHILDES_corpora_and_ELAN_templates/Providence/Providence/William/010605.c2elan.eaf. Linked media files will be clipped.
Encountered file /Users/emilyr/Documents/CHILDES_corpora_and_ELAN_templates/Providence/Providence/William/010829.c2elan.eaf. Linked media files will be clipped.
Encountered file /Users/emilyr/Documents/CHILDES_corpora_and_ELAN_templates/Providence/Providence/William/010912.c2elan.eaf. Linked media files will be clipped.
Clipping 1 segments from ///010829.mp4
Processing of /Users/emilyr/Documents/CHILDES_corpora_and_ELAN_templates/Providence/Providence/William/010829.c2elan.eaf done. (But the actual clipping might still continue.)
Clipping 1 segments from ///010427.mp4
Processing of /Users/emilyr/Documents/CHILDES_corpora_and_ELAN_templates/Providence/Providence/William/010427.c2elan.eaf done. (But the actual clipping might still continue.)
Clipping 3 segments from ///010912.mp4
/Users/emilyr/Library/Preferences/ELAN/qtp_clip_10_10_export.scpt: execution error: QuickTime Player got an error: End time must be less than or equal to duration (6)
Processing of /Users/emilyr/Documents/CHILDES_corpora_and_ELAN_templates/Providence/Providence/William/010912.c2elan.eaf done. (But the actual clipping might still continue.)
Clipping 1 segments from ///010605.mp4
/Users/emilyr/Library/Preferences/ELAN/qtp_clip_10_10_export.scpt: execution error: QuickTime Player got an error: End time must be less than or equal to duration (6)
Processing of /Users/emilyr/Documents/CHILDES_corpora_and_ELAN_templates/Providence/Providence/William/010605.c2elan.eaf done. (But the actual clipping might still continue.)
Here is ELAN’s log:
May 6, 2019 10:22:10 AM mpi.eudico.client.annotator.ELAN main
INFO:
@ELAN Launched
May 6, 2019 10:22:10 AM mpi.eudico.client.annotator.ELAN main
INFO: ELAN 5.4
Java home: /Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
Java version: 1.6.0_65
Runtime: 1.6.0_65-b14-468
OS name: Mac OS X
OS version: 10.11.6
OS arch.: x86_64
User language: en
User home: /Users/emilyr
User dir: /Applications/ELAN_5.4.app/Contents/Resources
Classpath: /Applications/ELAN_5.4.app/Contents/Java/elan-5.4.jar:/Applications/ELAN_5.4.app/Contents/Java/sunjce_provider.jar:/Applications/ELAN_5.4.app/Contents/Java/help.zip:/Applications/ELAN_5.4.app/Contents/Java/jhall-2.0.0.5.jar:/Applications/ELAN_5.4.app/Contents/Java/nl.mpi.lookup__V1.0.jar
Library path: /Applications/ELAN_5.4.app/Contents/Java:extensions
Display info:
Screen 1 - isDefault:true, w:1280, h:800, bitDepth:32
Main screen resolution:72 (w:1280, h:800)
May 6, 2019 10:22:10 AM mpi.eudico.client.annotator.prefs.PreferencesReader parse
INFO: Reading preferences: /Users/emilyr/Library/Preferences/ELAN/elan.pfsx
External updater thread started
Loading new Apple integration 2
May 6, 2019 10:22:11 AM mpi.eudico.client.annotator.prefs.PreferencesReader parse
WARNING: Preferences file does not exist: /Users/emilyr/Library/Preferences/ELAN/shortcuts.pfsx
May 6, 2019 10:22:11 AM mpi.eudico.client.annotator.commands.ShortcutsUtil readCurrentShortcuts
INFO: Could not load the keyboard shortcut preferences file. The file does not exist or is not valid.
[Error] 010427.c2elan.eaf:2:230: cvc-complex-type.3.2.2: Attribute ‘xsi:noNamespaceSchemaLocation’ is not allowed to appear in element ‘ANNOTATION_DOCUMENT’.
May 6, 2019 10:22:13 AM mpi.eudico.client.annotator.prefs.PreferencesReader parse
INFO: Reading preferences: /Users/emilyr/Documents/CHILDES_corpora_and_ELAN_templates/Providence/Providence/William/010427.c2elan.pfsx
Consistency problems have been detected in the transcription:
Error: end time before start time. Tier: MOT Start time: 00:00:02.976 End time: 00:00:00.004
Error: end time before start time. Tier: MOT Start time: 00:14:39.236 End time: 00:00:00.199
May 6, 2019 10:22:13 AM mpi.eudico.client.annotator.ElanFrame2 checkMedia
INFO: Updated file location from: “///010427.mp4” to: “/Users/emilyr/Documents/CHILDES_corpora_and_ELAN_templates/Providence/Providence/William/010427.mp4”, in same directory as transcription file
Using Cocoa QT Media Player for file:///Users/emilyr/Documents/CHILDES_corpora_and_ELAN_templates/Providence/Providence/William/010427.mp4
mediaURL = file:///Users/emilyr/Documents/CHILDES_corpora_and_ELAN_templates/Providence/Providence/William/010427.mp4
May 6, 2019 10:22:14 AM mpi.eudico.client.annotator.commands.ExportMediaCA <init>
INFO: No version of M2-edit-cl or M2-xcode-cl found
May 6, 2019 10:22:14 AM mpi.eudico.client.annotator.commands.ClipMediaCA <init>
INFO: Found clipping script: clip-media.txt
May 6, 2019 10:22:15 AM mpi.eudico.client.annotator.tiersets.TierSetUtil readTierSetsFromFile
INFO: Could not load the tier set file. The file does not exist or is not valid.
May 6, 2019 10:22:15 AM mpi.eudico.client.annotator.util.AvailabilityDetector detectFromJar
WARNING: No plug-in cmdi metadata file found in analyzer-gloss-0.4.jar
May 6, 2019 10:22:15 AM mpi.eudico.client.annotator.util.AvailabilityDetector detectFromJar
WARNING: No plug-in cmdi metadata file found in annotyzer-lexicon-0.4-compound.jar
May 6, 2019 10:22:15 AM mpi.eudico.client.annotator.util.AvailabilityDetector detectFromJar
WARNING: No plug-in cmdi metadata file found in annotyzer-whitespace-split-0.7.jar
May 6, 2019 10:22:16 AM mpi.eudico.client.annotator.prefs.PreferencesWriter encodeAndSave
INFO: Writing preferences: /Users/emilyr/Library/Preferences/ELAN/elan.pfsx
May 6, 2019 10:22:17 AM mpi.eudico.client.annotator.update.ElanUpdateDialog checkForUpdates
INFO: URL Connection not available: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
May 6, 2019 10:22:29 AM mpi.eudico.client.annotator.prefs.PreferencesWriter encodeAndSave
INFO: Writing preferences: /Users/emilyr/Library/Preferences/ELAN/elan.pfsx
May 6, 2019 10:22:34 AM mpi.eudico.client.annotator.prefs.PreferencesWriter encodeAndSave
INFO: Writing preferences: /Users/emilyr/Library/Preferences/ELAN/elan.pfsx
[Error] 010829.c2elan.eaf:2:230: cvc-complex-type.3.2.2: Attribute ‘xsi:noNamespaceSchemaLocation’ is not allowed to appear in element ‘ANNOTATION_DOCUMENT’.
May 6, 2019 10:22:35 AM mpi.eudico.client.annotator.prefs.PreferencesReader parse
INFO: Reading preferences: /Users/emilyr/Documents/CHILDES_corpora_and_ELAN_templates/Providence/Providence/William/010829.c2elan.pfsx
Consistency problems have been detected in the transcription:
Error: end time before start time. Tier: OPE Start time: 00:00:17.903 End time: 00:00:00.079
[Error] 010427.c2elan.eaf:2:230: cvc-complex-type.3.2.2: Attribute ‘xsi:noNamespaceSchemaLocation’ is not allowed to appear in element ‘ANNOTATION_DOCUMENT’.
May 6, 2019 10:22:42 AM mpi.eudico.client.annotator.prefs.PreferencesReader parse
INFO: Reading preferences: /Users/emilyrDocuments/CHILDES_corpora_and_ELAN_templates/Providence/Providence/William/010427.c2elan.pfsx
Consistency problems have been detected in the transcription:
Error: end time before start time. Tier: MOT Start time: 00:00:02.976 End time: 00:00:00.004
Error: end time before start time. Tier: MOT Start time: 00:14:39.236 End time: 00:00:00.199
[Error] 010912.c2elan.eaf:2:230: cvc-complex-type.3.2.2: Attribute ‘xsi:noNamespaceSchemaLocation’ is not allowed to appear in element ‘ANNOTATION_DOCUMENT’.
Consistency problems have been detected in the transcription:
Error: end time before start time. Tier: MOT Start time: 00:57:50.248 End time: 00:00:00.199
Error: end time before start time. Tier: GRA Start time: 00:00:05.886 End time: 00:00:00.079
Error: end time before start time. Tier: GRA Start time: 00:08:04.543 End time: 00:00:00.079
Error: end time before start time. Tier: GRA Start time: 00:41:47.555 End time: 00:00:00.199
Error: end time before start time. Tier: GRA Start time: 00:41:53.095 End time: 00:00:00.199
Error: end time before start time. Tier: OPE Start time: 00:00:14.181 End time: 00:00:00.199
May 6, 2019 10:22:55 AM mpi.eudico.client.annotator.commands.ClipMediaCommand$ReaderThread run
INFO: /Users/emilyr/Library/Preferences/ELAN/qtp_clip_10_10_export.scpt: execution error: QuickTime Player got an error: End time must be less than or equal to duration (6)
[Error] 010605.c2elan.eaf:2:230: cvc-complex-type.3.2.2: Attribute ‘xsi:noNamespaceSchemaLocation’ is not allowed to appear in element ‘ANNOTATION_DOCUMENT’.
Consistency problems have been detected in the transcription:
Error: end time before start time. Tier: MOT Start time: 00:06:15.255 End time: 00:00:00.199
Error: end time before start time. Tier: MOT Start time: 00:08:57.845 End time: 00:00:00.079
Error: end time before start time. Tier: MOT Start time: 00:46:58.906 End time: 00:00:00.199
Error: end time before start time. Tier: MOT Start time: 00:48:58.610 End time: 00:00:00.199
Error: end time before start time. Tier: MOT Start time: 00:49:42.016 End time: 00:00:00.199
Error: end time before start time. Tier: MOT Start time: 00:52:23.440 End time: 00:00:00.199
Error: end time before start time. Tier: MOT Start time: 00:54:18.821 End time: 00:00:00.199
Error: end time before start time. Tier: OPE Start time: 00:59:09.356 End time: 00:00:00.199
May 6, 2019 10:23:00 AM mpi.eudico.client.annotator.commands.ClipMediaCommand$ReaderThread run
INFO: /Users/emilyr/Library/Preferences/ELAN/qtp_clip_10_10_export.scpt: execution error: QuickTime Player got an error: End time must be less than or equal to duration (6)
As you suggest, I will look into the timing issues on problematic tiers in the ELAN log (although I don’t understand how an annotation can start after it ends!). But currently I am most concerned about the wrong videos, and too few videos, being clipped.
Thank you!
Emily