Recherche avancée

Médias (1)

Mot : - Tags -/copyleft

Autres articles (34)

  • Les thèmes de MediaSpip

    4 juin 2013

    3 thèmes sont proposés à l’origine par MédiaSPIP. L’utilisateur MédiaSPIP peut rajouter des thèmes selon ses besoins.
    Thèmes MediaSPIP
    3 thèmes ont été développés au départ pour MediaSPIP : * SPIPeo : thème par défaut de MédiaSPIP. Il met en avant la présentation du site et les documents média les plus récents ( le type de tri peut être modifié - titre, popularité, date) . * Arscenic : il s’agit du thème utilisé sur le site officiel du projet, constitué notamment d’un bandeau rouge en début de page. La structure (...)

  • Dépôt de média et thèmes par FTP

    31 mai 2013, par

    L’outil MédiaSPIP traite aussi les média transférés par la voie FTP. Si vous préférez déposer par cette voie, récupérez les identifiants d’accès vers votre site MédiaSPIP et utilisez votre client FTP favori.
    Vous trouverez dès le départ les dossiers suivants dans votre espace FTP : config/ : dossier de configuration du site IMG/ : dossier des média déjà traités et en ligne sur le site local/ : répertoire cache du site web themes/ : les thèmes ou les feuilles de style personnalisées tmp/ : dossier de travail (...)

  • Contribute to translation

    13 avril 2011

    You can help us to improve the language used in the software interface to make MediaSPIP more accessible and user-friendly. You can also translate the interface into any language that allows it to spread to new linguistic communities.
    To do this, we use the translation interface of SPIP where the all the language modules of MediaSPIP are available. Just subscribe to the mailing list and request further informantion on translation.
    MediaSPIP is currently available in French and English (...)

Sur d’autres sites (8506)

  • avformat/ilbc : Use av_get_packet

    3 février 2021, par Andreas Rheinhardt
    avformat/ilbc : Use av_get_packet
    

    Signed-off-by : Andreas Rheinhardt <andreas.rheinhardt@outlook.com>

    • [DH] libavformat/ilbc.c
  • HTML5 Video/Audio to Nodejs via Socket.io but with a twist - FFMPEG

    9 janvier 2014, par user1840958

    I'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">&lt;script language=&quot;javascript&quot; type=&quot;text/javascript&quot;&gt;<br />
    var socket = io.connect(&amp;#39;http://video.domain.com:3031&amp;#39;);<br />
    socket.on(&amp;#39;connect&amp;#39;, function() {<br />
     $(&amp;#39;#conversation&amp;#39;).append(&amp;#39;Connected &lt;br /&gt;&amp;#39;);<br />
    });<br />
    <br />
    function onVideoFail(e) {<br />
     console.log(&amp;#39;webcam fail!&amp;#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(&amp;#39;It is working...&amp;#39;);<br />
    } else {<br />
     alert(&amp;#39;getUserMedia() is not supported in your browser&amp;#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(&amp;#39;video&amp;#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 (&amp;#39;failed&amp;#39;);<br />
    }<br />
    <br />
    function startBroadcasting() {<br />
       alert(&amp;#39;Broadcast Now Clicked&amp;#39;);<br />
       console.log(webcamstream);<br />
       socket.emit(&amp;#39;join&amp;#39;, webcamstream);<br />
       socket.emit(&amp;#39;echo&amp;#39;, &amp;#39;echo1 echo2 echo3 &lt;br /&gt;&amp;#39;);<br />
    }<br />
    <br />
    socket.on(&amp;#39;echo&amp;#39;, function(data) {<br />
       $(&amp;#39;#conversation&amp;#39;).append(data);<br />
    }); <br />
    &lt;/code&gt;&lt;/pre&gt;<br />
    <br />
    &lt;p&gt;&lt;/p&gt;<br />
    <br />
    &lt;p&gt;This is the app.js<br />
    2. What I&amp;#39;m trying to do here is consume in the &amp;#39;stream&amp;#39; from the socket, but in it&amp;#39;s place I have a test video to see if the FFMPEG is actually working. I&amp;#39;m using &lt;a href=&quot;https://github.com/schaermu/node-fluent-ffmpeg&quot; rel=&quot;nofollow&quot;&gt;https://github.com/schaermu/node-fluent-ffmpeg&lt;/a&gt;.&lt;/p&gt;<br />
    <br />
    &lt;p&gt;When I run this test with my myth.mp4 file, I do get an out.avi however it&amp;#39;s 0 bytes ??&lt;/p&gt;<br />
    <br />
    &lt;pre&gt;&lt;code&gt;var express = require(&amp;#39;express&amp;#39;);<br />
    var socket = require(&amp;#39;socket.io&amp;#39;);<br />
    var ffmpeg = require(&amp;#39;fluent-ffmpeg&amp;#39;);<br />
    var fs = require(&amp;#39;fs&amp;#39;);<br />
    <br />
    var app = express();<br />
    <br />
    app.configure(function(req, res){<br />
       app.use(express.static(__dirname + &amp;#39;/&amp;#39;));<br />
    });<br />
    <br />
    var server = app.listen(3031);<br />
    var io = socket.listen(server);<br />
    <br />
    io.sockets.on(&amp;#39;connection&amp;#39;, function(socket) {<br />
       socket.on(&amp;#39;join&amp;#39;, function(stream) {<br />
           socket.stream = stream;<br />
           socket.emit(&amp;#39;echo&amp;#39;, socket.stream + &amp;#39;&lt;br /&gt;&amp;#39;);<br />
           var proc = new ffmpeg({source:&amp;#39;/srv/www/domain.com/video/red/myth.mp4&amp;#39;})<br />
               .withAspect(&amp;#39;4:3&amp;#39;)<br />
               .withSize(&amp;#39;640x480&amp;#39;)<br />
               .applyAutopadding(true, &amp;#39;white&amp;#39;)<br />
               .saveToFile(&amp;#39;/srv/www/domain.com/video/red/out.avi&amp;#39;, function(retcode, error){<br />
                   socket.emit(&amp;#39;echo&amp;#39;, &amp;#39;file has been converted succesfully &lt;br /&gt;&amp;#39;);<br />
               });<br />
       });<br />
       socket.on(&amp;#39;echo&amp;#39;, function(data) {<br />
           socket.emit(&amp;#39;echo&amp;#39;, data);<br />
       });<br />
    });<br />
    &lt;/code&gt;&lt;/pre&gt;<br />
    <br />
    &lt;p&gt;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.&lt;/p&gt;<br />
    <br />
    &lt;p&gt;I have a linode VPS with CentOS/Nginx&lt;/p&gt;<br />
    <br />
    &lt;p&gt;node -v<br />
    v0.10.21&lt;/p&gt;<br />
    <br />
    &lt;p&gt;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}...&lt;/p&gt;<br />
    <br />
    &lt;p&gt;Thanks in advance for your help.&lt;/p&gt;
  • Cannot open ".mp4" video files using OpenCV 2.4.3, Python 2.7 in Windows 7 machine

    28 décembre 2015, par tjmonsi

    I am currently working on a project that involves reading mp4 video files.
    The problem I encountered is that it using Python 2.7 (32 bit), OpenCV 2.4.3 (cv2.pyd) in a Windows 7 machine.

    The code snippet is as follows :

    try:
           video = cv2.VideoCapture("video.mp4")
    except:
           print "Could not open video file"
           raise
    print video.grab()

    "video.grab()" always returns false : meaning it doesn’t read the file "video.mp4"
    But when we try this :

    try:
           video = cv2.VideoCapture("video.avi")
    except:
           print "Could not open video file"
           raise
    print video.grab()

    "video.grab()" returns true : meaning it is able to read ".avi" files.

    Another is we have tried this same snippet on Linux and Mac and it seems to work fine, meaning it is able to read both mp4 files and avi files.

    This problem is similar to this problem and this problem. Both still don’t have a clear and workable answer.

    I would appreciate any help or workaround aside from just using Linux or Mac for programming this as I need this to work on all three systems.