Recherche avancée

Médias (3)

Mot : - Tags -/Valkaama

Autres articles (69)

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

  • Creating farms of unique websites

    13 avril 2011, par

    MediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
    This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...)

  • Le profil des utilisateurs

    12 avril 2011, par

    Chaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
    L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...)

Sur d’autres sites (6955)

  • ffmpeg pipe blocks while capturing

    26 juin 2013, par Marco Vasapollo

    I have this code :

    public InputStream getInputStream() throws Exception {
       try {
           process = Runtime.getRuntime().exec("ffmpeg -f dshow -i video=\"" + query + "\":audio=\"" + microPhoneName + "\" -r 25 -vcodec mpeg4 -acodec mp3 -f avi -");
           }
           catch (Exception e) {
           }
       return process.getInputStream();
    }

    When i use the inputStream.read(b) command, it works only for a little bit of times (180 to 400 times, depending from formats and codecs I use) then the inputStream lock on read and the application doesn't go anymore.

    What's the problem ? Memory saturation (ffmpeg process memory is at least 14mb) ?
    Is there a way to unlock this situation (clean memory, use a file as a bridge to prevent locks) ?

    Of course I need a little bit of "realtime", and not "post-process".
    I'm not constrained to use ffmpeg, I can change it if necessary.

  • ffmpeg throws conversion error, but only if the triggering web request is made from safari ?

    22 novembre 2022, par Kyoshiro Kokujou Obscuritas

    I'm using ffmpeg to do an on-the-fly conversion of audio files to ensure high compatibility. i'm converting them to OGG. and all of this is done by a .NET 6 REST service.
This service is then accessed by a javascript Frontend.
Now the problem. The exact same request runs through without any problems on Windows + Firefox, but it does not on Safari. In Safari it says something about "unknownConversion failed"

    


    it's the same file, it's the same name, and to make sure there are no weird invisible characters i used the Microsoft File API to convert it to a proper file path.

    


    code looks like this

    


    var ffmpeg = new Process();
        var startInfo = new ProcessStartInfo("D:\\Programme\\ffmpeg\\bin\\ffmpeg.exe",
            $"-i \"{path.FullName}\" -c:a libopus -f ogg -")
        {
            RedirectStandardError = true,
            RedirectStandardOutput = true,
            RedirectStandardInput = true,
            UseShellExecute = false,
            CreateNoWindow = true
        };
        ffmpeg.EnableRaisingEvents = true;
        ffmpeg.StartInfo = startInfo;
        ffmpeg.ErrorDataReceived += OnErrorDataReceived;
        ffmpeg.Exited += OnFinished;

        ffmpeg.Start();
        ffmpeg.BeginErrorReadLine();

        return File(new BufferedStream(ffmpeg.StandardOutput.BaseStream), "audio/ogg");


    


    Complete Logs : https://pastebin.com/tTUcsjuT

    


  • Nuxeo video conversion issue

    14 septembre 2016, par pradeep gowda

    I am new to nuxeo. Let me describe.

    Description :
    1. Nuxeo requires external service ffmpeg to convert video in to different formats[mp4,webm etc...]
    2. ffmpeg is installed
    3. Problem in Video conversion

    If i start nuxeo as below

    Path= $NUXEO_HOME/bin
    ./nuxeoctl start

    No issues, Works fine.

    But i am facing issue in video conversion when i start nuxeo as daemon service.

    service nuxeo start

    Below is my Bash Script :

    #!/bin/sh
    ### BEGIN INIT INFO
    # Provides:          nuxeo
    # Required-Start:    $local_fs $remote_fs $network $syslog
    # Required-Stop:     $local_fs $remote_fs $network $syslog
    # Default-Start:     2 3 4 5
    # Default-Stop:      0 1 6
    # Short-Description: Start/stop Nuxeo
    # Description:       Start/stop Nuxeo
    ### END INIT INFO

    DESC="Nuxeo"

    NUXEOCTL="/opt/cisco/nuxeo-cap-7.10-tomcat/bin/nuxeoctl"
    NUXEO_CONF="/var/lib/nuxeo/conf/nuxeo.conf"
    export NUXEO_CONF



    function start() {
       echo $$ > /var/run/nuxeo.pid
       exec $NUXEOCTL --quiet startbg
    }

    function stop() {
       $NUXEOCTL --quiet stop
       /bin/rm /var/run/nuxeo.pid
    }

    case "$1" in
     start)
           start
           ;;
     stop)
           stop
           ;;
     restart)
           
           $NUXEOCTL --quiet restart
           
           ;;
     force-reload)
           
           $NUXEOCTL --quiet restart
           ;;
     status)
           $NUXEOCTL --quiet status
           ;;
     showconf)
           $NUXEOCTL --xml showconf
           ;;
     *)
           echo "Usage: $0 {start|stop|restart|force-reload|status|showconf}" >&2
           exit 3
           ;;
    esac

    I am getting following error. when i try to upload video.

    2016 - 09 - 14 05: 49: 01, 943 ERROR[Nuxeo - Work - videoConversion - 2][org.nuxeo.ecm.core.work.AbstractWork] Exception during work: VideoConversionWork(9596ea87 - 43dd - 4ba8 - b691 - 6e519a7eccfb, /videoAutomaticConversions:138979904092822.1006934040, Progress(?%, ?/0), Transcoding)
    org.nuxeo.ecm.core.convert.api.ConverterNotAvailable: Converter convertToWebM is not available
    at org.nuxeo.ecm.core.convert.service.ConversionServiceImpl.convert(ConversionServiceImpl.java: 178)
    at org.nuxeo.ecm.platform.video.service.VideoServiceImpl.convert(VideoServiceImpl.java: 175)
    at org.nuxeo.ecm.platform.video.service.VideoConversionWork.work(VideoConversionWork.java: 100)
    at org.nuxeo.ecm.core.work.AbstractWork.runWorkWithTransaction(AbstractWork.java: 340)
    at org.nuxeo.ecm.core.work.AbstractWork.runWorkWithTransactionAndCheckExceptions(AbstractWork.java: 301)
    at org.nuxeo.ecm.core.work.AbstractWork.run(AbstractWork.java: 272)
    at org.nuxeo.ecm.core.work.WorkHolder.run(WorkHolder.java: 52)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java: 1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java: 617)
    at java.lang.Thread.run(Thread.java: 745)

    I don’t know why. I am behind this issue but still i am not able find solution for this .