
Recherche avancée
Autres articles (26)
-
La file d’attente de SPIPmotion
28 novembre 2010, parUne file d’attente stockée dans la base de donnée
Lors de son installation, SPIPmotion crée une nouvelle table dans la base de donnée intitulée spip_spipmotion_attentes.
Cette nouvelle table est constituée des champs suivants : id_spipmotion_attente, l’identifiant numérique unique de la tâche à traiter ; id_document, l’identifiant numérique du document original à encoder ; id_objet l’identifiant unique de l’objet auquel le document encodé devra être attaché automatiquement ; objet, le type d’objet auquel (...) -
Personnaliser les catégories
21 juin 2013, parFormulaire de création d’une catégorie
Pour ceux qui connaissent bien SPIP, une catégorie peut être assimilée à une rubrique.
Dans le cas d’un document de type catégorie, les champs proposés par défaut sont : Texte
On peut modifier ce formulaire dans la partie :
Administration > Configuration des masques de formulaire.
Dans le cas d’un document de type média, les champs non affichés par défaut sont : Descriptif rapide
Par ailleurs, c’est dans cette partie configuration qu’on peut indiquer le (...) -
Support de tous types de médias
10 avril 2011Contrairement à beaucoup de logiciels et autres plate-formes modernes de partage de documents, MediaSPIP a l’ambition de gérer un maximum de formats de documents différents qu’ils soient de type : images (png, gif, jpg, bmp et autres...) ; audio (MP3, Ogg, Wav et autres...) ; vidéo (Avi, MP4, Ogv, mpg, mov, wmv et autres...) ; contenu textuel, code ou autres (open office, microsoft office (tableur, présentation), web (html, css), LaTeX, Google Earth) (...)
Sur d’autres sites (5843)
-
FFmpeg .bat file syntax
12 juillet 2022, par JeandréI have the following command for overlaying a watermark (png image) on a video. I run it from a windows .bat file and it works fine as long as I keep the png file in the same folder as my script (like this movie=easy_vacation_text.png).


%FFMPEGPATH% -i "C:\\Users\\me\\Downloads\\b2ff1bb2-3cd4-41c5-a1ee-ea6b7c066011.mp4" -y -vf "scale=1280:720 [main]; movie=easy_vacation_text.png [watermark]; [watermark]scale=1000x200 [watermark2]; [main][watermark2] overlay=(main_w/2)-(overlay_w/2):main_h-overlay_h-10 [out]" %OUTDIR%/outfile.mp4




As soon as I try to reference the png from a different folder like (like this movie=C :\Users\me\easy_vacation_text.png), it breaks :


%FFMPEGPATH% -i "C:\\Users\\me\\Downloads\\b2ff1bb2-3cd4-41c5-a1ee-ea6b7c066011.mp4" -y -vf "scale=1280:720 [main]; movie=C:\\Users\\me\\easy_vacation_text.png [watermark]; [watermark]scale=1000x200 [watermark2]; [main][watermark2] overlay=(main_w/2)-(overlay_w/2):main_h-overlay_h-10 [out]" %OUTDIR%/outfile.mp4



I tried different variations of putting quotes around the path (C :\Users\me\easy_vacation_text.png) but I can't figure out the problem.


Any ideas what I'm doing wrong ?


-
How do I convert a webm file to a wav file [closed]
5 janvier 2021, par JustinI'm using the pafy library to download a video from Youtube as a webm file. Now I'm trying to convert that webm file to a .wav file. I am aware of something simlar to this question being posted on here Coverting webm to wav with ffmpeg
However it's not giving me the answer I need. The error I keep getting is this.


File "C:/Users/16156/PycharmProjects/youtubeaudiodownloader/audiodownload.py", line 29, in <module>
ad.fromMpToWav()


File "C:/Users/16156/PycharmProjects/youtubeaudiodownloader/audiodownload.py", line 20, in fromMpToWav
 command = 'ffmpeg -i' + self.vid.getbestaudio(), + '' + r'C:\Users\16156\PycharmProjects\youtubeaudiodownloader\test.wav'
TypeError: can only concatenate str (not "YtdlStream") to str
</module>


Here's the code that is causing the error


def fromMpToWav(self):
 time.sleep(5)
 command = ['ffmpeg -i', self.vid.getbestaudio(),r'C:\Users\16156\PycharmProjects\youtubeaudiodownloader\test.wav']
 subprocess.run(command)



I originally was placing the command variable into an array, however, I changed it.


I've been stuck on this for a good hour now and have no idea how to fix it. Anyone has ever tried doing something likewise to this that can help me out.


-
I am using ffmpeg library to generate m3u8 file,I could generate the file but few tags and attributes I could not able to create, can anyone help me
6 juin 2022, par Nishanth ReddyFollowing is my code to generate m3u8 file but tags like EXT-X-I-FRAME-STREAM-INF and attributes like framerate, average bandwith and URI I am unable to generate can any one help me on this ?


ffmpeg -i "C :\Users\123\Downloads\primary_audio_eng_4.mp4" -map 0:v:0 -map 0:a:0 -map 0:v:0 -map 0:a:0 -map 0:v:0 -map 0:a:0 -c:v libx264 -crf 22 -c:a aac -ar 48000 -filter:v:0 scale=w=480:h=360 -maxrate:v:0 600k -b:a:0 500k -filter:v:1 scale=w=640:h=480 -maxrate:v:1 1500k -b:a:1 1000k -filter:v:2 scale=w=1280:h=720 -maxrate:v:2 3000k -b:a:2 2000k -var_stream_map "v:0,a:0,name:360p v:1,a:1,name:480p v:2,a:2,name:720p" -preset fast -hls_list_size 10 -threads 0 -f hls -hls_time 3 -hls_flags independent_segments -master_pl_name "livestream.m3u8" -y "C :\m3u8\beachnew\livestream-%v.m3u8"