Recherche avancée

Médias (1)

Mot : - Tags -/ogv

Autres articles (60)

  • Récupération d’informations sur le site maître à l’installation d’une instance

    26 novembre 2010, par

    Utilité
    Sur le site principal, une instance de mutualisation est définie par plusieurs choses : Les données dans la table spip_mutus ; Son logo ; Son auteur principal (id_admin dans la table spip_mutus correspondant à un id_auteur de la table spip_auteurs)qui sera le seul à pouvoir créer définitivement l’instance de mutualisation ;
    Il peut donc être tout à fait judicieux de vouloir récupérer certaines de ces informations afin de compléter l’installation d’une instance pour, par exemple : récupérer le (...)

  • Organiser par catégorie

    17 mai 2013, par

    Dans MédiaSPIP, une rubrique a 2 noms : catégorie et rubrique.
    Les différents documents stockés dans MédiaSPIP peuvent être rangés dans différentes catégories. On peut créer une catégorie en cliquant sur "publier une catégorie" dans le menu publier en haut à droite ( après authentification ). Une catégorie peut être rangée dans une autre catégorie aussi ce qui fait qu’on peut construire une arborescence de catégories.
    Lors de la publication prochaine d’un document, la nouvelle catégorie créée sera proposée (...)

  • Le plugin : Gestion de la mutualisation

    2 mars 2010, par

    Le plugin de Gestion de mutualisation permet de gérer les différents canaux de mediaspip depuis un site maître. Il a pour but de fournir une solution pure SPIP afin de remplacer cette ancienne solution.
    Installation basique
    On installe les fichiers de SPIP sur le serveur.
    On ajoute ensuite le plugin "mutualisation" à la racine du site comme décrit ici.
    On customise le fichier mes_options.php central comme on le souhaite. Voilà pour l’exemple celui de la plateforme mediaspip.net :
    < ?php (...)

Sur d’autres sites (3185)

  • How to Resize Video 720:1280 Bigger Height, Width and Crop To 1280:720 using ffmpeg ?

    31 juillet 2021, par ChhengRavy

    I have video Original size 720:1280 and want to convert it to size 1280:720 but before converting I want to increase it bigger first.

    &#xA;

    I have a video original size 720:1280 Below

    &#xA;

    Using Code Below, I can resize the video to 1280:720 but it is not the result that I want.

    &#xA;

    ffmpeg -i input.mp4 -filter_complex scale=1280:720:force_original_aspect_ratio=decrease,pad=1280:720:-1:-1:color=black output.mp4&#xA;

    &#xA;

    enter image description here

    &#xA;

    This is what I want to get. Please Help Me To solve the problem. Your answer is so important to me.&#xA;Thank you so much. I am waiting your reply.

    &#xA;

    This is what I want to get

    &#xA;

  • Dynamically change video crop width, height, x and y using ffmpeg

    12 mai 2021, par Mario

    I am doing object detection on a video and so far I've gotten the coordinates of the objects in the video.

    &#xA;

    now I want to crop the video frame by frame given the location/coordinates of the object

    &#xA;

    My code so far :

    &#xA;

    def crop_video(input_video_path, output_video_path, coordinate_list):&#xA;    &#xA;    crop_ratio = &#x27;crop=%s:%s:%s:%s&#x27; % (coordinate_list[0][0], coordinate_list[0][1], coordinate_list[0][2],coordinate_list[0][3])&#xA;    subprocess.run([&#x27;ffmpeg&#x27;, &#x27;-i&#x27;, input_video_path, &#x27;-filter:v&#x27;, crop_ratio, output_video_path])&#xA;

    &#xA;

    the crop_video function crops the entire video using only the first index in the coordinate_list list. How can I improve the code to change dynamically.&#xA;coordinate list looks similar to this :

    &#xA;

     coordinate_list = [[147.5, 253.5, 927, 107],&#xA;     [147.5, 253.5, 927, 107],&#xA;     [147.0, 257.5, 928, 102],&#xA;     [148.5, 258.5, 925, 104],&#xA;     [148.5, 258.5, 925, 104],&#xA;     [155.0, 258.5, 918, 103],&#xA;     [155.0, 258.5, 918, 103],]&#xA;

    &#xA;

    How can I dynamically change the crop width, height, x and y using the coordinate_list. I am new to using ffmpeg

    &#xA;

  • FFmpeg doesn't recognize correct input height in hstack command

    23 mars 2021, par lach_codes

    Having an issue with an hstack FFmpeg command that has stumped me.

    &#xA;

    input1 and input2 are both vertical 360x640 videos. I am cropping input1 to a square, merging it vertically with input2, then cropping a vertical strip off each side of the resulting video and horizontally merging these three videos (left strip, middle vertically-stacked video, right strip).

    &#xA;

    ffmpeg -i input1.mp4 -i input2.mp4 -filter_complex [0:v]crop=360:360:0:140,fps=30[v0],[1:v]fps=30[v1],[v0][v1]vstack=inputs=2[m],[m]crop=101:ih:0:0[l],[m]crop=101:ih:259:0[r],[l][m][r]hstack=inputs=3[v];[0:a][1:a]amix[a] -map [v] -map [a] -preset ultrafast ./stackedOutput.mp4&#xA;

    &#xA;

    When I run this, I get an error :

    &#xA;

    [Parsed_hstack_6 @ 0x7ff5394482c0] Input 1 height 640 does not match input 0 height 1000. [Parsed_hstack_6 @ 0x7ff5394482c0] Failed to configure output pad on Parsed_hstack_6&#xA;

    &#xA;

    (Full FFmpeg output here.)

    &#xA;

    But the height of [m] (Input 1 in hstack) is not 640, it's 1000. I have verified this when the commands are run independently.

    &#xA;

    Why is FFmpeg not recognizing the correct height of [m] ? Any help or pointers greatly appreciated ! Thanks in advance !

    &#xA;