
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 (83)
-
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 (...) -
Automated installation script of MediaSPIP
25 avril 2011, parTo overcome the difficulties mainly due to the installation of server side software dependencies, an "all-in-one" installation script written in bash was created to facilitate this step on a server with a compatible Linux distribution.
You must have access to your server via SSH and a root account to use it, which will install the dependencies. Contact your provider if you do not have that.
The documentation of the use of this installation script is available here.
The code of this (...) -
Les formats acceptés
28 janvier 2010, parLes commandes suivantes permettent d’avoir des informations sur les formats et codecs gérés par l’installation local de ffmpeg :
ffmpeg -codecs ffmpeg -formats
Les format videos acceptés en entrée
Cette liste est non exhaustive, elle met en exergue les principaux formats utilisés : h264 : H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 m4v : raw MPEG-4 video format flv : Flash Video (FLV) / Sorenson Spark / Sorenson H.263 Theora wmv :
Les formats vidéos de sortie possibles
Dans un premier temps on (...)
Sur d’autres sites (6586)
-
Mjpeg recording with FFMPEG preserving time information
14 septembre 2012, par Muhammad Adeel ZahidI am recording the MJPEG video from an IP camera and saving it to a file but the problem is that file's duration is way smaller than the actual recording time. Its around 9 seconds video for 2 minutes recording. I tried following commands in order
ffmpeg -f mjpeg -r 8 -i http://c-cam.uchicago.edu/mjpg/video.mjpg -vcodec mpeg4 -b 1000000 -r 8 video_file.avi
Then I omitted the most of the flags and tried like this
ffmpeg -f mjpeg -i http://c-cam.uchicago.edu/mjpg/video.mjpg video_file.avi
But the problem is that the duration of recorded file is 9 seconds where as the actual recording time is around 2 minutes. I finally tried setpts filter that is supposed to insert the timestamps. The command is as follows
ffmpeg -f mjpeg -i http://c-cam.uchicago.edu/mjpg/video.mjpg -vf "setpts=1*PTS" video_file.avi
But result was still the same. Recording time was way more than video duration. How can I add presentational time stamps when recording from mjpeg source using ffmpeg ?
-
Using ffmpeg to extract webvtt (SRT) subtitles
4 mars 2021, par user15332104I am trying to extract SRT subtitles from the movies online with use of ffmpeg.
Unfortunately transmission drops after some segments, and there is no output SRT file


Any advice which switch use ? Anything else than ffmpeg would serve the purpose here ?


ffmpeg -i "https://rts-vod-amd.akamaized.net/ch/hls/11997514/8f3c162a-6224-3cac-8f47-788ef9fd24dc/index-f7.m3u8" -scodec srt berry_subs.srt


(Actual movie : https://www.rts.ch/play/tv/telefilm/video/meurtres-en-berry?urn=urn:rts:video:11997514)


ffmpeg -i "https://rts-vod-amd.akamaized.net/ch/hls/12003885/cd6616a8-b1bc-39f8-b900-53ab628eba9e/index-f7.m3u8" -scodec srt mlh_subs.srt


(Actual movie : https://www.rts.ch/play/tv/telefilm/video/meurtres-a-mulhouse?urn=urn:rts:video:12003885 )


-
softsubs with attached fonts to hardsubs
4 septembre 2013, par XZSWhen I have softsubs (subtitle saved as *.ass or other text format) with fonts attached in the video file, I use a pipeline like this to encode them to hardsubs (subs burnt into the video image).
First, extract the subtitles from the container.
ffmpeg -i video.mkv -map 0:s sub.ass
Then, install the fonts locally, so that fontconfig finds them there when encoding. To be able to clean up more easily later on, put them in a directory.
mkdir ~/.fonts/tmp
cd ~/.fonts/tmp
ffmpeg -dump_attachment:t '' -i /path/to/video.mkv
cd - # back to originThe actual encoding follows.
ffmpeg -i video.mkv -filter:v ass=sub.ass \
[some other encoding & quality options] \
-map 0:v -map 0:a out.mkv # actual encodingAnd some cleanup at the end.
rm -r sub.ass ~/.fonts/tmp # clean up
A lengthy and messy process with many temporary files, particularly because of fontconfig, which only looks for fonts into some very certain directories. Is there a possibility to omit subtitle or font extraction and use them directly from the container, perhaps with a complex filtergraph.
Or can fontconfig at least be directed to look for fonts in the current working directory just for the encoding call ? I was thinking of something along the lines of
FONTCONFIG_SEARCH_PATH=.:$FONTCONFIG_SEARCH_PATH ffmpeg ...
but could only find configuration files that change the fontconfig search path for all applications.