
Recherche avancée
Autres articles (38)
-
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 (...) -
Support audio et vidéo HTML5
10 avril 2011MediaSPIP utilise les balises HTML5 video et audio pour la lecture de documents multimedia en profitant des dernières innovations du W3C supportées par les navigateurs modernes.
Pour les navigateurs plus anciens, le lecteur flash Flowplayer est utilisé.
Le lecteur HTML5 utilisé a été spécifiquement créé pour MediaSPIP : il est complètement modifiable graphiquement pour correspondre à un thème choisi.
Ces technologies permettent de distribuer vidéo et son à la fois sur des ordinateurs conventionnels (...) -
Librairies et binaires spécifiques au traitement vidéo et sonore
31 janvier 2010, parLes logiciels et librairies suivantes sont utilisées par SPIPmotion d’une manière ou d’une autre.
Binaires obligatoires FFMpeg : encodeur principal, permet de transcoder presque tous les types de fichiers vidéo et sonores dans les formats lisibles sur Internet. CF ce tutoriel pour son installation ; Oggz-tools : outils d’inspection de fichiers ogg ; Mediainfo : récupération d’informations depuis la plupart des formats vidéos et sonores ;
Binaires complémentaires et facultatifs flvtool2 : (...)
Sur d’autres sites (8545)
-
FFMPEG -User-Agent command not working on linux
4 janvier 2014, par user3145169I installed ffmpeg on my server through putty. Using these commands.
rpm -Uhv http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm
yum install ffmpeg ffmpeg-develAfter I tried to run this commmand.
ffmpeg -user-agent AppleTV/2.4 -i "http://mywebsite/mystream.mp4" -async 1 -r 21 -c:v libx264 -profile:v baseline -crf 27 -maxrate 900k -bufsize 1350k -g 42 -threads 1 -c:a libmp3lame -b:a 96k -ar 44100 -ac 2 -f flv "rtmp://mystreamhost/streamkey"
I am now getting error "unrecognized option -user-agent"
I want to set user agent because I let people connect directly to my stream with apple tv only - but I would still like to be able to spoof this connection, so I can restream to another flash host. Anybody see why I would be getting this error ? Maybe an old build of ffmpeg ? This command works from my windows desktop though, so I'm confused. Thanks.
-
HTML5 Video/Audio to Nodejs via Socket.io but with a twist - FFMPEG
9 janvier 2014, par user1840958I'm writing this very simple "skype clone". I tried a variety of other languages, python and layering over Node.js with Meteor, WebRTC, but Node.js+socket.io seems to be working the best and cleanest however I've hit a road block and I can't get it all to work correctly.
I have two issues,
1. I think I'm sending real data from the HTML5 getUserMedia, but I might not, and I don't know how to test or find out. I think that using, "video.src = window.URL.createObjectURL(stream) ;" makes the Blob stream an actual Data stream... but I don't know.This is my Broadcast.html
It's a very simple getUserMedia grab the camera and microphone... Then I connect to the Socket and on click of the Broadcast button, fires off the Emit to 'Join' and sends over the 'webcamstream' data.<video autoplay="autoplay" height="280"></video>
<button class="recordbutton">Broadcast</button>
<code class="echappe-js"><script language="javascript" type="text/javascript"><br />
var socket = io.connect(&#39;http://video.domain.com:3031&#39;);<br />
socket.on(&#39;connect&#39;, function() {<br />
$(&#39;#conversation&#39;).append(&#39;Connected <br />&#39;);<br />
});<br />
<br />
function onVideoFail(e) {<br />
console.log(&#39;webcam fail!&#39;, e);<br />
};<br />
<br />
function hasGetUserMedia() {<br />
return !!(navigator.getUserMedia || <br />
navigator.webkitGetUserMedia || <br />
navigator.mozGetUserMedia || <br />
navigator.msGetUserMedia);<br />
}<br />
<br />
if (hasGetUserMedia()) {<br />
alert(&#39;It is working...&#39;);<br />
} else {<br />
alert(&#39;getUserMedia() is not supported in your browser&#39;);<br />
}<br />
<br />
window.URL = window.URL || window.webkitURL;<br />
navigator.getUserMedia = navigator.getUserMedia || <br />
navigator.webkitGetUserMedia ||<br />
navigator.mozGetUserMedia || <br />
navigator.msGetUserMedia;<br />
<br />
var video = document.querySelector(&#39;video&#39;);<br />
var streamRecorder;<br />
var webcamstream;<br />
<br />
if (navigator.getUserMedia) {<br />
navigator.getUserMedia({audio: true, video: true}, function(stream) {<br />
video.src = window.URL.createObjectURL(stream);<br />
webcamstream = stream;<br />
}, onVideoFail);<br />
} else {<br />
alert (&#39;failed&#39;);<br />
}<br />
<br />
function startBroadcasting() {<br />
alert(&#39;Broadcast Now Clicked&#39;);<br />
console.log(webcamstream);<br />
socket.emit(&#39;join&#39;, webcamstream);<br />
socket.emit(&#39;echo&#39;, &#39;echo1 echo2 echo3 <br />&#39;);<br />
}<br />
<br />
socket.on(&#39;echo&#39;, function(data) {<br />
$(&#39;#conversation&#39;).append(data);<br />
}); <br />
</code></pre><br />
<br />
<p></p><br />
<br />
<p>This is the app.js<br />
2. What I&#39;m trying to do here is consume in the &#39;stream&#39; from the socket, but in it&#39;s place I have a test video to see if the FFMPEG is actually working. I&#39;m using <a href="https://github.com/schaermu/node-fluent-ffmpeg" rel="nofollow">https://github.com/schaermu/node-fluent-ffmpeg</a>.</p><br />
<br />
<p>When I run this test with my myth.mp4 file, I do get an out.avi however it&#39;s 0 bytes ??</p><br />
<br />
<pre><code>var express = require(&#39;express&#39;);<br />
var socket = require(&#39;socket.io&#39;);<br />
var ffmpeg = require(&#39;fluent-ffmpeg&#39;);<br />
var fs = require(&#39;fs&#39;);<br />
<br />
var app = express();<br />
<br />
app.configure(function(req, res){<br />
app.use(express.static(__dirname + &#39;/&#39;));<br />
});<br />
<br />
var server = app.listen(3031);<br />
var io = socket.listen(server);<br />
<br />
io.sockets.on(&#39;connection&#39;, function(socket) {<br />
socket.on(&#39;join&#39;, function(stream) {<br />
socket.stream = stream;<br />
socket.emit(&#39;echo&#39;, socket.stream + &#39;<br />&#39;);<br />
var proc = new ffmpeg({source:&#39;/srv/www/domain.com/video/red/myth.mp4&#39;})<br />
.withAspect(&#39;4:3&#39;)<br />
.withSize(&#39;640x480&#39;)<br />
.applyAutopadding(true, &#39;white&#39;)<br />
.saveToFile(&#39;/srv/www/domain.com/video/red/out.avi&#39;, function(retcode, error){<br />
socket.emit(&#39;echo&#39;, &#39;file has been converted succesfully <br />&#39;);<br />
});<br />
});<br />
socket.on(&#39;echo&#39;, function(data) {<br />
socket.emit(&#39;echo&#39;, data);<br />
});<br />
});<br />
</code></pre><br />
<br />
<p>I get no errors on Node Start up, I get no Errors on running. I do get a 0 Byte out.avi file freshly created every time I run this.</p><br />
<br />
<p>I have a linode VPS with CentOS/Nginx</p><br />
<br />
<p>node -v<br />
v0.10.21</p><br />
<br />
<p>FFMPEG<br />
ffmpeg version 1.2 Copyright (c) 2000-2013 the FFmpeg developers<br />
built on Nov 23 2013 17:43:13 with gcc 4.4.7 (GCC) 20120313 (Red Hat 4.4.7-3)<br />
configuration: --enable-version3 --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvpx --enable-libfaac --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libvo-aacenc --enable-libxvid --disable-ffplay --enable-shared --enable-gpl --enable-postproc --enable-nonfree --enable-avfilter --enable-pthreads --extra-cflags=-fPIC<br />
libavutil 52. 18.100 / 52. 18.100<br />
libavcodec 54. 92.100 / 54. 92.100<br />
libavformat 54. 63.104 / 54. 63.104<br />
libavdevice 54. 3.103 / 54. 3.103<br />
libavfilter 3. 42.103 / 3. 42.103<br />
libswscale 2. 2.100 / 2. 2.100<br />
libswresample 0. 17.102 / 0. 17.102<br />
libpostproc 52. 2.100 / 52. 2.100<br />
Hyper fast Audio and Video encoder<br />
usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}...</p><br />
<br />
<p>Thanks in advance for your help.</p> -
Anomalie #3506 : jeu de caractères (charset) d’une connexion SQL externe
15 septembre 2016, par RastaPopoulos ♥Idée : dans tous les fichiers connect/truc.php, générer un commentaire de doc juste avant l’appel à la fonction spip_connect_db(), comme ça tout le monde sait tout de suite ce qu’on peut y remplir, en ouvrant le fichier de connexion.
Parce que là j’ai trouvé de ticket/thread depuis une recherche Google, et je ne savais même pas que ce nouvel argument existait à la fin (on n’a que des ’’, ’’, ’’).