Recherche avancée

Médias (0)

Mot : - Tags -/presse-papier

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

Autres articles (35)

  • Pas question de marché, de cloud etc...

    10 avril 2011

    Le vocabulaire utilisé sur ce site essaie d’éviter toute référence à la mode qui fleurit allègrement
    sur le web 2.0 et dans les entreprises qui en vivent.
    Vous êtes donc invité à bannir l’utilisation des termes "Brand", "Cloud", "Marché" etc...
    Notre motivation est avant tout de créer un outil simple, accessible à pour tout le monde, favorisant
    le partage de créations sur Internet et permettant aux auteurs de garder une autonomie optimale.
    Aucun "contrat Gold ou Premium" n’est donc prévu, aucun (...)

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

  • Le plugin : Podcasts.

    14 juillet 2010, par

    Le problème du podcasting est à nouveau un problème révélateur de la normalisation des transports de données sur Internet.
    Deux formats intéressants existent : Celui développé par Apple, très axé sur l’utilisation d’iTunes dont la SPEC est ici ; Le format "Media RSS Module" qui est plus "libre" notamment soutenu par Yahoo et le logiciel Miro ;
    Types de fichiers supportés dans les flux
    Le format d’Apple n’autorise que les formats suivants dans ses flux : .mp3 audio/mpeg .m4a audio/x-m4a .mp4 (...)

Sur d’autres sites (4805)

  • No such file error using pydub on OSX with pycharm

    15 juillet 2020, par Michael Harrison

    My ultimate aim is to run the code snippet below on Lambda but as I was having difficulties, I tried running it on my mac. I get the same error running with python2.7 on OSX as I do when I run it on AWS lambda.

    


    The code is :

    


    from pydub import AudioSegment
import os

def test():
    print("Starting")

    files = [f for f in os.listdir('.') if os.path.isfile(f)]
    for f in files:
        print (f)

    sound = AudioSegment.from_mp3("test.mp3")

test()


    


    The output of the code from pycharm is :

    


    Starting&#xA;ffmpeg&#xA;.DS_Store&#xA;requirements.txt&#xA;concat.py&#xA;test.mp3&#xA;ffprobe&#xA;Traceback (most recent call last):&#xA;  File "/Applications/PyCharm CE.app/Contents/plugins/python-ce/helpers/pydev/pydevd.py", line 1438, in _exec&#xA;    pydev_imports.execfile(file, globals, locals)  # execute the script&#xA;  File "/Users/mh/Desktop/sC/concat/concat.py", line 13, in <module>&#xA;    test()&#xA;  File "/Users/mh/Desktop/sC/concat/concat.py", line 11, in test&#xA;    sound = AudioSegment.from_mp3("test.mp3")&#xA;  File "/Users/mh/Desktop/sC/concat/venv2.7/lib/python2.7/site-packages/pydub/audio_segment.py", line 738, in from_mp3&#xA;    return cls.from_file(file, &#x27;mp3&#x27;, parameters=parameters)&#xA;  File "/Users/mh/Desktop/sC/concat/venv2.7/lib/python2.7/site-packages/pydub/audio_segment.py", line 685, in from_file&#xA;    info = mediainfo_json(orig_file, read_ahead_limit=read_ahead_limit)&#xA;  File "/Users/mh/Desktop/sC/concat/venv2.7/lib/python2.7/site-packages/pydub/utils.py", line 274, in mediainfo_json&#xA;    res = Popen(command, stdin=stdin_parameter, stdout=PIPE, stderr=PIPE)&#xA;  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 394, in __init__&#xA;    errread, errwrite)&#xA;  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 1047, in _execute_child&#xA;    raise child_exception&#xA;OSError: [Errno 2] No such file or directory&#xA;</module>

    &#xA;

    Is this actually a problem with pydub/ffmpeg/ffprobe, rather than the location of my mp3 file ? As I'm trying to package this project for Lambda, I've put executable versions of ffmpeg and ffprobe in the root of the project, rather than installed them to my OS. Before I did this, pydub complained that it couldn't find ffmpeg. It's now not complaining but, could I have chosen the wrong binary ?

    &#xA;

    Any ideas ?

    &#xA;

  • Why is my discord.py bot not having voice while being hosted on Heroku ?

    24 juillet 2020, par Flying Thunder

    My bot is all set up and running, everything works, EXCEPT for voice : He joins the channel, but doesnt play audio. I have heard many different claims for what the reason is (no permission to use ffmpeg.exe, missing buildpack, missing dependency, Heroku blocking UDP on free users...) - but i hope that someone here ACTUALLY knows what the problem is, because i couldnt find any definitive reason online.

    &#xA;

    This is the code of the bot : https://github.com/FlyingThunder/DiscordBot/blob/master/main.py&#xA;Everything is working fine on my machine.&#xA;This is the only error that Heroku logs gave me :&#xA;2020-07-24T06:28:30.329937&#x2B;00:00 app[worker.1]: PermissionError: [Errno 13] Permission denied: &#x27;res/ffmpeg.exe&#x27;

    &#xA;

    I already tried adding https://github.com/jonathanong/heroku-buildpack-ffmpeg-latest.git to my buildpacks, and i added cffi==1.14.0 to my requirements.txt - both solutions that are supposed to fix this exact issue.

    &#xA;

  • Python ffmpeg not working on heroku, no error but it just kind off freezes at that line

    17 octobre 2020, par MidasN74

    When I run the bot offline it just works but when i run it on the heroku server it doesn't. it prints the time right at the first time, then the bot connects to the channel and then it just freezes, i get no errors in the heroku logs, the bot just stays online. I've added the ffmpeg buildpack into the buildpacks in heroku and added ffmpeg to the requirements.txt. the time is also correct (i defined the time earlier using an other package) so it can asses the sound file but it just sort of freezes at the ffmep line and doesn't play the sound, and then doesn't print the time and doesn't disconnect.

    &#xA;

    voice = await channel.connect()&#xA;print(time)&#xA;voice.play(discord.FFmpegPCMAudio(f&#x27;sounds/{arg}.mp3&#x27;))&#xA;print(time)&#xA;sleep(time)&#xA;await voice.disconnect()&#xA;

    &#xA;