Recherche avancée

Médias (91)

Autres articles (18)

  • Keeping control of your media in your hands

    13 avril 2011, par

    The vocabulary used on this site and around MediaSPIP in general, aims to avoid reference to Web 2.0 and the companies that profit from media-sharing.
    While using MediaSPIP, you are invited to avoid using words like "Brand", "Cloud" and "Market".
    MediaSPIP is designed to facilitate the sharing of creative media online, while allowing authors to retain complete control of their work.
    MediaSPIP aims to be accessible to as many people as possible and development is based on expanding the (...)

  • 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

  • Submit bugs and patches

    13 avril 2011

    Unfortunately a software is never perfect.
    If you think you have found a bug, report it using our ticket system. Please to help us to fix it by providing the following information : the browser you are using, including the exact version as precise an explanation as possible of the problem if possible, the steps taken resulting in the problem a link to the site / page in question
    If you think you have solved the bug, fill in a ticket and attach to it a corrective patch.
    You may also (...)

Sur d’autres sites (3254)

  • "Smooth" the ffmpeg showwaves video filter output

    24 décembre 2019, par goodytx

    I think I’m close to what I’m after, thanks to excellent answers like : FFMPEG : Fill/Change (part of) audio waveform color as per actual progress with respect to time progress ...but not quite there !

    I’m scripting the generation of a waveform video with showwaves, and overlaying that onto a static image background, turning the whole thing into video. All is well, except I’d like to "smooth" the waveform. In most tutorials/answers you will see jagged "peaks" in the waveform animation, as of course the audio data varies widely into peaks and troughs. (The differences expressed between the lowest and highest amplitude (I think) in each audio frame sample.) I’d like to get more of a consistent "flowing wave", without the sharp spikes up and down.

    Currently using the filter much as described in the previous link :

    [1:a]aformat=channel_layouts=mono,asplit[red][white]; \
    [red]showwaves=s=1280x100:rate=15:mode=cline:scale=sqrt:colors=0xff0000[red]; \

    Which results in the following (ignoring the red on white overlay, which I may drop) :

    Current v desired

    This generates the type of wave plot I want (solid vs a sine, for example), but I think I need to either tweak the audio stream or...possibly post filter the showwaves video stream (but I think the former) to get the effect I want. I tried to reduce the rate of showwaves but that just results in juddery video. So to me that feels like the audio data needs to be the changed factor.

    My limited audio knowledge leads me to think I should gain, compress, normalize, or all of the above, the audio input, which I have tried, but can’t seem to nail it. Keep in mind the audio stream in this filter chain is purely feeding the showwaves filter, so I can "trash" it as much as needed in order to get the visualization I want.

    I hope this all makes sense, and if I need to provide more info, please let me know. Thanks !

  • ffmpeg not working if run from py2app

    28 juin 2018, par dprogramz

    I’m trying to build a simple app that concats 2 mp4 files. It works fine if I run it from the command line, but if I run it from py2app app it doesn’t work. If I run the app from within the py2app in the console (eg ’dist/addTag.app/Contents/MacOS/addTag’), it works fine. It only doesn’t work if i run the app by double clicking on it. Any ideas ? code below

    #! /usr/bin/python
    import argparse
    import ffmpeg
    import os
    import shutil
    import sys
    from Tkinter import *
    import time

    fields = 'Input Video', 'Tag Video', 'Output Name'

    def fetch(entries, bu, lb, rt):
       bu['state'] = 'disabled'
       lb['text'] = 'working'
       rt.update()
       ffmpeg.concat(ffmpeg.input(entries[0][1].get()), ffmpeg.input(entries[1][1].get())).output(os.path.expanduser("~/desktop/")+entries[2][1].get()).run()
       bu['state'] = 'normal'
       lb['text'] = 'Ready'
       rt.update()


    def makeform(root, fields):
      entries = []
      for field in fields:
         row = Frame(root)
         lab = Label(row, width=15, text=field, anchor='w')
         ent = Entry(row)
         row.pack(side=TOP, fill=X, padx=5, pady=5)
         lab.pack(side=LEFT)
         ent.pack(side=RIGHT, expand=YES, fill=X)
         entries.append((field, ent))
      return entries

    if __name__ == '__main__':
      root = Tk()
      root.title("Video Maker")
      ents = makeform(root, fields)
      root.bind('<return>', (lambda event, e=ents: fetch(e)))
      label = Label(root, text="Ready")
      label.pack(side=LEFT)  
      b1 = Button(root, text='Make Video',
             command=(lambda e=ents: fetch(e, b1, label, root)))
      b1.pack(side=LEFT, padx=5, pady=5)
      b2 = Button(root, text='Quit', command=root.quit)
      b2.pack(side=LEFT, padx=5, pady=5)

      root.mainloop()
    </return>
  • Anyone know how to alter an FFMPEG command to output at half the size ?

    19 juin 2018, par James Rush

    I have an FMPEG command to scale down a video and add a blur to the background to fill the remaining height to 1136, plus add an overlay image, but it comes out at double the size I want. I am trying to get the whole video down to a 640 width without the overlay video being cropped or sized up. I’ve tried switching around every number but can’t seem to get it to work with a width of 640. Thank you for any help.

    ffmpeg -i '/z.mp4' -i '/a.png' -filter_complex "[0:v]scale=128/81*iw:128/41*ih,boxblur=luma_radius=min(h\,w)/40:luma_power=3:chroma_radius=min(cw\,ch)/40:chroma_power=1[bg];[bg][0:v]scale=1280:720,overlay=(W-w)/2:(H-h)/2,setsar=1,crop=w=iw*81/128[bg];[bg][1:v]overlay=82.8:118.8" '/h.mp4';