Recherche avancée

Médias (0)

Mot : - Tags -/upload

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (96)

  • Supporting all media types

    13 avril 2011, par

    Unlike most software and media-sharing platforms, MediaSPIP aims to manage as many different media types as possible. The following are just a few examples from an ever-expanding list of supported formats : images : png, gif, jpg, bmp and more audio : MP3, Ogg, Wav and more video : AVI, MP4, OGV, mpg, mov, wmv and more text, code and other data : OpenOffice, Microsoft Office (Word, PowerPoint, Excel), web (html, CSS), LaTeX, Google Earth and (...)

  • Librairies et binaires spécifiques au traitement vidéo et sonore

    31 janvier 2010, par

    Les 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 : (...)

  • Support audio et vidéo HTML5

    10 avril 2011

    MediaSPIP 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 (...)

Sur d’autres sites (7124)

  • Revision dd5510750a : third_party/libwebm : pull from upstream. Upstream hash : a58c32339e06e5d672a58cd

    10 septembre 2015, par Vignesh Venkatasubramanian

    Changed Paths :
     Modify /examples.mk


     Modify /third_party/libwebm/README.libvpx


     Modify /third_party/libwebm/mkvmuxer.hpp


     Modify /third_party/libwebm/mkvparser.cpp


     Modify /third_party/libwebm/mkvparser.hpp


     Modify /third_party/libwebm/webmids.hpp



    third_party/libwebm : pull from upstream.

    Upstream hash : a58c32339e06e5d672a58cdd5844cea0a661e735

    Changes from upstream since last update :
    a58c323 mkvmuxer : Add codec id constant for VP10.
    714f3c4 mkvparser : validate results in EBMLHeader::Parse.
    cec98d4 mkvparser : Correct the ReadID implementation.
    eb36ae4 Merge changes I029a268e,Ia272b150,I5c4d1bbc,Ia47a2478,I3a2e2226
    229f493 Merge "mkvparser : Segment::AppendCluster asserts to error checks."
    287faf9 Merge "mkvparser : Segment::DoLoadClusterUnknownSize asserts to error
    checks."
    1a87b59 Merge "mkvparser : Segment assert clean up."
    d26ec69 mkvparser : Cluster::Parse clean up.
    f2029be mkvparser : Disallow EBML IDs equal to 0.
    19f5694 mkvparser : Cluster::Load clean up.
    27a07c1 mkvparser : Segment::Load asserts to error checks.
    d0313dd mkvparser : Segment::PreloadCluster asserts to error checks.
    b108695 mkvparser : Segment::AppendCluster asserts to error checks.
    4630f80 mkvparser : Segment::DoLoadClusterUnknownSize asserts to error checks.
    841a9b5 mkvparser : Segment assert clean up.
    8c4ca2e Merge "mkvparser : Make mkvparser namespace usage uniform."
    49ae6f0 Merge "mkvparser : Fix include order."
    0735bb5 mkvparser : Make mkvparser namespace usage uniform.
    93b24c4 mkvparser : Fix include order.
    a57d660 sample_muxer : fix Segment memory leak on error
    1c5bd94 mkvparser : Cues, change asserts to error checks.
    7f77201 Merge "mkvparser : Add ReadID."
    795fd56 mkvparser : set kMaxAllocSize explicitly
    23bb18b mkvparser : Add ReadID.
    7b57e37 mkvparser : add SafeArrayAlloc.
    83a1f68 mkvparser : Remove buf_t typedef.
    5074714 Merge changes Ia1265a63,I799d54df,Icfc582e4,I3425f608
    b181105 Merge changes Ie4318152,I1e65f30f
    06b4337 Block::Parse : replace pos asserts w/checks
    b366a98 Cluster::ParseBlockGroup : replace pos asserts w/checks
    2857b23 Tags: :*::Parse : replace pos asserts w/checks
    f1b2cfa Chapters: :*::Parse : replace pos asserts w/checks
    ca80629 Merge "mkvparser : Cues::PreloadCuePoint now returns bool."
    6b4b297 Block::Parse : use int64 to aggregate laced frame sizes
    c0d2c98 UnserializeFloat : check result for Inf/NaN
    1a6dc4f mkvparser : Cues::PreloadCuePoint now returns bool.
    275ac22 mkvparser : Cluster::Create clean up.
    064f2ee Segment::PreloadCluster() : return a bool status
    3778408 Segment::AppendCluster() : return a bool status
    e86d046 mkvparser : check Cluster::Create() return
    f9885b5 mkvparser : check allocations
    21ee398 mkvparser : Segment::Load fail w/missing info/tracks
    08fb654 Merge changes I264e68b2,Ife6190a4,Ibf37245f,I06efadb5,I88b5dfec, ...
    c896095 mkvparser/Cluster : convert asserts to failure returns
    680b4bf mkvparser/Tracks : convert asserts to failure returns
    5889e6c mkvparser/Track : convert asserts to failure returns
    5135c4c mkvparser/ContentEncoding : convert asserts to failure returns
    b0e4f32 mkvparser/Cues : convert asserts to failure returns
    13ccc7f mkvparser/UnserializeInt : fix sign flip
    db3f9bb mkvparser/SeekHead : convert asserts to failure returns
    8de3654 mkvparser/Segment : convert asserts to failure returns
    fa2aa7d SeekHead::Parse() : fix assertion failure
    d9bdade sample,_muxer : check SegmentInfo::GetInfo() return
    07a9cf7 Merge "mkvparser : Remove some asserts."
    c56ee29 mkvparser : Remove some asserts.
    d901324 Merge "mkvparser : Remove some asserts from SegmentInfo::Parse."
    7f7d898 Fix case sensitivity issue in iosbuild.sh.
    42fe2cd mkvparser : Remove some asserts from SegmentInfo::Parse.
    8bccd9c Merge "mkvparser : avoid rollover in UnserializeInt()."
    7a2fa0d mkvparser : avoid rollover in UnserializeInt().
    44f5ce6 mkvparser : Disallow durations in seconds greater than LONG_LONG_MAX.
    b521e30 Merge "mkvparser : Segment::ParseHeaders() avoid rollover and bad int
    sizes."
    7680e2a mkvparser : Check for errors in Match().
    39a315f mkvparser : Segment::ParseHeaders() avoid rollover and bad int sizes.
    f250ace mkvparser : Handle invalid lengths and rollover in ParseElementHeader().
    cd96a76 mkvparser : Avoid rollover/truncation in UnserializeString().
    8e8b3db Merge "mkvparser : Add error checking in Block::Parse."
    82b7e5f sample : correct mbstowcs() error check
    04d7809 sample : check allocation return
    986b64b mkvparser : Add error checking in Block::Parse.

    Change-Id : I39beef84962d6341f8ce53be06807b3e2068f777

  • Nodejs youtube-dl ffmpeg audio stream

    19 septembre 2015, par Majster

    I have an issue with streaming video from YouTube. I have a http server which attempts to grab the raw video url, pull out the audio, convert it to mp3 and stream it to clients. The issue is that I’m not getting any audio on my client. Code is below (it’s all work in progress so there’s a lot of hardcoded stuff in there).

    // The obvious stuff
    var exec = require('child_process').exec;
    var spawn = require('child_process').spawn;
    var request = require('request');
    var http = require('http');

    //Listen for requests
    var server = http.createServer(function(req, response) {
      //This command runs youtube-dl and gets the video url
      var command = './node_modules/youtube-dl/bin/youtube-dl --simulate --get-url http://www.youtube.com/watch?v=5qF_qbaWt3Q';
      var exc = exec(command, function(error, stdout, stderr) {
         var downloadUrl = stdout.toString(); //Convert the buffer to string
         downloadUrl = downloadUrl.substring(0, downloadUrl.length - 1); //And strip the '\n' sign at the end
         console.log("This thing is: '" + downloadUrl + "'");
         response.writeHead(200, {
            'Content-Type': 'audio/mpeg'
         }); //When this is mpeg3 browser will download a blank .mp3 file now it tries to stream it

         //Spawn the ffmpeg child process
         var child = spawn('ffmpeg', ['-i', 'pipe:0', '-acodec', 'libmp3lame','-f', 'mp3', '-']);
         child.stdout.pipe(response); //Pipe it so it writes to our response

         // fs.createReadStream(filePath).pipe(child.stdin); - this is a testing thing ---> fs is filesystem and filePath is a link to a file - works
         request({url: downloadUrl, headers: {'Youtubedl-no-compression': 'True'}}).pipe(child.stdin); //Request the data and pipe it to ffmpeg for processing
      });
    });

    I can provide any additional info if needed. But the thing works if I try to use a file instead of request call so there is no problem with ffmpeg and other settings. Is it possible that YouTube has a protection against downloading videos this way ? I tried to paste the URL of console.log into my browser and nothing happens - no video. How can I fix this ?

  • How to add Qt to an existing C program and compile ?

    26 juin 2015, par El Sampsa

    I have a small Qt program I have compiled with qmake and make. When I launch make, I get the following commands for compilation :

    g++ -c -m64 -pipe -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++-64 -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I. -I/usr/lib/x86_64-linux-gnu -I/usr/include/SDL -I. -o simpleqt.o simpleqt.cpp

    (.. lets call that (**)) and

    g++ -m64 -Wl,-O1 -o qt simpleqt.o -L/usr/lib/x86_64-linux-gnu -lSDL -lX11 -lQtGui -lQtCore -lpthread

    .. and the program is compiled without problems.

    On the other hand, I have the ffmpeg library which has the "ffplay" program. I want to put some Qt things into ffplay. In the ffmpeg config files I tell to the make process (using "common.mak") that it should be verbose and when issuing "make ffplay", it gives me the following monster :

    gcc -I. -I./ -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -DZLIB_CONST -I/home/sampsa/ffmpeg/build/include -std=c99 -fomit-frame-pointer -pthread -I/usr/include/freetype2 -I/usr/include/fribidi -I/usr/include/freetype2 -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -g -Wdeclaration-after-statement -Wall -Wdisabled-optimization -Wpointer-arith -Wredundant-decls -Wwrite-strings -Wtype-limits -Wundef -Wmissing-prototypes -Wno-pointer-to-int-cast -Wstrict-prototypes -Wempty-body -Wno-parentheses -Wno-switch -Wno-format-zero-length -Wno-pointer-sign -O3 -fno-math-errno -fno-signed-zeros -fno-tree-vectorize -Werror=format-security -Werror=implicit-function-declaration -Werror=missing-prototypes -Werror=return-type -Werror=vla -Wformat -Wno-maybe-uninitialized -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -MMD -MF ffplay.d -MT ffplay.o -c -o ffplay.o ffplay.c

    (lets call that monster (++)).

    So far, so good, I have two commands, one (**) for compiling Qt programs and another one (++) for another project (in this case, ffmpeg’s ffplay)

    How do I combine these two ?

    I have tried merging the flags in (**) into command (++). It compiles OK, but the moment I am adding

    #include <qtgui>
    </qtgui>

    into "ffplay.c", all hell breaks loose and the compiler tells me (among many other things) :

    In file included from /usr/include/qt4/QtCore/qobjectdefs.h:45:0,
    from /usr/include/qt4/QtCore/qobject.h:47,
    from /usr/include/qt4/QtCore/qabstracteventdispatcher.h:45,
    from /usr/include/qt4/QtCore/QtCore:3,
    from /usr/include/qt4/QtGui/QtGui:3,
    from ffplay2.c:61 :
    /usr/include/qt4/QtCore/qnamespace.h:51:1 : warning : return type defaults to ‘int’ [enabled by default]
    QT_MODULE(Core)
    ^
    /usr/include/qt4/QtCore/qnamespace.h:51:1 : warning : function declaration isn’t a prototype [-Wstrict-prototypes]
    /usr/include/qt4/QtCore/qnamespace.h : In function ‘QT_MODULE’ :
    /usr/include/qt4/QtCore/qnamespace.h:54:1 : error : unknown type name ‘namespace’
    namespace
    ^
    ...
    ...

    If I combine flags in (**) to (++) and change the compiler from "gcc" to "g++", I get all kinds of errors, this time related to the "ffplay.c" source code.

    What is going on ?