Recherche avancée

Médias (1)

Mot : - Tags -/école

Autres articles (97)

  • MediaSPIP 0.1 Beta version

    25 avril 2011, par

    MediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
    The zip file provided here only contains the sources of MediaSPIP in its standalone version.
    To get a working installation, you must manually install all-software dependencies on the server.
    If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)

  • 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 (...)

  • ANNEXE : Les plugins utilisés spécifiquement pour la ferme

    5 mars 2010, par

    Le site central/maître de la ferme a besoin d’utiliser plusieurs plugins supplémentaires vis à vis des canaux pour son bon fonctionnement. le plugin Gestion de la mutualisation ; le plugin inscription3 pour gérer les inscriptions et les demandes de création d’instance de mutualisation dès l’inscription des utilisateurs ; le plugin verifier qui fournit une API de vérification des champs (utilisé par inscription3) ; le plugin champs extras v2 nécessité par inscription3 (...)

Sur d’autres sites (10431)

  • avcodec/mips/h264chroma_mmi : Version 2 of the optimizations for loongson mmi

    17 mai 2016, par ZhouXiaoyong
    avcodec/mips/h264chroma_mmi : Version 2 of the optimizations for loongson mmi
    

    1. no longer use the register names directly and optimized code format
    2. to be compatible with O32, specify type of address variable with mips_reg and handle the address variable with PTR_ operator
    3. use uld and mtc1 to workaround cpu 3A2000 gslwlc1 bug (gslwlc1 instruction extension bug in O32 ABI)

    Signed-off-by : Michael Niedermayer <michael@niedermayer.cc>

    • [DH] libavcodec/mips/h264chroma_mmi.c
  • Run PHP exec() asynchronously, but check for completion ?

    1er septembre 2015, par PeregrineStudios

    I’m coding up a website back-end that will include user-uploaded video. In order to ensure maximum accessibility, I’m compressing the uploaded videos and re-saving them as .mp4 and .webm format to cover all browsers (or as many as possible anyway). To do this, I’m running an avconv command in the PHP exec() function.

    I don’t want to make the user wait for the script to finish before the page loads, so I’m running the code asynchronously. My code so far is below.

    exec('bash -c "exec nohup setsid avconv -i ' . $tempPath . ' -c:v libx264 ' . $transpose . ' ' . $newPath . 'mp4 > /dev/null 2>/dev/null &amp;"');
    exec('bash -c "exec nohup setsid avconv -i ' . $tempPath . ' -c:v libvpx ' . $transpose . ' ' . $newPath . 'webm > /dev/null 2>/dev/null &amp;"');

    In addition to running the exec functions, I also save the video to a database and send the user an email thanking them for uploading their video.

    Here’s the rub : I want the server to WAIT until the video conversion is finished, and THEN add it to the database and send the user an email. Basically, the program flow would be :

    User uploads video.
    Video is placed in a temp folder.
    User is taken to a thank you page indicating their video will be up shortly.
    The server executes two avconv commands to convert and compress the video for web use.
    Once BOTH conversions are finished, the video info is added to a MySQL database, an email is sent to the user, and the original uploaded video is deleted.

    It may just be my ignorance of the command line (in fact it almost definitely is), but how could I ’queue up’ these commands ? First do both conversions, then call a PHP script to add to the database, then delete the original video, all while being asynchronous with the original PHP script ?

    EDIT : I’ve tried queuing them up with an ’&&’ operator, like below :

    exec('bash -c "exec nohup setsid avconv -i ' . $tempPath . ' -c:v libx264 ' . $transpose . ' ' . $newPath . 'mp4 &amp;&amp; avconv -i ' . $tempPath . ' -c:v libvpx ' . $transpose . ' ' . $newPath . 'webm > /dev/null 2>/dev/null &amp;"');

    However, that seems to cancel out the fact that I’m running it asynchronously, since the page now seems to wait for the command to finish.

  • avio_open2 fails randomly for RTMPS Facebook live streaming

    3 janvier, par Usama

    I am trying to re stream a video to Facebook RTMPS endpoint and , facing an issue specifically with Facebook's RTMPS endpoint . I have tried with linkedin RTMPS endpoint and its working fine , but Facebook end point some times works and fails some times its totally random . The avio_open2 call sometimes fails randomly, returning a -5 error. This only seems to happen with the Facebook endpoint .on ffmpeg log side I see that the handshake was successful , I don't understand the reason for failure here. (i am running in multithreaded environment )

    &#xA;

    int ret = avformat.avio_open2(pb, url , AVIO_FLAG_WRITE, null, getOptionDictionary()) ;

    &#xA;

    [rtmps @ 0x7a5978023640] Handshaking...&#xA;[rtmps @ 0x7a5978023640] Type answer 3&#xA;[rtmps @ 0x7a5978023640] Server version 1.0.5.4&#xA;[rtmps @ 0x7a5978023640] Proto = rtmps, path = /rtmp/FB-1709082269638040-0-test-KRmT_Y, app = rtmp, fname = FB-1709082269638040-0-AbyNzKGtN-KRmT_Y&#xA;[rtmps @ 0x7a5978023640] Window acknowledgement size = 5000000&#xA;[rtmps @ 0x7a5978023640] Max sent, unacked = 5000000&#xA;[rtmps @ 0x7a5978023640] New incoming chunk size = 4096&#xA;[rtmps @ 0x7a5978023640] Releasing stream...&#xA;[rtmps @ 0x7a5978023640] FCPublish stream...&#xA;[rtmps @ 0x7a5978023640] Creating stream...&#xA;[rtmps @ 0x7a5978023640] Sending publish command for &#x27;FB-test-0-test-KRmT_Y&#x27;&#xA;[rtmps @ 0x7a5964021780] No default whitelist set&#xA;[tls @ 0x7a596402a900] No default whitelist set&#xA;[tcp @ 0x7a596402ab00] No default whitelist set&#xA;[tcp @ 0x7a596402ab00] Original list of addresses:&#xA;[tcp @ 0x7a596402ab00] Address 57.144.176.149 port 443&#xA;[tcp @ 0x7a596402ab00] Address 2a03:2880:f358:95:face:b00c:0:1411 port 443&#xA;[tcp @ 0x7a596402ab00] Interleaved list of addresses:&#xA;[tcp @ 0x7a596402ab00] Address 57.144.176.149 port 443&#xA;[tcp @ 0x7a596402ab00] Address 2a03:2880:f358:95:face:b00c:0:1411 port 443&#xA;[tcp @ 0x7a596402ab00] Starting connection attempt to 57.144.176.149 port 443&#xA;[tcp @ 0x7a596402ab00] Successfully connected to 57.144.176.149 port 443&#xA;&#xA;

    &#xA;

    My java cpp and ffmpeg version is

    &#xA;

    1.5.11&#xA;7.1-${javacpp.version}&#xA;

    &#xA;