Recherche avancée

Médias (0)

Mot : - Tags -/protocoles

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

Autres articles (81)

  • Emballe médias : à quoi cela sert ?

    4 février 2011, par

    Ce plugin vise à gérer des sites de mise en ligne de documents de tous types.
    Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ;

  • Gestion des droits de création et d’édition des objets

    8 février 2011, par

    Par défaut, beaucoup de fonctionnalités sont limitées aux administrateurs mais restent configurables indépendamment pour modifier leur statut minimal d’utilisation notamment : la rédaction de contenus sur le site modifiables dans la gestion des templates de formulaires ; l’ajout de notes aux articles ; l’ajout de légendes et d’annotations sur les images ;

  • Supporting all media types

    13 avril 2011, par

    Unlike most software and media-sharing platforms, MediaSPIP aims to manage as many different media types as possible. The following are just a few examples from an ever-expanding list of supported formats : images : png, gif, jpg, bmp and more audio : MP3, Ogg, Wav and more video : AVI, MP4, OGV, mpg, mov, wmv and more text, code and other data : OpenOffice, Microsoft Office (Word, PowerPoint, Excel), web (html, CSS), LaTeX, Google Earth and (...)

Sur d’autres sites (3406)

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

    


  • Evolution #4468 : Unification des CSS pour les boutons et les icônes

    14 septembre 2020

    Noté pour ajouter un a.bouton

    Il y a déjà des variantes .principal et .secondaire dans cette prop, donc il suffit de les reprendre (cf. captures et description messages précédents).

    Par contre la classe .bouton est déjà utilisée dans le bandeau d’ajout rapide :

    • .
      Donc pour les liens boutons, il faudrait soit limiter à la balise <a></a>a.bouton { … }, mais c’est un peu sale. Ou alors trouver une autre classe pour le bandeau.

      Un dernier truc à régler aussi : dans les styles actuels il semble être prévu de pouvoir utiliser les classes .icone.horizontale sur les boutons d’action, c.à.d #BOUTON_ACTION{…, …, …, icone horizontale s-24}.
      Mais je n’arrive pas à voir quel résultat est censé être obtenu avec cette combinaison. Actuellement, ça à l’air pété, cf. captures.


      D’une part ça n’est mentionné nulle part dans la charte (du plugin dev), et de l’autre ça semble n’être utilisé qu’une seule fois dans la dist, dans la page controler_urls. Ailleurs je n’ai vu ça utilisé que dans la Fabrique (les boutons de suppression d’objet).

      Je suppose que le but c’était d’essayer d’afficher un bouton d’action comme une |icone_horizontale.
      Mais |icone_horizontale ça produit un markup très différent de #BOUTON_ACTION, essayer de finir de porter la classe .icone.horizontale sur ce dernier ça va être bien compliqué.

      Mais en fait dans cette prop, on peut déjà avoir des icônes facilement dans les boutons d’action, soit en utilisant une des variantes new, add, del, config, ou alors en mettant une image/icône à la main dans le label tout bêtement.

      Donc au final ça me semble plus simple d’arrêter de supporter la combinaison #BOUTON_ACTION + classe .icone : en l’état ça marche à moitié, c’est inutile avec cette prop, et ça fait un truc compliqué en moins à maintenir.

  • How to http stream FFMPEG encoded frames with VLC

    8 octobre 2020, par paoloo

    I have a python script that write images (numpy arrays) on the standard output.&#xA;I want to keep this frames and encode them h264 with FFMPEG, using GPU, then give it to vlc to expose a stream over http.

    &#xA;

    Here there's a working example of my apporach, without the part of h264 encoding :

    &#xA;

    python3 script.py | ffmpeg -r 24 -s 1920x1080 -f rawvideo -i - -vcodec copy -f avi - | cvlc --demux=rawvideo --rawvid-fps=25&#xA;--rawvid-width=1920 --rawvid-height=1080 --rawvid-chroma=RV24 - --no-audio --sout &#x27;#transcode{vcodec=MJPG,venc=ffmpeg{strict=1}}:standard{access=http{user=pippo,pwd=pluto,mime=multipart/x-mixed-replace;boundary=--7b3cc56e5f51db803f790dad720ed50a},mux=mpjpeg,dst=:10001/}&#x27;&#xA;

    &#xA;

    Now, I'm having troubles in writing working pipes to do what I need.&#xA;Here the pipe I'm actually working on, FFMPEG process is managed by GPU, but VLC cannot correctly manage the flow, I suppose, in fact I can connect to VLC from another VLC instance used as client, but then I got an error in which VLC client cannot open MRL.

    &#xA;

    Here the pipe :

    &#xA;

    python3 script.py | ffmpeg -y -vsync 0 -hwaccel cuda -hwaccel_output_format cuda -f rawvideo -s 1920x1080 -i - -c:a copy -c:v h264_nvenc -f h264 - | cvlc --demux=rawvideo --rawvid-fps=25 --rawvid-width=1920 --rawvid-height=1080 --rawvid-chroma=RV24 - --no-audio --sout &#x27;#transcode{vcodec=MJPG,venc=ffmpeg{strict=1}}:standard{access=http{user=pippo,pwd=pluto,mime=multipart/x-mixed-replace;boundary=--7b3cc56e5f51db803f790dad720ed50a},mux=mpjpeg,dst=:10001/}&#x27;&#xA;

    &#xA;

    I don't understand how to set vlc parameters in order to manage the incoming stream. I also could have made errors in ffmpeg pipe, any suggestion is welcome.

    &#xA;