
Recherche avancée
Médias (2)
-
Exemple de boutons d’action pour une collection collaborative
27 février 2013, par
Mis à jour : Mars 2013
Langue : français
Type : Image
-
Exemple de boutons d’action pour une collection personnelle
27 février 2013, par
Mis à jour : Février 2013
Langue : English
Type : Image
Autres articles (42)
-
HTML5 audio and video support
13 avril 2011, parMediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
For older browsers the Flowplayer flash fallback is used.
MediaSPIP allows for media playback on major mobile platforms with the above (...) -
Support audio et vidéo HTML5
10 avril 2011MediaSPIP utilise les balises HTML5 video et audio pour la lecture de documents multimedia en profitant des dernières innovations du W3C supportées par les navigateurs modernes.
Pour les navigateurs plus anciens, le lecteur flash Flowplayer est utilisé.
Le lecteur HTML5 utilisé a été spécifiquement créé pour MediaSPIP : il est complètement modifiable graphiquement pour correspondre à un thème choisi.
Ces technologies permettent de distribuer vidéo et son à la fois sur des ordinateurs conventionnels (...) -
Activation de l’inscription des visiteurs
12 avril 2011, parIl est également possible d’activer l’inscription des visiteurs ce qui permettra à tout un chacun d’ouvrir soit même un compte sur le canal en question dans le cadre de projets ouverts par exemple.
Pour ce faire, il suffit d’aller dans l’espace de configuration du site en choisissant le sous menus "Gestion des utilisateurs". Le premier formulaire visible correspond à cette fonctionnalité.
Par défaut, MediaSPIP a créé lors de son initialisation un élément de menu dans le menu du haut de la page menant (...)
Sur d’autres sites (8604)
-
Find/extract the frames which are different in two videos
24 novembre 2022, par GreendrakeI have two H.264 video files roughly 30GB each, with 256291 frames in each. Most, if not all, frames in the 1st video appear identical to their counterparts in the 2nd video. That said, the video content is seemingly almost (maybe completely) identical.


The raw H.264 streams extracted from the video files are actually supposed to be identical but they are not : one is bigger than the other by about 2MB. So, it seems like there ought to be some differences in the picture somewhere.


I have used the following command to extract a frame each 0.5s from the files and then compared the frames' md5 hashes. All 21356 frame files extracted from the first video exactly match their counterparts from the second video.


for i in {0..21356} ; do ffmpeg -hide_banner -loglevel error -accurate_seek -ss `echo $i*0.5 | bc` -i video.mp4 -frames:v 1 frames/period_down_$i.bmp ; done



So, the odds that the video is anyhow different are low. But not 0% chance as the one or a few different frames could just fall outside of the 0.5s picks that I tried.


Is there any smart way to find/extract the diffing frames only ?


I could extract all frames and compare them but that's not smart at all and would take lots of time / disk space.


-
How to use custom function to calculate 'x' in ffmpeg crop
17 septembre 2016, par Sasha Kastsiushkinffmpeg docs have this example :
crop=in_w/2:in_h/2:(in_w-out_w)/2+((in_w-out_w)/2)*sin(n/10):(in_h-out_h)/2 +((in_h-out_h)/2)*sin(n/7)
To make it simpler, I will use named params and only affect output width and position
x
crop=w=in_w/3:x=(in_w-out_w)/2+((in_w-out_w)/2)*sin(n/10)
The result will be the video that is 3 times shorter than original and it will ’float’ along the
x
axis thanks to that sin(n/10) function. x is evaluated for each frame and n(number of the input frame) will increase and change the x position dynamically.I’m trying to create a custom function, which will take
n
ort
and based on it return some value of x.Please help me or perhaps this is not possible. I was trying to create a small bash script, which will do so unsuccessfully.
Thank you
-
FFMpegCore .Net cuts off the fist few ( 1.5) seconds of audio
28 mai 2024, par TimI want to use FFMpegCore to convert some audio files to raw pcm. I noticed that this always cuts off 1.5 seconds of my audio from the start. I check my input stream, saved it to HD all good. If use it from cli with the same arguments everything seem fine. I tried -ss 0, no luck. This behavior is observed with .wav (RIFF (little-endian) data, WAVE audio, Microsoft PCM, 16 bit, stereo 44100 Hz), same issue with different sample rate. I tested mp3 works fine.


public async Task<memorystream> ConvertToPcmStreamAsync(Stream inputStream)
{
 var outputStream = new MemoryStream();
 
 var audioInput = new StreamPipeSource(inputStream);
 var audioOutput = new StreamPipeSink(outputStream);

 await FFMpegArguments
 .FromPipeInput(audioInput)
 .OutputToPipe(audioOutput, options => options
 .WithCustomArgument("-ss 0 -f s16le -acodec pcm_s16le -ac 1"))
 .ProcessAsynchronously();

 // Reset the position of the memory stream to the beginning
 outputStream.Position = 0;

 return outputStream;
}
</memorystream>