Recherche avancée

Médias (91)

Autres articles (47)

  • La file d’attente de SPIPmotion

    28 novembre 2010, par

    Une file d’attente stockée dans la base de donnée
    Lors de son installation, SPIPmotion crée une nouvelle table dans la base de donnée intitulée spip_spipmotion_attentes.
    Cette nouvelle table est constituée des champs suivants : id_spipmotion_attente, l’identifiant numérique unique de la tâche à traiter ; id_document, l’identifiant numérique du document original à encoder ; id_objet l’identifiant unique de l’objet auquel le document encodé devra être attaché automatiquement ; objet, le type d’objet auquel (...)

  • MediaSPIP Init et Diogène : types de publications de MediaSPIP

    11 novembre 2010, par

    À l’installation d’un site MediaSPIP, le plugin MediaSPIP Init réalise certaines opérations dont la principale consiste à créer quatre rubriques principales dans le site et de créer cinq templates de formulaire pour Diogène.
    Ces quatre rubriques principales (aussi appelées secteurs) sont : Medias ; Sites ; Editos ; Actualités ;
    Pour chacune de ces rubriques est créé un template de formulaire spécifique éponyme. Pour la rubrique "Medias" un second template "catégorie" est créé permettant d’ajouter (...)

  • Changer son thème graphique

    22 février 2011, par

    Le thème graphique ne touche pas à la disposition à proprement dite des éléments dans la page. Il ne fait que modifier l’apparence des éléments.
    Le placement peut être modifié effectivement, mais cette modification n’est que visuelle et non pas au niveau de la représentation sémantique de la page.
    Modifier le thème graphique utilisé
    Pour modifier le thème graphique utilisé, il est nécessaire que le plugin zen-garden soit activé sur le site.
    Il suffit ensuite de se rendre dans l’espace de configuration du (...)

Sur d’autres sites (5202)

  • ffmpeg:Unable to broadcast to live stream from webcam

    13 mai 2020, par gbenga ogunbule

    I have this code that I believe should be able to grab from webcam and broadcast a live stream i.e. Users will be able to watch or stream live what there admin is doing at that moment in time.

    



    I have this code for it

    



    C:\Apache24\htdocs\v­ideo\assets\ffmpeg\b­in>ffmpeg -f dshow -i video="HP Webcam" -c:v libx264 -preset ultrafast -tune zerolatency -r 10 -async 1 -c:a libmp3lame -b:a 24k -ar 22050 -bsf:v h264_mp4toannexb -maxrate 750k -bufsize 3000k -f mpegt s C:\Apache24\htdocs\v­ideo\assets\uploads\­videos\en.mp4


    



    Also notice I use the absolute path mpegt s C:\Apache24\htdocs\v­ideo\assets\uploads\­videos\en.mp4 instead localhost/video/assets/uploads/videos/en.mp4 and the reason is because, when I use the latter, it is recording the video into the folder where I run the command.

    



    And this is the HTML code I wrote for it.

    



    <video width="320" height="240" controls="controls">&#xA;  <source src="assets/uploads/videos/en.mp4" type="video/mp4">&#xA;Your browser does not support the video tag.&#xA;</source></video>&#xA;

    &#xA;&#xA;

    How do I online streaming using ffmpeg

    &#xA;

  • FFMPEG and Matplotlib for animations - strange outputs ?

    27 juin 2020, par user13132640

    I'm trying to create animations using FFMPEG and matplotlib. Using the below code, I am creating the FFMpeg writer, and then using a loop, writing a series of graphs to the animation. However, the outputs I'm getting are very strange ; sometimes, when I watch the .mp4 file, the first 5 seconds are blank, then the video "ends" (the playback time on my media player says that it's complete), and at that point, my animation shows up. Other times, some frames are missing or skipped. I've tried searching around, but frankly I haven't found anyone with similar issues.

    &#xA;

    I just installed the latest version of FFMpeg today.

    &#xA;

    FFMpegWriter = manimation.writers[&#x27;ffmpeg&#x27;]&#xA;metadata = dict(title=&#x27;Animation test&#x27;, artist=&#x27;name&#x27;)&#xA;writer = FFMpegWriter(fps=1, metadata=metadata) # 1 frames per second, each year is 1 second&#xA;

    &#xA;

    Then, the plotting part...(I've excluded the code where I setup the fig, ax etc.)

    &#xA;

    with writer.saving(fig, "animation.mp4", dpi=200):&#xA;    year = "2005"&#xA;    for i in range(4):&#xA;&#xA;        d1_plot = d1[d1[&#x27;Year&#x27;].str.contains(year, na=False)]&#xA;        ax.scatter(d1_plot["Lat"], d1_plot["Long"], c=&#x27;g&#x27;, s=d1_plot["Size"], transform=ccrs.PlateCarree())&#xA;        ax.set_title(year)&#xA;        writer.grab_frame()&#xA;        year = str(int(year)&#x2B;1)&#xA;

    &#xA;

  • ffmpeg transparent background with colorkey shows background bleeding

    2 novembre 2022, par Jan

    I am creating a video with transparent background video with the following command. After creation I want to overlay this video on another video

    &#xA;

    ffmpeg -f lavfi -i color=red:s=1920x1080,colorkey=red,format=rgba -loop 1 -t 0.08 -i "CreditWhite.png" -filter_complex "[1:v]scale=1920:-2,setpts=if(eq(N\,0)\,0\,1&#x2B;1/0.02/TB),fps=60[fg]; [0:v][fg]overlay=y=-&#x27;t*h*0.02&#x27;:eof_action=endall[v]" -map "[v]" -pix_fmt yuva444p10le -vcodec prores_ks credits.mov&#xA;

    &#xA;

    Creating the video works fine but when I overlay this on another video (using openshot) I get a lot of color bleeding of the background colour around the edges. Any suggestions to improve the ffmpeg prompt to stop this from happening ? I tried very slightly increasing the opacity (0.06) as mentioned in another thread without success.&#xA;Video uploaded to youtube for reference

    &#xA;

    UPDATE

    &#xA;

    Using different colours had the same effect&#xA;enter image description here

    &#xA;