Recherche avancée

Médias (0)

Mot : - Tags -/upload

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

Autres articles (43)

  • Le plugin : Podcasts.

    14 juillet 2010, par

    Le problème du podcasting est à nouveau un problème révélateur de la normalisation des transports de données sur Internet.
    Deux formats intéressants existent : Celui développé par Apple, très axé sur l’utilisation d’iTunes dont la SPEC est ici ; Le format "Media RSS Module" qui est plus "libre" notamment soutenu par Yahoo et le logiciel Miro ;
    Types de fichiers supportés dans les flux
    Le format d’Apple n’autorise que les formats suivants dans ses flux : .mp3 audio/mpeg .m4a audio/x-m4a .mp4 (...)

  • Configurer la prise en compte des langues

    15 novembre 2010, par

    Accéder à la configuration et ajouter des langues prises en compte
    Afin de configurer la prise en compte de nouvelles langues, il est nécessaire de se rendre dans la partie "Administrer" du site.
    De là, dans le menu de navigation, vous pouvez accéder à une partie "Gestion des langues" permettant d’activer la prise en compte de nouvelles langues.
    Chaque nouvelle langue ajoutée reste désactivable tant qu’aucun objet n’est créé dans cette langue. Dans ce cas, elle devient grisée dans la configuration et (...)

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

  • FFMPEG : How to mix different types of image sequence inputs when creating multiple streams

    9 août 2021, par chutlies

    I am using a piece of software that generates a .txt files with rendered images. The list within that txt files is printed with the word 'file' at the beginning of the file path.

    


    Ex : file 'file:C :/Users/User/Desktop/test/Test.0001.png'

    


    I am attempting to input another image sequence as an overlay. Everything works fine if I just overlay, scale, and render. So this works fine :

    


    ffmpeg -hide_banner -y -f concat -safe 0 -i C:/test/input.txt -i "C:/test/BALL.%04d.png" -filter_complex "overlay[4K_in];[4K_in]scale=1920:1080[hdOut]" -map [hdOut] hd.mp4


    


    But when I start to split the stream to create different outputs it will only render the overlayed stream [1:v] and not the composited image.

    


    ffmpeg -hide_banner -y -f concat -safe 0 -i C:/test/input.txt -i "C:/test/BALL.%04d.png" -filter_complex "overlay,split=3[mp4HD_in][mxf720_in][mov4K_in];[mp4HD_in]scale=1920:1080[mp4HD_out];[mxf720_in]scale=1280:720[mxf720_out];[mov4K_in]scale=3840:2160[mov4K_out]" -crf 16 -vcodec libx264 -map [mp4HD_out] C:/test/hdMP4.mp4 -vcodec prores -map [mov4K_out] C:/test/MOV4K.mov -vcodec dnxhd -pix_fmt yuv422p -b:v 75M -map [mxf720_out] C:test/MXF720.mxf


    


    If I remove 'file' from the frames file path in the .txt file it works.

    


    Ex : file 'C :/Users/User/Desktop/test/Test.0001.png'

    


    Unfortunately, I am unable to change this as it's being generated and run within a piece of software. Are there any flags or something that I need to add to get around this ? Any other possible techniques beyond starting another &&ffmpeg call to generate the streams over the overlay ?

    


    I do get this in the logs :&#xA;[concat @ 0000024a0eacf280] DTS -230584300921369 < 0 out of order&#xA;DTS -230584300921369, next:40000 st:0 invalid dropping&#xA;PTS -230584300921369, next:40000 invalid dropping st:0&#xA;DTS -230584300921369, next:40000 st:0 invalid dropping&#xA;PTS -230584300921369, next:40000 invalid dropping st:0&#xA;DTS -230584300921369, next:40000 st:0 invalid dropping&#xA;PTS -230584300921369, next:40000 invalid dropping st:0&#xA;DTS -230584300921369, next:40000 st:0 invalid dropping&#xA;PTS -230584300921369, next:40000 invalid dropping st:0&#xA;[image2 @ 0000024a0eadd140] Thread message queue blocking ; consider raising the thread_queue_size option (current value : 8)

    &#xA;

  • Python, Flask, ffmpeg video streaming : Video does not work in Firefox

    12 avril 2018, par user3187926

    I am writing a preview portion for video management system, it works like a charm in chrome with standard tag but firefox does not recognize MIME type for some reason and it bugs me a lot.

    Here is my stream class :

    class Stream:
       run = False
       FNULL = open(os.devnull, 'w')
       overlay = ffmpeg.input("somelogo.png")

       def __init__(self, camid):
           camUtil = CameraUtil()
           self.camid = camid
           self.streamurl = camUtil.get_stream_from_id(self.camid)['streamURL']
           print(self.streamurl)
           self.args = ffmpeg.input(self.streamurl)
           # vcodec="libvpx",
           # acodec="libvorbis",
           self.args = ffmpeg.output(self.args, "-",
                                     f="matroska",
                                     vcodec="copy",
                                     acodec="copy",
                                     blocksize="1024",
                                     # strftime="1",
                                     # segment_time="60",
                                     # segment_format="matroska"
                                     preset="ultrafast",
                                     metadata="title='test'"
                                     )
           self.args = ffmpeg.get_args(self.args)
           print(self.args)
           self.pipe = subprocess.Popen(['ffmpeg'] + self.args,
                                        stdout=subprocess.PIPE,)
                                        #stderr=self.FNULL)

       def dep_stream(self):
           def gen():
               try:
                   f = self.pipe.stdout
                   byte = f.read(1024)
                   while byte:
                       yield byte
                       byte = f.read(1024)
               finally:
                   self.pipe.kill()

           return Response(gen(), status=200,
                           mimetype='video/webm',
                           headers={'Access-Control-Allow-Origin': '*',
                                    "Content-Type": "video/webm",
                                    })

    My html playback portion :

       <video preload="auto" autoplay="autoplay" width="1280" height="720">
         <source src="/stream/{{ camid }}" type="video/webm;codecs=&quot;vp8, vorbis&quot;"></source>
         YOUR BROWSER DOES NOT SUPPORT HTML5, WHAT YEAR ARE YOU FROM?!
       </video>

    Firefox says "No video with supported format and MIME type found" and in console it says

    error : Error Code : NS_ERROR_DOM_MEDIA_METADATA_ERR (0x806e0006)

    Did I do something dumb ?! Or am I missing something, because it works google chrome like a charm

    I need fresh eyes.

    Help plez

  • ffmpeg slows down as I run it

    14 septembre 2022, par Bambi2k21

    I edit a video such that it speeds up by 8x where the speaker is silent and by 2x when he is speaking. And to do that I use ffmpeg in such a manner :

    &#xA;

    ffmpeg -i C:\Users\TheD4\Desktop\uni1.mp4 -filter_complex "[0:v]trim=0:0.98,setpts=1*(PTS- &#xA;STARTPTS)[v0]; [0:a]atrim=0:0.98,asetpts=PTS-STARTPTS,atempo=1[a0] &#xA;[0:v]trim=0.98:1.598,setpts=0.5*(PTS-STARTPTS)[v1]; [0:a]atrim=0.98:1.598,asetpts=PTS- STARTPTS,atempo=2[a1]; [0:v]trim=1.598:1.946,setpts=1*(PTS-STARTPTS)[v2]; &#xA;[0:a]atrim=1.598:1.946,asetpts=PTS-STARTPTS,atempo=1[a2]; [0:v]trim=1.946:1.975,setpts=0.5*(PTS- &#xA;STARTPTS)[v3]; [0:a]atrim=1.946:1.975,asetpts=PTS-STARTPTS,atempo=2[a3];............ &#xA;[0:v]trim=1529.04:1537.34,setpts=1*(PTS-STARTPTS)[v1652]; [0:a]atrim=1529.04:1537.34,asetpts=PTS- &#xA;STARTPTS,atempo=1[a1652]; [0:v]trim=1537.34:1537.55,setpts=0.5*(PTS-STARTPTS)[v1653]; &#xA;[0:a]atrim=1537.34:1537.55,asetpts=PTS-STARTPTS,atempo=2[a1653]; &#xA;[0:v]trim=1537.55:1538.73,setpts=1*(PTS-STARTPTS)[v1654]; [0:a]atrim=1537.55:1538.73,asetpts=PTS- &#xA;STARTPTS,atempo=1[a1654]; [0:v]trim=1538.73:1539.15,setpts=0.5*(PTS-STARTPTS)[v1655]; &#xA;[0:a]atrim=1538.73:1539.15,asetpts=PTS-STARTPTS,atempo=2[a1655]; [v0][a0][v1][a1][v2][a2][v3] &#xA;[a3]..........[v1652][a1652][v1653][a1653][v1654][a1654][v1655][a1655]concat=n=1656:v=1:a=1" -preset &#xA;superfast -profile:v baseline&#xA;

    &#xA;

    But the thing is, as you might have noticed the filter goes into the thousands, and so the total number of caracters is high(in this example there are around 200000), but cmd(8000) or powershell(30000) have less than that. So to get around that limitation, I divided all of that into smaller parts, but here is where the problem starts, as I run more and more of the "parts code" and ffmpeg does work on later and later parts of the video, the process of making the video from those smaller parts becomes slower as well, even though the size of the video is the same. To see what is wrong, I ran the code from a couple of hundred seconds(so instead of starting from 0s it start from let's say 500s) and I noticed the same effect. So what I think happens is that ffmpeg goes through the entirety of the video until it reaches the specified start. So here is my question is there a way to tell ffmpeg to ignore the start of the video and to start immediately from where I need it to, maybe something like this :

    &#xA;

    ffmpeg -i C:\Users\TheD4\Desktop\uni1.mp4[500:] -filter_complex ........&#xA;

    &#xA;