Recherche avancée

Médias (91)

Autres articles (106)

  • Les tâches Cron régulières de la ferme

    1er décembre 2010, par

    La gestion de la ferme passe par l’exécution à intervalle régulier de plusieurs tâches répétitives dites Cron.
    Le super Cron (gestion_mutu_super_cron)
    Cette tâche, planifiée chaque minute, a pour simple effet d’appeler le Cron de l’ensemble des instances de la mutualisation régulièrement. Couplée avec un Cron système sur le site central de la mutualisation, cela permet de simplement générer des visites régulières sur les différents sites et éviter que les tâches des sites peu visités soient trop (...)

  • Dépôt de média et thèmes par FTP

    31 mai 2013, par

    L’outil MédiaSPIP traite aussi les média transférés par la voie FTP. Si vous préférez déposer par cette voie, récupérez les identifiants d’accès vers votre site MédiaSPIP et utilisez votre client FTP favori.
    Vous trouverez dès le départ les dossiers suivants dans votre espace FTP : config/ : dossier de configuration du site IMG/ : dossier des média déjà traités et en ligne sur le site local/ : répertoire cache du site web themes/ : les thèmes ou les feuilles de style personnalisées tmp/ : dossier de travail (...)

  • Automated installation script of MediaSPIP

    25 avril 2011, par

    To overcome the difficulties mainly due to the installation of server side software dependencies, an "all-in-one" installation script written in bash was created to facilitate this step on a server with a compatible Linux distribution.
    You must have access to your server via SSH and a root account to use it, which will install the dependencies. Contact your provider if you do not have that.
    The documentation of the use of this installation script is available here.
    The code of this (...)

Sur d’autres sites (11254)

  • Socket code Python code at the end influences code in the beginning

    21 décembre 2019, par Samy Smart

    So basically i am trying to do the following things : Client sends project file, Server receives Project file, Server generates Video file, Server sends video File, Client receives Video File. Everything works up until sending the Video back. The Thing is when i include my code for sending the Video, not even the Things that worked before work anymore.
    The commented code in the code is the code that should send the Video back

    Client :

    import socket

    s = socket.socket()
    ip = socket.gethostname()
    file = "testae.aep"
    s.connect((ip, 1234))

    f = open(file, "rb")
    txt = f.read(1024)
    while txt:
       s.send(txt)
       print(f"Sending... {txt}")
       txt = f.read(1024)
    f.close()
    #f2 = open("final_output.mp4", "wb")
    #txt2 = s.recv(1024)
    #while txt2:
    #    f2.write(txt2)
    #    txt2 = s.recv(1024)
    #f2.close()
    print("received final output")
    s.close()

    Server :

    import os
    import socket

    s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
    s.bind((socket.gethostname(), 1234))
    counter = 0
    s.listen(5)
    aerpath = "C:/aerender.lnk"
    ffmpegpath = '"C:/Program Files/ffmpeg/bin/ffmpeg.exe"'

    while True:
       c, addr = s.accept()
       print("Client Connected")
       print(addr)
       f = open(f"ae_render_file{counter}.aep", "wb")
       txt = c.recv(1024)
       while txt:
           f.write(txt)
           print(f"Receiving... {txt}")
           txt = c.recv(1024)
       print("Out of WHILE")
       f.close()
       print("received file")
       os.system(aerpath + " -project " + f"C:/Users/weilu/PycharmProjects/localAERF/ae_render_file{counter}.aep "
                 + '-comp "Comp 1" ' + f"-output C:/Users/weilu/PycharmProjects/localAERF/output/output{counter}")
       os.system(ffmpegpath + " -i " + f"output/output{counter}.avi -f mp4 -vcodec libx264 -preset slow -profile:v main "
                                       f"-pix_fmt yuv420p -acodec aac -hide_banner output/outputr{counter}.mp4")
       #f2 = open(f"output/outputr{counter}.mp4","rb")
       #txt2 = f2.read(1024)
       #while txt2:
       #    c.send(txt2)
       #    print("Sending...")
       #    txt2 = f.read(1024)
       #f2.close()
       c.close()
       counter += 1
  • lavc/svq3 : stop including h264dec.h

    24 janvier 2022, par Anton Khirnov
    lavc/svq3 : stop including h264dec.h
    

    The only thing that is actually used directly from there is the
    PART_NOT_AVAILABLE constant, which can be moved to h264pred.h.

    Otherwise it only depends on other indirectly included headers.

    • [DH] libavcodec/h264dec.h
    • [DH] libavcodec/h264pred.h
    • [DH] libavcodec/svq3.c
  • RecordRTC recording stop after 1min

    3 novembre 2015, par Mick Jack

    I am using RecordRTC to record a webcam stream and using ffmpeg to convert the output into .mp4 recording of 1min video is fine and the browser merge both the audio and video into a single .mp4 however recording that is longer than 1min will encounter this error.

    i had also asked the author of RecordRTC and he mentioned something about buffersize which i had changed to 0 and still encounter the same problem.

    error

    My Sample Code

    var audioRecorder, videoRecorder, videoURL, connectionStream;
       function initRecorders(stream) {
           //document.getElementById('start-recording').disabled = false;
           document.getElementById('stop-recording').disabled = false;
           document.getElementById('fullscreeniframe').disabled = false;
           //document.getElementById('save-video').disabled = false;
           //document.getElementById('start-recording').onclick = function() {
               this.disabled = true;
               audioRecorder = RecordRTC(stream, {
                   recorderType: StereoAudioRecorder,
                   bufferSize: 16384,  // mandatory: if 720p output is forced. otherwise: optional
                   width: 1280, // optional---- to get 720p output
                   height: 720
               });

               videoRecorder = RecordRTC(stream, {
                   type: 'video',
                   frameInterval: 90
               });

               videoRecorder.initRecorder(function() {
                   audioRecorder.initRecorder(function() {
                       audioRecorder.startRecording();
                       videoRecorder.startRecording();
                   });
               });
           //};``