Recherche avancée

Médias (91)

Autres articles (61)

  • List of compatible distributions

    26 avril 2011, par

    The table below is the list of Linux distributions compatible with the automated installation script of MediaSPIP. Distribution nameVersion nameVersion number Debian Squeeze 6.x.x Debian Weezy 7.x.x Debian Jessie 8.x.x Ubuntu The Precise Pangolin 12.04 LTS Ubuntu The Trusty Tahr 14.04
    If you want to help us improve this list, you can provide us access to a machine whose distribution is not mentioned above or send the necessary fixes to add (...)

  • 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

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

  • What is the most efficient way to convert wav audio string to an ogg file without writing it to disk ?

    1er janvier 2023, par Saurabh Kumar Karn

    My final objective is to use TTS to get some Indic text converted into audio and pass that audio to a messaging system that accepts mp3 and ogg. Ogg is preferred.

    


    I am on Ubuntu and my flow for getting audio string is something like this.

    


      

    1. Text in Indic language is passed to an API
    2. 


    3. API returns a json with a key value called audioContent. audioString = response.json()['audio'][0]['audioContent']
    4. 


    5. The decoded string is arrived by using this decode_string = base64.b64decode(dat)
    6. 


    


    I am currently converting it to mp3 and as you can see I am writing the wave file first and then converting it into an mp3.

    


    wav_file = open("output.wav", "wb")
decode_string = base64.b64decode(audioString)
wav_file.write(decode_string)

# Convert this to mp3 file
print('mp3file')
song = AudioSegment.from_wav("output.wav")
song.export("temp.mp3", format="mp3")


    


    Is there a way to convert audioString directly to ogg file without doing the io ?

    


    I've tried torchaudio and pyffmpeg to load audioString and do the conversion but it doesn't seem to be working.

    


  • Channel layout is unknown error, how to use filters with any number of channels ?

    8 novembre 2022, par Arthur Martens

    Using this command line

    


    'C:/Program Files/ffmpeg/bin/ffmpeg.exe' -i "INPUT.mxf" -map 0:0 -af atrim=start_sample=336000:end_sample=2448000,silencedetect=mono=1 -f null -

    


    I get the following error :

    


        Stream #0:0: Audio: pcm_s24le, 48000 Hz, 12 channels, s32 (24 bit), 13824 kb/s
    Metadata:
      file_package_umid: 0x060A2B340101010501010F2013000000D8A84B5D697B45F6ABAD7B54C1D78390
      file_package_name: File Package: SMPTE 382M frame wrapping of wave audio
      track_name      : Sound Track
Stream mapping:
  Stream #0:0 -> #0:0 (pcm_s24le (native) -> pcm_s16le (native))
Press [q] to stop, [?] for help
[auto_resampler_0 @ 000002449bdf03c0] Cannot select channel layout for the link between filters auto_resampler_0 and Parsed_silencedetect_1.
[auto_resampler_0 @ 000002449bdf03c0] Unknown channel layouts not supported, try specifying a channel layout using 'aformat=channel_layouts=something'.
Error reinitializing filters!
Failed to inject frame into filter network: Invalid argument
Error while processing the decoded data for stream #0:0
Conversion failed!


    


    How can I use filters, like scan a 12 channel input for silence, when there is no channel layout ?

    


  • FFmpeg and Jupyter Notebooks

    12 mai 2022, par Clerni

    I'm getting the error RuntimeError: Requested MovieWriter (ffmpeg) not available when trying to run this simple example of creating and displaying an animation in a Jupyter Notebook.

    


    ---------------------------------------------------------------------------&#xA;RuntimeError                              Traceback (most recent call last)&#xA; in <module>&#xA;      8 &#xA;      9 # Define the meta data for the movie&#xA;---> 10 FFMpegWriter = manimation.writers[&#x27;ffmpeg&#x27;]&#xA;     11 metadata = dict(title=&#x27;Movie Test&#x27;, artist=&#x27;Matplotlib&#x27;,&#xA;     12                 comment=&#x27;a red circle following a blue sine wave&#x27;)&#xA;&#xA;/usr/local/lib/python3.8/dist-packages/matplotlib/animation.py in __getitem__(self, name)&#xA;    164         if self.is_available(name):&#xA;    165             return self._registered[name]&#xA;--> 166         raise RuntimeError(f"Requested MovieWriter ({name}) not available")&#xA;    167 &#xA;    168 &#xA;&#xA;RuntimeError: Requested MovieWriter (ffmpeg) not available&#xA;&#xA;</module>

    &#xA;

    Running !pip install ffmpeg didn't help, as ffmpeg is already installed, apparently :

    &#xA;

    Requirement already satisfied: ffmpeg in /home/username/.local/lib/python3.8/site-packages&#xA;

    &#xA;

    How can I make this work ?

    &#xA;