
Recherche avancée
Médias (1)
-
Video d’abeille en portrait
14 mai 2011, par
Mis à jour : Février 2012
Langue : français
Type : Video
Autres articles (69)
-
MediaSPIP v0.2
21 juin 2013, parMediaSPIP 0.2 est la première version de MediaSPIP stable.
Sa date de sortie officielle est le 21 juin 2013 et est annoncée ici.
Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
Comme pour la version précédente, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...) -
MediaSPIP version 0.1 Beta
16 avril 2011, parMediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
Pour avoir une installation fonctionnelle, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...) -
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 (...)
Sur d’autres sites (11813)
-
How to read a MP3 audio file into a numpy array / save a numpy array to MP3 ?
15 juin 2021, par BasjIs there a way to read/write a MP3 audio file into/from a
numpy
array with a similar API to scipy.io.wavfile.read and scipy.io.wavfile.write :


sr, x = wavfile.read('test.wav')
wavfile.write('test2.wav', sr, x)




?



Note :
pydub
'sAudioSegment
object doesn't give direct access to a numpy array.


PS : I have already read Importing sound files into Python as NumPy arrays (alternatives to audiolab), tried all the answers, including those which requires to
Popen
ffmpeg and read the content from stdout pipe, etc. I have also read Trying to convert an mp3 file to a Numpy Array, and ffmpeg just hangs, etc., and tried the main answers, but there was no simple solution. After spending hours on this, I'm posting it here with "Answer your own question – share your knowledge, Q&A-style". I have also read How to create a numpy array from a pydub AudioSegment ? but this does not easily cover the multi channel case, etc.

-
Revision f8630c78d1 : configure : remove php test + the remnants in the build system & README the doc
10 mai 2014, par James ZernChanged Paths :
Modify /README
Modify /configure
Modify /docs.mk
configure : remove php test+ the remnants in the build system & README
the documentation that required php was removed in :
50fa585 Removing examples code generation and making them static.Change-Id : Ibf00dca9ab2715fc21e8de358807b63d1445662c
-
FFMPEG width not divisible by 2 (639x360)
5 octobre 2020, par yasgur99I am using python wrapper command of ffmepeg. I followed the tutorial from here for a "Production ready HLS" : https://docs.peer5.com/guides/production-ready-hls-vod/


This is my code :


subprocess.call(['ffmpeg', '-y', '-i', download_path,
 '-vf', 'scale=w=640:h=360:force_original_aspect_ratio=decrease', \
 '-c:a', 'aac', '-ar', '48000', '-c:v', 'h264', \
 '-profile:v', 'main', '-crf', '20', '-sc_threshold', '0', \
 '-g', '48', '-keyint_min', '48', '-hls_time', '4', \
 '-hls_playlist_type', 'vod', '-b:v', '800k', \
 '-maxrate', '856k', '-bufsize', '1200k', '-b:a', '96k', \
 '-hls_segment_filename', upload_path + \
 '/360p_%03d.ts', upload_path + '/360p.m3u8', \
 '-vf', 'scale=w=842:h=480:force_original_aspect_ratio=decrease', \
 '-c:a', 'aac', '-ar', '48000', '-c:v', 'h264', \
 '-profile:v', 'main', '-crf', '20', '-sc_threshold', '0', \
 '-g', '48', '-keyint_min', '48', '-hls_time', '4', \
 '-hls_playlist_type', 'vod', '-b:v', '1400k', \
 '-maxrate', '1498k', '-bufsize', '2100k', '-b:a', '128k', \
 '-hls_segment_filename', upload_path + \
 '/480p_%03d.ts', upload_path + '/480p.m3u8', \
 '-vf', 'scale=w=1280:h=720:force_original_aspect_ratio=decrease', \
 '-c:a', 'aac', '-ar', '48000', '-c:v', 'h264', \
 '-profile:v', 'main', '-crf', '20', '-sc_threshold', '0', \
 '-g', '48', '-keyint_min', '48', '-hls_time', '4', \
 '-hls_playlist_type', 'vod', '-b:v', '2800k', \
 '-maxrate', '2996k', '-bufsize', '4200k', '-b:a', '128k', \
 '-hls_segment_filename', upload_path + \
 '/720p_%03d.ts', upload_path + '/720p.m3u8', \
 '-vf', 'scale=w=1920:h=1080:force_original_aspect_ratio=decrease', \
 '-c:a', 'aac', '-ar', '48000', '-c:v', 'h264', \
 '-profile:v', 'main', '-crf', '20', '-sc_threshold', '0', \
 '-g', '48', '-keyint_min', '48', '-hls_time', '4', \
 '-hls_playlist_type', 'vod', '-b:v', '5000k', \
 '-maxrate', '5350k', '-bufsize', '7500k', '-b:a', '192k', \
 '-hls_segment_filename', upload_path + '/1080p_%03d.ts', upload_path + '/1080p.m3u8'])



And getting this output


[libx264 @ 0x7fb95500c800] width not divisible by 2 (639x360)
Error initializing output stream 0:0 -- Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height



Any ideas of whats going wrong ?