
Recherche avancée
Médias (29)
-
#7 Ambience
16 octobre 2011, par
Mis à jour : Juin 2015
Langue : English
Type : Audio
-
#6 Teaser Music
16 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
-
#5 End Title
16 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
-
#3 The Safest Place
16 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
-
#4 Emo Creates
15 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
-
#2 Typewriter Dance
15 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
Autres articles (26)
-
Support de tous types de médias
10 avril 2011Contrairement à beaucoup de logiciels et autres plate-formes modernes de partage de documents, MediaSPIP a l’ambition de gérer un maximum de formats de documents différents qu’ils soient de type : images (png, gif, jpg, bmp et autres...) ; audio (MP3, Ogg, Wav et autres...) ; vidéo (Avi, MP4, Ogv, mpg, mov, wmv et autres...) ; contenu textuel, code ou autres (open office, microsoft office (tableur, présentation), web (html, css), LaTeX, Google Earth) (...)
-
Emballe médias : à quoi cela sert ?
4 février 2011, parCe plugin vise à gérer des sites de mise en ligne de documents de tous types.
Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ; -
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 (6613)
-
Revision 45367 : [source:_plugins_/step Step]. Deux déclarations conditionnelles pour ...
13 mars 2011, par esj@… — LogStep. Deux déclarations conditionnelles pour pouvoir essayer Step en SPIP 2.2.
-
Revision 45367 : [source:_plugins_/step Step]. Deux déclarations conditionnelles pour ...
13 mars 2011, par esj@… — LogStep. Deux déclarations conditionnelles pour pouvoir essayer Step en SPIP 2.2.
-
How to I increase IO buffer size in Crystal ?
28 avril 2017, par timurI have an
IO
class that will send data it receives across all connected web sockets. The data is received from aProcess
call running anFFMPEG
command. The class is as so :class FfmpegBinaryIO
include IO
def initialize(@sockets = [] of HTTP::WebSocket)
end
def read(slice : Bytes)
raise "FfmpegBinaryIO does not support reads"
end
def write(slice : Bytes)
@sockets.each { |socket| socket.send Base64.encode(slice) }
end
endThe
write
function will iterate the array of sockets I pass and send the chunks encoded inbase64
. The chunks are received by using the followingProcess
call wherebinary_output
is an instance of theFfmpegBinaryIO
class :spawn do
Process.run(command: ffmpeg_command, output: binary_output, error: ffmpeg, shell: true)
endThe class is working as it should and I am able to display the chunks using the following Javascript code :
const img = document.getElementById('view')
const ws = new WebSocket('ws://127.0.0.1:8080/ffmpeg')
ws.onmessage = msg => {
console.dir(msg)
view.src = `data:image/jpeg;base64,${msg.data}`
}However, the frames appear to be cut in half when displayed and it skips every other frames, presumably because the data is corrupted. What I found out when writing the same
Bytes
to JPG files is that chunks would be incomplete and as such every other file written was corrupted.This is not the kind of behavior I experienced when using a similar approach in other programming languages. My hypothesis is that chunks are being cut due a buffer size limit imposed. Is there any way I can have every
write
call represent a single frame chunk from FFMPEG by increasing this hypothetical buffer size ?UPDATE
My suspicions are right that this has to do with the size of slices that the
FfmpegBinaryIO
receives. I tried modifying the FFMPEG command to reduce the output byte size by reducing the scaling as so :ffmpeg_command = "ffmpeg -i /dev/video0 -framerate 6 -vf scale=320:240 -r 24 -qscale:v 35 -updatefirst 1 -f image2 -y pipe:1"
Where previously the command I used did not include the
-vf scale=320:240
option.