Recherche avancée

Médias (0)

Mot : - Tags -/utilisateurs

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

Autres articles (70)

  • Récupération d’informations sur le site maître à l’installation d’une instance

    26 novembre 2010, par

    Utilité
    Sur le site principal, une instance de mutualisation est définie par plusieurs choses : Les données dans la table spip_mutus ; Son logo ; Son auteur principal (id_admin dans la table spip_mutus correspondant à un id_auteur de la table spip_auteurs)qui sera le seul à pouvoir créer définitivement l’instance de mutualisation ;
    Il peut donc être tout à fait judicieux de vouloir récupérer certaines de ces informations afin de compléter l’installation d’une instance pour, par exemple : récupérer le (...)

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

  • Encoding and processing into web-friendly formats

    13 avril 2011, par

    MediaSPIP automatically converts uploaded files to internet-compatible formats.
    Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
    Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
    Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
    All uploaded files are stored online in their original format, so you can (...)

Sur d’autres sites (8667)

  • FFmpeg youtube stream get corrupted until restart

    19 février 2023, par unpwn

    I am streaming images from python to youtube using ffmpeg.
It's working fine with just one problem.
Sometimes the stream get somehow corrupted an the stream looks like this :

    


    Corrupted stream image

    


    Or you can see for yourself in the stream itself : https://www.youtube.com/watch?v=PG6NLtr0jjM (Scroll back to the beginning)

    


    Then I have to restart ffmpeg and its working fine. Sometimes an error occurs regarding the network and I have to automatically restart the stream. Then there is the possibility it is corrupted again.

    


    The parameters for ffmpeg are the following :

    


    cmd_out = ['ffmpeg',
       '-re',
       '-f', 'concat',
       '-i', os.path.join(BASE_DIR, 'music', 'music.txt').replace('\\', '/'),           
       '-r', '1',
       '-f', 'image2pipe',
       '-vcodec', 'png',
       '-r', '1',
       '-i', '-',
       '-c:v', 'libx264',
       '-c:a', 'copy',
       '-g', '4',
       '-f', 'flv',
       'rtmp://a.rtmp.youtube.com/live2/{}'.format(stream_key)]  


    


    I never had that problem testing it on windows. It just appears when I use my linux server.

    


    I am using ffmpeg version 3.2.18-0+deb9u1 and the generated images are fine, when I save them to a normal file.

    


    Does someone know how to fix it ? Or where the problem is comming from ?

    



    


    Solution : An old ffmpeg version was available while using docker. I solved the problem by using a static build from https://www.johnvansickle.com/ffmpeg/

    


    I used this to use it in docker :

    


    WORKDIR /app
ADD ./ffmpeg /app
RUN mv ffmpeg /usr/local/ffmpeg
RUN chmod +x /usr/local/ffmpeg


    


    Until now the error seems to be solved.

    


  • Is there a fix for the 'flashing console' bug with FFMPEG ?

    29 août 2022, par NedNoodleHead

    When using a compiled a program that utilizes FFMPEG (Not library, but the path to the exe), and a GUI library ; that has a function that uses FFMPEG, a console window from FFMPEG will quickly open and disappear.

    


    I have a github repo that can be used to reproduce the bug : https://github.com/nednoodlehead/ffmpegthreading

    


    I also have a quick youtube video showing what the bug looks like, and what it should look like : https://www.youtube.com/watch?v=tCZ0z9E5Iyw

    


    A few things to note with this :

    


    1). This will only occur when the app is compiled. Running this in a virtual environment works as expected. I run it from my IDE all the time with no console flashing. (as seen in video)

    


    2). It will only flash while a GUI is present. So using a regular script to call the same command that produces the bug will NOT cause the bug

    


    3). The bug was tested in Tkinter and PyQt5 and produced the same result (flashing console)

    


    4). Threading is NOT needed to reproduce this bug, it just makes the debugging a bit easier

    


    5). Using the ffmpeg module does not work as my entire project is based around an interface for PyDub (Which uses ffmpeg)

    


    6). This solution does not work for me : How to hide console output of FFmpeg in Python ? (Because this uses the module, while I use the exe)

    


    7). I am using auto-py-to-exe to compile (which uses pyinstaller)

    


    8). Running 'ffmpeg -version' (in regular cmd (same result in venv)) gives : ffmpeg version N-106605-gf67403edb3-20220413

    


    I would appreciate any help, this is tying my brain up.

    


  • youtube-dl python script postprocessing error : FFMPEG codecs aren't being recognized

    23 septembre 2016, par stackPusher

    My python script is trying to download youtube videos with youtube-dl.py. Works fine unless postprocessing is required. The code :

    import youtube_dl

    options = {
       'format':'bestaudio/best',
       'extractaudio':True,
       'audioformat':'mp3',
       'outtmpl':'%(id)s',     #name the file the ID of the video
       'noplaylist':True,
       'nocheckcertificate':True,
       'postprocessors': [{
           'key': 'FFmpegExtractAudio',
           'preferredcodec': 'mp3',
           'preferredquality': '192',
       }]
    }

    with youtube_dl.YoutubeDL(options) as ydl:
       ydl.download(['http://www.youtube.com/watch?v=BaW_jenozKc'])

    Below is the output I receive :enter image description here

    I get a similar error if I try setting ’preferredcodec’ to ’opus’ or ’best’.
    I’m not sure if this is relevant, but I can run the command line counterpart fine :

    youtube-dl -o 'test2.%(ext)s' --extract-audio --audio-format mp3 --no-check-certificate https://www.youtube.com/watch?v=BaW_jenozKc

    I’ve gotten a few clues from the internet and other questions and from what i understand this is most likely an issue with my ffmpeg, which isn’t a python module right ? Here is my ffmpeg version and configuration :
    enter image description here

    If the answer to my problem is to add some configuration setting to my ffmpeg please explain how i go about doing that.