Recherche avancée

Médias (91)

Autres articles (73)

  • Gestion des droits de création et d’édition des objets

    8 février 2011, par

    Par défaut, beaucoup de fonctionnalités sont limitées aux administrateurs mais restent configurables indépendamment pour modifier leur statut minimal d’utilisation notamment : la rédaction de contenus sur le site modifiables dans la gestion des templates de formulaires ; l’ajout de notes aux articles ; l’ajout de légendes et d’annotations sur les images ;

  • Supporting all media types

    13 avril 2011, par

    Unlike most software and media-sharing platforms, MediaSPIP aims to manage as many different media types as possible. The following are just a few examples from an ever-expanding list of supported formats : images : png, gif, jpg, bmp and more audio : MP3, Ogg, Wav and more video : AVI, MP4, OGV, mpg, mov, wmv and more text, code and other data : OpenOffice, Microsoft Office (Word, PowerPoint, Excel), web (html, CSS), LaTeX, Google Earth and (...)

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

Sur d’autres sites (5062)

  • AttributeError : 'FFmpegAudio' object has no attribute '_process' while trying to play audio from URL

    13 août 2022, par jmcamacho7

    I can't find any solution online and I don't know what's wrong.

    


    My code is : (Not pasting the URL getting since that works fine)

    


    from urllib import parse, request
import re
import pafy
from discord import FFmpegPCMAudio, PCMVolumeTransformer

FFMPEG_OPTIONS = {
    'before_options': '-reconnect 1 -reconnect_streamed 1 -reconnect_delay_max 5', 'options': '-vn'
}

@bot.command(pass_context=True)
async def play(ctx, * , search):
  query_string = parse.urlencode({'search_query': search})
  html_content = request.urlopen('http://www.youtube.com/results?' + query_string)
  search_results=re.findall('watch\?v=(.{11})',html_content.read().decode('utf-8'))
  print(search_results[0])
  
  if(ctx.author.voice):
    channel = ctx.message.author.voice.channel
    await ctx.send("https://www.youtube.com/watch?v="+search_results[0])  
    url = "https://www.youtube.com/watch?v="+search_results[0]
    conn = await channel.connect()
    conn.play(discord.FFmpegAudio(url, **FFMPEG_OPTIONS))
  else:
    await ctx.send("Necesitas estar en un canal de audio para usar este comando")


    


    It just gives me this error everytime I try it :

    


    Traceback (most recent call last):
  File "/home/runner/HakuBot/venv/lib/python3.8/site-packages/discord/player.py", line 103, in __del__
    self.cleanup()
  File "/home/runner/HakuBot/venv/lib/python3.8/site-packages/discord/player.py", line 154, in cleanup
    proc = self._process
AttributeError: 'FFmpegAudio' object has no attribute '_process'


    


    Anyway to solve this ?

    


  • Revision 028e5c6ac67357a01f622c5bb3b9a20510f695ff : Validateur intégré : pouvoir filtrer les fichiers d’un répertoire plus ...

    20 août 2010, par Committo,Ergo:sum — Log

    Validateur intégré : pouvoir filtrer les fichiers d’un répertoire plus finement que par l’extension, et indiquer le nombre de fichiers fautifs. Et améliorer la présentation (mais faudrait passer par le feuille de style un jour). git-svn-id : svn ://trac.rezo.net/spip/branches/spip-2.1@15957 (...)

  • Convert m4a to aac and keep metadata on Windows 7

    24 novembre 2014, par betamax

    I want to convert an m4a file to aac*. I can do this using :

    ffmpeg -i song.m4a -acodec copy song.aac

    But on Windows 7 the metadata is not compatible. It seems the -id3v2_version 3 flag should be used so that Windows compatible ID3 tags version 2.3 are used :

    ffmpeg -i song.m4a -acodec copy -id3v2_version 3 song.aac

    However, with the above command I still don’t get any metadata in song.aac. I have used windows file explorer, mp3tag and winamp to confirm there are no tags.

    * : reason ; m4a won’t play on the car stereo so following this advice (http://www.vwaudiforum.co.uk/forum/showthread.php?153728-Tip-Getting-M4A-(iTunes)-format-music-to-play-on-a-VW-head-unit)

    Console Output :

    C:\temp>ffmpeg -i song.m4a -acodec copy -id3v2_version 3 song.aac
    ffmpeg version N-67914-gf87a344 Copyright (c) 2000-2014 the FFmpeg developers
     built on Nov 22 2014 22:10:18 with gcc 4.9.2 (GCC)
     configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfi
    g --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --
    enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-lib
    opencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinge
    r --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-aacenc --
    enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-
    libx265 --enable-libxavs --enable-libxvid --enable-zlib
     libavutil      54. 15.100 / 54. 15.100
     libavcodec     56. 13.100 / 56. 13.100
     libavformat    56. 15.100 / 56. 15.100
     libavdevice    56.  3.100 / 56.  3.100
     libavfilter     5.  2.103 /  5.  2.103
     libswscale      3.  1.101 /  3.  1.101
     libswresample   1.  1.100 /  1.  1.100
     libpostproc    53.  3.100 / 53.  3.100
    [mov,mp4,m4a,3gp,3g2,mj2 @ 0000000002dcc760] stream 0, timescale not set
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'song.m4a':
     Metadata:
       major_brand     : M4A
       minor_version   : 0
       compatible_brands: M4A mp42isom
       creation_time   : 1980-07-20 13:32:00
       iTunSMPB        :  00000000 00000840 0000007C 0000000001027F44 00000000 00000000 00000000 00000000 00000000 00000000
    00000000 00000000
       iTunNORM        :  0000061A 0000052A 00001C40 000021EE 00035E0A 00046912 00007B8C 00007B99 0002845B 00024D35
       title           : Time Away
       artist          : Andy Stott
       album_artist    : Andy Stott
       album           : Faith In Strangers
       genre           : Electronic
       track           : 1/9
       disc            : 1/1
       compilation     : 0
       gapless_playback: 0
       date            : 2014-11-17T08:00:00Z
       copyright       : Ôäù 2014 Modern Love
       media_type      : 1
       iTunMOVI        : <?xml version="1.0" encoding="UTF-8"?>
                       :
                       : <plist version="1.0">
                       : <dict>
                       :   <key>asset-info</key>
                       :   <dict>
                       :           <key>file-size</key>
                       :           <integer>14359364</integer>
                       :           <key>flavor</key>
                       :           <string>2:256</string>
                       :   </dict>
                       : </dict>
                       : </plist>
                       :
     Duration: 00:06:24.20, start: 0.000000, bitrate: 298 kb/s
       Stream #0:0(eng): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 285 kb/s (default)
       Metadata:
         creation_time   : 1980-07-20 13:32:00
       Stream #0:1: Video: mjpeg, gray(bt470bg/unknown/unknown), 1400x1400 [SAR 300:300 DAR 1:1], 90k tbr, 90k tbn, 90k tbc

    Output #0, adts, to 'song.aac':
     Metadata:
       major_brand     : M4A
       minor_version   : 0
       compatible_brands: M4A mp42isom
       iTunMOVI        : &lt;?xml version="1.0" encoding="UTF-8"?>
                       :
                       : <plist version="1.0">
                       : <dict>
                       :   <key>asset-info</key>
                       :   <dict>
                       :           <key>file-size</key>
                       :           <integer>14359364</integer>
                       :           <key>flavor</key>
                       :           <string>2:256</string>
                       :   </dict>
                       : </dict>
                       : </plist>
                       :
       iTunSMPB        :  00000000 00000840 0000007C 0000000001027F44 00000000 00000000 00000000 00000000 00000000 00000000
    00000000 00000000
       iTunNORM        :  0000061A 0000052A 00001C40 000021EE 00035E0A 00046912 00007B8C 00007B99 0002845B 00024D35
       title           : Time Away
       artist          : Andy Stott
       album_artist    : Andy Stott
       album           : Faith In Strangers
       genre           : Electronic
       track           : 1/9
       disc            : 1/1
       compilation     : 0
       gapless_playback: 0
       date            : 2014-11-17T08:00:00Z
       copyright       : Ôäù 2014 Modern Love
       media_type      : 1
       encoder         : Lavf56.15.100
       Stream #0:0(eng): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, 285 kb/s (default)
       Metadata:
         creation_time   : 1980-07-20 13:32:00
    Stream mapping:
     Stream #0:0 -> #0:0 (copy)
    Press [q] to stop, [?] for help
    size=   13523kB time=00:06:24.19 bitrate= 288.3kbits/s
    video:0kB audio:13410kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.843272%

    C:\temp>