
Recherche avancée
Médias (91)
-
#3 The Safest Place
16 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
-
#4 Emo Creates
15 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
-
#2 Typewriter Dance
15 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
-
#1 The Wires
11 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
-
ED-ME-5 1-DVD
11 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Audio
-
Revolution of Open-source and film making towards open film making
6 octobre 2011, par
Mis à jour : Juillet 2013
Langue : English
Type : Texte
Autres articles (7)
-
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 (...)
-
Encoding and processing into web-friendly formats
13 avril 2011, parMediaSPIP automatically converts uploaded files to internet-compatible formats.
Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
All uploaded files are stored online in their original format, so you can (...) -
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 (3190)
-
Can we set size of image frame in save function ?
19 avril 2019, par TesterUnable to set the size of image frame so I am unable to use thumbnail size.
$video = $ffmpeg->open($videoFile);
$video
->filters()
->resize(new FFMpeg\Coordinate\Dimension(320, 240))
->synchronize();
$frame = $video->frame(FFMpeg\Coordinate\TimeCode::fromSeconds(1));
$frame->save('C:\wamp64\www\woc\image_bucket\thumbnail\\'.$thumbnailFileName); -
FFmpeg save .mp3 output into a variable
6 mai 2021, par Toto BriacIn my application I want to modify various mp3 and then mix them together. I know I could do it with a single command line in FFmpeg but It can end up very messy since I need to use various filter on each sample and I have five of them.
My idea is to edit each sample individually, save them into a variable and finally mix them. This is my code :


import subprocess 

def create_samp():
 sample= subprocess.run(["ffmpeg", "-y", "-i", "https://freesound.org/data/previews/186/186942_2594536-hq.mp3", \
 "-filter_complex", "adelay=15000|15000", "-codec:v", "copy", "-f", "mp3","-"], stdout=subprocess.PIPE) 
 return(sample) 

def record(samp):
 subprocess.run(["ffmpeg", "-y", "-i", "https://cdns-preview-b.dzcdn.net/stream/c-b0b684fe962f93dc43f1f7ea493683a1-3.mp3", \
 "-i", samp.stdout, "-f", "-mp3", "copy", "output.mp3"])

samp = create_samp()
record(samp)



My issue is that I have to encode the
stdout
. I've tried'utf-8'
but got this error :

UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 45: invalid start byte



With `'utf-16' :


UnicodeDecodeError: 'utf-16-le' codec can't decode bytes in position 239454-239455: illegal encoding



Why is the way to fix this issue ? Is my approach the right one ?


Thanks to @Rotem I succeed to do what I wanted to. But now I am facing an other issue, since I want to mix up to 5 sounds, I tried to implement it the lazy/easy way :


import subprocess

def create_samp_2():
 sample= subprocess.run(["ffmpeg", "-i", "https://freesound.org/data/previews/186/186942_2594536-hq.mp3", \
 "-af", "adelay=15000|15000", "-f", "mp3", "pipe:"], stdout=subprocess.PIPE).stdout
 return(sample)

def create_samp():

 sample= subprocess.run(["ffmpeg", "-i", "https://freesound.org/data/previews/370/370934_6399962-lq.ogg", \
 "-af", "adelay=1000|1000", "-f", "mp3", "pipe:"], stdout=subprocess.PIPE).stdout
 return(sample)


def record(samp, samp_2): 
 process = subprocess.Popen(["ffmpeg", "-y", '-f', 'mp3', \
 "-i", "https://cdns-preview-b.dzcdn.net/stream/c-b0b684fe962f93dc43f1f7ea493683a1-3.mp3", \
 "-i", "pipe:", \
 "-i", "pipe:", \
 "-filter_complex", "amix=inputs=3:duration=longest", "output.mp3"], stdin=subprocess.PIPE)

 process.stdin.write(samp) 
 process.stdin.write(samp_2) 
 process.stdin.close() 
 process.wait()

samp = create_samp()
samp_2 = create_samp_2()
record(samp, samp_2)



Surprisingly it works, my two sounds start at the right time, but the second sound is messed up. So it's not the right way to do it.


Then I tried named pipes as suggested this way :


"pipe1:"



But I get this error :


pipe1:: Protocol not found
Did you mean file:pipe1:?



Reading named pipe wiki it is stated that I have to create them with
mkfifo()
.

So I tried :


import os
pipe1 = "pipe1"

def create_pipe1():
 os.mkfifo(pipe1)

But now I have this error: pipe1:: Protocol not found
Did you mean file:pipe1:?



-
vp9/x86 : save one register on 32bit idct32x32.
16 décembre 2014, par Ronald S. Bultje