Recherche avancée

Médias (1)

Mot : - Tags -/musée

Autres articles (77)

  • Qu’est ce qu’un masque de formulaire

    13 juin 2013, par

    Un masque de formulaire consiste en la personnalisation du formulaire de mise en ligne des médias, rubriques, actualités, éditoriaux et liens vers des sites.
    Chaque formulaire de publication d’objet peut donc être personnalisé.
    Pour accéder à la personnalisation des champs de formulaires, il est nécessaire d’aller dans l’administration de votre MediaSPIP puis de sélectionner "Configuration des masques de formulaires".
    Sélectionnez ensuite le formulaire à modifier en cliquant sur sont type d’objet. (...)

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

  • À propos des documents

    21 juin 2013, par

    Que faire quand un document ne passe pas en traitement, dont le rendu ne correspond pas aux attentes ?
    Document bloqué en file d’attente ?
    Voici une liste d’actions ordonnée et empirique possible pour tenter de débloquer la situation : Relancer le traitement du document qui ne passe pas Retenter l’insertion du document sur le site MédiaSPIP Dans le cas d’un média de type video ou audio, retravailler le média produit à l’aide d’un éditeur ou un transcodeur. Convertir le document dans un format (...)

Sur d’autres sites (6000)

  • Building A livestreaming server like youtube from scratch

    9 décembre 2022, par Dipo Ahmed

    I am trying to build a live streaming server like youtube where I can watch the video live or if I want to I can play the video from any duration I want.

    


    What I have tried so far.
I have built a node js WebSocket server where I push the video blob that I receive from the browser via MediaRecorder API every 2 seconds. This blob is then getting converted to hls by a ffmpeg process which generates 2 seconds *.ts files and a .m3u8 file which I am playing with video.js in browser.

    


    This is my ffmpeg command

    


     spawn('ffmpeg', [
        '-i', '-',
        // '-re',
        '-fflags', '+igndts',

        '-vcodec', 'h264',
        '-acodec', 'aac',

        '-preset', 'slow',
        '-crf', '22',
        // You can also use QP value to adjust output stream quality, e.g.: 
        // '-qp', '0',
        // You can also specify output target bitrate directly, e.g.:
        '-b:v', '1500K',
        '-b:a', '128K', // Audio bitrate

        '-f', 'hls',
        '-hls_time', '1',
        // '-hls_playlist_type', 'vod',
        '-hls_list_size', '2',
        '-hls_flags', 'independent_segments',
        '-hls_segment_type', 'mpegts',
        '-hls_segment_filename', `${path}/stream%02d.ts`, `${path}/stream.m3u8`,
    ]);


    


    The problem is that the video js player duration is not updating like in youtube where the video duration increases every second.

    


    Any direction will be appreciated. Please tell me if my approach is wrong and what needs to be learned for me to build this system.

    


  • Added wmode=transparent to YouTube example link.

    14 juin 2011, par Jack Moore

    m example1/index.html m example2/index.html m example3/index.html m example4/index.html m example5/index.html Added wmode=transparent to YouTube example link.

  • Streaming windows desktop to Youtube with ffmpeg [closed]

    23 mai 2021, par rarahim

    I've been spending days trying to stream my live desktop to Youtube using ffmpeg. There are too many questions and answers on SO about this topic but none really works for me, or perhaps because working with ffmpeg is non-trivial task with it's never ending list of available options.

    


    So far, what sort of works for me is using the following (which is a mixture of what was gathered from various sources) :

    


    


    ffmpeg -threads:v 2 -threads:a 8 -filter_threads 2 -thread_queue_size
5096 -f dshow -i video="screen-capture-recorder" -f dshow -i
audio="Stereo Mix (Realtek High Definition Audio)" -pix_fmt yuv420p
-c:v libx264 -qp:v 19 -profile:v high -rc:v cbr_ld_hq -level:v 4.2 -r:v 60 -g:v 120 -bf:v 3 -refs:v 16 -f flv rtmp ://a.rtmp.youtube.com/live2/KEY

    


    


    My questions are :

    


      

    1. how do i only stream video ? i do not want to stream audio, simply removing '-f dshow -i audio="Stereo Mix (Realtek High Definition Audio)"' causes it to fail

      


    2. 


    3. after a while, ffmpeg starts to hog my memory causing my system to slow down terribly, what causes this and how can i fix it ?

      


    4. 


    5. my video feed when viewed from Youtube keeps buffering rather frequently, how can this be fixed/improved ?

      


    6. 


    


    Thanks.

    


    UPDATE :
I've managed to somewhat figure out a workaround for these issues. Not sure if these are the right solutions but they work for now.

    


      

    1. Youtube apparently requires streams to have audio component. So instead of just removing the audio device form the options, i had to put in "-f lavfi -i anullsrc" to use null audio device.

      


    2. 


    3. The memory hog issue was improved by adding "-framerate 10" and "-r 10" to the input and output options, this reduces target frame rate to 10fps.

      


    4. 


    5. The overall stream performance seem to be indirectly improved by doing the above actions.

      


    6. 


    


    So finally the working simplified version of my ffmpeg command is :

    


    


    ffmpeg -framerate 10 -f dshow -i video="screen-capture-recorder" -f
lavfi -i anullsrc -vcodec libx264 -preset:v ultrafast -pix_fmt yuv420p
-f flv -r 10 rtmp ://a.rtmp.youtube.com/live2/KEY

    


    


    I'm updating here in case it might be useful to someone at some point in the future.