
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 (79)
-
Websites made with MediaSPIP
2 mai 2011, parThis page lists some websites based on MediaSPIP.
-
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 (...) -
Creating farms of unique websites
13 avril 2011, parMediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...)
Sur d’autres sites (9193)
-
Adding subtitles to video using Laravel FFMpeg
13 juin 2024, par Pieter van der MullenI've been trying to convert my console command to work with the Laravel FFMpeg package. The issue that I've been running into is that the available Filters are not really well documented.

This is the Laravel code that is not working. The only part that does not work is the last addFilter part with the srt and font file.


FFMpeg::fromDisk('local')
 ->open([$backgroundImage, $audioFile])
 ->export()
 ->toDisk('local')
 ->addFilter(function (FrameFilters $filters) {
 $filters->custom('scale=1920:1080');
 })
 ->addFormatOutputMapping(
 new X264,
 Media::make('local', $newVideoPath),
 ['0:v', '1:a']
 )
 ->addFilter(function ($filters) use ($srtFile, $fontFile) {
 $filter = "pad=1920:1080:0:0:color=black,subtitles={$srtFile}:force_style='Fontname={$fontFile},Alignment=10,Fontsize=36,BorderStyle=3,Outline=1,OutlineColour=&HFFFFFF&,PrimaryColour=&H008d7f00&'";
 $filters->custom('0:v', '0:v', $filter);
 })
 ->save();



The command which I used to use in the console using Symphony Process was :


'-vf', "pad=1920:1080:0:0:color=black,subtitles=$srtFile:si=0:force_style='Fontname=$fontFile,Alignment=10,Fontsize=36,BorderStyle=3,Outline=1,OutlineColour=&HFFFFFF&,PrimaryColour=&H008d7f00&'"



Is there anyone who has experience doing this ?


-
Different filesizes for images generated using octave and python
22 février 2017, par Lakshay GargI am using python (scikit-image) and octave to generate 200 images as follows
Python3
import numpy as np
from skimage.io import imsave
images = [255*np.ones((100,100), dtype=np.uint8), # white
np.zeros((100,100), dtype=np.uint8)] # black
for i in range(200): # save alternating black and white images
imsave('%04d.png'%(i+1), images[i%2])Octave
pkg load image;
im1 = 255*ones(100,100); # white
im2 = zeros(100,100); # black
for i=1:200
name = sprintf('%04d.png', i);
if mod(i,2) == 0
imwrite(im1, name);
else
imwrite(im2, name);
end
endNext, I use ffmpeg to generate two videos (alternating white and black frames) from these two sets of images using the following command
ffmpeg -r 10 -loglevel quiet \
-i ./%04d.png -c:v libx264 \
-preset ultrafast -crf 0 ./out.mkv-
Sizes of image files generated by both these codes are different.
- Octave white : 192 bytes, black : 98 bytes
- Python white : 120 bytes, black : 90 bytes
-
Sizes of video files generated from these octave and python images are significantly different from each other.
- Octave filesize : 60 kilobytes
- Python filesize : 116 kilobytes
Why do we have this apparently very strange behavior ?
EDIT
Since it was suggested that the behavior might be dues to octave and python using different bit-depths to store the images, I changes the octave code to use 8 bit numbers
im1 = uint8(255*ones(100,100)); # white
im2 = uint8(zeros(100,100)); # blackand now the image file sizes are nearly the same
- Octave white : 118 bytes, black : 90 bytes
- Python white : 120 bytes, black : 90 bytes
but the problem is still the same for video files, octave : 60K, python : 116K
-
-
Anomalie #3266 (Nouveau) : création d’un auteur et pipeline pre et post edition
10 septembre 2014, par Pierre MiquelA la création d’un auteur, les pipelines pre_ et post_edition renvoient dans l’array data statut_ancien=5poubelle.
Du coup, en passant par ces pipelines, on ne peut pas faire la différence entre la création d’un auteur et le fait de ’sortir’ un auteur de la poubelle :)Une solution serait de faire modifier le fichier /ecrire/action/editer_auteur.php, ligne #64
$champs[’statut’] = ’5poubelle’ ;
à
$champs[’statut’] = ’0’ ;
Du coup à la création d’un auteur, on aura statut_ancien=0 et donc que c’est n’est pas une action Instituer mais d’une création d’auteur.