Recherche avancée

Médias (3)

Mot : - Tags -/spip

Autres articles (112)

  • 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

  • Encoding and processing into web-friendly formats

    13 avril 2011, par

    MediaSPIP automatically converts uploaded files to internet-compatible formats.
    Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
    Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
    Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
    All uploaded files are stored online in their original format, so you can (...)

  • Ajouter des informations spécifiques aux utilisateurs et autres modifications de comportement liées aux auteurs

    12 avril 2011, par

    La manière la plus simple d’ajouter des informations aux auteurs est d’installer le plugin Inscription3. Il permet également de modifier certains comportements liés aux utilisateurs (référez-vous à sa documentation pour plus d’informations).
    Il est également possible d’ajouter des champs aux auteurs en installant les plugins champs extras 2 et Interface pour champs extras.

Sur d’autres sites (8402)

  • 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