Recherche avancée

Médias (1)

Mot : - Tags -/stallman

Autres articles (69)

  • 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

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

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

  • create video editor error stream specifier [on hold]

    25 mai 2018, par Oussama

    I am a beginner in ffmpeg, and I started by creating a video editor, but I encountered an error while executing an ffmpeg command :

    ’Stream specifier’ ’ in filtergraph description .... matches no streams’

    Here is the command :

    ’ffmpeg -y -i icone1.jpg -i icone2.jpg -i icone3.jpg -i icone4.jpg -loop 1 -framerate 24 -t 5 -i image1.jpg -loop 1 -framerate 24 -t 5 -i image2.jpg -i song.mp3 -filter_complex " color=black@0:1365x701,format=yuva444p[c0] ; color=black@0:1365x701,format=yuva444p[c1] ; [c0][4]scale2ref[ct0][mv0] ; [c1][5]scale2ref[ct1][mv1] ; [ct0]setsar=1,split=2[t00][t01] ; [ct1]setsar=1,split=1[t10] ; [t00]drawtext=fontfile=’arial’:text=’azaazzaza’:fontcolor=red:fontsize=30[tfi00] ; [t01]drawtext=fontfile=’arial’:text=’drtgfh’:fontcolor=red:fontsize=30[tfi01] ; [t10]drawtext=fontfile=’arial’:text=’uygfdsdsqds’:fontcolor=blue:fontsize=30[tfi10] ; [mv0][tfi00]overlay=x=55.0000:y=12.0000:shortest=1[mv0] ; [mv0][tfi01]overlay=x=55.0000:y=12.0000:shortest=1[mv0] ; [mv1][tfi10]overlay=x=55.0000:y=55.0000:shortest=1[mv1] ; [0]scale=500:500,setsar=sar=1[img0] ; [1]scale=500:500,setsar=sar=1[img1] ; [2]scale=40:50,setsar=sar=1[img2] ; [3]scale=500:500,setsar=sar=1[img3] ; [mv0][img0]overlay=20.0000:20.0000[mv01] ; [mv01][img1]overlay=12.0000:12.0000[mv02] ; [mv1][img2]overlay=20.0000:12.0000[mv12] ; [mv12][img3]overlay=55.0000:12.0000[mv13] ; [mv02]scale=1280:720,setsar=sar=1[fram0] ; [mv13]scale=1280:720,setsar=sar=1[fram1] ; [5]atrim=duration=10[a1] ; [fram0][fram1]concat=n=2:v=1:a=0[all]" -map [all] -map [a1] video-8.mp4’

  • How do I properly save an animation involving circles with matplotlib.animation and ffmpeg ?

    12 juillet 2020, par bghost

    I recently tried out matplotlib.animation, and it's a wonderful tool. I can now make and save basic animations (ie that only involve straight lines) without any issues. However, when I made an animation involving circles, even though the interactive display was perfect, the saved mp4 file wasn't really satisfying. In the mp4 file, the edges of the circles were blurred, and if the circles were made semi-transparent (ie with an alpha value < 1), they all suddenly became completely opaque after a couple of frames. I suspected it was due to the fact that my bitrate wasn't high enough, but I went up to 10000 kb/s (instead of 1800), and exactly the same phenomenon occurred.

    &#xA;

    What can be done to solve these 2 issues (blurred edges + negated transparency) in the generated mp4 file ?

    &#xA;

    Here is a simple animation that describes what I just said :

    &#xA;

    import numpy as np&#xA;import matplotlib.pyplot as plt&#xA;import matplotlib.animation as animation&#xA;&#xA;fig = plt.figure(figsize=(11, 7))&#xA;ax = plt.axes(xlim=(-1.2, 1.2), ylim=(-0.7, 0.7))&#xA;ax.set_aspect(&#x27;equal&#x27;)&#xA;&#xA;dict_circles = {}&#xA;dict_circles[&#x27;ring&#x27;] = plt.Circle((-0.5, 0), 0.5, color=&#x27;b&#x27;, lw=2, fill=False)&#xA;dict_circles[&#x27;disk&#x27;] = plt.Circle((-0.5, 0), 0.5, color=&#x27;b&#x27;, alpha=0.2)&#xA;&#xA;def init():&#xA;    for circle in dict_circles.values():&#xA;        ax.add_patch(circle)&#xA;    return(dict_circles.values())&#xA;&#xA;nb_frames = 100&#xA;X_center = np.linspace(-0.5, 0.5, nb_frames)&#xA;&#xA;def animate(frame):&#xA;    for circle in dict_circles.values():&#xA;        circle.center = (X_center[frame], 0)&#xA;        ax.add_patch(circle)&#xA;    return(dict_circles.values())&#xA;&#xA;ani = animation.FuncAnimation(fig, animate, init_func=init, frames=nb_frames, blit=True, interval=10, repeat=False)&#xA;plt.show()&#xA;&#xA;plt.rcParams[&#x27;animation.ffmpeg_path&#x27;] = &#x27;C:\\ffmpeg\\bin\\ffmpeg.exe&#x27;&#xA;Writer = animation.writers[&#x27;ffmpeg&#x27;]&#xA;writer_ref = Writer(fps=15, bitrate=1800)&#xA;&#xA;ani.save(&#x27;Blue circle.mp4&#x27;, writer=writer_ref)&#xA;

    &#xA;

  • FFMPEG, Blur an area of a video using Image Select Areas Plugin

    12 juillet 2016, par Drupalist

    I am building an online video editor. I need to allow the users to blur an area of movies. This must be done graphically, I mean user should be able to select an area of a video, using an screenshot, then the selected area must be blurred. Some thing like this

    enter image description here

    Is there anyway to map this selected area dimension and its distance from borders to the real values that must be applied to the video ?

    I mean four numbers, width, length, top, left will be provided using this plug in and I need to use these numbers to blur an area of videos.

    I take an screenshot of video. In order to keep the aspect ratio, I will fix the width to 800px and let the height to be scaled up/down. It is clear that the width, length, top, left of the selected area of the screenshot is a factor of the width, length, top, left of the area that must be blurred in video. but I don’t know how to get this factor. Besides that I don’t know how to get the video resolution.

    Thanks in advance.


    Update

    This is my PHP code that gets the selected area dimensions and offsets

    $iLeft = $_POST['left'];
    $iTop = $_POST['top'];
    $iWidth = $_POST['width'];
    $iHeight = $_POST['height'];
    exec('ffmpeg -i '.$url.' -filter_complex "[0:v]scale=iw*sar:ih,setsar=1,split[bg][bb];[bb]crop='.$iWidth.'*iw/800:iw*'.$iHeight.'/800:'.$iWidth.'*iw/800:'.$iHeight.'*iw/800,boxblur=10[b0];[bg][b0]overlay='.$iLeft.'*W/800:'.$iTop.'*W/800"" '.$name.' > block.txt 2>&amp;1');

    $iLeft, $iTop, $iWidth, $iHeight are the left, top, width and height of the selected area via the image plugin.

    It blurs many selected areas very well, but areas like this

    enter image description here

    The Image Left, Top, Width, Height is 257,  39.26666259765625,  10,  391

    don’t get blurred. Also a video with Dimension 207x207 didn’t get blurred as well.