
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 (74)
-
Les autorisations surchargées par les plugins
27 avril 2010, parMediaspip core
autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs -
Personnaliser les catégories
21 juin 2013, parFormulaire de création d’une catégorie
Pour ceux qui connaissent bien SPIP, une catégorie peut être assimilée à une rubrique.
Dans le cas d’un document de type catégorie, les champs proposés par défaut sont : Texte
On peut modifier ce formulaire dans la partie :
Administration > Configuration des masques de formulaire.
Dans le cas d’un document de type média, les champs non affichés par défaut sont : Descriptif rapide
Par ailleurs, c’est dans cette partie configuration qu’on peut indiquer le (...) -
Encoding and processing into web-friendly formats
13 avril 2011, parMediaSPIP automatically converts uploaded files to internet-compatible formats.
Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
All uploaded files are stored online in their original format, so you can (...)
Sur d’autres sites (12022)
-
Anomalie #1461 : typographie : mieux gérer les espaces insécables nbsp et autres caractères typo (...
11 février 2021, par cedric -cf aussi #3761
-
Anomalie #4354 : Problème de recherche REGEX sur la recherche multiterme, c’est la merde
8 mars 2021, par cedric -voir aussi #4688
-
ffserver streams webm data, but nothing is displayed
2 novembre 2015, par Daniël BakkerI’m trying to stream webcam data over the internet on a lubuntu machine. To achieve this, I’ve installed ffmpeg and ffserver. However, I can’t seem to get this to work.
I would like to use the webm format to integrate it as an HTML5 video. I found several examples of this on the internet, so that is where I based my settings on. This is the ffserver config I have at the moment :HTTPPort 8090 # Port to bind the server to
HTTPBindAddress 0.0.0.0
MaxHTTPConnections 2000
MaxClients 1000
MaxBandwidth 10000 # Maximum bandwidth per client
# set this high enough to exceed stream bitrate
CustomLog -
#NoDaemon # Remove this if you want FFserver to daemonize after start
<feed> # This is the input feed where FFmpeg will send
File ./feed1.ffm # video stream.
FileMaxSize 5M # Maximum file size for buffering video
ACL allow 127.0.0.1 # Allowed IPs
</feed>
<stream> # Output stream URL definition
Feed feed1.ffm # Feed from which to receive video
Format webm
# Audio settings
#AudioCodec vorbis
#AudioBitRate 64 # Audio bitrate
NoAudio
# Video settings
VideoCodec libvpx
VideoSize 640x480 # Video resolution
VideoFrameRate 2 # Video FPS
AVOptionVideo flags +global_header # Parameters passed to encoder
# (same as ffmpeg command-line parameters)
#AVOptionVideo cpu-used 0
AVOptionVideo qmin 1
AVOptionVideo qmax 42
#AVOptionVideo quality good
AVOptionAudio flags +global_header
#PreRoll 1
#StartSendOnKey
VideoBitRate 400 # Video bitrate
</stream>
<stream> # Server status URL
Format status
# Only allow local people to get the status
ACL allow localhost
ACL allow 192.168.0.0 192.168.255.255
</stream>
<redirect> # Just an URL redirect for index
# Redirect index.html to the appropriate site
URL http://www.ffmpeg.org/
</redirect>I put the FPS at 2 seconds, pretty much the maximum the computer I’m using can achieve is 4 for some reason. I then start ffmpeg with the following command :
ffmpeg -f video4linux2 -s 640x480 -r 2 -i /dev/video0 -c:v libvpx http://localhost:8090/feed1.ffm.
The input is a standard UVC webcam that wprks properly (tested with cheese), ffmpeg seems to work (setting a file as ouput works properly) and the link to ffserver seems to work, the two programs regocnize each other. If an application requests the ffserver stream, it does receive data. wget for example results in a file of the size you would expect with the given bitrate. However, opening the stream in a webpage does not work.
I tried it in two ways : simply browsing to the webm link. firefox indicates it’s receiving some data, but nothing is displayed. ffserver also indicates that a normal amount of data is transferred. The second option I tried was webpage with video tags for the video stream :<video with="640" height="480" autoplay="autoplay">
<source src="http://localhost:8090/camera1.webm" type="video/webm">
</source></video>but this works neither.
Who has any idea where I went wrong ?