
Recherche avancée
Autres articles (73)
-
MediaSPIP 0.1 Beta version
25 avril 2011, parMediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
The zip file provided here only contains the sources of MediaSPIP in its standalone version.
To get a working installation, you must manually install all-software dependencies on the server.
If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...) -
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 (...) -
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 (13002)
-
FFMPEG sidechaincompress not working as it should ?
23 octobre 2017, par TaapoI have been trying to get sidechaining to work with FFMPEG, but my complex filter skills are lacking.
I’m running two aif files into ffmpeg, hoping the voice would "duck" the background music when the voice-over is speaking. But I get an error with this command-line (on Windows, with latest FFMPEG binary) :
ffmpeg.exe -i temp_music.aif -i temp_voice.aif \
-filter_complex "[1:a]asplit=2[sc][mix];[0:a] \
[sc]sidechaincompress=threshold=0.1:ratio=5[bg]; \
[bg][mix]amerge[final]" -map [final] final.mp3Everything decodes fine :
ffmpeg version N-87353-g183fd30 Copyright (c) 2000-2017 the FFmpeg developers
built with gcc 7.2.0 (GCC)
configuration: --enable-gpl --enable-version3 --enable-cuda --enable-cuvid --enable-d3d11va --enable-dxva2 --enable-libmfx --enable-nvenc --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib
libavutil 55. 76.100 / 55. 76.100
libavcodec 57.106.101 / 57.106.101
libavformat 57. 82.101 / 57. 82.101
libavdevice 57. 8.101 / 57. 8.101
libavfilter 6.105.100 / 6.105.100
libswscale 4. 7.103 / 4. 7.103
libswresample 2. 8.100 / 2. 8.100
libpostproc 54. 6.100 / 54. 6.100
Guessed Channel Layout for Input Stream #0.0 : stereo
Input #0, aiff, from 'temp_music.aif':
Duration: 00:01:26.68, start: 0.000000, bitrate: 1536 kb/s
Stream #0:0: Audio: pcm_s16be, 48000 Hz, stereo, s16, 1536 kb/s
Guessed Channel Layout for Input Stream #1.0 : stereo
Input #1, aiff, from 'temp_voice.aif':
Duration: 00:01:26.68, start: 0.000000, bitrate: 1536 kb/s
Stream #1:0: Audio: pcm_s16be, 48000 Hz, stereo, s16, 1536 kb/s
Output with label 'final' does not exist in any defined filter graph, or was already used elsewhere.But then I receive an error :
Output with label ’final’ does not exist in any defined filter graph,
or was already used elsewhere.Anybody knows why ?
-
Anomalie #2142 (Nouveau) : Balise #SET - espace ajouté lors de l’affectation d’une variable
1er juillet 2011, par Severo LipariLe code suivant : #SETtoto, a "#GETtoto" rend "a " J’imagine que ca serait mieux si ca rendait "a" sans espace final...
-
How can I save local video file to django FileField ?
11 janvier 2021, par Nina deRossiI create a local video file (.mp4) by adding a logo to an existing video with the following code :


logo_path = os.path.join(MEDIA_ROOT, 'logo.png')

 logo = (mp.ImageClip(logo_path)
 .set_duration(video.duration)
 .resize(height=50) # if you need to resize...
 .margin(right=8, top=8, opacity=0) # (optional) logo-border padding
 .set_pos(("right", "top")))

 video_path = os.path.join(MEDIA_ROOT, 'test7.mp4')
 audio_path = os.path.join(MEDIA_ROOT, 'temp-audio.m4a')

 final = mp.CompositeVideoClip([video, logo])
 final.write_videofile(video_path, codec='libx264',
 audio_codec='aac',
 temp_audiofile=audio_path,
 remove_temp=True
 )



I want to save the new video to a FileField of my model.
Here is the code :


f = open(video_path)
 flick.videoWithWatermark.save("videoWithWaterMark.mp4", File(f))



I keep getting the error :
'ascii' codec can't decode byte 0xd1 in position 42 : ordinal not in range(128)


How can I save the video to a FileField ?