
Recherche avancée
Médias (1)
-
The Great Big Beautiful Tomorrow
28 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Texte
Autres articles (24)
-
Websites made with MediaSPIP
2 mai 2011, parThis page lists some websites based on MediaSPIP.
-
Changer son thème graphique
22 février 2011, parLe thème graphique ne touche pas à la disposition à proprement dite des éléments dans la page. Il ne fait que modifier l’apparence des éléments.
Le placement peut être modifié effectivement, mais cette modification n’est que visuelle et non pas au niveau de la représentation sémantique de la page.
Modifier le thème graphique utilisé
Pour modifier le thème graphique utilisé, il est nécessaire que le plugin zen-garden soit activé sur le site.
Il suffit ensuite de se rendre dans l’espace de configuration du (...) -
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 (...)
Sur d’autres sites (5810)
-
Imagick refresh
25 septembre 2013, par Mikko Koppanen — ImagickAfter some hiatus I’ve been getting back on fixing bugs on Imagick and getting the code into more representable condition. This hiatus has been a result of busy work schedule and getting a new start-up running in Kuala Lumpur.
While fixing a bug related to clone keyword I came across the following resource : http://www.rubblewebs.co.uk/imagick/. The page contains quite a nice collection of Imagick operations and is definitely worth checking out.
On the other news, the development has been moved to Github. As I’ve been the most active developer of Imagick in the past years I decided to move the code to Github where rest of my projects are located : https://github.com/mkoppanen/imagick. For the past few days there has been quite a lot of development, mainly working on removing the excessive use of macros in the code to make things more readable and debuggable. This might be a good place to give thanks to Remi for fixing quite a lot of compile warnings and raising bugs regarding Fedora Packaging Policy. Most likely there will be a couple of beta releases in the near future.
As mentioned in the previous post Windows builds are now available via http://windows.php.net and my builds provided here should be considered obsolete.
-
Combining mp4 with wav in python
3 janvier 2021, par SaladHeadI am trying to combine a .mp4 file with a .wav file. I am rendering my mp4 with cv2 videowriter, and I don't think it has anyway of incorporating audio with it. I have tried moviepy.editor, and ffmpeg. moviepy.editor kept messing up the video file and ffmpeg repeatedly kept giving me an error that it couldn't edit existing files in-place. Combining .mp4 with another audio file type is also fine, but if so it would be nice to also answer how to convert midi files to the file type you answered with. Thanks for the help !


moviepy.editor workflow :


video = mpe.VideoFileClip(mp4_path)
os.system(f"timidity {midi_path} -Ow -o {wav_path)}") # Convert .mid to .wav
video = video.set_audio(mpe.AudioFileClip(wav_path))
video.write_videofile(mp4_path, fps=fps)



ffmpeg workflow :


video = ffmpeg.input(mp4_path)
os.system(f"timidity {midi_path} -Ow -o {wav_path)}") # Convert .mid to .wav
audio = ffmpeg.input(wav_path)
video = ffmpeg.output(video, audio, path, vcodec='copy', acodec='aac', strict='experimental')
ffmpeg.run(video)



-
How to set the highest bit rate to a flac output on Pydub ?
16 septembre 2023, par Átila Gama SilvaI've trying to change the format of all my pack samples, from .WAV to FLAC. I made a script that checks all the subdirectories and finds file paths (WAV files specifically), and after find, it uses Pydub to convert the files. The problem is that the FLAC output bit rate is too smaller than the WAV file. My code below :



import os

import tnt # My library to get subdirectories
from pydub import AudioSegment

__all__ = ['convert', 'convert_all']


def convert(file_path, remove=False):
 file = AudioSegment.from_wav(file_path)

 # Parameters should be passed here, but I really don't know how to keep
 # the highest bit rate possible according with the input file bit depth.
 # By Default the output bit rate is about 300 kb/s.
 file.export(file_path.replace('.wav', '.flac'), format='flac')

 if remove:
 os.remove(file_path)


def convert_all(root_path, remove=False):
 file_names = tnt.DirWalker(root_path).get_file_names()

 for f in file_names:
 if f.endswith('.wav'):
 convert(f, remove)




Please, a command to put on
os.system('ffmpeg -i "input.wav" "output.flac"')
to get highest bit rate possible according with the original file bit depth would be nice too.