Recherche avancée

Médias (91)

Autres articles (107)

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

  • Amélioration de la version de base

    13 septembre 2013

    Jolie sélection multiple
    Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
    Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...)

  • Que fait exactement ce script ?

    18 janvier 2011, par

    Ce script est écrit en bash. Il est donc facilement utilisable sur n’importe quel serveur.
    Il n’est compatible qu’avec une liste de distributions précises (voir Liste des distributions compatibles).
    Installation de dépendances de MediaSPIP
    Son rôle principal est d’installer l’ensemble des dépendances logicielles nécessaires coté serveur à savoir :
    Les outils de base pour pouvoir installer le reste des dépendances Les outils de développements : build-essential (via APT depuis les dépôts officiels) ; (...)

Sur d’autres sites (9630)

  • Why are v0, v1, and v2 of ffmpeg still under active development ? What happened to ppa:jon-severinsson/ffmpeg ?

    12 avril 2015, par cxrodgers

    I know about the long history of ffmpeg and libav. Personally, I preferred to use Jon Severinsson’s PPA, as suggested in many answers here on stackoverflow or askubuntu. However, recently this PPA seems to have gone down recently (this page, which is the link everyone always gives, is dead). I don’t see if he put up a newer version, although I admit I find launchpad hard to navigate. Did it get replaced with this one from Doug McMahon or this one from Sam Rog ?

    Ok, so maybe I need to download it myself. I visit the releases page for ffmpeg, and there seems to be simultaneous development of releases from v2 (2.6.2), v1 (1.2.12, from February), and v0 (0.10.16, from March of this year). 0.10 isn’t even the newest of the v0 series, and yet it seems to be the most recently updated of that series, and (coincidentally ?) also the version that I most recently got from the PPA. Admittedly this was on a slightly older distribution (Linux Mint 16).

    ffmpeg -version
    ffmpeg version 0.10.12-7:0.10.12-1~saucy1

    So, which version should I download, now that the PPA is gone ? Does it depend on the distribution I’m using ?

  • What are my FFMPEG command wrong parameters that causes ugly quality on streaming ?

    6 juillet 2022, par Lucas FAURE

    Good day, I'm scaling videos with FFMPEG, and when the scaled file comes out, quality is pretty good (enough good for me).

    


    My problem is that I'm as well streaming the file while it's scaling, but it comes in an ugly quality. And I guess it's because of missing or not needed parameters.

    


    Here is my command that starts scaling the file and send it via RTMP for streaming :

    


    "ffmpeg -i " + file + " -vf scale=-2:" + resolution + " -preset slow -crf 18 -movflags +frag_keyframe+separate_moof+omit_tfhd_offset+empty_moov " + output + " -listen 1 -f flv rtmp://127.0.0.1:10000/" + stream + ""


    


    This is called in Python, where file is the source file, resolution the new height, output the file to be saved, and stream a streaming key.

    


    Once the scaling has started, I provide to the user a streaming link with the new resolution :

    


    'ffmpeg -v verbose -i rtmp://127.0.0.1:10000/'.$stream.' -c:v libx264 -c:a aac -ac 1 -strict -2 -crf 18 -profile:v baseline -maxrate 400k -bufsize 1835k -pix_fmt yuv420p -flags -global_header -hls_time 10 -hls_list_size 6 -start_number 1 '.$streamURL.$stream;


    


    Here, it's called with PHP, and there are as well variables : stream the streaming key to retreive the right content, and streamURL the domain to visit.

    


    It actually works but the difference of quality between what is scaling and what is streaming is huge, and I think so that, in the command that creates the streaming link, there is parameters that cause this. (Because I took it from a live example and I didn't want to make an error by removing parameters I don't know well)

    


    Do you have any idea about where it can be coming from ?

    


    Thank you in advance for your help and time.

    


  • Enable cache on ffmpeg to record streaming

    13 mars 2020, par james

    now I’m using steamlink and ffmpeg to record streams and save them to a file, many times the video file saved have so much lag. I found this link https://www.reddit.com/r/Twitch/comments/62601b/laggy_stream_on_streamlinklivestreamer_but_not_on/
    where they claim that the lag problem occurs from the fact of not having the cache enabled on the player.
    I tried putting options -hls_allow_cache allowcache -segment_list_flags cache with the result that the ffmpeg process starts for 8seconds more or less, after which it ends and starts again immediately afterwards without returning a video file,if I don’t put those two options the video is recorded correctly but most of the time with some lag.

    Obviously if I visit streaming from the browser I have no lag problem

    this is the code

    from streamlink import Streamlink, NoPluginError, PluginError
    streamlink = Streamlink()
    #this code is just a snippet, it is inside a while loop to restart the process
    try:
       streams = streamlink.streams(m3u8_url)
       stream_url = streams['best'].url
       #note hls options not seem to work
       ffmpeg_process = Popen(
           ["ffmpeg", "-hide_banner", "-loglevel", "panic", "-y","-hls_allow_cache", "allowcache", "-segment_list_flags", "cache","-i", stream_url, "-fs", "10M", "-c", "copy",
           "-bsf:a", "aac_adtstoasc", fileName])

       ffmpeg_process.wait()

    except NoPluginError:
       print("noplugin")

    except PluginError:
       print("plugin")

    except Exception as e:
       print(e)

    what are the best options to enable the cache and limit the lag as much as possible ?