Recherche avancée

Médias (91)

Autres articles (54)

  • Les vidéos

    21 avril 2011, par

    Comme les documents de type "audio", Mediaspip affiche dans la mesure du possible les vidéos grâce à la balise html5 .
    Un des inconvénients de cette balise est qu’elle n’est pas reconnue correctement par certains navigateurs (Internet Explorer pour ne pas le nommer) et que chaque navigateur ne gère en natif que certains formats de vidéos.
    Son avantage principal quant à lui est de bénéficier de la prise en charge native de vidéos dans les navigateur et donc de se passer de l’utilisation de Flash et (...)

  • (Dés)Activation de fonctionnalités (plugins)

    18 février 2011, par

    Pour gérer l’ajout et la suppression de fonctionnalités supplémentaires (ou plugins), MediaSPIP utilise à partir de la version 0.2 SVP.
    SVP permet l’activation facile de plugins depuis l’espace de configuration de MediaSPIP.
    Pour y accéder, il suffit de se rendre dans l’espace de configuration puis de se rendre sur la page "Gestion des plugins".
    MediaSPIP est fourni par défaut avec l’ensemble des plugins dits "compatibles", ils ont été testés et intégrés afin de fonctionner parfaitement avec chaque (...)

  • Soumettre bugs et patchs

    10 avril 2011

    Un logiciel n’est malheureusement jamais parfait...
    Si vous pensez avoir mis la main sur un bug, reportez le dans notre système de tickets en prenant bien soin de nous remonter certaines informations pertinentes : le type de navigateur et sa version exacte avec lequel vous avez l’anomalie ; une explication la plus précise possible du problème rencontré ; si possibles les étapes pour reproduire le problème ; un lien vers le site / la page en question ;
    Si vous pensez avoir résolu vous même le bug (...)

Sur d’autres sites (3560)

  • FFMPEG : cut clips from a long video with "fast seek" while maintaining accuracy

    15 août 2020, par japseow

    I have this 3 hour long video which consists of <1-5 seconds of black frames> — < clip > — <1-5 seconds of black frames> — < clip > — ...

    &#xA;

    I could successfully get the clip without the black frames with the slow seek, but it takes over 4 minutes just for seeking.

    &#xA;

    ffmpeg -y -i "C:\Users\user\Videos\obs\part1.mp4" -ss 4370.48 -to 4384.95 -c:a copy -c:v hevc_nvenc -rc vbr_hq -cq 19 -b:v 10000k -maxrate:v 12500k "C:\Users\user\Videos\obs\____delete1.mp4"

    &#xA;

    I tried using the fast seek which takes only 4 sec, but it includes a 4 sec blackframe chunk at the end of the video. The output that should've been 14 sec long became 18 sec.

    &#xA;

    ffmpeg -y -ss 4370.48 -i "C:\Users\user\Videos\obs\part1.mp4" -to 14.47 -c:a copy -c:v hevc_nvenc -rc vbr_hq -cq 19 -b:v 10000k -maxrate:v 12500k "C:\Users\user\Videos\obs\____delete2.mp4"

    &#xA;

    My video has around 640 clips so it's impractical to wait that long just for seeking, and it'll only get worse when I'll be seeking at around the 2+ hour mark.

    &#xA;

  • Add a Text and a images to the video using ffmpeg

    26 février 2019, par Nguyễn Thành Đạt

    I have read this question in toppic :
    FFMPEG overlay two video and add text

    ffmpeg -i raw_video.mp4 -i watermark.png -i watermark2.png -filter_complex [0:v]drawtext=fontfile=font.ttf:text='text1':fontcolor=black@1.0:fontsize=24:x=20:y=259, drawtext=fontfile=font.ttf:text='text2':fontcolor=black@1.0:fontsize=24:x=500:y=500[text]; [text][1:v]overlay=215:0[ol1];[ol1][2:v]overlay=400:300[filtered]"-map "[filtered]" -codec:v libx264 -codec:a copy output.mp4  "

    I try to using this ffmpeg but it error .

    Please help me

  • How to enlarge a video without changing the resolution in python ? [closed]

    18 janvier 2024, par Killian Rakotonanahary

    I'm trying to convert a youtube video into a 9 : 16 video. So I'm scaling the video to 1080x1920, and it's returns me a minimized video with two black borders at the bottom and at the top.

    &#xA;

    I would like to zoom into the video, so the video will be able to fill all the format, with ffmpeg, or opencv or moviepy.

    &#xA;

    I tryied to crop the video with ffmpeg but the video is cropped without the black borders, like if the black borders wasnt a part of the file,&#xA;I tryed to zoom with ffmpeg but the zoompan continuously zoom during all the video, and the black borders are not affected by the zoom,&#xA;I tryed to remove the edges where the pixel value is less than or equal to a given threshold, but the ratio is not kept, and its result to a strechted video.&#xA;I would like to do something like https://new.express.adobe.com/tools/resize-video

    &#xA;

    Enlarge the video without affecting the resolution, so it's just result to a zoom effect.

    &#xA;

    The actual code is resizing the video to 9 : 16 with two black border at the bottom and on the top.

    &#xA;

    def divideWithCheckPoints(checkpointRanges):&#xA;    videoPath = &#x27;assets/video.mp4&#x27;&#xA;    output_folder = &#x27;assets/&#x27;&#xA;&#xA;    video_clip = VideoFileClip(videoPath)&#xA;    &#xA;    for i, (start_time, end_time) in enumerate(checkpointRanges):&#xA;        output_file = f&#x27;{output_folder}video_part_{i&#x2B;1}.mp4&#x27;&#xA;        command = [&#xA;            &#x27;ffmpeg&#x27;,&#xA;            &#x27;-i&#x27;, videoPath,&#xA;            &#x27;-ss&#x27;, str(start_time),&#xA;            &#x27;-to&#x27;, str(end_time),&#xA;            &#x27;-vf&#x27;, "scale=1080:1920",  # resize video&#xA;            &#x27;-c:a&#x27;, &#x27;aac&#x27;,&#xA;            &#x27;-b:v&#x27;, &#x27;1M&#x27;,  &#xA;            output_file&#xA;        ]&#xA;        subprocess.run(command, check=True)&#xA;        &#xA;    last_start_time = checkpointRanges[-1][1]&#xA;    last_end_time = video_clip.duration  &#xA;    last_output_file = f&#x27;{output_folder}video_part_{len(checkpointRanges)&#x2B;1}.mp4&#x27;&#xA;    command = [&#xA;        &#x27;ffmpeg&#x27;,&#xA;        &#x27;-i&#x27;, videoPath,&#xA;        &#x27;-ss&#x27;, str(last_start_time),&#xA;        &#x27;-to&#x27;, str(last_end_time),&#xA;        &#x27;-vf&#x27;, "scale=1080:1920",  # resize video&#xA;        &#x27;-c:a&#x27;, &#x27;aac&#x27;, &#xA;        last_output_file&#xA;    ]&#xA;    subprocess.run(command)&#xA;

    &#xA;

    Output :

    &#xA;

    enter image description here

    &#xA;

    Expected :

    &#xA;

    enter image description here

    &#xA;