Recherche avancée

Médias (1)

Mot : - Tags -/framasoft

Autres articles (96)

  • MediaSPIP 0.1 Beta version

    25 avril 2011, par

    MediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
    The zip file provided here only contains the sources of MediaSPIP in its standalone version.
    To get a working installation, you must manually install all-software dependencies on the server.
    If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)

  • HTML5 audio and video support

    13 avril 2011, par

    MediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
    The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
    For older browsers the Flowplayer flash fallback is used.
    MediaSPIP allows for media playback on major mobile platforms with the above (...)

  • ANNEXE : Les plugins utilisés spécifiquement pour la ferme

    5 mars 2010, par

    Le site central/maître de la ferme a besoin d’utiliser plusieurs plugins supplémentaires vis à vis des canaux pour son bon fonctionnement. le plugin Gestion de la mutualisation ; le plugin inscription3 pour gérer les inscriptions et les demandes de création d’instance de mutualisation dès l’inscription des utilisateurs ; le plugin verifier qui fournit une API de vérification des champs (utilisé par inscription3) ; le plugin champs extras v2 nécessité par inscription3 (...)

Sur d’autres sites (8878)

  • Jupyter Notebook JSONDecodeError to open file

    25 février 2021, par potterykid

    Expected behavior :
open a mp3 with no error

    


    Actual behavior :
I used the script below,

    


    from pydub
import AudioSegment

    


    song = AudioSegment.from_mp3("audio.mp3")

    


    and there is a JSONDecodeError

    


    JSONDecodeError : Expecting value : line 1 column 1 (char 0)

    


    JSONDecodeError                           Traceback (most recent call last)&#xA; in <module>&#xA;   6 dst = "research.wav"&#xA;   7 &#xA;----> 8 sound = AudioSegment.from_mp3(src)&#xA;   9 sound.export(dst, format = "wav")&#xA;&#xA;~/opt/anaconda3/lib/python3.8/site-packages/pydub/audio_segment.py in from_mp3(cls, file, parameters)&#xA; 736     @classmethod&#xA; 737     def from_mp3(cls, file, parameters=None):&#xA;--> 738         return cls.from_file(file, &#x27;mp3&#x27;, parameters=parameters)&#xA; 739 &#xA; 740     @classmethod&#xA;&#xA;~/opt/anaconda3/lib/python3.8/site-packages/pydub/audio_segment.py in from_file(cls, file, format, codec, parameters, **kwargs)&#xA; 683             info = None&#xA; 684         else:&#xA;--> 685             info = mediainfo_json(orig_file, read_ahead_limit=read_ahead_limit)&#xA; 686         if info:&#xA; 687             audio_streams = [x for x in info[&#x27;streams&#x27;]&#xA;&#xA;~/opt/anaconda3/lib/python3.8/site-packages/pydub/utils.py in mediainfo_json(filepath, read_ahead_limit)&#xA; 277     stderr = stderr.decode("utf-8", &#x27;ignore&#x27;)&#xA; 278 &#xA;--> 279     info = json.loads(output)&#xA; 280 &#xA; 281     if not info:&#xA;&#xA;~/opt/anaconda3/lib/python3.8/json/__init__.py in loads(s, cls, object_hook, parse_float, parse_int, parse_constant, object_pairs_hook, **kw)&#xA; 355             parse_int is None and parse_float is None and&#xA; 356             parse_constant is None and object_pairs_hook is None and not kw):&#xA;--> 357         return _default_decoder.decode(s)&#xA; 358     if cls is None:&#xA; 359         cls = JSONDecoder&#xA;&#xA;~/opt/anaconda3/lib/python3.8/json/decoder.py in decode(self, s, _w)&#xA; 335 &#xA; 336         """&#xA;--> 337         obj, end = self.raw_decode(s, idx=_w(s, 0).end())&#xA; 338         end = _w(s, end).end()&#xA; 339         if end != len(s):&#xA;&#xA;~/opt/anaconda3/lib/python3.8/json/decoder.py in raw_decode(self, s, idx)&#xA; 353             obj, end = self.scan_once(s, idx)&#xA; 354         except StopIteration as err:&#xA;--> 355             raise JSONDecodeError("Expecting value", s, err.value) from None&#xA; 356         return obj, end&#xA;&#xA;JSONDecodeError: Expecting value: line 1 column 1 (char 0)```&#xA;</module>

    &#xA;

  • Discord.js Music bot "TypeError" when playing audio with dispatcher

    21 février 2020, par Cole Perry

    I’m new to Discord.js and I’m trying to have the bot join a voice channel and play an audio file on my computer. I have been following this guide : https://discord.js.org/#/docs/main/stable/topics/voice . Here is the Index.js page :

    Colesbot.on('message', message=>{
       if (message.content === '/join') {
           // Only try to join the sender's voice channel if they are in one themselves
           if (message.member.voiceChannel) {
               message.member.voiceChannel.join().then(connection => {
                   message.reply('I have successfully connected to the channel!');

                   // To play a file, we need to give an absolute path to it
                   const dispatcher = connection.playFile('C:\Users\bobal\Documents\GitHub\Spotify-Playlist-Discord-bot\Assets\Glory.mp3');

                   dispatcher.on('end', () => {
                       // The song has finished
                       console.log('Finished playing!');
                     });

                   dispatcher.on('error', e => {
                       // Catch any errors that may arise
                       console.log(e);
                     });

                     dispatcher.setVolume(0.5); // Set the volume to 50%
               }).catch(console.log);
       } else {
           message.reply('You need to join a voice channel first!');
         }
       }
    });
    exports.run = (client, message, args) => {
       let user = message.mentions.users.first || message.author;
    }

    FFMPEG is installed and I have set the environment path for it. When I type FFMPEG in the command line I get the proper response.

    Some have said I need to install the ffmpeg binaries but when I run npm install ffmpeg-binaries I get an error message that is here

    So then I tried installing an older version and I’m now using ffmpeg-binaries@3.2.2-3 but when I type /join I get the error

    [ERR_INVALID_ARG_TYPE]: The "file" argument must be of type string. Received type object
  • create video editor error stream specifier [on hold]

    25 mai 2018, par Oussama

    I am a beginner in ffmpeg, and I started by creating a video editor, but I encountered an error while executing an ffmpeg command :

    ’Stream specifier’ ’ in filtergraph description .... matches no streams’

    Here is the command :

    ’ffmpeg -y -i icone1.jpg -i icone2.jpg -i icone3.jpg -i icone4.jpg -loop 1 -framerate 24 -t 5 -i image1.jpg -loop 1 -framerate 24 -t 5 -i image2.jpg -i song.mp3 -filter_complex " color=black@0:1365x701,format=yuva444p[c0] ; color=black@0:1365x701,format=yuva444p[c1] ; [c0][4]scale2ref[ct0][mv0] ; [c1][5]scale2ref[ct1][mv1] ; [ct0]setsar=1,split=2[t00][t01] ; [ct1]setsar=1,split=1[t10] ; [t00]drawtext=fontfile=’arial’:text=’azaazzaza’:fontcolor=red:fontsize=30[tfi00] ; [t01]drawtext=fontfile=’arial’:text=’drtgfh’:fontcolor=red:fontsize=30[tfi01] ; [t10]drawtext=fontfile=’arial’:text=’uygfdsdsqds’:fontcolor=blue:fontsize=30[tfi10] ; [mv0][tfi00]overlay=x=55.0000:y=12.0000:shortest=1[mv0] ; [mv0][tfi01]overlay=x=55.0000:y=12.0000:shortest=1[mv0] ; [mv1][tfi10]overlay=x=55.0000:y=55.0000:shortest=1[mv1] ; [0]scale=500:500,setsar=sar=1[img0] ; [1]scale=500:500,setsar=sar=1[img1] ; [2]scale=40:50,setsar=sar=1[img2] ; [3]scale=500:500,setsar=sar=1[img3] ; [mv0][img0]overlay=20.0000:20.0000[mv01] ; [mv01][img1]overlay=12.0000:12.0000[mv02] ; [mv1][img2]overlay=20.0000:12.0000[mv12] ; [mv12][img3]overlay=55.0000:12.0000[mv13] ; [mv02]scale=1280:720,setsar=sar=1[fram0] ; [mv13]scale=1280:720,setsar=sar=1[fram1] ; [5]atrim=duration=10[a1] ; [fram0][fram1]concat=n=2:v=1:a=0[all]" -map [all] -map [a1] video-8.mp4’