
Recherche avancée
Médias (2)
-
SPIP - plugins - embed code - Exemple
2 septembre 2013, par
Mis à jour : Septembre 2013
Langue : français
Type : Image
-
Publier une image simplement
13 avril 2011, par ,
Mis à jour : Février 2012
Langue : français
Type : Video
Autres articles (63)
-
Gestion générale des documents
13 mai 2011, parMédiaSPIP ne modifie jamais le document original mis en ligne.
Pour chaque document mis en ligne il effectue deux opérations successives : la création d’une version supplémentaire qui peut être facilement consultée en ligne tout en laissant l’original téléchargeable dans le cas où le document original ne peut être lu dans un navigateur Internet ; la récupération des métadonnées du document original pour illustrer textuellement le fichier ;
Les tableaux ci-dessous expliquent ce que peut faire MédiaSPIP (...) -
Des sites réalisés avec MediaSPIP
2 mai 2011, parCette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page. -
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 (...)
Sur d’autres sites (5238)
-
PHP FFMPEG - Convert .mov to .mp4 (H264)
5 novembre 2019, par AlexI’ve recently installed the PHP-FFMpeg lib on a server and used the following tutorial :
https://github.com/PHP-FFMpeg/PHP-FFMpegI managed to convert a .mov video (uploaded through a mobile device) to webm and ogg but when encoding to mp4 I always get an "Encoding Failed" message from the error object (in a try catch).
This is the code I’m using after instantiating FFMPEG
$video->filters()->resize(new FFMpeg\Coordinate\Dimension(756, 461), $mode = RESIZEMODE_SCALE_WIDTH)->synchronize();
$video->frame(FFMpeg\Coordinate\TimeCode::fromSeconds(10))->save('sites/default/files/videos/thumbnails/'.$filename.'.jpg');
$video->save(new FFMpeg\Format\Video\Ogg(), 'sites/default/files/videos/'.$filename.'.ogg')
->save(new FFMpeg\Format\Video\X264(), 'sites/default/files/videos/'.$filename.'.mp4')
->save(new FFMpeg\Format\Video\WebM(), 'sites/default/files/videos/'.$filename.'.webm');Thanks for your help !
-
YUV values for a given macroblock in an AVFrame
10 avril 2019, par EnockI am trying to find the pixels value for a given macroblock in a frame.
What I did is the following ://for all macroblock in this frame
mb_height and mb_width are the number of macroblock horizontally and
vertically in the frame
for(int mby=0; mby/Now for this 16x16 macroblock
16 is the dimension of the macroblock (16x16 macroblock)
for(int y=0; y<16;y++)
{
for(int x=0; x<16;x++)
{
//All pixels YUV value for this macroblock
y = data[0][linesize[0]*y+x];
u = data[1][linesize[1]*(y/2)+x/2]
v = data[2][linesize[2]*(y/2)+x/2]
}
}
#Let's go to an other macroblock
}
}The problem is that for all macroblocks, I have the same
Y
,u
andv
value. That’s is true because I only use the same width and height for every macroblock.
My question is to know how can I put difference in the above code to find pixels yuv value for each macroblock in this frame.Perhaps I must use macroblock’s coordinate (MBX, MBY) or associated motion vector’s coordinate(mvx, mvy) to have this difference but I don’t know how to do so. The mbx and mby in the above loop are not mocroblock’s coordinate but integers for the loop.
I need your help, please. -
Capture video using FFMPEG without frozen image effect
27 juillet 2020, par NehemiaAnyone could help me ? Have been trying to record video from an RTSP server using FFMPEG but somehow the video result has many frozen images (couldn't be used for any people detection) - the people look similar to this :




Here is the code I used :





ffmpeg -i rtsp ://10.10.10.10/encoder1 -b:v 1024k -s 640x480 -an -t 60 -r 12.5 output.mp4





What I have done so far ?
- Recorded the video in smaller dimension instead of original one
- No audio and lower FPS
- Even only record from two IP sources on a machine



But still didn't get any luck yet. Anyone ever experience this ?