Python 3.12.3 ffprobe version 6.1.1-3ubuntu5 Copyright (c) 2007-2023 the FFmpeg developers [test] python3 extract-wcag.py --selftest selftest ok exit=0 [edge: unexpected extra argument] python3 extract-wcag.py --selftest nope cannot read --selftest: No such file or directory exit=1 [test] sh -c cd edge/dl && curl -sS -O file:///home/ubuntu/rt/wcag-captions/stage/extract-wcag.py -O file:///home/ubuntu/rt/wcag-captions/stage/matrix.py && cmp extract-wcag.py ../../extract-wcag.py && cmp matrix.py ../../matrix.py && echo downloaded copies identical downloaded copies identical exit=0 [edge: file not found at that address] sh -c cd edge/dl && curl -sS -O file:///home/ubuntu/rt/wcag-captions/stage/nope.py curl: (37) Couldn't open file /home/ubuntu/rt/wcag-captions/stage/nope.py exit=37 [edge: host does not exist] curl -sS -O https://nope.invalid/extract-wcag.py curl: (6) Could not resolve host: nope.invalid exit=6 [test] sh -c python3 extract-wcag.py wcag22.html understanding-1.2.5.html > edge/quotes-rerun.json && cmp edge/quotes-rerun.json wcag-quotes.json && echo identical to the saved wcag-quotes.json identical to the saved wcag-quotes.json exit=0 [edge: missing file] python3 extract-wcag.py nope.html understanding-1.2.5.html cannot read nope.html: No such file or directory exit=1 [edge: empty file] python3 extract-wcag.py edge/empty.html understanding-1.2.5.html empty file: edge/empty.html exit=1 [test] python3 matrix.py wcag-quotes.json | Kind of media | Criterion | Level | What it asks | Phrase present in the quote | |---|---|---|---|---| | Recorded audio only (a podcast episode) | 1.2.1 | A | A text alternative with equivalent information | yes | | Recorded video, speech says everything the screen shows (a talking head) | 1.2.2 | A | Captions for the speech | yes | | Recorded video, speech says everything the screen shows (a talking head) | 1.2.3 | A | No additional description necessary (W3C note) | yes | | Recorded video, speech says everything the screen shows (a talking head) | 1.2.5 | AA | No additional description necessary (W3C note) | yes | | Recorded video, screen shows more than the speech says (a demo) | 1.2.2 | A | Captions for the speech | yes | | Recorded video, screen shows more than the speech says (a demo) | 1.2.3 | A | Audio description, or a text alternative covering sound and picture | yes | | Recorded video, screen shows more than the speech says (a demo) | 1.2.5 | AA | Audio description | yes | | Recorded video with no sound (a silent animation) | 1.2.1 | A | A text alternative, or an audio track, with equivalent information | yes | | Live video with speech (a webinar) | 1.2.4 | AA | Captions for the live audio | yes | unmatched cells: 0 MATRIX-OK exit=0 [edge: missing file] python3 matrix.py nope.json FAIL cannot read nope.json: No such file or directory exit=1 [edge: empty file] python3 matrix.py edge/empty.json FAIL edge/empty.json is not JSON (empty file or the wrong file) exit=1 [edge: quote changed on purpose (control: must fail)] python3 matrix.py edge/tampered.json | Kind of media | Criterion | Level | What it asks | Phrase present in the quote | |---|---|---|---|---| | Recorded audio only (a podcast episode) | 1.2.1 | A | A text alternative with equivalent information | yes | | Recorded video, speech says everything the screen shows (a talking head) | 1.2.2 | A | Captions for the speech | NO | | Recorded video, speech says everything the screen shows (a talking head) | 1.2.3 | A | No additional description necessary (W3C note) | yes | | Recorded video, speech says everything the screen shows (a talking head) | 1.2.5 | AA | No additional description necessary (W3C note) | yes | | Recorded video, screen shows more than the speech says (a demo) | 1.2.2 | A | Captions for the speech | NO | | Recorded video, screen shows more than the speech says (a demo) | 1.2.3 | A | Audio description, or a text alternative covering sound and picture | yes | exit=1 [edge: 1.2.2 exception clause removed on purpose (control: must fail)] python3 matrix.py edge/no-exception.json | Kind of media | Criterion | Level | What it asks | Phrase present in the quote | |---|---|---|---|---| | Recorded audio only (a podcast episode) | 1.2.1 | A | A text alternative with equivalent information | yes | | Recorded video, speech says everything the screen shows (a talking head) | 1.2.2 | A | Captions for the speech | NO | | Recorded video, speech says everything the screen shows (a talking head) | 1.2.3 | A | No additional description necessary (W3C note) | yes | | Recorded video, speech says everything the screen shows (a talking head) | 1.2.5 | AA | No additional description necessary (W3C note) | yes | | Recorded video, screen shows more than the speech says (a demo) | 1.2.2 | A | Captions for the speech | NO | | Recorded video, screen shows more than the speech says (a demo) | 1.2.3 | A | Audio description, or a text alternative covering sound and picture | yes | exit=1 [edge: Windows line breaks and non-ASCII text in the quotes] python3 matrix.py edge/nonascii.json | Kind of media | Criterion | Level | What it asks | Phrase present in the quote | |---|---|---|---|---| | Recorded audio only (a podcast episode) | 1.2.1 | A | A text alternative with equivalent information | yes | | Recorded video, speech says everything the screen shows (a talking head) | 1.2.2 | A | Captions for the speech | yes | | Recorded video, speech says everything the screen shows (a talking head) | 1.2.3 | A | No additional description necessary (W3C note) | yes | | Recorded video, speech says everything the screen shows (a talking head) | 1.2.5 | AA | No additional description necessary (W3C note) | yes | | Recorded video, screen shows more than the speech says (a demo) | 1.2.2 | A | Captions for the speech | yes | | Recorded video, screen shows more than the speech says (a demo) | 1.2.3 | A | Audio description, or a text alternative covering sound and picture | yes | exit=0 [test] ffprobe -v error -show_entries stream=codec_type -of csv=p=0 talk.mp4 video audio exit=0 talk.mp4 duration 166.79 s = 2 min 47 s when rounded to the second [edge: video with no audio track] ffprobe -v error -show_entries stream=codec_type -of csv=p=0 silent.mp4 video exit=0 [edge: missing file] ffprobe -v error -show_entries stream=codec_type -of csv=p=0 nope.mp4 nope.mp4: No such file or directory exit=1 [test] sh -c cd edge/dl && curl -sS -O file:///home/ubuntu/rt/wcag-captions/stage/make-transcript.py && cmp make-transcript.py ../../make-transcript.py && echo downloaded copy identical downloaded copy identical exit=0 [edge: file not found at that address] sh -c cd edge/dl && curl -sS -O file:///home/ubuntu/rt/wcag-captions/stage/nope.py curl: (37) Couldn't open file /home/ubuntu/rt/wcag-captions/stage/nope.py exit=37 [edge: host does not exist] curl -sS -O https://nope.invalid/make-transcript.py curl: (6) Could not resolve host: nope.invalid exit=6 [test] python3 make-transcript.py talk-accurate.txt A staircase and a cry Narrator transcript.txt words in 532, speaker label words 13, words out minus label 532: TRANSCRIPT-OK exit=0 first lines of transcript.txt: Transcript: A staircase and a cry Narrator: Go! Do you hear? But in less than five minutes, the staircase groaned beneath an extraordinary weight. At this moment, the whole soul of the old man seemed centered in his eyes, which became bloodshot. Narrator: The veins of the throat swelled. His cheeks and temples became purple as [edge: missing file, existing output must stay untouched] python3 make-transcript.py nope.txt Title Narrator edge/keep.txt FAIL cannot read nope.txt: No such file or directory exit=1 edge: after the missing-file run, edge/keep.txt holds: keep me [edge: empty file] python3 make-transcript.py edge/empty.txt Title Narrator edge/out-empty.txt FAIL edge/empty.txt has no text (the tool gives no file at all for a clip with no speech or no audio) exit=1 edge: after the empty-file run, edge/out-empty.txt exists: no [edge: empty speaker name] python3 make-transcript.py talk-accurate.txt Title edge/out-nospeaker.txt FAIL the speaker name is empty exit=1 [edge: .srt file (must be refused)] python3 make-transcript.py edge/sub.srt Title Narrator edge/out-srt.txt FAIL edge/sub.srt looks like .srt, .vtt or text with timestamps; use the .txt download with the timestamp box unticked exit=1 [edge: .vtt file (must be refused)] python3 make-transcript.py edge/sub.vtt Title Narrator edge/out-vtt.txt FAIL edge/sub.vtt looks like .srt, .vtt or text with timestamps; use the .txt download with the timestamp box unticked exit=1 [edge: .txt with timestamps (must be refused)] python3 make-transcript.py edge/ts.txt Title Narrator edge/out-ts.txt FAIL edge/ts.txt looks like .srt, .vtt or text with timestamps; use the .txt download with the timestamp box unticked exit=1 [edge: Windows line breaks] python3 make-transcript.py edge/crlf.txt Title Narrator edge/out-crlf.txt words in 532, speaker label words 13, words out minus label 532: TRANSCRIPT-OK exit=0 [edge: non-ASCII speaker and text] python3 make-transcript.py edge/nonascii.txt Titre é Zoë edge/out-na.txt words in 532, speaker label words 13, words out minus label 532: TRANSCRIPT-OK exit=0 [edge: no output path (prints the transcript to the screen)] sh -c python3 make-transcript.py edge/ts.txt T S | head -2; python3 make-transcript.py talk-accurate.txt T S | head -c 80 FAIL edge/ts.txt looks like .srt, .vtt or text with timestamps; use the .txt download with the timestamp box unticked words in 532, speaker label words 13, words out minus label 532: TRANSCRIPT-OK Transcript: T S: Go! Do you hear? But in less than five minutes, the staircase exit=0 [test] sh -c python3 wer.py reference_raw.txt out/talk-accurate.txt | head -1; python3 wer.py reference_raw.txt out/talk-fast.txt | head -1 reference words 530, hypothesis words 532, errors 33, WER 6.2% reference words 530, hypothesis words 549, errors 62, WER 11.7% exit=0 [edge: missing file] python3 wer.py reference_raw.txt nope.txt cannot read nope.txt: No such file or directory exit=1 [edge: empty file] python3 wer.py reference_raw.txt edge/empty.txt reference words 530, hypothesis words 0, errors 530, WER 100.0% del go del do del you del hear del but del in del less exit=0 [edge: Windows line breaks] python3 wer.py reference_raw.txt edge/crlf.txt reference words 530, hypothesis words 532, errors 33, WER 6.2% sub centred centered sub d'avrigny davani sub d'avrigny davani ins veal sub villefort afford sub sobs sobbed sub exclamations exclamation exit=0 [edge: non-ASCII text] python3 wer.py reference_raw.txt edge/nonascii.txt reference words 530, hypothesis words 531, errors 35, WER 6.6% del old sub man vieux sub centred centered sub d'avrigny davani sub d'avrigny davani ins veal sub villefort afford exit=0 [test] env WAIT_S=60 node tool-run.cjs silent.mp4 out/silent-rerun accurate outcome: alert after 2.4 s wall-clock including model download alert text: No audio track could be read from this file. page text after run: koldflux How it works Pricing Free tools Learn About Log in Open studio Free tools / Video to text FREE TOOL · TRANSCRIPTION · RUNS IN YOUR BROWSER Video to text No upload Runs in your browser Reviewed October 11, 202 exit=0 [edge: missing file] env WAIT_S=20 node tool-run.cjs nope.mp4 out/nope accurate cannot read nope.mp4: no such file exit=1 [test] bash make-clips.sh episode.wav out/clips talk: video,166.760000 audio,166.786000 silent: video,20.000000 exit=0 [edge: missing file] bash make-clips.sh nope.wav out/clips FAIL nope.wav is missing or empty exit=1 [edge: empty file] bash make-clips.sh edge/empty.txt out/clips FAIL edge/empty.txt is missing or empty exit=1 [test] python3 names-wrong.py reference_raw.txt out/talk-accurate.txt d'avrigny,villefort,morrel,noirtier,abbe d'avrigny: 3 of 3 wrong villefort: 3 of 3 wrong morrel: 5 of 5 wrong noirtier: 4 of 4 wrong abbe: 1 of 1 wrong all names: 16 of 16 wrong exit=0 [test] python3 names-wrong.py reference_raw.txt out/talk-fast.txt d'avrigny,villefort,morrel,noirtier,abbe d'avrigny: 3 of 3 wrong villefort: 3 of 3 wrong morrel: 5 of 5 wrong noirtier: 4 of 4 wrong abbe: 1 of 1 wrong all names: 16 of 16 wrong exit=0 [edge: missing file] python3 names-wrong.py reference_raw.txt nope.txt morrel cannot read nope.txt: No such file or directory exit=1 [edge: empty file] python3 names-wrong.py reference_raw.txt edge/empty.txt morrel morrel: 5 of 5 wrong all names: 5 of 5 wrong exit=0 [edge: Windows line breaks] python3 names-wrong.py reference_raw.txt edge/crlf.txt morrel,noirtier morrel: 5 of 5 wrong noirtier: 4 of 4 wrong all names: 9 of 9 wrong exit=0 [edge: non-ASCII text] python3 names-wrong.py reference_raw.txt edge/nonascii.txt morrel morrel: 5 of 5 wrong all names: 5 of 5 wrong exit=0