Recherche avancée

Médias (0)

Mot : - Tags -/clipboard

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

Autres articles (54)

  • Gestion générale des documents

    13 mai 2011, par

    MédiaSPIP ne modifie jamais le document original mis en ligne.
    Pour chaque document mis en ligne il effectue deux opérations successives : la création d’une version supplémentaire qui peut être facilement consultée en ligne tout en laissant l’original téléchargeable dans le cas où le document original ne peut être lu dans un navigateur Internet ; la récupération des métadonnées du document original pour illustrer textuellement le fichier ;
    Les tableaux ci-dessous expliquent ce que peut faire MédiaSPIP (...)

  • Des sites réalisés avec MediaSPIP

    2 mai 2011, par

    Cette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
    Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page.

  • HTML5 audio and video support

    13 avril 2011, par

    MediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
    The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
    For older browsers the Flowplayer flash fallback is used.
    MediaSPIP allows for media playback on major mobile platforms with the above (...)

Sur d’autres sites (6252)

  • ffmpeg how to concacenate 2 videos in alternating order every X seconds (blinking effect) [closed]

    27 octobre 2020, par aj6

    I'd like to use ffmpeg to stitch together a video in the following manner : I'd like to take X number of frames or seconds from 2 (or more) videos, one by one, and output a new file composed of all frames of original videos, but in a new order (not concatenated one after the other, but rather by X frames or seconds).

    


    To clarify - let's say there are 2 videos, each 1 minute long. I'd like to concatenate these 2 videos second by second (for example), using 1 second from the first video, then 1 second from the next video, with the resulting output, the 3rd file, being 2 minutes long and containing all the information from the original vids, but played back in a "blinking" manner - a second or X number of frames from each vid.

    


    Just to be sure it's clear : Let's say I have 2 videos, 10 seconds each, I'd like them to be joined in the following manner : (1 second from vid#1), (1 second from vid#2), (1 second from vid#1), (1 second from vid#2) etc. until both files' end. (Assume the duration of both vids is same).

    


    I understand how to do it if I need to simply concatenate files one after another, or even switch from one to the next a few times with an overlay, but I was unable to find ANYTHING about joining videos frame by frame or X number of seconds for the entire duration of the vid, only solutions for switching video overlay a couple of times, putting in time stamps by hand.

    


    Any help is much appreciated. Thank you.

    


  • I can't stream the 4K videos with HLS [closed]

    26 juillet 2023, par sinnesloschen

    I'm experiencing difficulties in streaming 4K videos with HLS. I'm using Cloudflare R2 for video storage and streaming, and so far, there haven't been any issues. I've attempted streaming on various computers and phones, and it works fine on most devices. However, there is a problem with some phones that prevents 4K videos from opening. I tried many times, changed the line of code many times. I tried from many computers and phones but the result is the same.

    


    Could you please provide some suggestions on how to fix this problem ?

    


    FFMPEG code : ffmpeg.exe -i "C:\Users\Administrator\Downloads\akame-ga-kill-1-1-2160-jp.mp4" -y -vf scale=3840:2160 -c:v libx264 -c:a aac -preset medium -crf 18 -f hls -hls_time 10 -start_number 1 -hls_list_size 0 -hls_playlist_type vod -hls_flags independent_segments -hls_segment_type mpegts -hls_base_url "https://pub-a12f06d0f6d04269a5f5c378d1a005ab.r2.dev/TS9" -hls_segment_filename "akame-ga-kill-1-1-2160-%d.ts" "akame-ga-kill-1-1-2160.m3u8"

    


    M3U8 stream link : https://pub-a12f06d0f6d04269a5f5c378d1a005ab.r2.dev/TS8/mainplaylist.m3u8

    


  • Setting the DTS of a video and audio packets

    6 février 2021, par Pavel

    so I am struggling with concatenating 5s video segments into one .mp4 in python using the PyAV. The video segments are stored as BytesIO object(so I can store them in RAM). I loop through every packet in every segment, so naturally, their PTS and DTS are not unique and are repeating in every segment. Thus, I decided to set each packet's PTS/DTS to an ever incrementing value, so they are in the correct order.

    


        def mux_to_file(self, output_file_name, vid):
        vid.seek(0) #BytesIO object
        video = av.open(vid, "r"). #av InputContainer
        output = av.open(output_file_name, "w")  #av OutputContainer
        
        v_in = video.streams.video[0]  #information about the stream (bit rate, res...)
        video_p = video.demux(v_in)
        output_video = output.add_stream(template=v_in)


        self.last_pts = 0
        self.step = 0
        for packet in video_p:  #looping through every packet
            if packet.dts is None:
                continue

            packet.dts = self.last_pts   #setting new pts and dts
            packet.pts = self.last_pts
            self.last_pts += packet.duration  #old one+duration of the previous one

            packet.stream = output_video     #assigns information of the new packet
            output.mux(packet)               # muxing, her occurs the warning
        
        output.close()
        video.close()



    


    The warning is as follows :

    


    Found duplicated MOOV Atom. Skipped it
Found duplicated MOOV Atom. Skipped it
 (repeated 58 more times)
Found duplicated MOOV Atom. Skipped it
Found duplicated MOOV Atom. Skipped it
 (repeated 58 more times)
DTS 0 < 447000 out of order
DTS 0 < 447000 out of order
 (repeated 58 more times)


    


    I would like to set the PTS/DTS of the packets so the warning would not occur. Of course, turning off the logging of av lib is an option,
av.logging.set_level(av.logging.PANIC)
however, I am looking for an more elegant and better solution. How could I set the the DTS to a correct value, and why is my solution still throwing errors ?

    


    Thanks in advance.