Recherche avancée

Médias (0)

Mot : - Tags -/médias

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (81)

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

  • Updated file input button style to accomodate larger file selection buttons.

    1er octobre 2013, par blueimp
    Updated file input button style to accomodate larger file selection buttons.
  • FFmpeg : How to create m3u8 file list file steam .txt from .mp4 video

    11 juin 2019, par Susuka Akira

    Can someone help me create m3u8 file with a stream stream of .txt files ?

    The steam file list looks like :

    #EXTM3U
    #EXT-X-VERSION:5
    #EXT-X-TARGETDURATION:7
    #EXT-X-MEDIA-SEQUENCE:0
    #EXTINF:6.000000,
    #EXT-X-BYTERANGE:533168@18
    /output_1.txt
    #EXTINF:5.280000,
    #EXT-X-BYTERANGE:549148@533186
    /output_2.txt
    #EXTINF:4.000000,
    #EXT-X-BYTERANGE:467180@1082334
    /output_3.txt
    .......

    Thank you !

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