Recherche avancée

Médias (0)

Mot : - Tags -/tags

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

Autres articles (101)

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

  • Formulaire personnalisable

    21 juin 2013, par

    Cette page présente les champs disponibles dans le formulaire de publication d’un média et il indique les différents champs qu’on peut ajouter. Formulaire de création d’un Media
    Dans le cas d’un document de type média, les champs proposés par défaut sont : Texte Activer/Désactiver le forum ( on peut désactiver l’invite au commentaire pour chaque article ) Licence Ajout/suppression d’auteurs Tags
    On peut modifier ce formulaire dans la partie :
    Administration > Configuration des masques de formulaire. (...)

  • Amélioration de la version de base

    13 septembre 2013

    Jolie sélection multiple
    Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
    Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...)

Sur d’autres sites (16339)

  • avutil/channel_layout : do not copy alloc new map for extra channel layout

    15 mars 2022, par Marton Balint
    avutil/channel_layout : do not copy alloc new map for extra channel layout
    

    Also use av_channel_layout_bprint directly for describing channel layout for
    extra channels.

    Signed-off-by : Marton Balint <cus@passwd.hu>

    • [DH] libavutil/channel_layout.c
  • Moviepy subclip captures extra 4 seconds at the end

    18 juillet 2021, par Fazal

    Iam trying to clip a video and save the clipped video. In this case the first 5 seconds of the video. While the video is getting clipped correctly. However the length of the clipped video is still 9 seconds instead of 5 seconds. For some reason an addition 4 seconds keep getting added with no content. Can someone help me with this. I tried to read through various topics on the issue but couldnt figure out.

    &#xA;

    # Import everything needed to edit video clips&#xA;from moviepy.editor import *&#xA;from moviepy.video.io.ffmpeg_tools import ffmpeg_extract_subclip&#xA;# loading video dsa gfg intro video&#xA;clip = VideoFileClip("file.mp4")&#xA;&#xA;filename = "fileclipped.mp4"&#xA;ffmpeg_extract_subclip("file.mp4", 0, 5, targetname=filename)&#xA;

    &#xA;

  • Merge video with ffmpeg(or alternatives) with extra properties(an overlay)

    28 juin 2021, par dconixDev

    I'll be scraping clips from twitch and merging them to create a single video file.&#xA;I already figured out the scraping of twitch clip links(but i only get 16-20 videos because i need to scroll with selenium but i dont really mind it, if you have a working solution then make an answer about it) and also the simple merging videos.

    &#xA;

    I'm scraping links with :

    &#xA;

    #!/usr/bin/python3.9&#xA;import bs4&#xA;import requests&#xA;import time&#xA;from datetime import datetime&#xA;from selenium import webdriver&#xA;from selenium.webdriver.firefox.options import Options&#xA;&#xA;# Initialize driver and run it headless&#xA;options = Options()&#xA;options.headless = True&#xA;driver = webdriver.Firefox(options=options)&#xA;&#xA;def extract_source(url):&#xA;     agent = {"User-Agent":"Mozilla/5.0 (Windows NT 10.0; rv:78.0) Gecko/20100101 Firefox/78.0"}&#xA;     source=requests.get(url, headers=agent).text&#xA;     return source&#xA;&#xA;def extract_data(source):&#xA;     soup=bs4.BeautifulSoup(source, &#x27;html.parser&#x27;)&#xA;     names=soup.find_all(&#x27;a&#x27;, attrs={&#x27;data-a-target&#x27;:&#x27;preview-card-image-link&#x27;})&#xA;     return names&#xA;&#xA;driver.get(&#x27;https://www.twitch.tv/directory/game/League%20of%20Legends/clips?range=24hr&#x27;)&#xA;&#xA;# I wait 3 seconds for the clips to get pulled in&#xA;# I&#x27;d like here to scroll down a bit so i can scrape more clips, but even after i tried some solutions my firefox(was debugging in GUI mode, not headless as it is now) wasnt scrolling&#xA;time.sleep(3)&#xA;extract_links=extract_data(driver.page_source)&#xA;for a in extract_links:&#xA;    print(a.get(&#x27;href&#x27;))&#xA;&#xA;driver.quit()&#xA;&#xA;# I tried scrolling using this but didnt work, not sure why&#xA;# this script is supposed to scroll until youre at the end of the page&#xA;# SCROLL_PAUSE_TIME = 0.5&#xA;&#xA;# # Get scroll height&#xA;# last_height = driver.execute_script("return document.body.scrollHeight")&#xA;&#xA;# for i in range(3):&#xA;    # # Scroll down to bottom&#xA;    # driver.execute_script("window.scrollTo(0, document.body.scrollHeight);")&#xA;&#xA;    # # Wait to load page&#xA;    # time.sleep(SCROLL_PAUSE_TIME)&#xA;&#xA;    # # Calculate new scroll height and compare with last scroll height&#xA;    # new_height = driver.execute_script("return document.body.scrollHeight")&#xA;    # if new_height == last_height:&#xA;        # break&#xA;    # last_height = new_height&#xA;

    &#xA;

    I'm joining videos together after downloading(with youtube-dl) with ffmpeg :

    &#xA;

    ffmpeg -safe 0 -f concat -segment_time_metadata 1 -i videos.txt -vf select=concatdec_select -af aselect=concatdec_select,aresample=async=1 out.mp4

    &#xA;

    Where videos.txt is as follows :

    &#xA;

    file &#x27;video_file1.mp4&#x27;&#xA;file &#x27;video_file2.mp4&#x27;&#xA;...&#xA;

    &#xA;

    I can't really find answers on how to add a watermark(different for each video, although i found this it doesnt explain how to add a unique watermark to individual videos but the same watermark to two videos) without having to render each and every video twice but doing so in one go.

    &#xA;

    I think I stumbled upon some people who made their videos.txt as follows in purpose of adding extra options to each video :

    &#xA;

    file &#x27;video_file1.mp4&#x27;&#xA;option 1(for video_file1.mp4)&#xA;option 2(for video_file1.mp4)&#xA;file &#x27;video_file2.mp4&#x27;&#xA;option 1(for video_file2.mp4)&#xA;option 2(for video_file2.mp4)&#xA;...&#xA;

    &#xA;

    Would this work for unique watermarks for each videos(lets suppose watermarks are named video_file1.png, ... meaning the same as the videos, also the watermark is transparent in case that needs more configuration)

    &#xA;