Recherche avancée

Médias (91)

Autres articles (92)

  • MediaSPIP 0.1 Beta version

    25 avril 2011, par

    MediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
    The zip file provided here only contains the sources of MediaSPIP in its standalone version.
    To get a working installation, you must manually install all-software dependencies on the server.
    If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)

  • Multilang : améliorer l’interface pour les blocs multilingues

    18 février 2011, par

    Multilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
    Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela.

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

  • Why does ffmpeg generate a mpeg-dash mpd with long timeShiftBufferDepth even with window_size of one minute ? [closed]

    1er février 2024, par igorblima

    I'm having a problem with ffmpeg when i try to create a dynamic mpd from rtmp livestream. The vídeo integrity its ok and works fine, but the only problem is with the timeShiftBufferDepth. The command specifies how much window_size to have, but for some reason the timeShiftBufferDepth generated by ffmpeg doesn't respect that. I specified 1 minute of window_size, but for some reason unknown to me, the timeShiftBufferDepth is generated as 8 minutes

    


    the command :

    


    ffmpeg -i rtmp://localhost:1935/live/stream -c:v libx264 -b:v 1000k -c:a aac -b:a 128k -strict experimental -f dash -window_size 60 -utc_timing_url https://time.akamai.com/?ms -seg_duration 5 -remove_at_exit 1 -dash_segment_type mp4 h264.mpd


    


    result :

    


    timeShiftBufferDepth="PT8M19.9S"


    


    how i say previously, the mpd works fine in the player. The only issue is with that incorrect timeShiftBufferDepth

    


    i read the ffmpeg documentation https://ffmpeg.org/ffmpeg-formats.html#Options-19

    


  • FFMPEG Python command too long

    22 janvier 2024, par billy 356

    I am trying to make a program that will overlay some images with a "slide" animation.
So I am doing this with FFMPEG in my Python code, and there are lots of files and commmands since the slide animation is frame per frame.

    


    for i in range(1, fps): h = yscale - ratio * (fps-i) # print(h) bg = bg.overlay(img_split[i].filter('crop', w1*scale, h, 0, 0), enable=f"between=(t, {nt},{nt + tsp})", x=x, y=y) nt += tsp

    


    this is where I am overlaying the images, and this is where i export the "bg"

    


    ffmpeg.output(bg, path, vcodec='h264_nvenc', **{'b:v': '30M'}).run(overwrite_output=True)  

    


    But since there are lots of small changes, the FFMPEG command is very long, so I get the following error :
FileNotFoundError: [WinError 206] The filename or extension is too long

    


    I tried to get the command and execute it separetly.
With FFMPEG you can get the command by doing ffmpeg.output(...).get_args(), which gives a list of arguments
I tried putting these in a file and run the file with batch but I had this error
C:\Users\billy\Desktop\tests\MIXER>bash cmd.txt cmd.txt: line 1: syntax error near unexpected token t,'
cmd.txt : line 1 : ffmpeg -i project/_pk.mp4 -i project/images/1.png -i project/images/2.png -i project/images/3.png -i project/images/4.png -i project/images/5.png -i project/images/6.png -i project/images/7.png -i project/images/8.png -i project/images/9.png -i project/images/10.png -i project/images/11.png -i project/images/12.png -i project/images/13.png -i project/images/14.png -i project/images/15.png -i project/images/16.p (I didn't copy the whole thing as it's very long)

    


  • how to prevent long text going out of video bounds ?

    30 décembre 2023, par Dhruvisha Joshi

    i am adding text to video using ffmpeg.

    


    var filterComplex = ""
for (index, textData) in textDataArray.enumerated() {
     print("x: \(textData.xPosition), y: \(textData.yPosition)")
     let x = (textData.xPosition * 1080) / videoViewWidth
     let y = (textData.yPosition * 1920) / videoViewHeight
                                    
     let fontSizeForWidth = (20 * 1080) / videoViewWidth
     let fontSizeForHeight = (20 * 1920) / videoViewHeight
     print("fontSizeForWidth: \(fontSizeForWidth)")
     print("fontSizeForHeight: \(fontSizeForHeight)")
                                    
     if index == textDataArray.count - 1 {
         let textFilter = "[video\(index)]drawtext=text='\(textData.text)':fontfile=\(fontPath):fontsize=\(fontSizeForHeight):fontcolor=white:x=(main_w-text_w-\(x)):y=(\(y)-(text_h/2))"
          filterComplex += textFilter
     } else {
          let textFilter = "[video\(index)]drawtext=text='\(textData.text)':fontfile=\(fontPath):fontsize=\(fontSizeForHeight):fontcolor=white:x=(main_w-text_w-\(x)):y=(\(y)-(text_h/2))[video\(index + 1)];"
          filterComplex += textFilter
     }
                                    
}


    


    this is my code to add drawtext to command. now my problem is if text is longer it is going out of video bounds instead i want it to be at same x y positons but i want to convert it to multiple lines.

    


    i have seen some solutions where they are telling me to add \n to my text but i am getting it from user and i am not able to determine that where to add \n so this solution is not working for me. if possible tell me how to change x y so that i can manage this or any other solutions if more effective.