Recherche avancée

Médias (0)

Mot : - Tags -/tags

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

Autres articles (10)

  • Supporting all media types

    13 avril 2011, par

    Unlike most software and media-sharing platforms, MediaSPIP aims to manage as many different media types as possible. The following are just a few examples from an ever-expanding list of supported formats : images : png, gif, jpg, bmp and more audio : MP3, Ogg, Wav and more video : AVI, MP4, OGV, mpg, mov, wmv and more text, code and other data : OpenOffice, Microsoft Office (Word, PowerPoint, Excel), web (html, CSS), LaTeX, Google Earth and (...)

  • Ajouter notes et légendes aux images

    7 février 2011, par

    Pour pouvoir ajouter notes et légendes aux images, la première étape est d’installer le plugin "Légendes".
    Une fois le plugin activé, vous pouvez le configurer dans l’espace de configuration afin de modifier les droits de création / modification et de suppression des notes. Par défaut seuls les administrateurs du site peuvent ajouter des notes aux images.
    Modification lors de l’ajout d’un média
    Lors de l’ajout d’un média de type "image" un nouveau bouton apparait au dessus de la prévisualisation (...)

  • Keeping control of your media in your hands

    13 avril 2011, par

    The vocabulary used on this site and around MediaSPIP in general, aims to avoid reference to Web 2.0 and the companies that profit from media-sharing.
    While using MediaSPIP, you are invited to avoid using words like "Brand", "Cloud" and "Market".
    MediaSPIP is designed to facilitate the sharing of creative media online, while allowing authors to retain complete control of their work.
    MediaSPIP aims to be accessible to as many people as possible and development is based on expanding the (...)

Sur d’autres sites (4471)

  • Scale with scale_vaapi and than pad, got error. Seems ok without "pad"

    24 mai 2023, par huangda1982

    My computer : customized Linux, haswell
I am trying to scale 1280x720 video to 640x450 in 640x480 frame with black borders. To do so, I run this command :

    


    ffmpeg -v warning -hide_banner -init_hw_device vaapi=vaapi0:/dev/dri/renderD128 -hwaccel vaapi -hwaccel_output_format vaapi -hwaccel_device vaapi0 -filter_hw_device vaapi0 -i 'my_video.mp4' -vf 'scale_vaapi=640:450,pad=640:480:0:14' -c:v h264_vaapi -q:v 18 -profile:v main -level 3.1 -c:a aac -q:a 3 -f mp4 out.mp4 -loglevel verbose


    


    And I got this error :

    


    Impossible to convert between the formats supported by the filter &#x27;Parsed_scale_vaapi_0&#x27; and the filter &#x27;auto_scaler_0&#x27;<br />&#xA;Error reinitializing filters!&#xA;Failed to inject frame into filter network: Function not implemented&#xA;Error while processing the decoded data for stream #0:0&#xA;

    &#xA;

    When I removed the ",pad=640:480:0:14" part, the command continued. I pressed ctrl-c, and did not check the result.

    &#xA;

    "-q:v 18", "-level 3.1" and "-q:a" options seem not work.

    &#xA;

    Full message :

    &#xA;

    [h264 @ 0x55dfeb529340] Reinit context to 1280x720, pix_fmt: yuv420p&#xA;Input #0, mov,mp4,m4a,3gp,3g2,mj2, from &#x27;my_video.mp4&#x27;:&#xA;  Metadata:&#xA;    major_brand     : isom&#xA;    minor_version   : 512&#xA;    compatible_brands: mp41&#xA;    creation_time   : 1970-01-01T00:00:00.000000Z&#xA;    encoder         : PotEncoder&#xA;  Duration: 00:22:45.01, start: 0.000000, bitrate: 3264 kb/s&#xA;  Stream #0:0(und): Video: h264 (Constrained Baseline), 1 reference frame (avc1 / 0x31637661), yuv420p(left), 1280x720 [SAR 1:1 DAR 16:9], 3068 kb/s, 23.98 fps, 23.98 tbr, 1199 tbn, 47.96 tbc (default)&#xA;    Metadata:&#xA;      creation_time   : 1970-01-01T00:00:00.000000Z&#xA;      handler_name    : VideoHandler&#xA;      vendor_id       : [0][0][0][0]&#xA;  Stream #0:1(und): Audio: mp3 (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 192 kb/s (default)&#xA;    Metadata:&#xA;      creation_time   : 1970-01-01T00:00:00.000000Z&#xA;      handler_name    : SoundHandler&#xA;      vendor_id       : [0][0][0][0]&#xA;File &#x27;out.mp4&#x27; already exists. Overwrite? [y/N] y&#xA;Stream mapping:&#xA;  Stream #0:0 -> #0:0 (h264 (native) -> h264 (h264_vaapi))&#xA;  Stream #0:1 -> #0:1 (mp3 (mp3float) -> aac (native))&#xA;Press [q] to stop, [?] for help&#xA;[h264 @ 0x55dfeb553e40] Reinit context to 1280x720, pix_fmt: vaapi_vld&#xA;[graph_1_in_0_1 @ 0x55dfeb6b7580] tb:1/44100 samplefmt:fltp samplerate:44100 chlayout:0x3&#xA;[graph 0 input from stream 0:0 @ 0x55dfebb4d000] w:1280 h:720 pixfmt:vaapi_vld tb:1/1199 fr:1199/50 sar:1/1&#xA;[auto_scaler_0 @ 0x55dfebb4f940] w:iw h:ih flags:&#x27;bicubic&#x27; interl:0&#xA;[Parsed_pad_1 @ 0x55dfebb4c700] auto-inserting filter &#x27;auto_scaler_0&#x27; between the filter &#x27;Parsed_scale_vaapi_0&#x27; and the filter &#x27;Parsed_pad_1&#x27;&#xA;Impossible to convert between the formats supported by the filter &#x27;Parsed_scale_vaapi_0&#x27; and the filter &#x27;auto_scaler_0&#x27;&#xA;Error reinitializing filters!&#xA;Failed to inject frame into filter network: Function not implemented&#xA;Error while processing the decoded data for stream #0:0&#xA;[AVIOContext @ 0x55dfeb5522c0] Statistics: 0 seeks, 0 writeouts&#xA;[aac @ 0x55dfeb551600] Qavg: 354.000&#xA;[aac @ 0x55dfeb551600] 2 frames left in the queue on closing&#xA;[AVIOContext @ 0x55dfeb530500] Statistics: 1144787 bytes read, 2 seeks&#xA;Conversion failed!&#xA;

    &#xA;

  • Split video with ffmpeg with specific conditions

    15 juin 2023, par Mahdi

    I have some videos and I want to split them into 15 min each with FFmpeg with the following conditions :

    &#xA;

      &#xA;
    1. Final videos should be less than 15 min
    2. &#xA;

    3. Script should cut the video somewhere that speaker is not talking. For example, script should cut video on the following point :
    4. &#xA;

    &#xA;

    enter image description here

    &#xA;

    And it should not cut videos like the following :&#xA;enter image description here

    &#xA;

    This article could working for the first condition, but the second option is missed.

    &#xA;

    python ffmpeg-split.py -f big_video_file.mp4 -s 10&#xA;

    &#xA;

  • Add subtitles starting at a specific timestamp using Ffmpeg-Python

    21 août 2023, par grilo13

    I want to add a .srt file (subtitles) to a .mp4 video. How can I add the subtitles at a specific timestamp ?

    &#xA;

    As an example, my .mp4 video starts the talking part at 00:00:25, so thats there where I want to have the subtitles appearing with the audio.

    &#xA;

    I have this at the moment to add the subtitles in the video (and it works) :

    &#xA;

    video_clip = ffmpeg.input("background_video.mp4")&#xA;video_clip.filter("subtitles", f"Subtitles/{post_id}/sub.srt",&#xA;                                           fontsdir="fonts/Roboto-Black.ttf",&#xA;force_style="Alignment=10,FontName=Roboto-Regular,FontSize=12")&#xA;                            &#xA;

    &#xA;

    Thanks in advance.

    &#xA;

    What I have above adds the subtitles in the beginning of the video (instead of in the 25th second)

    &#xA;