Recherche avancée

Médias (33)

Mot : - Tags -/creative commons

Autres articles (33)

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

  • 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"

  • HTML5 audio and video support

    13 avril 2011, par

    MediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
    The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
    For older browsers the Flowplayer flash fallback is used.
    MediaSPIP allows for media playback on major mobile platforms with the above (...)

Sur d’autres sites (6106)

  • Killing all child processes

    12 juin 2016, par ErraticFox

    I have written a onclick function that runs child process for a command line for ffmpeg. Though I can’t seem to force close or kill the process in the middle of it. I’ve tried multiple ways such as child.kill() along with SIGINT, SIGKILL, SIGHUP, SIGQUIT, and SIGTERM and it continuously runs in the background still until finished or killed in the task manager. So how can I kill all the process related to the exec ?

    Here’s my current code :

    function submitBtn() {
       var selectVal1 = $("#inputFile1 option:selected").val(),
           selectVal2 = $("#inputFile2 option:selected").val(),
           selectOpt2 = $("#inputFile2 option:selected").text().toLowerCase()

       if (!selectVal1 || !selectVal2) {
           Materialize.toast('Please select your formats', 4000)
       } else if ($("#uploadFile").val() === '') {
           Materialize.toast('Please select your file', 4000)
       } else {
           var process = require("child_process")
           var inputDir = uploadFile.files[0].path
           var dir = inputDir.split("\\")
           var pop = dir.pop()
           var outputDir = dir.join("\\")
           var cmd = `ffmpeg -y -i "${inputDir}" "${outputDir}\\output.${selectOpt2}"`

           $("#load").removeClass("disabledLoad")
           func = process.exec(cmd, function(error, stdout, stderr) {})

           func.on('exit', function() {
               $("document").ready(function() {
                   $("#load").addClass("disabledLoad")
                   Materialize.toast('Conversion compelete!', 4000)
               })
           })

       }
    }

    function exitBtn() {
       //var remote = require('electron').remote
       //var window = remote.getCurrentWindow()
       //window.close()
       func.kill()
    }

    I even tried renaming process to proc and then doing

       process.on('exit', function () {
       console.log('process is about to exit, kill ffmpeg');
       func.kill()
    })

    in exitBtn but still nothing. It doesn’t give errors or log my string I put.

  • Live Smooth Streaming in IIS from webcam using FFMPEG

    13 mai 2016, par tearvisus

    I’m trying to do a live stream of video captured by my webcam and host it on IIS using Live Smooth Streaming. Here are the steps I’m taking :

    1. In the IIS manager’s MIME Types add a new extension : .isml with type : application/atom+xml
    2. In the IIS manager add a publishing point (filename : myStream.isml).
    3. Start the publishing point.
    4. Run the following command :

    ffmpeg -hide_banner -y -f dshow -rtbufsize 100000k -i video="Lenovo EasyCamera":audio="Microphone (Realtek High Definition Audio)" -movflags isml+frag_keyframe -s 854x480 -f ismv http://localhost/myStream.isml/Stream(video)

    1. Play the stream from the location http://localhost/myStream.isml/manifest using VLC.

    The problem is that the playback stops a few seconds before the moment in which I opened the stream with VLC. If I reopen the stream again, it will play from around the moment the first playback stopped to the moment the second playback started.

    What I’m trying to achieve is to make the clients see the video from the moment they open the stream to the moment they disconnect. A delay up to a few seconds is acceptable. Obviously, the playback should not end regardless of the connection moment.

    How can I do this ? Should I change something in the FFMPEG’s command or in the IIS ?

    Note : A solution using tools other than FFMPEG is acceptable, as long as they are free (as in beer).

    EDIT : Changed the description of problematic playback.

  • How to make ffserver which can make a snapshots ?

    4 mai 2016, par Serge Roussak

    I need some solution to take a "good" (not corrupted) snapshots from a camera device.

    Now I try to do this using the ffserver. Here is my config :

    HTTPPort 8090
    HTTPBindAddress 0.0.0.0
    MaxHTTPConnections 20
    MaxClients 10
    MaxBandwidth 10000

    <feed>
     File /tmp/feed.ffm
     FileMaxSize 200k

     ACL allow 127.0.0.1
    </feed>

    <stream>
     Feed feed.ffm
     Format jpeg

     VideoSize 800x600
     VideoFrameRate 30
     Preroll 5
     Strict -1

     NoAudio
     NoDefaults
    </stream>

    I run ffmpeg as follows :

    ffmpeg -f video4linux2 -i /dev/video0 -qmax 2 http://localhost:8090/feed.ffm

    and it works (almost) as expected except that sometimes getting a jpeg hangs. I.e. a browser sends the GET request and... alles (de). If I in this case stop the ffmpeg then the browser reports an error, but if don’t touch anything the browser may wait a response very long time. In any case this behaviour is not acceptable for me : it could be better if the ffserver answers with any kind of error or something about this.