
Recherche avancée
Médias (1)
-
GetID3 - Bloc informations de fichiers
9 avril 2013, par
Mis à jour : Mai 2013
Langue : français
Type : Image
Autres articles (93)
-
Les autorisations surchargées par les plugins
27 avril 2010, parMediaspip core
autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs -
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 -
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 (11728)
-
How to use bytes instead of file path in ffmpeg ?
3 mai 2021, par Julio S.I have a function that currently receives bytes, saves it to an audio WEBM file on disk, then converts it to another audio WAV file on disk.


I am looking for a way to make the above conversion without saving the WEBM files to disk, using FFMPEG.


Can FFMPEG handle such conversions using bytes in memory instead of a path to a file in disk ?


What I am doing right now (Python 3.8.8 64Bit) :


# audio_data = bytes received

def save_to_webm(audio_data, username):
 mainDir = os.path.dirname(__file__)
 tempDir = os.path.join(mainDir, 'temp')
 webm_path = os.path.join(tempDir, f'{username}.webm')
 with open(webm_path, 'wb') as f:
 f.write(audio_data)
 return webm_path

# webm_path = input path in FFMPEG

def convert_webm_to_wav(webm_path, username):
 mainDir = os.path.dirname(__file__)
 tempDir = os.path.join(mainDir, 'temp')
 outputPath = os.path.join(tempDir, f'{username}.wav')

 if platform == 'win32':
 ffmpeg_path = os.path.join(mainDir, 'ffmpeg.exe')
 else:
 os.chdir("/ffmpeg")
 ffmpeg_path = './ffmpeg'

 command = [ffmpeg_path, '-i', webm_path, '-acodec', 'pcm_s16le', '-ar', '11025', '-ac', '1', '-y', outputPath]
 subprocess.run(command,stdout=subprocess.PIPE,stdin=subprocess.PIPE)
 return outputPath



-
how can i set Path of ffmpeg output in vb.net
28 avril 2015, par TOMI am Writing a code in vb.net to Create thumbnails of Video . But I want to set the output path or the storage path of the thumbnails
enter code here
TextBox2.Text = InputBox("Enter your Desired Name")
Dim fileName As String = TextBox1.Text
Dim result As String = Path.GetFileName(fileName)
proc.StartInfo.Arguments = " -i " + result + " -r 1 " + TextBox2.Text + "%4d.jpg "
proc.Start()When i run this The output is stored elsewhere. So i want to store the output manually
-
Can I direct ffmpeg to a folder to do work using SET PATH ?
11 août 2017, par 3pointeditI have some "MXF-type" media (various media files in a containing folder) As long as I have cmd line set to the media folder it works but if I want to run from C : and point to the media directory using explicit SET PATH it won’t run ffmpeg. I don’t know why. What is wrong with the way I am expecting SET PATH to work ?
C:\Users\MYNAME>SET PATH=%PATH%;"H:\2017\PeterMc\camb_LungDoctor_730_1403(1).vmf\" ffmpeg -enable_drefs 1 -use_absolute_path 0 -i camb_LungDoctor_730_1403(1).mov -map 0:v -map 0:a -write_tmcd 1 camb_LungDoctor_730_1403(1).mp4
While the following example works you can see that cmd must be in the media folder path.
H:\2017\Peter Mc\camb_LungDoctor_730_1403(1).vmf> ffmpeg -enable_drefs 1 -use_absolute_path 0 -i camb_LungDoctor_730_1403(1).mov -map 0:v -map 0:a -write_tmcd 1 camb_LungDoctor_730_1403(1).mp4