diff --git a/.gitignore b/.gitignore old mode 100644 new mode 100755 diff --git a/.idea/.gitignore b/.idea/.gitignore old mode 100644 new mode 100755 diff --git a/.idea/modules.xml b/.idea/modules.xml old mode 100644 new mode 100755 diff --git a/.idea/transcription-vosk.iml b/.idea/transcription-vosk.iml old mode 100644 new mode 100755 diff --git a/.idea/vcs.xml b/.idea/vcs.xml old mode 100644 new mode 100755 diff --git a/LICENSE.md b/LICENSE.md old mode 100644 new mode 100755 diff --git a/Makefile b/Makefile old mode 100644 new mode 100755 diff --git a/README.md b/README.md old mode 100644 new mode 100755 diff --git a/clean.sh b/clean.sh old mode 100644 new mode 100755 diff --git a/conversion_simple_en.py b/conversion_simple_en.py old mode 100644 new mode 100755 diff --git a/conversion_simple_fr.py b/conversion_simple_fr.py old mode 100644 new mode 100755 diff --git a/extract_srt.py b/extract_srt.py old mode 100644 new mode 100755 diff --git a/extract_srt_en.py b/extract_srt_en.py old mode 100644 new mode 100755 diff --git a/input/.gitkeep b/input/.gitkeep old mode 100644 new mode 100755 diff --git a/input/aside/demo.wav b/input/aside/demo.wav old mode 100644 new mode 100755 diff --git a/input/converted_to_wav/.gitkeep b/input/converted_to_wav/.gitkeep old mode 100644 new mode 100755 diff --git a/inputs_to_wav.sh b/inputs_to_wav.sh old mode 100644 new mode 100755 diff --git a/install.sh b/install.sh old mode 100644 new mode 100755 diff --git a/log_ydl.txt b/log_ydl.txt new file mode 100755 index 0000000..52c63e6 --- /dev/null +++ b/log_ydl.txt @@ -0,0 +1,44 @@ +total 1708 +-rw-r--r-- 1 www-data www-data 271266 Mar 23 09:48 base.mp3 +-rw-r--r-- 1 www-data www-data 1470542 Mar 27 14:43 mono_canal.wav + Sat Mar 27 14:43:32 CET 2021 ###### end conversion __ 2021-Mar-27_1616852609 __ https://peertube.cipherbliss.com/videos/watch/e6a37508-042e-4d83-8598-5d36b764bb3d +total 1708 +-rw-r--r-- 1 www-data www-data 271266 Mar 23 09:48 base.mp3 +-rw-r--r-- 1 www-data www-data 1470542 Mar 27 21:48 mono_canal.wav + Sat Mar 27 21:48:48 CET 2021 ###### end conversion __ 2021-Mar-27_1616878123 __ https://peertube.cipherbliss.com/videos/watch/e6a37508-042e-4d83-8598-5d36b764bb3d +total 1708 +-rw-r--r-- 1 www-data www-data 271266 Mar 23 09:48 base.mp3 +-rw-r--r-- 1 www-data www-data 1470542 Apr 20 17:19 mono_canal.wav + Tue Apr 20 17:19:20 CEST 2021 ###### end conversion __ 2021-Apr-20_1618931951 __ https://peertube.cipherbliss.com/videos/watch/e6a37508-042e-4d83-8598-5d36b764bb3d +total 1708 +-rw-r--r-- 1 www-data www-data 271266 Mar 23 09:48 base.mp3 +-rw-r--r-- 1 www-data www-data 1470542 Apr 20 17:37 mono_canal.wav + Tue Apr 20 17:37:31 CEST 2021 ###### end conversion __ 2021-Apr-20_1618933048 __ https://peertube.cipherbliss.com/videos/watch/e6a37508-042e-4d83-8598-5d36b764bb3d +total 1708 +-rw-r--r-- 1 www-data www-data 271266 Mar 23 09:48 base.mp3 +-rw-r--r-- 1 www-data www-data 1470542 Aug 18 16:09 mono_canal.wav + Wed Aug 18 16:09:53 CEST 2021 ###### end conversion __ 2021-Aug-18_1629295789 __ https://peertube.cipherbliss.com/videos/watch/e6a37508-042e-4d83-8598-5d36b764bb3d +total 1708 +-rw-r--r-- 1 www-data www-data 271266 Mar 23 09:48 base.mp3 +-rw-r--r-- 1 www-data www-data 1470542 Aug 18 16:10 mono_canal.wav + Wed Aug 18 16:10:50 CEST 2021 ###### end conversion __ 2021-Aug-18_1629295848 __ https://peertube.cipherbliss.com/videos/watch/e6a37508-042e-4d83-8598-5d36b764bb3d +total 1708 +-rw-r--r-- 1 www-data www-data 271266 Mar 23 09:48 base.mp3 +-rw-r--r-- 1 www-data www-data 1470542 Aug 18 16:12 mono_canal.wav + Wed Aug 18 16:12:13 CEST 2021 ###### end conversion __ 2021-Aug-18_1629295930 __ https://peertube.cipherbliss.com/videos/watch/e6a37508-042e-4d83-8598-5d36b764bb3d +total 1708 +-rw-r--r-- 1 www-data www-data 271266 Mar 23 09:48 base.mp3 +-rw-r--r-- 1 www-data www-data 1470542 Aug 18 16:14 mono_canal.wav + Wed Aug 18 16:14:15 CEST 2021 ###### end conversion __ demo_video_tk __ https://peertube.cipherbliss.com/videos/watch/e6a37508-042e-4d83-8598-5d36b764bb3d +total 1708 +-rw-r--r-- 1 www-data www-data 271266 Mar 23 09:48 base.mp3 +-rw-r--r-- 1 www-data www-data 1470542 Aug 18 16:14 mono_canal.wav + Wed Aug 18 16:15:56 CEST 2021 ###### end conversion __ demo_video_tk __ https://peertube.cipherbliss.com/videos/watch/e6a37508-042e-4d83-8598-5d36b764bb3d +total 1708 +-rw-r--r-- 1 www-data www-data 271266 Mar 23 09:48 base.mp3 +-rw-r--r-- 1 www-data www-data 1470542 Aug 18 16:14 mono_canal.wav + Wed Aug 18 16:16:17 CEST 2021 ###### end conversion __ demo_video_tk __ https://peertube.cipherbliss.com/videos/watch/e6a37508-042e-4d83-8598-5d36b764bb3d +total 1708 +-rw-r--r-- 1 www-data www-data 271266 Mar 23 09:48 base.mp3 +-rw-r--r-- 1 www-data www-data 1470542 Aug 18 16:14 mono_canal.wav + Wed Aug 18 16:17:22 CEST 2021 ###### end conversion __ demo_video_tk __ https://peertube.cipherbliss.com/videos/watch/e6a37508-042e-4d83-8598-5d36b764bb3d diff --git a/models/.gitkeep b/models/.gitkeep old mode 100644 new mode 100755 diff --git a/output/.gitkeep b/output/.gitkeep old mode 100644 new mode 100755 diff --git a/transcript.sh b/transcript.sh old mode 100644 new mode 100755 diff --git a/wav_to_wav_mono.sh b/wav_to_wav_mono.sh old mode 100644 new mode 100755 diff --git a/webm_to_wav.sh b/webm_to_wav.sh old mode 100644 new mode 100755 diff --git a/website/_foot.php b/website/_foot.php old mode 100644 new mode 100755 diff --git a/website/_head.php b/website/_head.php old mode 100644 new mode 100755 diff --git a/website/bulma.min.css b/website/bulma.min.css old mode 100644 new mode 100755 diff --git a/website/download.php b/website/download.php old mode 100644 new mode 100755 index 81364d6..5d16656 --- a/website/download.php +++ b/website/download.php @@ -24,7 +24,7 @@ include( '_head.php' ); // sanitize input $url = $_POST[ 'url' ]; - $lang = $_POST[ 'lang' ] or 'fr'; + $lang = isset($_POST[ 'lang' ]) ? $_POST['lang'] : 'fr'; echo "
récupération de la vidéo à l'url " . $url . " ...
"; @@ -32,18 +32,28 @@ include( '_head.php' ); // print '[Erreur] pas de commande youtube-dl installée sur ce serveur'; // } else { - $uniqid = date( 'Y-M-d_' ) . time(); +// $uniqid = date( 'Y-M-d_' ) . time(); +$uniqid = 'demo_video_tk'; // # exemple url https://peertube.cipherbliss.com/videos/watch/e6a37508-042e-4d83-8598-5d36b764bb3d +if (file_exists('../input/ydl/'.$uniqid)) { + echo "The file $filename exists"; +}else{ + + + // exec( './youtube-dl.sh uniqueid_facho https://peertube.cipherbliss.com/videos/watch/b88a9568-517c-4a49-ab07-75c79323a825', $output, $result ); exec( './youtube-dl.sh ' . $uniqid . ' ' . $url . ' ' . $lang, $output, $result ); $phrases_only = file_get_contents( '../input/ydl/' . $uniqid . '/3_without_nulls.txt' ); - echo "
résultat du script.
"; + echo "
résultat du script.
";
 		  var_dump( $result );
+echo "

output du script.
";
+                  var_dump( $output );
+echo "
"; if ( $result ) { @@ -75,6 +85,7 @@ include( '_head.php' ); echo "
Conversion de la vidéo " . $uniqid . "...
"; +} echo '

Succès

@@ -82,8 +93,11 @@ include( '_head.php' );
Vous pouvez télécharger vos fichiers. - - +

diff --git a/website/index.php b/website/index.php old mode 100644 new mode 100755 diff --git a/website/info.php b/website/info.php old mode 100644 new mode 100755 diff --git a/website/log_ydl.txt b/website/log_ydl.txt old mode 100644 new mode 100755 index 238a53c..1ce39ac --- a/website/log_ydl.txt +++ b/website/log_ydl.txt @@ -8,3 +8,14 @@ Sat Mar 27 14:23:15 CET 2021 ###### start conversion __ batman_script __ https://peertube.cipherbliss.com/videos/watch/193545b2-3cd5-468a-b563-e17d0121e1bf Sat Mar 27 14:23:18 CET 2021 ###### end conversion __ batman_script __ https://peertube.cipherbliss.com/videos/watch/193545b2-3cd5-468a-b563-e17d0121e1bf Sat Mar 27 14:24:10 CET 2021 ###### start conversion __ batman_script __ https://peertube.cipherbliss.com/videos/watch/193545b2-3cd5-468a-b563-e17d0121e1bf + Sat Mar 27 14:43:29 CET 2021 ###### start conversion __ 2021-Mar-27_1616852609 __ https://peertube.cipherbliss.com/videos/watch/e6a37508-042e-4d83-8598-5d36b764bb3d + Sat Mar 27 21:48:44 CET 2021 ###### start conversion __ 2021-Mar-27_1616878123 __ https://peertube.cipherbliss.com/videos/watch/e6a37508-042e-4d83-8598-5d36b764bb3d + Tue Apr 20 17:19:12 CEST 2021 ###### start conversion __ 2021-Apr-20_1618931951 __ https://peertube.cipherbliss.com/videos/watch/e6a37508-042e-4d83-8598-5d36b764bb3d + Tue Apr 20 17:37:28 CEST 2021 ###### start conversion __ 2021-Apr-20_1618933048 __ https://peertube.cipherbliss.com/videos/watch/e6a37508-042e-4d83-8598-5d36b764bb3d + Wed Aug 18 16:09:49 CEST 2021 ###### start conversion __ 2021-Aug-18_1629295789 __ https://peertube.cipherbliss.com/videos/watch/e6a37508-042e-4d83-8598-5d36b764bb3d + Wed Aug 18 16:10:48 CEST 2021 ###### start conversion __ 2021-Aug-18_1629295848 __ https://peertube.cipherbliss.com/videos/watch/e6a37508-042e-4d83-8598-5d36b764bb3d + Wed Aug 18 16:12:10 CEST 2021 ###### start conversion __ 2021-Aug-18_1629295930 __ https://peertube.cipherbliss.com/videos/watch/e6a37508-042e-4d83-8598-5d36b764bb3d + Wed Aug 18 16:14:13 CEST 2021 ###### start conversion __ demo_video_tk __ https://peertube.cipherbliss.com/videos/watch/e6a37508-042e-4d83-8598-5d36b764bb3d + Wed Aug 18 16:15:53 CEST 2021 ###### start conversion __ demo_video_tk __ https://peertube.cipherbliss.com/videos/watch/e6a37508-042e-4d83-8598-5d36b764bb3d + Wed Aug 18 16:16:15 CEST 2021 ###### start conversion __ demo_video_tk __ https://peertube.cipherbliss.com/videos/watch/e6a37508-042e-4d83-8598-5d36b764bb3d + Wed Aug 18 16:17:20 CEST 2021 ###### start conversion __ demo_video_tk __ https://peertube.cipherbliss.com/videos/watch/e6a37508-042e-4d83-8598-5d36b764bb3d diff --git a/website/run.php b/website/run.php old mode 100644 new mode 100755 diff --git a/website/test_works.txt b/website/test_works.txt old mode 100644 new mode 100755