Recherche avancée

Médias (1)

Mot : - Tags -/bug

Autres articles (88)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;

  • Organiser par catégorie

    17 mai 2013, par

    Dans MédiaSPIP, une rubrique a 2 noms : catégorie et rubrique.
    Les différents documents stockés dans MédiaSPIP peuvent être rangés dans différentes catégories. On peut créer une catégorie en cliquant sur "publier une catégorie" dans le menu publier en haut à droite ( après authentification ). Une catégorie peut être rangée dans une autre catégorie aussi ce qui fait qu’on peut construire une arborescence de catégories.
    Lors de la publication prochaine d’un document, la nouvelle catégorie créée sera proposée (...)

  • 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

Sur d’autres sites (7217)

  • 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 ?

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

    


  • 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 ?