
Recherche avancée
Autres articles (106)
-
Publier sur MédiaSpip
13 juin 2013Puis-je poster des contenus à partir d’une tablette Ipad ?
Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir -
Organiser par catégorie
17 mai 2013, parDans MédiaSPIP, une rubrique a 2 noms : catégorie et rubrique.
Les différents documents stockés dans MédiaSPIP peuvent être rangés dans différentes catégories. On peut créer une catégorie en cliquant sur "publier une catégorie" dans le menu publier en haut à droite ( après authentification ). Une catégorie peut être rangée dans une autre catégorie aussi ce qui fait qu’on peut construire une arborescence de catégories.
Lors de la publication prochaine d’un document, la nouvelle catégorie créée sera proposée (...) -
Amélioration de la version de base
13 septembre 2013Jolie sélection multiple
Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...)
Sur d’autres sites (6361)
-
Convert powershell command to terminal (osx)
10 mars 2015, par user1765661I use a loop on powershell to convert some videos, can you please help me to translate the same "code" so I can use it in the terminal of my mac ?
Thank you.
cd D:\Videos\Original
new-item -path . -name "Videos_convert_003" -type directory
dir -exclude *.png | foreach-object { $newname = $_.Basename + ".mp4"; ffmpeg -i "$_" -i logo_img_003.png -filter_complex overlay D:\Videos\Original\Videos_convert_003\$newname } -
Extract subtitle by language code via ffmpeg
7 mai 2023, par TrustFoundI have a simple task - extract subtitle for exact language from tvshows.
For example, I want to extract English subtitles from Netflix's show.
As you know there're a few different types of subtitles : forced, full and SDH.
So I want to extract all of them if it has eng language code.


To extract 1 subtitle from file I used this code for windows :


FOR %%i IN (*.mkv) DO (ffmpeg.exe -i "%%i" -map 0:s:m:language:eng -c copy "%%~ni".eng.srt)



It worked fine with 1 english subtitle per file. But if it contains 2, ffmpeg shows error




SRT supports only a single subtitles stream





MI is...


- 

- Stream #0:2(eng) : Subtitle : subrip
- Stream #0:3(eng) : Subtitle : subrip
- Stream #0:4(ara) : Subtitle : subrip
- ...











So I should set 2 or more output files. I tried to figure out how to do this and found similar threads on reddit and stacksoverflow. They said there's no way to do this without ffprobe.
So I used ffprobe to parse all subtitle tracks and their language code.


FOR %%i IN (*.mkv) DO (ffprobe -loglevel error -select_streams s -show_entries stream=index:stream_tags=language -of csv=p=0 -i %%i > subs.txt)



File contains this info :


- 

- 2,eng
- 3,eng
- 4,ara
- ...











As I understand I should use integers and set them values 2 and 3. I want to get output like this




- 

- MovieName.2.eng.srt
- MovieName.3.eng.srt








If it easier to extract all subs, let it be. I tried to do this too but I dont know how to set integers and use them :(
So what I should do ?
Thanks in advance


-
DWT of frames by FFMPEG API
13 mars 2015, par VaigardHow can I spend the DWT Y component is considered of H.264 video frame ? Do not quite understand the principle of filling the structure
DWTContext
and its schema. And is not a matter ofAVFrame->data[0][x]
values are already converted, for example by DCT ?Thanks and sorry for my English=)