Recherche avancée

Médias (1)

Mot : - Tags -/Rennes

Autres articles (38)

  • Personnaliser les catégories

    21 juin 2013, par

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

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

  • Contribute to a better visual interface

    13 avril 2011

    MediaSPIP is based on a system of themes and templates. Templates define the placement of information on the page, and can be adapted to a wide range of uses. Themes define the overall graphic appearance of the site.
    Anyone can submit a new graphic theme or template and make it available to the MediaSPIP community.

Sur d’autres sites (4918)

  • Node.js Stream Mp3 to http without having to save file

    10 janvier 2019, par user2758113

    I am trying to stream just audio from a youtube link straight to http with node.js.

    My code looks like this, I am using express 4.0.

    var express = require('express');
    var router = express.Router();
    var ytdl = require('ytdl');
    var ffmpeg = require('fluent-ffmpeg');
    var fs = require('fs');

    router.get('/', function(req, res) {

     var url = 'https://www.youtube.com/watch?v=GgcHlZsOgQo';
     var video = ytdl(url)

     res.set({
         "Content-Type": "audio/mpeg"
     })

     new ffmpeg({source: video})
         .toFormat('mp3')
         .writeToStream(res, function(data, err) {
           if (err) console.log(err)
         })

    });

    module.exports = router;

    Now, I’m able to stream the video’s audio to the response if I save the file then pipe it to the response, but I’d rather try to figure out some way to go from downloading to ffmpeg to response.

    Not sure if this is possible. The main goal is to keep it as light weight as possible, and not have to read from files.

    I’ve seen this code which is essentially what I’d like to do minus the saving to a file part.

    part of the error

  • FFmpeg zoom not smooth-centered (but zigzag)

    10 juin 2016, par SebSob

    I try to perform a basic zoompan with FFmpeg. I have an input image (.png 1280x720) and i create an 8 seconds video (.mp4 320x180) from it, with a zoom. This is my command :

    ffmpeg -loop 1 -i in_img.png -c:v libx264 -pix_fmt yuv420p -strict experimental -framerate 25 -vf zoompan=z=’min(zoom+0.011835363,2.1835363)’:d=375:x=400:y=247 -s 320x180 -t 00:00:08.882 out_vid.mp4

    Everything works...but the zoom is not looking okay. It is going zig-zag.

    Does anyone know how to make it zoom smooth, like centered ? (And not first left then right)

    Thanks

    EDIT


    I’ve come a small step closer to a solution by slightly modifying the ’x’ and ’y’ in the -vf filter (rest of the command is the same as above) :

    -vf
    zoompan=z=’min(zoom+0.022,3.25)’:d=375:x=’if(gte(zoom,3.25),x,x+8.24)’:y=’if(gte(zoom,3.25),y,y+4.72)’:s=1280x720

    I incement x and y every frame (for x +8.24, for y +4.72, i know those values because i know how many frames it takes get to the end-zoom state) so that it will move to its end zoom state coordinate (1011,582), see image :

    Zoom Visualization
    This is the video of the result, as you can see it does not do the zig-zag effect, but now it looks like its going first to the center and then to the zoomed result. Or is that only an illusion ??
    Any idea’s ?

  • HTTP Live streaming iOS not refreshing the index .m3u8 file

    27 février 2013, par Emerson Fittipaldi

    I searched all similar questions on StackOverflow, but found none to answer my problem.

    I am trying to stream some movies from my Linux computer (openSuSE 12.1) to my iPad. I convert them with ffmpeg, segment them with my own segmenter, place them in the www folder of my apache2 server and also place inside the .m3u8 playlist. Til here - all is ok !

    I start playing the movie (HTML page with tag) and it plays nicely, but only the first five segments, which have been loaded with the first load of the playlist. The HTML page (the browser, or the player - no idea) does not refresh (re-download) the playlist from the server. Here is what my .m3u8 playlist file looks like :

    #EXTM3U
    #EXT-X-MEDIA-SEQUENCE:19
    #EXT-X-TARGETDURATION:8

    #EXTINF:8,
    http://192.168.1.4/segment_19.ts
    #EXTINF:8,
    http://192.168.1.4/segment_20.ts
    #EXTINF:8,
    http://192.168.1.4/segment_21.ts
    #EXTINF:8,
    http://192.168.1.4/segment_22.ts
    #EXTINF:8,
    http://192.168.1.4/segment_23.ts

    Segments are in the same folder as the playlist file, segments are correctly encoded (because I can see at least the first five ones :D). I also watch the access_log from the apache server and I see the first load of the playlist, then the consequent load of all 5 segments and it stops till there. It doesn't even try to further refresh the m3u8 file.

    If it matters - iOS 5.0, iPad 2, Wi-Fi version only, not jailbroken

    Ideas ? What am I doing wrong ?