2022-12-05 21:36:14 +00:00
|
|
|
|
`delarte`
|
|
|
|
|
=========
|
2022-12-05 21:20:04 +00:00
|
|
|
|
|
2022-12-05 21:56:29 +00:00
|
|
|
|
🚧 Du code a mettre au propre, dans le seul but de faire du python
|
2022-12-05 21:36:14 +00:00
|
|
|
|
|
|
|
|
|
|
2022-12-05 21:56:29 +00:00
|
|
|
|
💡 Mais c’est quoi?
|
|
|
|
|
-------------------
|
2022-12-05 21:36:14 +00:00
|
|
|
|
|
2022-12-05 21:56:29 +00:00
|
|
|
|
Récupérer un flux vidéo dans un fichier local avec sous titres.
|
2022-12-05 21:36:14 +00:00
|
|
|
|
|
|
|
|
|
|
2022-12-05 21:56:29 +00:00
|
|
|
|
🚀 Chauffe Marcel!
|
|
|
|
|
------------------
|
|
|
|
|
|
|
|
|
|
_(pour distribution de famille Debian, adapter les commandes sinon)_
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
git clone https://git.afpy.org/fcode/delarte.git && cd delarte
|
|
|
|
|
sudo apt install ffmpeg
|
|
|
|
|
mkdir ~/.venvs && python3 -m venv ~/.venvs/delarte
|
|
|
|
|
source ~/.venvs/delarte/bin/activate
|
|
|
|
|
pip install -r requirements.txt
|
|
|
|
|
export PATH_FFMPEG=$(which ffmpeg)
|
|
|
|
|
./delarte.py https://www.arte.tv/fr/videos/093644-001-A/meaningless_strings_but_mandatory/
|
2022-12-05 21:36:14 +00:00
|
|
|
|
L'incroyable périple de Magellan (1/4)
|
|
|
|
|
VF : Français
|
|
|
|
|
VO-STF : Version originale - ST français
|
|
|
|
|
VF-STMF : Français (sourds et malentendants)
|
|
|
|
|
VFAUD : Français (audiodescription)
|
|
|
|
|
VA-STA : Allemand
|
|
|
|
|
VA-STMA : Allemand (sourds et malentendants)
|
|
|
|
|
VAAUD : Allemand (audiodescription)
|
|
|
|
|
```
|
|
|
|
|
|
2022-12-05 21:56:29 +00:00
|
|
|
|
Rajouter le code sous-titre en paramètre:
|
|
|
|
|
|
|
|
|
|
```python
|
|
|
|
|
./delarte.py https://www.arte.tv/fr/videos/093644-001-A/meaningless_strings_but_mandatory/ VO-STF
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
🔧 Tripoter sous le capot
|
|
|
|
|
-------------------------
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### 🚀 Chauffe Marcel!
|
|
|
|
|
|
|
|
|
|
- `Python 3.10` à été utilisé
|
|
|
|
|
|
|
|
|
|
### 📌 Dépendances
|
2022-12-05 21:36:14 +00:00
|
|
|
|
|
2022-12-05 21:56:29 +00:00
|
|
|
|
Voir [`requirements.txt`](requirements.txt)
|
2022-12-05 21:36:14 +00:00
|
|
|
|
|
|
|
|
|
|
2022-12-05 21:56:29 +00:00
|
|
|
|
### 🤝 Filer un coup de main
|
2022-12-05 21:36:14 +00:00
|
|
|
|
|
2022-12-05 21:56:29 +00:00
|
|
|
|
- Question, suggestion ➡️ [_ticket du projet_](https://git.afpy.org/fcode/delarte/issues/new)
|
|
|
|
|
- Balance ton code ➡️ [_demande de fusion_](https://git.afpy.org/fcode/delarte/compare/devel)
|