Recherche avancée

Médias (91)

Autres articles (52)

  • MediaSPIP 0.1 Beta version

    25 avril 2011, par

    MediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
    The zip file provided here only contains the sources of MediaSPIP in its standalone version.
    To get a working installation, you must manually install all-software dependencies on the server.
    If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)

  • MediaSPIP version 0.1 Beta

    16 avril 2011, par

    MediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Pour avoir une installation fonctionnelle, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

  • 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 (7602)

  • FFmpeg raw video size parameter

    3 novembre 2019, par Yanick Salzmann

    I am using libavformat in my library to read a stream of raw i420 images and transform them into an mp4 video. I’ve found CLI commands that perform this but since I am using the library in my program I need to reconstruct the same thing.

    Currently the code that is having a problem is looking like this :

           const auto raw_format = av_find_input_format("rawvideo");
           if (raw_format == nullptr) {
               log->error("Could not find RAW input parser in FFmpeg");
               throw std::runtime_error("RAW not found");
           }

           _format_context->pb = _io_context.get();

           AVDictionary *input_options = nullptr;
           av_dict_set(&input_options, "framerate", std::to_string(fps).c_str(), 0);
           av_dict_set(&input_options, "pix_fmt", "yuv420p", 0);
           av_dict_set(&input_options, "s:v", fmt::format("{}x{}", width, height).c_str(), 0);
           av_dict_set(&input_options, "size", fmt::format("{}x{}", width, height).c_str(), 0);

           auto formatPtr = _format_context.get();
           auto res = avformat_open_input(&formatPtr, "(memory file)", raw_format, &input_options);

    Finding the rawvideo is no problem, but it fails in avformat_open_input with the error : [2019-11-03 15:03:22.953] [11599:11663] [ffmpeg] [error] Picture size 0x0 is invalid

    I assumed the sizes are something I can insert using the input options, since in the CLI version it is passed using -s:v 1920x1080, however this does not seem to be true.

    Where do I have to specify the dimensions of my raw input stream ?

  • How to concatenate two or more videos with same width and different height in FFMpeg and to maintain the same aspect ratio ?

    25 octobre 2019, par Aarwil

    I have five video parts to concat all. Each five videos are in the same width and height. The second part is the hstack of another 2 videos and the third part is the hstack and vstack of another 3 videos. While concat all the five video parts the aspect ratio is not maintaining in the final video. Since I am new to ffmpeg help me to sort out the problem

    I have tried with the command in my final with filter complex and to reduce the size I used frame per second.

    "ffmpeg -i
    final.mp4 -vf scale=1280:480 -filter:v fps=fps=30 finalNew.mp4"

    but nothing worked.
    Also help me to use hstack with scaling, to maintain the aspect ratio for the second part on below command

    Command : ffmpeg -i vid1.mkv -i vid2.mkv -filter_complex "[0:v]scale=-1:480[v0] ;[0:v][1:v]hstack=inputs=2"vid3.mkv

    Images

    second part

    third part

    videochunks

    I have console the info of my video

    ffmpeg -i part1.mkv -i part2.mkv -i part3.mkv -i part4.mkv -i part5.mkv
    ffmpeg version N-94911-g197985c5bf Copyright (c) 2000-2019 the FFmpeg developers
     built with gcc 9.1.1 (GCC) 20190807
     configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libdav1d --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-libmfx --enable-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth --enable-libopenmpt --enable-amf
     libavutil      56. 35.100 / 56. 35.100
     libavcodec     58. 56.101 / 58. 56.101
     libavformat    58. 32.104 / 58. 32.104
     libavdevice    58.  9.100 / 58.  9.100
     libavfilter     7. 58.102 /  7. 58.102
     libswscale      5.  6.100 /  5.  6.100
     libswresample   3.  6.100 /  3.  6.100
     libpostproc    55.  6.100 / 55.  6.100
    Input #0, matroska,webm, from 'part1.mkv':
     Metadata:
       ENCODER         : Lavf58.32.104
     Duration: 00:00:44.00, start: 0.000000, bitrate: 189 kb/s
       Stream #0:0(eng): Video: h264 (High), yuv420p(progressive), 640x480 [SAR 9:16 DAR 3:4], 30 fps, 30 tbr, 1k tbn, 60 tbc (default)
       Metadata:
         title           : Video
         ENCODER         : Lavc58.56.101 libx264
         DURATION        : 00:00:44.000000000
    Input #1, matroska,webm, from 'part2.mkv':
     Metadata:
       ENCODER         : Lavf58.32.104
     Duration: 00:01:22.07, start: 0.000000, bitrate: 113 kb/s
       Stream #1:0: Video: h264 (High), yuv420p(progressive), 640x240 [SAR 9:16 DAR 3:2], 30 fps, 30 tbr, 1k tbn, 60 tbc (default)
       Metadata:
         ENCODER         : Lavc58.56.101 libx264
         DURATION        : 00:01:22.066000000
    Input #2, matroska,webm, from 'part3.mkv':
     Metadata:
       ENCODER         : Lavf58.32.104
     Duration: 00:00:42.03, start: 0.000000, bitrate: 405 kb/s
       Stream #2:0: Video: h264 (High), yuv420p(progressive), 640x720 [SAR 9:16 DAR 1:2], 30 fps, 30 tbr, 1k tbn, 60 tbc (default)
       Metadata:
         ENCODER         : Lavc58.56.101 libx264
         DURATION        : 00:00:42.033000000
    Input #3, matroska,webm, from 'part4.mkv':
     Metadata:
       ENCODER         : Lavf58.32.104
     Duration: 00:00:21.00, start: 0.000000, bitrate: 298 kb/s
       Stream #3:0: Video: h264 (High), yuv420p(progressive), 640x240 [SAR 9:16 DAR 3:2], 30 fps, 30 tbr, 1k tbn, 60 tbc (default)
       Metadata:
         ENCODER         : Lavc58.56.101 libx264
         DURATION        : 00:00:21.000000000
    Input #4, matroska,webm, from 'part5.mkv':
     Metadata:
       ENCODER         : Lavf58.32.104
     Duration: 00:00:16.00, start: 0.000000, bitrate: 169 kb/s
       Stream #4:0(eng): Video: h264 (High), yuv420p(progressive), 640x480 [SAR 9:16 DAR 3:4], 30 fps, 30 tbr, 1k tbn, 60 tbc (default)
       Metadata:
         title           : Video
         ENCODER         : Lavc58.56.101 libx264
         DURATION        : 00:00:16.000000000
  • using ffmpeg.js to play H265 video, only play hvc1 format, can't play hev1 format, is there anyway to play hev1 ?

    1er novembre 2019, par Alex

    I compiled ffmpeg into ffmpeg.js and ffmpeg.wasm by using emscripten, so that it can run in the browser and play H265 video.

    However, I found that only the hvc1 format can be played.
    Like that:

    Stream #0:0(und): Video: hevc (Main) (hvc1 / 0x31637668), yuv420p(tv, bt709, progressive), 1280x720, 854 kb/s, 25 fps, 25 tbr, 12800 tbn, 25 tbc (default)

    and the hev1 format cannot be played.Like that :

    Stream #0:0(und): Video: hevc (Main) (hev1 / 0x31766568), yuv420p(tv, progressive), 1920x1080 [SAR 1:1 DAR 16:9], 829 kb/s, 25 fps, 25 tbr, 12800 tbn, 25 tbc (default)

    Web browser’s Console has this errors

    libffmpeg.js:1 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x644b80] reached eof, corrupted CTTS atom
    >put_char @ libffmpeg.js:1
    >write @ libffmpeg.js:1
    >write @ libffmpeg.js:1
    >doWritev @ libffmpeg.js:1
    >___syscall146 @ libffmpeg.js:1
    >(anonymous) @ wasm-009a4202-743:1
    >(anonymous) @ wasm-009a4202-739:1
    >(anonymous) @ wasm-009a4202-741:1
    >(anonymous) @ wasm-009a4202-742:1
    >(anonymous) @ wasm-009a4202-437:1
    >(anonymous) @ wasm-009a4202-2083:1
    >(anonymous) @ wasm-009a4202-87:1
    >(anonymous) @ wasm-009a4202-923:1
    >(anonymous) @ wasm-009a4202-247:1
    >(anonymous) @ wasm-009a4202-247:1
    >(anonymous) @ wasm-009a4202-247:1
    >(anonymous) @ wasm-009a4202-247:1
    >(anonymous) @ wasm-009a4202-2864:1
    >(anonymous) @ wasm-009a4202-247:1
    >(anonymous) @ wasm-009a4202-3015:1
    >(anonymous) @ wasm-009a4202-247:1
    >(anonymous) @ wasm-009a4202-1073:1
    >(anonymous) @ wasm-009a4202-2261:1
    >(anonymous) @ wasm-009a4202-2562:1
    >(anonymous) @ libffmpeg.js:1
    >Decoder.openDecoder @ decoder.js:48
    >Decoder.processReq @ decoder.js:165
    >self.onmessage @ decoder.js:248
    libffmpeg.js:1 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x644b80] error reading header
    >put_char @ libffmpeg.js:1
    >write @ libffmpeg.js:1
    >write @ libffmpeg.js:1
    >doWritev @ libffmpeg.js:1
    >___syscall146 @ libffmpeg.js:1
    >(anonymous) @ wasm-009a4202-743:1
    >(anonymous) @ wasm-009a4202-739:1
    >(anonymous) @ wasm-009a4202-741:1
    >(anonymous) @ wasm-009a4202-742:1
    >(anonymous) @ wasm-009a4202-437:1
    >(anonymous) @ wasm-009a4202-2083:1
    >(anonymous) @ wasm-009a4202-87:1
    >(anonymous) @ wasm-009a4202-1073:1
    >(anonymous) @ wasm-009a4202-2261:1
    >(anonymous) @ wasm-009a4202-2562:1
    >(anonymous) @ libffmpeg.js:1
    >Decoder.openDecoder @ decoder.js:48
    >Decoder.processReq @ decoder.js:165
    >self.onmessage @ decoder.js:248
    common.js:58 [2019-11-1 18:23:25:529][Decoder][IF] openDecoder return 8

    ffplay can play these two, why can only play hvc1 after compiling into ffmpeg.js and ffmpeg.wasm ?