Recherche avancée

Médias (0)

Mot : - Tags -/interaction

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

Autres articles (6)

  • Encoding and processing into web-friendly formats

    13 avril 2011, par

    MediaSPIP automatically converts uploaded files to internet-compatible formats.
    Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
    Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
    Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
    All uploaded files are stored online in their original format, so you can (...)

  • D’autres logiciels intéressants

    12 avril 2011, par

    On ne revendique pas d’être les seuls à faire ce que l’on fait ... et on ne revendique surtout pas d’être les meilleurs non plus ... Ce que l’on fait, on essaie juste de le faire bien, et de mieux en mieux...
    La liste suivante correspond à des logiciels qui tendent peu ou prou à faire comme MediaSPIP ou que MediaSPIP tente peu ou prou à faire pareil, peu importe ...
    On ne les connais pas, on ne les a pas essayé, mais vous pouvez peut être y jeter un coup d’oeil.
    Videopress
    Site Internet : (...)

  • Sélection de projets utilisant MediaSPIP

    29 avril 2011, par

    Les exemples cités ci-dessous sont des éléments représentatifs d’usages spécifiques de MediaSPIP pour certains projets.
    Vous pensez avoir un site "remarquable" réalisé avec MediaSPIP ? Faites le nous savoir ici.
    Ferme MediaSPIP @ Infini
    L’Association Infini développe des activités d’accueil, de point d’accès internet, de formation, de conduite de projets innovants dans le domaine des Technologies de l’Information et de la Communication, et l’hébergement de sites. Elle joue en la matière un rôle unique (...)

Sur d’autres sites (3539)

  • Downloading youtube mp3 - metadata encoding issue (python, youtube-dl, ffmpeg)

    21 novembre 2018, par mopsiok

    I’m trying to download audio from youtube with youtube-dl.exe and ffmpeg.exe (Windows 7), but I am having some troubles with encoding. I have to parse metadata manually, because when I try to use

    --metadata-from-title "%(artist) - %(title)" --extract-audio --audio-format mp3 https://www.youtube.com/watch?v=DaU94Ld3fuM

    I get ERROR : Could not interpret title of video as "%(artist) - %(title)"

    Anyway, I wrote some code to save metadata with ffmpeg :

    def download(url, title_first=False):
       if (0 == subprocess.call('youtube-dl --extract-audio --audio-format mp3 %s' % url)):
           #saves file in current directory in format: VID_TITLE-VID_ID.mp3
           video_id = url[url.find('=')+1:] #video id from URL (after ?v=)
           for f in os.listdir('.'):
               if video_id in f:
                   filename = f
                   break
           os.rename(filename, video_id+'.mp3') #name without non-ascii chars (for tests)
           video_title = filename[: filename.find(video_id)-1]

           output = video_title + '.mp3'
           title, artist = '', ''
           try: #parsing the title
               x = video_title.find('-')
               artist = video_title[:x].strip()
               title = video_title[x+1:].strip()
               if (title_first): output = '%s - %s.mp3' % (title, artist)
           except:
               pass

           x = 'ffmpeg -i "%s" -metadata title="%s" -metadata artist="%s" -acodec copy -id3v2_version 3 -write_id3v1 1 "%s"' \
                           % (video_id+'.mp3', title, artist, output)
           print x
           subprocess.call(x)

    The file is downloaded and then cropped to given start and duration times (the code above is a simplified version). Filename is fine, but when I open the file with AIMP3, it shows rubbish instead of non-ascii characters :

    enter image description here

    I’ve tried to re-encode the final command with iso-8859-2, utf-8 and mbcs :

    x = x.decode('cp1250').encode('iso-8859-2')

    But non-ascii chars are still not readable. Passing an unicode command returns UnicodeEncodeError...

    Any idea how to solve this problem ?

  • Downloading youtube mp3 - metadata encoding issue (python, youtube-dl, ffmpeg)

    21 mai 2015, par mopsiok

    I’m trying to download audio from youtube with youtube-dl.exe and ffmpeg.exe (Windows 7), but I am having some troubles with encoding. I have to parse metadata manually, because when I try to use

    --metadata-from-title "%(artist) - %(title)" --extract-audio --audio-format mp3 https://www.youtube.com/watch?v=DaU94Ld3fuM

    I get ERROR : Could not interpret title of video as "%(artist) - %(title)"

    Anyway, I wrote some code to save metadata with ffmpeg :

    def download(url, title_first=False):
       if (0 == subprocess.call('youtube-dl --extract-audio --audio-format mp3 %s' % url)):
           #saves file in current directory in format: VID_TITLE-VID_ID.mp3
           video_id = url[url.find('=')+1:] #video id from URL (after ?v=)
           for f in os.listdir('.'):
               if video_id in f:
                   filename = f
                   break
           os.rename(filename, video_id+'.mp3') #name without non-ascii chars (for tests)
           video_title = filename[: filename.find(video_id)-1]

           output = video_title + '.mp3'
           title, artist = '', ''
           try: #parsing the title
               x = video_title.find('-')
               artist = video_title[:x].strip()
               title = video_title[x+1:].strip()
               if (title_first): output = '%s - %s.mp3' % (title, artist)
           except:
               pass

           x = 'ffmpeg -i "%s" -metadata title="%s" -metadata artist="%s" -acodec copy -id3v2_version 3 -write_id3v1 1 "%s"' \
                           % (video_id+'.mp3', title, artist, output)
           print x
           subprocess.call(x)

    The file is downloaded and then cropped to given start and duration times (the code above is a simplified version). Filename is fine, but when I open the file with AIMP3, it shows rubbish instead of non-ascii characters :

    enter image description here

    I’ve tried to re-encode the final command with iso-8859-2, utf-8 and mbcs :

    x = x.decode('cp1250').encode('iso-8859-2')

    But non-ascii chars are still not readable. Passing an unicode command returns UnicodeEncodeError...

    Any idea how to solve this problem ?

  • Anomalie #2024 : langue des boutons d’admin sur www.spip.net

    2 juin 2012, par jluc -

    Non c’est bon maintenant pour moi.