Recherche avancée

Médias (91)

Autres articles (111)

  • Les vidéos

    21 avril 2011, par

    Comme les documents de type "audio", Mediaspip affiche dans la mesure du possible les vidéos grâce à la balise html5 .
    Un des inconvénients de cette balise est qu’elle n’est pas reconnue correctement par certains navigateurs (Internet Explorer pour ne pas le nommer) et que chaque navigateur ne gère en natif que certains formats de vidéos.
    Son avantage principal quant à lui est de bénéficier de la prise en charge native de vidéos dans les navigateur et donc de se passer de l’utilisation de Flash et (...)

  • Installation en mode ferme

    4 février 2011, par

    Le mode ferme permet d’héberger plusieurs sites de type MediaSPIP en n’installant qu’une seule fois son noyau fonctionnel.
    C’est la méthode que nous utilisons sur cette même plateforme.
    L’utilisation en mode ferme nécessite de connaïtre un peu le mécanisme de SPIP contrairement à la version standalone qui ne nécessite pas réellement de connaissances spécifique puisque l’espace privé habituel de SPIP n’est plus utilisé.
    Dans un premier temps, vous devez avoir installé les mêmes fichiers que l’installation (...)

  • Contribute to a better visual interface

    13 avril 2011

    MediaSPIP is based on a system of themes and templates. Templates define the placement of information on the page, and can be adapted to a wide range of uses. Themes define the overall graphic appearance of the site.
    Anyone can submit a new graphic theme or template and make it available to the MediaSPIP community.

Sur d’autres sites (7155)

  • How to download a part of mp3 from server ?

    20 août 2020, par Sharukh Mohammed

    Use Case

    


    My use case is roughly equal to, adding a 15-second mp3 file to a 1 min video. All transcoding merging part will be done by FFmpeg-android so that's not the concern right now.

    


    The flow is as follows

    


      

    • User can select any 15 seconds (ExoPlayer-streaming) of an mp3 (considering 192Kbps/44.1KHz of 3mins = up to 7MB)
    • 


    • Then download ONLY the 15 second part and add it to the video's audio stream. (using FFmpeg)
    • 


    • Use the obtained output
    • 


    


    Tried solutions

    


      

    • Extracting fragment of audio from a url

      


      RANGE_REQUEST - I have replicated the exact same algorithm/formula in Kotlin using the exact sample file provided. But the output is not accurate (± 1.5 secs * c) where c is proportional to startTime

      


    • 


    • How to crop a mp3 from x to x+n using ffmpeg ?

      


      FFMPEG_SS - This works flawlessly with remote URLs as input, but there are two downsides,

      


        

      1. as startTime increases, the size of downloaded bytes are closer to the actual size of the mp3.
      2. 


      3. ffmpeg-android does not support network requests module (at least the way we complied)
      4. 


      


    • 


    


    So above two solutions have not been fruitful and currently, I am downloading the whole file and trimming it locally, which is definitely a bad UX.
I wonder how Instagram's music addition to story feature works because that's close to what I wanted to implement.

    


  • How do I install FFmpeg for my bot to play music ?

    28 juin 2023, par Shiqi Wang

    I followed a Youtube Tortual on how to make a music bot, and every piece of code made sense, there is just one problem. I thought I installed FFmpeg which is the thingy which makes the bot play audio I believe, the way I installed it was running the following command : pip install ffmpeg

    


    So I waited it to finish up, and attempted to play music, and here is the error message

    


    Traceback (most recent call last):
  File "C:\Users\Shiqi\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\discord\ext\commands\bot.py", line 902, in invoke
    await ctx.command.invoke(ctx)
  File "C:\Users\Shiqi\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\discord\ext\commands\core.py", line 864, in invoke
    await injected(*ctx.args, **ctx.kwargs)
  File "C:\Users\Shiqi\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\discord\ext\commands\core.py", line 94, in wrapped
    raise CommandInvokeError(exc) from exc
discord.ext.commands.errors.CommandInvokeError: Command raised an exception: DownloadError: ERROR: ffprobe/avprobe and ffmpeg/avconv not found. Please install one.


    


  • Adding Support for resuming download with FFMPEG ?

    5 février 2019, par INDIERs

    Currently i am using this to download hls streams with ffmpeg in android app

    ffmpeg -protocol_whitelist file,http,https,tcp,tls,crypto -i "input.m3u8" -codec copy video.mp4

    it is working as it should.

    In case of network lost, the file will be downloaded from BEGINNING which is ofc not good at all.

    I did some research but didn’t found anything great, just these never implemented ideas :

    First is get the duration of downloaded video file and then downloading the video from duration +0.1

    Result High chances of FrameLoss. Dropped.

    Second is to download all ts files one by one ofc using any downloader, using custom script, then concat them.

    Result : Okay but needs space double of origial filesize, Dropped.

    Third is to Download First segment Convert it to MP4 then download second segment convert to mp4 then concat with First Segment and so on... while Keeping records.

    Result : Nice One but repeating same task for more than 2000 time, will it be Okay ? .

    is there any better workaround for this ?

    I’ve already showed the logic i tried.