Recherche avancée

Médias (1)

Mot : - Tags -/musée

Autres articles (80)

  • Soumettre améliorations et plugins supplémentaires

    10 avril 2011

    Si vous avez développé une nouvelle extension permettant d’ajouter une ou plusieurs fonctionnalités utiles à MediaSPIP, faites le nous savoir et son intégration dans la distribution officielle sera envisagée.
    Vous pouvez utiliser la liste de discussion de développement afin de le faire savoir ou demander de l’aide quant à la réalisation de ce plugin. MediaSPIP étant basé sur SPIP, il est également possible d’utiliser le liste de discussion SPIP-zone de SPIP pour (...)

  • Diogene : création de masques spécifiques de formulaires d’édition de contenus

    26 octobre 2010, par

    Diogene est un des plugins ? SPIP activé par défaut (extension) lors de l’initialisation de MediaSPIP.
    A quoi sert ce plugin
    Création de masques de formulaires
    Le plugin Diogène permet de créer des masques de formulaires spécifiques par secteur sur les trois objets spécifiques SPIP que sont : les articles ; les rubriques ; les sites
    Il permet ainsi de définir en fonction d’un secteur particulier, un masque de formulaire par objet, ajoutant ou enlevant ainsi des champs afin de rendre le formulaire (...)

  • Support de tous types de médias

    10 avril 2011

    Contrairement à beaucoup de logiciels et autres plate-formes modernes de partage de documents, MediaSPIP a l’ambition de gérer un maximum de formats de documents différents qu’ils soient de type : images (png, gif, jpg, bmp et autres...) ; audio (MP3, Ogg, Wav et autres...) ; vidéo (Avi, MP4, Ogv, mpg, mov, wmv et autres...) ; contenu textuel, code ou autres (open office, microsoft office (tableur, présentation), web (html, css), LaTeX, Google Earth) (...)

Sur d’autres sites (6702)

  • How to define the condition of a corrupted file for audio file in Python

    14 août 2020, par kutlus

    I am using Python 3.6, Jupyter notebook by connecting to a remote machine. I have a large dataset of mp3 files. I use FFmpeg (version is 2.8.14-0ubuntu0.16.04.1.) to convert mp3 files to wav format.

    


    My code below goes over the file path list and if the file is mp3 it converts it to wav format and deletes the mp3 file. The code works but for a few files it stops and gives error. I opened those files and saw that they have no duration and each of them has size 600 looking at the terminal folder size column but it might be a coincidence. The error is file not found for 'temp_name.wav'.

    


    I can see that these corrupted files are not able to be converted to wav. When I delete them manually and run the code again it works. But I have large datasets and cannot know which files are corrupted beforehand. Is there a way to make the code (before converting the file to wav) if the file is corrupted it deletes it and continues to next file. I just don`t know how to define the condition of a corrupted file or if the file cannot be converted to wav.

    


    # npaths is the list of full file paths 
for fpath in npaths:
    if (fpath.endswith(".mp3")):
        cdir=os.path.dirname(fpath)      # extract the directory of file
        os.chdir(cdir)        # change the directory to cdir
        filename=os.path.basename(fpath)   # extract the filename from the path
        os.system("ffmpeg -i {0} temp_name.wav".format(filename))
        ofnamepath=os.path.splitext(fpath)[0]    # filename without extension
        temp_name=os.path.join(cdir, "temp_name.wav")
        new_name = os.path.join(ofnamepath+'.wav')
        os.rename(temp_name,new_name) # use original filename with wav ext
        old_file = os.path.join(ofnamepath+'.mp3')    # find and delete the mp3
        os.remove(old_file)


    


  • Want to print a console message on every .ts file entry in m3u8 file by ffmpeg

    18 décembre 2015, par Anurag Yadav

    I am using ffmpeg to record ip camera rtsp stream. I want to get .ts file entry at the instant when the entry is done in m3u8 file so that i can get and store it somewhere else. That’s why i want to print a console message when ffmpeg do entry on m3u8 file. I am using below command. Also Iam running command using java.

    ffmpeg -rtsp_transport tcp -i <ip camera="camera" rtsp="rtsp" url="url"> -c:v copy -map 0 -f segment -segment_time 5 -segment_list_type m3u8 -segment_list /home/ira/Desktop/test/out.m3u8 -segment_format ts -y /home/ira/Desktop/test/out%01d.ts
    </ip>
  • How to keep the orientation number after converting from a video file to a image file by a ffmpeg command

    15 mars 2018, par user27240

    The command below is working perfectly fine for my environment except it deletes the orientation number of the image file after being converted from a video file.

    I’d like to know how to keep the orientation number of the image with the command line below(it also have to keep the original purpose of its functionality which is conversion of a video to a image to another directory). I’d appreciate your support.

    for i in /path/to/inputs/*.mp4; do ffmpeg -i "$i" -frames:v 1 "/path/to/outputs/$(basename "$i" .mp4).jpg"; done

    ffmpeg version 2.2.2
    OS:centos-6 (x86_64)