
Recherche avancée
Médias (1)
-
The Slip - Artworks
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Texte
Autres articles (62)
-
List of compatible distributions
26 avril 2011, parThe table below is the list of Linux distributions compatible with the automated installation script of MediaSPIP. Distribution nameVersion nameVersion number Debian Squeeze 6.x.x Debian Weezy 7.x.x Debian Jessie 8.x.x Ubuntu The Precise Pangolin 12.04 LTS Ubuntu The Trusty Tahr 14.04
If you want to help us improve this list, you can provide us access to a machine whose distribution is not mentioned above or send the necessary fixes to add (...) -
Les tâches Cron régulières de la ferme
1er décembre 2010, parLa gestion de la ferme passe par l’exécution à intervalle régulier de plusieurs tâches répétitives dites Cron.
Le super Cron (gestion_mutu_super_cron)
Cette tâche, planifiée chaque minute, a pour simple effet d’appeler le Cron de l’ensemble des instances de la mutualisation régulièrement. Couplée avec un Cron système sur le site central de la mutualisation, cela permet de simplement générer des visites régulières sur les différents sites et éviter que les tâches des sites peu visités soient trop (...) -
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
Sur d’autres sites (7886)
-
How can I convert an FFmpeg command line to python code
1er janvier 2023, par Ali HerzI'm trying to combine an image with an audio file and convert them to mp4.
I found this command line and I used it. It works perfectly.


ffmpeg -loop 1 -i 01_Prologue.png -i 01_Prologue.wav -c:v libx264 -tune stillimage -c:a aac -b:a 192k -pix_fmt yuv420p -shortest out.mp4


I want to use python because I want to combine multiple images with multiple audio files


I used this code to combine the same audio and image files but it gave me a blank video file.


import ffmpeg

input_still = ffmpeg.input("image.jpg")
input_audio = ffmpeg.input("audio.wav")

(
ffmpeg
.concat(input_still, input_audio, v=1, a=1)
.output("output.mp4")
.run(overwrite_output=True)
)



I'm guessing that is because I didn't add the filters to the code, and the problem happened.


but how to do it ?


-
ffmpeg code (API)
22 juin 2014, par user3209762I started to deal with ffmpeg API ( not the command prompt ) to build a movie editor, and I’m trying to find a good tutorial about how to extract keyframes from video, but I didn’t find it.
- Someone did it before and can write the code here ?
- Someone has a good tutorial about ffmpeg API ?
Thank you !
-
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