Recherche avancée

Médias (2)

Mot : - Tags -/plugins

Autres articles (54)

  • Demande de création d’un canal

    12 mars 2010, par

    En fonction de la configuration de la plateforme, l’utilisateur peu avoir à sa disposition deux méthodes différentes de demande de création de canal. La première est au moment de son inscription, la seconde, après son inscription en remplissant un formulaire de demande.
    Les deux manières demandent les mêmes choses fonctionnent à peu près de la même manière, le futur utilisateur doit remplir une série de champ de formulaire permettant tout d’abord aux administrateurs d’avoir des informations quant à (...)

  • Gestion de la ferme

    2 mars 2010, par

    La ferme est gérée dans son ensemble par des "super admins".
    Certains réglages peuvent être fais afin de réguler les besoins des différents canaux.
    Dans un premier temps il utilise le plugin "Gestion de mutualisation"

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

Sur d’autres sites (7518)

  • flv live stream audio delay with ffmpeg refresh rate option

    15 janvier 2018, par albert200000

    I have problem with live http flv stream. I’m using the following command and it works great except for the audio. Audio has delay that increasing over time. I can fix the this by removing refresh rate option on the output (-r 30) but then stream latency goes higher for about half second.

    ffmpeg -f v4l2 -threads 0 -video_size 672X420 -i /dev/video1 -f alsa -thread_queue_size 512 -i hw:1,0 -c:a aac -ar 44100 -b:a 128k -c:v libx264 -s 672x420 -r 30 -g 60 -preset superfast -tune zerolatency -strict -2 -f flv rtmp://localhost/live/primary

    Can someone explain why this happening and what possible fixes are ?
    On the client I’m using Chrome with flv.js library.
    On the server Node-Media-Server.

  • an error happened : spawn ENOENT, node.js & FFmpeg

    20 juin 2014, par user2757842

    I am having a nightmare of a time trying figure this out. I asked a question about this yesterday but only got so far, long story short, I cannot for the life of me figure this out.

    All i want to do, is transcode a .avi file to a .flv file using FFmpeg in a node.js app, this works just using the command line for FFmpeg but not in the app, here’s the code :

    var ffmpeg = require('fluent-ffmpeg');

    //make sure you set the correct path to your video file
    var proc = new ffmpeg({ source: 'C:/Users/Jay/Documents/movie/drop.avi', nolog: true });

    //Set the path to where FFmpeg is installed
    proc.setFfmpegPath("C:\\Users\\Jay\\Documents\\FFMPEG\\bin");

    proc
    //set the size
    //.withSize('50%') <-- error appears after this line

    // set fps
    //.withFps(24)

    // set output format to force
    //.toFormat('flv')

    // setup event handlers
    .on('end', function() {
       console.log('file has been converted successfully');
    })
    .on('error', function(err) {
       console.log('an error happened: ' + err.message);
    })
    // save to file <-- the new file I want -->
    .saveToFile('C:/Users/Jay/Documents/movie/drop.flv');

    The error appears on the line specified above, it’s not an error with red writing, but it simply says :

    an error happened: spawn ENOENT

    Has anyone come across this ?

  • Ffmpeg - How to force MJPEG output of whole frames ?

    27 août 2021, par Maoration

    I'm working with ffmpeg to process an incoming MPEGTS stream from remote cameras, and deliver it to multiple clients using my app.

    



    Technically, I'm using ffmpeg to convert the incoming stream to an MJPEG output, and piping the data chunks (from the ffmpeg process stdout) to a writeable stream on the client http response.

    



    However, I'm facing a problem- not all data chunks represent a full 'whole' frame. thus, displaying them in a row in the browser, results in a flickering video, with half-complete frames, on a random basis.
I know this because when printing each chunk length, results most of the time in a big value (X), but every now and then I get 2 consecutive chunks with length (2/5X) followed by (3/5X) for example.

    



    So the question - is there a way to force the ffmpeg process to output only whole frames ? if not, is there a way for me to check each data chunk 'manually' and look for headers/metadata/flags to indicate frame start/end ?

    




    



    my ffmpeg command for outputting MJPEG is :

    



    ffmpeg -i - -c:v mjpeg -f mjpeg -


    



    explained :

    



    "-i -" : (input) is the stdin of the process (and not a static file)

    



    "-c:v mjpeg" : using the mjpeg codec

    



    "-f mjpeg" : output will be in the mjpeg format

    



    "-" : output not specified (file or url) - will be the process stdout

    




    



    Edit :
here are some console.log prints to visualize the problem :

    



    %%% FFMPEG Info %%%
frame=  832 fps= 39 q=24.8 q=29.0 size=   49399kB time=00:00:27.76 bitrate=14577.1kbits/s speed=1.29x    
data.length:  60376
data.length:  60411
data.length:  60465
data.length:  32768
data.length:  27688
data.length:  32768
data.length:  27689
data.length:  60495
data.length:  60510
data.length:  60457
data.length:  59811
data.length:  59953
data.length:  59889
data.length:  59856
data.length:  59936
data.length:  60049
data.length:  60091
data.length:  60012
%%% FFMPEG Info %%%
frame=  848 fps= 38 q=24.8 q=29.0 size=   50340kB time=00:00:28.29 bitrate=14574.4kbits/s speed=1.28x    
data.length:  60025
data.length:  60064
data.length:  60122
data.length:  60202
data.length:  60113
data.length:  60211
data.length:  60201
data.length:  60195
data.length:  60116
data.length:  60167
data.length:  60273
data.length:  60222
data.length:  60223
data.length:  60267
data.length:  60329
%%% FFMPEG Info %%%
frame=  863 fps= 38 q=24.8 q=29.0 size=   51221kB time=00:00:28.79 bitrate=14571.9kbits/s speed=1.27x  


    



    As you can see, a whole frame is about 60k (my indication is a clean video stream i'm viewing on the browser), but every now and then the output consists of 2 consecutive chunks that add up to 60k. when delivered to the browser, these are 'half frames'.