Recherche avancée

Médias (0)

Mot : - Tags -/organisation

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

Autres articles (60)

  • Configurer la prise en compte des langues

    15 novembre 2010, par

    Accéder à la configuration et ajouter des langues prises en compte
    Afin de configurer la prise en compte de nouvelles langues, il est nécessaire de se rendre dans la partie "Administrer" du site.
    De là, dans le menu de navigation, vous pouvez accéder à une partie "Gestion des langues" permettant d’activer la prise en compte de nouvelles langues.
    Chaque nouvelle langue ajoutée reste désactivable tant qu’aucun objet n’est créé dans cette langue. Dans ce cas, elle devient grisée dans la configuration et (...)

  • Support de tous types de médias

    10 avril 2011

    Contrairement à beaucoup de logiciels et autres plate-formes modernes de partage de documents, MediaSPIP a l’ambition de gérer un maximum de formats de documents différents qu’ils soient de type : images (png, gif, jpg, bmp et autres...) ; audio (MP3, Ogg, Wav et autres...) ; vidéo (Avi, MP4, Ogv, mpg, mov, wmv et autres...) ; contenu textuel, code ou autres (open office, microsoft office (tableur, présentation), web (html, css), LaTeX, Google Earth) (...)

  • Emballe médias : à quoi cela sert ?

    4 février 2011, par

    Ce plugin vise à gérer des sites de mise en ligne de documents de tous types.
    Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ;

Sur d’autres sites (7601)

  • Image overlay on video between two time using mobile-ffmpeg android

    8 mars 2021, par Saeid Honardan

    I am trying to add image overlay on video using "mobile-ffmpeg-full-gpl:4.4" library but faced following error :

    


    Error when evaluating the expression 'between(t' for enable' error.


    


    I have a class that create overlay filter for adding image :

    


    class ImageFilter {&#xA;&#xA;static String getFilter(String input, String output, ArrayList<extratl> listImage, int order){&#xA;    String filter="";&#xA;    for (int i=0; icode></extratl>

    &#xA;

    FFMPEG Command used :

    &#xA;

    -loop 1 -i /storage/emulated/0/OP_Video_Editor/.temp/background.png -ss 0.0 -t 21.18 -i /storage/emulated/0/OP_Video_Editor/.temp/1614097633623.mp4 -i /storage/emulated/0/OP_Video_Editor/.resource/sticker_i02.png -filter_complex [1:v]crop=640:360:0:0[crop];[crop]scale=1280:720[v_scale];color=black:1280x720,fps=30[bgr0];[bgr0][0:v]overlay[bgr];[bgr][v_scale]overlay=(main_w-overlay_w)/2:(main_h-overlay_h)/2:shortest=1[v1];[1:a]aformat=sample_fmts=fltp:sample_rates=44100:channel_layouts=stereo,volume=1.0[a1];[v1][a1]concat=n=1:v=1:a=1[v][a];[a]aformat=sample_fmts=fltp:sample_rates=44100:channel_layouts=stereo,volume=1.0[a0];[a0]amix=inputs=1:duration=longest:dropout_transition=1[outAudio];[2:v]scale=333:333,rotate=-0.0:c=none:ow=rotw(-0.0):oh=roth(-0.0)[ov2];[v][ov2]overlay=333.33334:333.33334:enable=&#x27;between(t,0.0,10.0)&#x27;[inText] -map [inText] -map [outAudio] -format yuva420p -preset ultrafast -video_track_timescale 90k -b:v 2000k -c:v libx264 -bufsize 64k -c:a aac -bsf aac_adtstoasc -strict -2 -y /storage/emulated/0/videoExport/videoplayback_22_21_28_18_44_10.mp4 &#xA;

    &#xA;

    Also my log when I run program is :

    &#xA;

    &#x27;2021-03-03 17:26:32.165 11664-11830/com.hecorat.azplugin2 E/mobile-ffmpeg: [overlay @ 0xdc5f3b80] [Eval @ 0xc5bd6b70] Missing ")" or too many args in "between(t"&#xA;&#xA;2021-03-03 17:26:32.167 11664-11830/com.hecorat.azplugin2 E/mobile-ffmpeg: [overlay @ 0xdc5f3b80] Error when evaluating the expression "between(t" for enable&#x27;&#xA;

    &#xA;

    How can I resolve this error ?

    &#xA;

  • ffmpeg : handle videos with changing resolution

    5 mars 2021, par mSourire

    I write a program, which concatenates input list of videos programmatically. The problem is that these videos are parts of a recorded stream, and their resolution may change few times within the same file.&#xA;Currently, if that happens, ffmpeg fails, saying that it's not possible to concat files with different resolutions. Is there a way to make ffmpeg handling this automatically ? A good solution would be selective scaling of frames with unexpected resolution.

    &#xA;

    Here is a listing :

    &#xA;

    ffmpeg -y -i 1.mkv -i 1.mka&#xA;-max_muxing_queue_size 10000&#xA;-preset veryfast -r 30 -crf 20 -b:a 96000 -vbr on&#xA;-strict experimental&#xA;-filter_complex &#x27;&#xA;color=black:s=320x240:d=7ms[black0];&#xA;aevalsrc=0:d=15ms[silence1];&#xA;[black0][0]concat=n=2:v=1:a=0[video];&#xA;[1][silence1]concat=n=2:v=0:a=1[audio]&#x27;&#xA;-map [video] -map [audio] -c:v libvpx -c:a libopus output.webm&#xA;&#xA;ffmpeg version 4.3.1 Copyright (c) 2000-2020 the FFmpeg developers&#xA;  built with Apple clang version 11.0.0 (clang-1100.0.33.17)&#xA;  configuration: --prefix=/usr/local/Cellar/ffmpeg/4.3.1_9 --enable-shared --enable-pthreads --enable-version3 --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-ffplay --enable-gnutls --enable-gpl --enable-libaom --enable-libbluray --enable-libdav1d --enable-libmp3lame --enable-libopus --enable-librav1e --enable-librubberband --enable-libsnappy --enable-libsrt --enable-libtesseract --enable-libtheora --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libxvid --enable-lzma --enable-libfontconfig --enable-libfreetype --enable-frei0r --enable-libass --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librtmp --enable-libspeex --enable-libsoxr --enable-videotoolbox --enable-libzmq --enable-libzimg --disable-libjack --disable-indev=jack&#xA;  libavutil      56. 51.100 / 56. 51.100&#xA;  libavcodec     58. 91.100 / 58. 91.100&#xA;  libavformat    58. 45.100 / 58. 45.100&#xA;  libavdevice    58. 10.100 / 58. 10.100&#xA;  libavfilter     7. 85.100 /  7. 85.100&#xA;  libavresample   4.  0.  0 /  4.  0.  0&#xA;  libswscale      5.  7.100 /  5.  7.100&#xA;  libswresample   3.  7.100 /  3.  7.100&#xA;  libpostproc    55.  7.100 / 55.  7.100&#xA;Input #0, matroska,webm, from &#x27;1.mkv&#x27;:&#xA;  Metadata:&#xA;    encoder         : GStreamer matroskamux version 1.8.1.1&#xA;    creation_time   : 2021-03-02T13:44:03.000000Z&#xA;  Duration: 00:01:48.41, start: 0.710000, bitrate: 757 kb/s&#xA;    Stream #0:0(eng): Video: vp8, yuv420p(progressive), 320x240, SAR 1:1 DAR 4:3, 120 tbr, 1k tbn, 1k tbc (default)&#xA;    Metadata:&#xA;      title           : Video&#xA;Input #1, matroska,webm, from &#x27;1.mka&#x27;:&#xA;  Metadata:&#xA;    encoder         : GStreamer matroskamux version 1.8.1.1&#xA;    creation_time   : 2021-03-02T13:44:03.000000Z&#xA;  Duration: 00:01:48.40, start: 0.703000, bitrate: 38 kb/s&#xA;    Stream #1:0(eng): Audio: opus, 48000 Hz, stereo, fltp (default)&#xA;    Metadata:&#xA;      title           : Audio&#xA;Codec AVOption preset (Configuration preset) specified for output file #0 (output.webm) has not been used for any stream. The most likely reason is either wrong type (e.g. a video option with no video streams) or that it is a private option of some encoder which was not actually used for any stream.&#xA;Stream mapping:&#xA;  Stream #0:0 (vp8) -> concat:in1:v0&#xA;  Stream #1:0 (opus) -> concat:in0:a0&#xA;  concat -> Stream #0:0 (libvpx)&#xA;  concat -> Stream #0:1 (libopus)&#xA;Press [q] to stop, [?] for help&#xA;[libvpx @ 0x7fe08a80bc00] v1.9.0&#xA;[libvpx @ 0x7fe08a80bc00] Bitrate not specified for constrained quality mode, using default of 256kbit/sec&#xA;Output #0, webm, to &#x27;output.webm&#x27;:&#xA;  Metadata:&#xA;    encoder         : Lavf58.45.100&#xA;    Stream #0:0: Video: vp8 (libvpx), yuv420p, 320x240 [SAR 1:1 DAR 4:3], q=-1--1, 256 kb/s, 30 fps, 1k tbn, 30 tbc (default)&#xA;    Metadata:&#xA;      encoder         : Lavc58.91.100 libvpx&#xA;    Side data:&#xA;      cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: N/A&#xA;    Stream #0:1: Audio: opus (libopus), 48000 Hz, stereo, flt, 96 kb/s (default)&#xA;    Metadata:&#xA;      encoder         : Lavc58.91.100 libopus&#xA;[Parsed_color_0 @ 0x7fe089815940] EOF timestamp not reliable&#xA;[Parsed_concat_2 @ 0x7fe088501980] Input link in0:v0 parameters (size 640x480, SAR 1:1) do not match the corresponding output link in0:v0 parameters (320x240, SAR 1:1)&#xA;[Parsed_concat_2 @ 0x7fe088501980] Failed to configure output pad on Parsed_concat_2&#xA;Error reinitializing filters!&#xA;Failed to inject frame into filter network: Invalid argument&#xA;Error while processing the decoded data for stream #0:0&#xA;[libopus @ 0x7fe08a810c00] 1 frames left in the queue on closing&#xA;Conversion failed!&#xA;

    &#xA;

    Here is the only such video with "floating" resolution, which cannot be concatenated with 320x240 color filter.

    &#xA;

  • ffmpeg : Input link parameters do not match the corresponding output link parameters, when concatenating same size videos

    4 mars 2021, par mSourire

    I'm trying to combine a video and an audio, using the following command :

    &#xA;

    ffmpeg -y -i 1.mkv -i 1.mka &#xA;-max_muxing_queue_size 10000 -preset veryfast -r 30 -crf 20 -b:a 96000 -vbr on&#xA;-strict experimental&#xA;-filter_complex &#x27;&#xA;color=black:s=320x240:d=7ms[black0];&#xA;aevalsrc=0:d=15ms[silence1];&#xA;[black0][0]concat=n=2:v=1:a=0[video];&#xA;[1][silence1]concat=n=2:v=0:a=1[audio]&#x27;&#xA;-map [video] -map [audio] -c:v libvpx -c:a libopus output.webm&#xA;

    &#xA;

    But ffmpeg returns an error :

    &#xA;

    [Parsed_concat_2 @ 0x7f8004506d00] Input link in0:v0 parameters (size 640x480, SAR 1:1) do not match the corresponding output link in0:v0 parameters (320x240, SAR 1:1)&#xA;[Parsed_concat_2 @ 0x7f8004506d00] Failed to configure output pad on Parsed_concat_2&#xA;Error reinitializing filters!&#xA;Failed to inject frame into filter network: Invalid argument&#xA;Error while processing the decoded data for stream #0:0&#xA;[libopus @ 0x7f800500c000] 1 frames left in the queue on closing&#xA;Conversion failed!&#xA;

    &#xA;

    It looks like ffmpeg is unable to concatenate video and black frames, complaining, that video has a distinct resolution, but that's not true :

    &#xA;

    #> ffprobe 1.mkv&#xA;Input #0, matroska,webm, from &#x27;1.mkv&#x27;:&#xA;  Metadata:&#xA;    encoder         : GStreamer matroskamux version 1.8.1.1&#xA;    creation_time   : 2021-03-02T13:44:03.000000Z&#xA;  Duration: 00:01:48.41, start: 0.710000, bitrate: 757 kb/s&#xA;    Stream #0:0(eng): Video: vp8, yuv420p(progressive), 320x240, SAR 1:1 DAR 4:3, 120 tbr, 1k tbn, 1k tbc (default)&#xA;    Metadata:&#xA;      title           : Video&#xA;

    &#xA;

    So, both the input source and the filter has the same resolution.

    &#xA;

    When I'm trying to change the color filter to "color=s=640x480", ffmpeg says an opposite thing :

    &#xA;

    [Parsed_concat_2 @ 0x7fca3ca185c0] Input link in0:v0 parameters (size 320x240, SAR 1:1) do not match the corresponding output link in0:v0 parameters (640x480, SAR 1:1)&#xA;[Parsed_concat_2 @ 0x7fca3ca185c0] Failed to configure output pad on Parsed_concat_2&#xA;Error reinitializing filters!&#xA;Failed to inject frame into filter network: Invalid argument&#xA;

    &#xA;

    Help please to solve this !

    &#xA;

    Full listing :

    &#xA;

    ffmpeg -y -i 1.mkv -i 1.mka&#xA;-max_muxing_queue_size 10000&#xA;-preset veryfast -r 30 -crf 20 -b:a 96000 -vbr on&#xA;-strict experimental&#xA;-filter_complex &#x27;&#xA;color=black:s=320x240:d=7ms[black0];&#xA;aevalsrc=0:d=15ms[silence1];&#xA;[black0][0]concat=n=2:v=1:a=0[video];&#xA;[1][silence1]concat=n=2:v=0:a=1[audio]&#x27;&#xA;-map [video] -map [audio] -c:v libvpx -c:a libopus output.webm&#xA;&#xA;ffmpeg version 4.3.1 Copyright (c) 2000-2020 the FFmpeg developers&#xA;  built with Apple clang version 11.0.0 (clang-1100.0.33.17)&#xA;  configuration: --prefix=/usr/local/Cellar/ffmpeg/4.3.1_9 --enable-shared --enable-pthreads --enable-version3 --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-ffplay --enable-gnutls --enable-gpl --enable-libaom --enable-libbluray --enable-libdav1d --enable-libmp3lame --enable-libopus --enable-librav1e --enable-librubberband --enable-libsnappy --enable-libsrt --enable-libtesseract --enable-libtheora --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libxvid --enable-lzma --enable-libfontconfig --enable-libfreetype --enable-frei0r --enable-libass --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librtmp --enable-libspeex --enable-libsoxr --enable-videotoolbox --enable-libzmq --enable-libzimg --disable-libjack --disable-indev=jack&#xA;  libavutil      56. 51.100 / 56. 51.100&#xA;  libavcodec     58. 91.100 / 58. 91.100&#xA;  libavformat    58. 45.100 / 58. 45.100&#xA;  libavdevice    58. 10.100 / 58. 10.100&#xA;  libavfilter     7. 85.100 /  7. 85.100&#xA;  libavresample   4.  0.  0 /  4.  0.  0&#xA;  libswscale      5.  7.100 /  5.  7.100&#xA;  libswresample   3.  7.100 /  3.  7.100&#xA;  libpostproc    55.  7.100 / 55.  7.100&#xA;Input #0, matroska,webm, from &#x27;1.mkv&#x27;:&#xA;  Metadata:&#xA;    encoder         : GStreamer matroskamux version 1.8.1.1&#xA;    creation_time   : 2021-03-02T13:44:03.000000Z&#xA;  Duration: 00:01:48.41, start: 0.710000, bitrate: 757 kb/s&#xA;    Stream #0:0(eng): Video: vp8, yuv420p(progressive), 320x240, SAR 1:1 DAR 4:3, 120 tbr, 1k tbn, 1k tbc (default)&#xA;    Metadata:&#xA;      title           : Video&#xA;Input #1, matroska,webm, from &#x27;1.mka&#x27;:&#xA;  Metadata:&#xA;    encoder         : GStreamer matroskamux version 1.8.1.1&#xA;    creation_time   : 2021-03-02T13:44:03.000000Z&#xA;  Duration: 00:01:48.40, start: 0.703000, bitrate: 38 kb/s&#xA;    Stream #1:0(eng): Audio: opus, 48000 Hz, stereo, fltp (default)&#xA;    Metadata:&#xA;      title           : Audio&#xA;Codec AVOption preset (Configuration preset) specified for output file #0 (output.webm) has not been used for any stream. The most likely reason is either wrong type (e.g. a video option with no video streams) or that it is a private option of some encoder which was not actually used for any stream.&#xA;Stream mapping:&#xA;  Stream #0:0 (vp8) -> concat:in1:v0&#xA;  Stream #1:0 (opus) -> concat:in0:a0&#xA;  concat -> Stream #0:0 (libvpx)&#xA;  concat -> Stream #0:1 (libopus)&#xA;Press [q] to stop, [?] for help&#xA;[libvpx @ 0x7fe08a80bc00] v1.9.0&#xA;[libvpx @ 0x7fe08a80bc00] Bitrate not specified for constrained quality mode, using default of 256kbit/sec&#xA;Output #0, webm, to &#x27;output.webm&#x27;:&#xA;  Metadata:&#xA;    encoder         : Lavf58.45.100&#xA;    Stream #0:0: Video: vp8 (libvpx), yuv420p, 320x240 [SAR 1:1 DAR 4:3], q=-1--1, 256 kb/s, 30 fps, 1k tbn, 30 tbc (default)&#xA;    Metadata:&#xA;      encoder         : Lavc58.91.100 libvpx&#xA;    Side data:&#xA;      cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: N/A&#xA;    Stream #0:1: Audio: opus (libopus), 48000 Hz, stereo, flt, 96 kb/s (default)&#xA;    Metadata:&#xA;      encoder         : Lavc58.91.100 libopus&#xA;[Parsed_color_0 @ 0x7fe089815940] EOF timestamp not reliable&#xA;[Parsed_concat_2 @ 0x7fe088501980] Input link in0:v0 parameters (size 640x480, SAR 1:1) do not match the corresponding output link in0:v0 parameters (320x240, SAR 1:1)&#xA;[Parsed_concat_2 @ 0x7fe088501980] Failed to configure output pad on Parsed_concat_2&#xA;Error reinitializing filters!&#xA;Failed to inject frame into filter network: Invalid argument&#xA;Error while processing the decoded data for stream #0:0&#xA;[libopus @ 0x7fe08a810c00] 1 frames left in the queue on closing&#xA;Conversion failed!&#xA;

    &#xA;