
Recherche avancée
Autres articles (74)
-
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 (...) -
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) (...)
-
Supporting all media types
13 avril 2011, parUnlike most software and media-sharing platforms, MediaSPIP aims to manage as many different media types as possible. The following are just a few examples from an ever-expanding list of supported formats : images : png, gif, jpg, bmp and more audio : MP3, Ogg, Wav and more video : AVI, MP4, OGV, mpg, mov, wmv and more text, code and other data : OpenOffice, Microsoft Office (Word, PowerPoint, Excel), web (html, CSS), LaTeX, Google Earth and (...)
Sur d’autres sites (10407)
-
How can I generate a hls.m3u8 file using a youtube URL ?
8 avril 2021, par User0011I used ffmpeg in python and I was able to generate a hls file from a local mp4 file that i had on my computer, but now I want to know if there is a way to generate the hls file using a youtube URL and give this url to the input() function of ffmpeg in python ?
Here is the code I used for the first time, I want to replace test.mp4 with a youtube URL, is it possible ?
Thanks for the help


import ffmpeg_streaming
from ffmpeg_streaming import Formats, Bitrate, Representation, Size


video = ffmpeg_streaming.input('/Users/test.mp4')

_480p = Representation(Size(854, 480), Bitrate(750 * 1024, 192 * 1024))
_720p = Representation(Size(1280, 720), Bitrate(2048 * 1024, 320 * 1024))

hls = video.hls(Formats.h264(), hls_list_size=10, hls_time=5)
hls.representations(_480p, _720p)
hls.fragmented_mp4()
hls.output('/Users//hls.m3u8')



-
How to change or modify pitch of audio file (music etc like .mp3 file)using FFMPEG ?
18 octobre 2022, par syed kashifullahI want to change and modify pitch an .mp3 audio file using FFMPEG.
But I am unable to use FFMPEG to change or modify pitch of that sound.
what command (exact command) should be exactly use for changing pitch of an audio file ?


String outPutPath = new File("/storage/emulated/0/Share it Application/Over_the_HorizonTemp.wav").getPath();
 
 String[] strFfmpeg = {"ffmpeg","-i" ,strInputPath,"-af", "rubberband=tempo=1.0:pitch=1.5:pitchq=quality" ,outPutPath};
 execffmpegBinary(strFfmpeg);



execffmpegBinary Function :


public void execffmpegBinary(String[] command) {
 Config.enableLogCallback(new LogCallback() {
 @Override
 public void apply(LogMessage message) {
 Log.e(Config.TAG, message.getText());
 Log.e("TAG", "apply: " +message.getText());
 }
 });
 Config.enableStatisticsCallback(new StatisticsCallback() {
 @Override
 public void apply(Statistics statistics) {

 }
 });

 long executionId = FFmpeg.executeAsync(command, new ExecuteCallback() {
 @Override
 public void apply(long executionId, int returnCode) {
 if (returnCode == RETURN_CODE_SUCCESS) {
 
 Log.e("1TAG", "apply:return code "+returnCode );
 Log.e("1TAG", "apply:execution Id "+executionId );
 Log.e("1TAG", "apply:execution Id "+ new FFmpegExecution(executionId,command));


 } else if (returnCode == RETURN_CODE_CANCEL) {
 Log.e("2TAG", "apply:return code "+returnCode );
 Log.e("2TAG", "apply:execution Id "+executionId );
 Log.e("2TAG", "apply:execution Id "+ new FFmpegExecution(executionId,command));

 } else {
 Log.e("3TAG", "apply: returnCode"+ returnCode);
 Log.e("3TAG", "apply:return code "+returnCode );
 Log.e("3TAG", "apply:execution Id "+executionId );
 Log.e("3TAG", "apply:execution Id "+ new FFmpegExecution(executionId,command));

 }
 }
 });
}



-
Add white noise to audio stream at specific time stamp for specific duration using FFMPEG
25 mai 2022, par cpronI have a video.mov file of 1 minute. What I want is to make the volume of the current audio stream to 0 for a specific duration and add noise at that specific timestamp.


ffmpeg -y -i video.mov -filter_complex volume=enable='between(t,15,20)':volume=0[main];anoisesrc=d=5:c=pink:r=44100:a=0.5[noise];[main][noise]amix=inputs=2



Thank you in advance.