Recherche avancée

Médias (1)

Mot : - Tags -/biomaping

Autres articles (43)

  • La file d’attente de SPIPmotion

    28 novembre 2010, par

    Une file d’attente stockée dans la base de donnée
    Lors de son installation, SPIPmotion crée une nouvelle table dans la base de donnée intitulée spip_spipmotion_attentes.
    Cette nouvelle table est constituée des champs suivants : id_spipmotion_attente, l’identifiant numérique unique de la tâche à traiter ; id_document, l’identifiant numérique du document original à encoder ; id_objet l’identifiant unique de l’objet auquel le document encodé devra être attaché automatiquement ; objet, le type d’objet auquel (...)

  • La sauvegarde automatique de canaux SPIP

    1er avril 2010, par

    Dans le cadre de la mise en place d’une plateforme ouverte, il est important pour les hébergeurs de pouvoir disposer de sauvegardes assez régulières pour parer à tout problème éventuel.
    Pour réaliser cette tâche on se base sur deux plugins SPIP : Saveauto qui permet une sauvegarde régulière de la base de donnée sous la forme d’un dump mysql (utilisable dans phpmyadmin) mes_fichiers_2 qui permet de réaliser une archive au format zip des données importantes du site (les documents, les éléments (...)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;

Sur d’autres sites (7006)

  • How can I extract the metadata and bitrate info from a audio/video file in python

    4 janvier 2015, par Fight Fire With Fire

    What I would like to do is get the metadata from audio or video files and save it to a database record, so far the only way to do this seems to save AVCONV/FFMPEG to a file using a subprocess.Open call then read that file, is there any libraries that can do this to save some steps ? I couldn’t find a way to do it with Pydub or PySox. Here is my simplistic hamfisted beginner code I used that does work and puts the bitrate, duration, etc info into a variable audio_info and the metadata into metadata. OGG output worked differently than the other formats i tested (which was a ton of video and audio !).

       try:
               p = subprocess.Popen(["avconv" , "-i" , music_file], stdout=subprocess.PIPE, stderr=subprocess.PIPE)
               out, err = p.communicate()
               retcode = p.wait()
       except IOError,e:
               pass
       extension = uploaded_music_file[-3:]
       if "ogg" not in [err , extension]:
               if "Metadata:" in err:
                       list = err.split("Metadata:")
                       holder = list[1].split("Duration:")
                       metadata = holder[0]
                       audio_info = holder[1].replace("At least one output file must be specified","")
                       print metadata
                       print audio_info
               else:
                       list = err.split("Duration:")
                       audio_info = list[1].replace("At least one output file must be specified","")
                       print "No Metadata"
                       print audio_info
       else:
               list = err.split("Duration:")
               if "Metadata:" in list[1]:
                       data = list[1].split("Metadata:")
                       metadata = data[1].replace("At least one output file must be specified","")
                       audio_info = data[0]
                       print metadata
                       print audio_info
               else:
                       audio_info = list[1].replace("At least one output file must be specified","")
                       print "No Metadata"
                       print audio_info
    if (audio_info):
               print "AUDIO INFO:"
               cursor.execute("UPDATE songDB SET audio_info = %s WHERE id = %s" ,[ audio_info , song_id ] )
               if (metadata):
                       print "METADATA:"
                       cursor.execute("songDB pack_song SET metadata = %s WHERE id = %s" ,[ metadata , song_id ] )
  • Trouble downloading files in Dropbox Python API v2

    16 août 2019, par jack

    I’m trying to download .mov files from Dropbox, manipulate them with ffmpeg, and upload back to Dropbox, but I’m getting an error when I use the files_download method.

    I’m able to read files from Dropbox without any problem using dbx.files_list_folder

    When trying to download files, I’ve used the following :

    import dropbox
    access_token = 'MY TOKEN'
    dbx = dropbox.Dropbox(access_token)
    metadata,file=dbx.files_download('path to .mov file')

    and I get the error

    SSLError: HTTPSConnectionPool(host='content.dropboxapi.com', port=443): Max retries exceeded with url: /2/files/download (Caused by SSLError(SSLError("bad handshake: Error([('SSL routines', 'tls_process_server_certificate', 'certificate verify failed')])")))

    I don’t know if this is a cause, but I didn’t use the Dropbox app key or app secret in setting things up. In going through the API v2 setup, it looked like all you need is the API Access token, but I’m wondering if there’s a permissions error.

    I’ll only be using this app for myself—it’s not meant for production.

  • Is it possible to fetch some key-frames of a video by using the HTTP Range header

    9 décembre 2020, par pvd

    I've read the SO problem , and it seems not applying to my specific case.

    


    Is it possible to fetch some key-frames of a video from web server by the HTTP Range header ? For example, for a 30 seconds duration video, we'd like to analysis the I-frame around 00:00:02, 00:00:15, 00:00:28.

    


    I need to analysis the videos from internal web server to detect if there's specific watermarks in it and some other analysis.

    


    Since the first I-frame might be invalid sometimes(Logo for example), we were planning to extract the I-frame from the 00:00:02, the middle I-frame, and the last 2nd second I-frame.

    


    For example, for a 30 seconds duration video, we'd like to analysis the I-frame around 00:00:02, 00:00:15, 00:00:28.

    


    We could make it works while download the whole video, since most of the data we downloaded from the server are not being used. I was wondering if maybe we could only use the HTTP Range header to download partial data and analysis it ?