Recherche avancée

Médias (0)

Mot : - Tags -/masques

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

Autres articles (70)

  • Pas question de marché, de cloud etc...

    10 avril 2011

    Le vocabulaire utilisé sur ce site essaie d’éviter toute référence à la mode qui fleurit allègrement
    sur le web 2.0 et dans les entreprises qui en vivent.
    Vous êtes donc invité à bannir l’utilisation des termes "Brand", "Cloud", "Marché" etc...
    Notre motivation est avant tout de créer un outil simple, accessible à pour tout le monde, favorisant
    le partage de créations sur Internet et permettant aux auteurs de garder une autonomie optimale.
    Aucun "contrat Gold ou Premium" n’est donc prévu, aucun (...)

  • Keeping control of your media in your hands

    13 avril 2011, par

    The vocabulary used on this site and around MediaSPIP in general, aims to avoid reference to Web 2.0 and the companies that profit from media-sharing.
    While using MediaSPIP, you are invited to avoid using words like "Brand", "Cloud" and "Market".
    MediaSPIP is designed to facilitate the sharing of creative media online, while allowing authors to retain complete control of their work.
    MediaSPIP aims to be accessible to as many people as possible and development is based on expanding the (...)

  • Contribute to documentation

    13 avril 2011

    Documentation is vital to the development of improved technical capabilities.
    MediaSPIP welcomes documentation by users as well as developers - including : critique of existing features and functions articles contributed by developers, administrators, content producers and editors screenshots to illustrate the above translations of existing documentation into other languages
    To contribute, register to the project users’ mailing (...)

Sur d’autres sites (6807)

  • capture video conference between 1:1 user and broadcast to an rtmp url

    20 octobre 2020, par Asif Alamgir

    I am currently working on nodejs and socket app that is currently doing 1:1 video conference that is using webrtc. Videos are two separate element in the html and i would like to merge them together so that i can broadcast to rtmp url for public view (2:many). Is this possible

    


    For webrtc, i followed this tutorial https://www.youtube.com/watch?v=DvlyzDZDEq4, and for broadcasting i am using ffmpeg which current does 1 video stream.

    


    Please confirm if this is doable

    


    Update

    


    I was able to merge the video using
https://www.npmjs.com/package/video-stream-merger

    


    And now the final issue

    


    i am receiving merger.result which is merged stream and I tried to create a mediaRecorder object. Callback method for MediaRecorder ondataavailable is called only once but not every 250ms which i need to broadcast to youtube. How can i do this ?

    


    var merger = new VideoStreamMerger(v_opts);
...
...
merger.start()
myMediaRecorder = new MediaRecorder(merger.result);
myMediaRecorder.start(250);
myMediaRecorder.ondataavailable = function (e) {
    console.log("DataAvailable")
    //socket.emit("binarystream", e.data);
    state = "start";
    //chunks.push(e.data);
}


    


  • Reload scrolling drawtext filter in ffmpeg only while off screen

    3 janvier 2021, par J45p3r

    I have a drawtext filter in ffmpeg that scrolls right to left on the bottom of the screen showing current weather data. The problem I have is the text file containing the weather data updates every 2 seconds and when the weather readings change the length of the text also changes. This causes the looping text to jump around. I tried using a conditional statement to set reload to 1 only if x was greater than the screen width but it seems reload doesn't evaluate conditional statements. Can anyone think of a way around this problem so that the text will only update once per loop, while off screen ?

    


    My command :

    


    ffmpeg -thread_queue_size 512 -re -rtsp_transport tcp -i "rtsp://192.168.x.x:7447" -i /YouTubeStream/CupolaCam/logo.png -f lavfi -i anullsrc -filter_complex "[0:v][1:v]overlay=20:925","drawbox=x=0:y=ih-35:w=iw:h=35:color=black@0.75:t=fill","drawtext=fontsize=30:fontcolor=white@.8:line_spacing=10:fontfile=/usr/share/fonts/truetype/Courier_Prime/CourierPrime-Regular.ttf:textfile=/YouTubeStream/CupolaCam/weatherdata/curtempformatted:y=h-line_h-5:x='if(gt(x\,-tw),w-mod(4*n\,w+tw)\,w)':reload=1" -c:v libx264 -profile:v high -bf 2 -g 15 -crf 18 -pix_fmt yuv420p -c:a aac -profile:a aac_low -b:a 128k -movflags faststart -f flv "rtmp://a.rtmp.youtube.com/live2/stream_key"


    


    The video on youtube : https://www.youtube.com/watch?v=Av6k8bf_2Zc

    


  • How to setup ffmpeg for linux server

    1er décembre 2014, par hitesh

    I need to create a screen shot from video,

    I have followed this tutorial to do the intial setup in window 8, php 5.3

    1) I downloaded the ffmpeg from here -[
    http://ffmpeg.zeranoe.com/builds/ ] for 64 bit operating system.

    2) I followed the https://www.youtube.com/watch?v=gU49GiWGGAI , video and did all configuration successfully and phpinfo() shows that ffmpeg has been installed.

    3) Then I tried this to find out whether it is working or not,

    It worked successfully

    4) Next I followed this video tutorial here and thumbnails were created successfully.

    below is my code

    /**
    * FFMPEG-PHP Test Script
    *
    * Special thanks to http://www.sajithmr.me/ffmpeg-sample-code for this code example!
    * See the tutorial at http://myownhomeserver.com on how to install ffmpeg-php.
    */
    error_reporting(1);
    error_reporting(E_ALL ^ E_NOTICE);
    // Check if the ffmpeg-php extension is loaded first
    extension_loaded('ffmpeg') or die('Error in loading ffmpeg');

    // Determine the full path for our video
    $vid = realpath('./videos/myvideo.mp4');
    $videosize = filesize($vid);
    $remoteVideo = 'http://video-js.zencoder.com/oceans-clip.mp4';

    //ffmpeg

    $ffmpeg = dirname(__FILE__) . "\\ffmpeg\\bin\\ffmpeg";
    $imageFile = "1.png";
    $image2 = "2.png";
    $size = "120x90";
    $getfromsecond = 7;
    $cmd = "$ffmpeg -i $vid -an -ss $getfromsecond -s $size $imageFile";
    $cmd2 = "$ffmpeg -i $remoteVideo -an -ss $getfromsecond -s $size $image2";
    if(!shell_exec($cmd)){
       echo "Thumbnail created";
    }else{
       echo "Error Creating thumbnail";
    }

    if(!shell_exec($cmd2)){
       echo "Thumbnail for remote url was created";
    }else{
       echo "Error Creating thumbnail for remote url ";
    }

     OUTPUT
       Thumbnail created
       Thumbnail for remote url was created

    Now above code works as expected in my local, in window machine , I need to do it in my server environment(Linux server) with php 5.5. How do I do the configuration for ffmpeg in linux server with php 5.5.