
Recherche avancée
Médias (1)
-
Collections - Formulaire de création rapide
19 février 2013, par
Mis à jour : Février 2013
Langue : français
Type : Image
Autres articles (33)
-
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 (5134)
-
Create Video Thumbnail of All Files in a Directory via FFmpeg and PHP
2 février 2012, par Hashid HameedI have searched all over the Google and StackOverFlow, but still did not find a solution for this.
I want to generate video thumbnail of all mp4 video files in a directory and name the thumbnails as "filename.mp4".jpg
I have ffmpeg and ffmpeg-php installed on my server. I also succeeded in creating thumbnails of one file at a time.
So this is the situation, I have a directory named uploads which has lots of mp4 videos.
Now, when I run the script, thumbnail of size 100x100 shoud be created automatically and placed in another folder "skrin". Eg : xxx.mp4 should have xxx.mp4.jpg has the thumb name.IMPORTANT : My filenames have spaces, single quotes, brackets etc in their file names. So the script should be able to handle this.
Could some one help me ? I use the following shell command in php using exec to generate thumb of an individual video.
exec("/usr/local/bin/ffmpeg -itsoffset -105 -i 'xxx haha.mp4' -vcodec mjpeg -vframes 1 -an -f rawvideo -s 100x100 'xxx haha.mp4.jpg'");
-
ffmpeg draw text filter - Invalid argument when sending url as a text
2 novembre 2017, par emanaltalI’m trying to write a ffmpeg command to live stream a .ts file & write the same url as text overlay through python subprocess
subprocess.call(’ffmpeg -i %s -vframes 1 -q:v 1 -vf "scale=720:480" -vf drawtext="fontfile=/usr/share/fonts/truetype/freefont/FreeSerif.ttf : text=%s : x=500 :y=500" %s.jpg -hide_banner’%(url,url,filename),shell = True)
URL example : http://orbitiptv.com:2500/live/99068566091761/99068566091761/6587.ts
I get an error
Error reinitializing filters !
Failed to inject frame into filter network : Invalid argumentThe issue is related to url having special characters, when i run it directly in cmd i can skip : with \
but how to implement that with python ? -
Bash script : Cycle script until ffmpeg command restarts successfully
13 août 2023, par BellacodaI have a IP Camera and the recordings are saved with ffmpeg RTSP into a raspberry pi.


Sometimes, when the electricity shuts off and comes back on, the raspberry boots faster than the IP Camera and the ffmpeg command (saved on a crontab to run every reboot) fails to execute because it can't reach the IP Camera (that is still turning on).


I tried to put a sleep command before the command but that doesn't work either.


It also happened that when the IP Camera reboots, the raspberry closes the command, but when the camera comes back online, I have to manually lauch the command.


Is there a way to make a script that waits to run the ffmpeg command until the camera is fully online (I assume with the $ ? variable for command exit status), and to wait to restart the ffmpeg command when the camera reboots ?


The setup I have now is a crontab :
SHELL=/bin/bash
@reboot sleep 120s ; sudo ffmpeg ...