Recherche avancée

Médias (91)

Autres articles (77)

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

  • Creating farms of unique websites

    13 avril 2011, par

    MediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
    This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...)

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

  • How to decode H264 stream to image byte array with ffmpeg in C# ?

    1er juin 2022, par massivemoisture

    I have an application in C# that receives H264 stream from a socket.

    


    The stream is in Annex B format. I want to decode the stream to individual image as a byte array.

    


    I saw this code snippet using PyAV, courtesy of leng-yue (https://github.com/leng-yue/py-scrcpy-client/blob/main/scrcpy/core.py) :

    


    raw_h264 = self.__video_socket.recv(0x10000)
                packets = codec.parse(raw_h264)
                for packet in packets:
                    frames = codec.decode(packet)
                    for frame in frames:
                        frame = frame.to_ndarray(format="bgr24")
                        if self.flip:
                            frame = cv2.flip(frame, 1)
                        self.last_frame = frame
                        self.resolution = (frame.shape[1], frame.shape[0])


    


    How can I do something similar with ffmpeg but in C# and the output is a byte array in BGR24 ? Thank you !

    


  • ffmpeg complex filter pip loop not working

    4 août 2021, par Dzseti

    I am using an ffmpeg complex filter to :

    


      

    1. turn a number of images into a slideshow
    2. 


    3. scale the slideshow to 1/6th of its original size
    4. 


    5. loop the slideshow infinitely
    6. 


    7. set the looping slideshow as a picture-in-picture over another looping video
    8. 


    


    then add audio from another file which determines the maximum length of the final video.

    


    Everything is working except step 3.

    


    Here is my code (broken down into individual lines) :

    


    ffmpeg -y 
-loop 1 -t 5.5 -i /uploads/2021/07/slide04-scaled.jpg 
-loop 1 -t 5.5 -i /uploads/2021/07/Slide05-scaled.jpg 
-loop 1 -t 5.5 -i /uploads/2021/07/Slide06-scaled.jpg 
-i /slowwmo-videos/intro.mp4 
-i /uploads/2021/07/busy_bees_01.mp3 
-filter_complex 
"
[1]fade=d=0.5:t=in:alpha=1,setpts=PTS-STARTPTS+5/TB[a1];
[2]fade=d=0.5:t=in:alpha=1,setpts=PTS-STARTPTS+10/TB[a2];
[0][a1]overlay[b2];
[b2][a2]overlay[slides];
[slides]loop=loop=-1,scale=iw/6:ih/6,format=yuv420p,fps=fps=25[pip];
[3][pip]overlay=W-w-100:200[v]
" 
-map [v]:v:0 -map 4:a:0 -vcodec libx264 -profile:v main -video_track_timescale 25000 -pix_fmt yuv420p -s 1280x720 -acodec aac -af aresample=44100 -shortest /slowwmo-videos/busy_bees/7494.ts


    


  • lavf : add new struct for data private to generic layer

    13 octobre 2024, par Anton Khirnov
    lavf : add new struct for data private to generic layer
    

    Trivial for now, will become more useful in future commits, as many
    fields from FFFormatContext should not be visible to individual
    (de)muxers.

    • [DH] libavformat/avformat_internal.h
    • [DH] libavformat/options.c