Recherche avancée

Médias (91)

Autres articles (88)

  • Mise à disposition des fichiers

    14 avril 2011, par

    Par défaut, lors de son initialisation, MediaSPIP ne permet pas aux visiteurs de télécharger les fichiers qu’ils soient originaux ou le résultat de leur transformation ou encodage. Il permet uniquement de les visualiser.
    Cependant, il est possible et facile d’autoriser les visiteurs à avoir accès à ces documents et ce sous différentes formes.
    Tout cela se passe dans la page de configuration du squelette. Il vous faut aller dans l’espace d’administration du canal, et choisir dans la navigation (...)

  • Encodage et transformation en formats lisibles sur Internet

    10 avril 2011

    MediaSPIP transforme et ré-encode les documents mis en ligne afin de les rendre lisibles sur Internet et automatiquement utilisables sans intervention du créateur de contenu.
    Les vidéos sont automatiquement encodées dans les formats supportés par HTML5 : MP4, Ogv et WebM. La version "MP4" est également utilisée pour le lecteur flash de secours nécessaire aux anciens navigateurs.
    Les documents audios sont également ré-encodés dans les deux formats utilisables par HTML5 :MP3 et Ogg. La version "MP3" (...)

  • Monitoring de fermes de MediaSPIP (et de SPIP tant qu’à faire)

    31 mai 2013, par

    Lorsque l’on gère plusieurs (voir plusieurs dizaines) de MediaSPIP sur la même installation, il peut être très pratique d’obtenir d’un coup d’oeil certaines informations.
    Cet article a pour but de documenter les scripts de monitoring Munin développés avec l’aide d’Infini.
    Ces scripts sont installés automatiquement par le script d’installation automatique si une installation de munin est détectée.
    Description des scripts
    Trois scripts Munin ont été développés :
    1. mediaspip_medias
    Un script de (...)

Sur d’autres sites (14027)

  • discord.py Heroku FFmpeg issue

    6 avril 2022, par No.BoD

    hi I'm trying to deploy a discord bot on heroku. i'm using ffmpeg to stream music to a voice channel. i tried it local on my windows and got it working but when I deployed it on heroku, throws this exception and says nothing !

    


    I use these buildpacks :

    


      

    1. heroku/python
    2. 


    3. https://github.com/jonathanong/heroku-buildpack-ffmpeg-latest.git
    4. 


    


    I appreciate if someone can help
    
here's a sample code :

    


    vid = pafy.new("https://www.youtube.com/watch?v=gdL7s0kw0SM")
print("Pafy Vid Created!")
audio = vid.getbestaudio()
print("Pafy Audio Created!")
try:
    // self.FFMPEG_OPTIONS = {'before_options': '-reconnect 1 -reconnect_streamed 1 -reconnect_delay_max 5', 'options': '-vn'}
    self.vc[ctx.guild.id].play(FFmpegPCMAudio(Song['source'], **self.FFMPEG_OPTIONS), after=lambda _: E.set())
    print("Playing Music!!!")
except Exception as ex:
    print(ex)


    


    and here's what I got :

    


    2021-09-20T14:31:19.958645+00:00 app[worker.1]: Pafy Vid Created!
2021-09-20T14:31:19.958889+00:00 app[worker.1]: Pafy Audio Created!
2021-09-20T14:31:20.447278+00:00 app[worker.1]:


    


  • How to use FFmpeg in C# ? [duplicate]

    22 juillet 2017, par brsteej

    I have FFmpeg + video.mp4 in bin directory so I want convert video.mp4 to music.mp3 using ffmpeg

    I found some solutions here but couldn’t understand it. I am new to C# and Programming

    ffmpeg  - i video.mp4 - b:a 192K - vn music.mp3

    So what i need is how to use this command line in windows form

    private void button2_Click(object sender, EventArgs e)
    {
       OpenFileDialog ofd = new OpenFileDialog();
       if (ofd.ShowDialog() == DialogResult.OK)
       {

           //how to use this cmd line ?
           //ffmpeg  - i video.mp4 - b:a 192K - vn music.mp3


           //ended
           //var convert = new NReco.VideoConverter.FFMpegConverter();
           //convert.ConvertMedia(ofd.FileName, Application.StartupPath + "\\converted.ac3", NReco.VideoConverter.Format.ac3);


       }
    }

    Can any one help .. i mean from ZERO :D

  • Why is audio cutoff at beginning when when using ffmpeg nobuffer flag ?

    12 septembre 2019, par Gio

    I’m trying to do audio conversion with ffmpeg. Its a live streaming use case, hence I’m trying to reduce the delay with the nobuffer flag.

    Audio used in the example below, is available here : http://www.wavsource.com/snds_2018-06-03_5106726768923853/music/coming_to_take.wav

    ffmpeg -hide_banner -y \
    -analyzeduration 0 -fflags nobuffer \
    -i ./coming_to_take.wav \
    -f_err_detect compliant \
    -f wav -ar 16000 -acodec pcm_s16le -ac 1 \
    coming_to_take_converted.wav

    The nobuffer flag is documented here : https://ffmpeg.org/ffmpeg-formats.html

    Reduce the latency introduced by buffering during initial input streams analysis.

    Conversion is performed succesfully, however about 2 seconds is cutoff at the beginning of the audio. Hopefully somebody knows what I’m doing wrong here.

    Note : I’ve did various tests with different values of -analyzeduration, I’m able to slightly change the amount of cutoff, however I’m not able to completely get rid of it.