Recherche avancée

Médias (91)

Autres articles (51)

  • HTML5 audio and video support

    13 avril 2011, par

    MediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
    The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
    For older browsers the Flowplayer flash fallback is used.
    MediaSPIP allows for media playback on major mobile platforms with the above (...)

  • Support audio et vidéo HTML5

    10 avril 2011

    MediaSPIP utilise les balises HTML5 video et audio pour la lecture de documents multimedia en profitant des dernières innovations du W3C supportées par les navigateurs modernes.
    Pour les navigateurs plus anciens, le lecteur flash Flowplayer est utilisé.
    Le lecteur HTML5 utilisé a été spécifiquement créé pour MediaSPIP : il est complètement modifiable graphiquement pour correspondre à un thème choisi.
    Ces technologies permettent de distribuer vidéo et son à la fois sur des ordinateurs conventionnels (...)

  • Librairies et binaires spécifiques au traitement vidéo et sonore

    31 janvier 2010, par

    Les logiciels et librairies suivantes sont utilisées par SPIPmotion d’une manière ou d’une autre.
    Binaires obligatoires FFMpeg : encodeur principal, permet de transcoder presque tous les types de fichiers vidéo et sonores dans les formats lisibles sur Internet. CF ce tutoriel pour son installation ; Oggz-tools : outils d’inspection de fichiers ogg ; Mediainfo : récupération d’informations depuis la plupart des formats vidéos et sonores ;
    Binaires complémentaires et facultatifs flvtool2 : (...)

Sur d’autres sites (7998)

  • How to pipe ffmpeg output to ImageMagick's convert tool ?

    30 décembre 2020, par Donny V.

    After a lot of searching I have come up with this to pipe a frame from ffmpeg to imagemagick's convert tool.

    


    ffmpeg -y -ss 00:02:01 -i ...\pano.mp4 -frames:v 1 -f png - | convert -sharpen 0x1 ...\pano_00_02_01.png


    


    I keep getting this error message.

    


    [NULL @ 000002e6cd1e00c0] Requested output format 'png' is not a suitable output format
pipe:: Invalid argument


    


    I have checked for png support using ffmpeg -format and its listed as png_pipe.

    


    I'm using ffmpeg version 4.3.1-2020-11-19-full_build
https://www.gyan.dev/ffmpeg/builds/

    


  • avutil/hwcontext_videotoolbox : Set CVBuffer CGColorSpace

    20 mai 2024, par Marvin Scholz
    avutil/hwcontext_videotoolbox : Set CVBuffer CGColorSpace
    

    In addition to the other properties, try to obtain the right
    CGColorSpace and set it as well, else it could lead to a CVBuffer
    tagged as BT.2020 but with a CGColorSpace indicating BT.709.

    Therefore it is essential for consistency to set a colorspace
    according to the other values, or if none can be obtained (for example
    because the other values are all unspecified) unset it as well.

    Fix #10884

    Signed-off-by : Zhao Zhili <zhilizhao@tencent.com>

    • [DH] libavutil/hwcontext_videotoolbox.c
  • Concat filter : Error initializing output stream

    18 juin 2020, par Ittai Barkai

    This is a follow-up question to : Flutter (Dart) : Merge two videos and view the new output in the device’s gallery (photos)

    &#xA;&#xA;

    In essence, I am trying to record two videos, merge them and then view the new video in the gallery. I am currently having some issues with the flutter_ffmpeg package.

    &#xA;&#xA;

    I uploaded the my Flutter project onto GitHub here :

    &#xA;&#xA;

    https://github.com/IttaiBarkai/Flutter-Video-Merger

    &#xA;&#xA;

    Below is a snippet of my code used to execute ffmpeg :

    &#xA;&#xA;

    void _videoMerger() async {&#xA;&#xA;    final appDir = await syspaths.getApplicationDocumentsDirectory();&#xA;    String rawDocumentPath = appDir.path;&#xA;    final outputPath = &#x27;$rawDocumentPath/output.mp4&#x27;;&#xA;&#xA;    final FlutterFFmpeg _flutterFFmpeg = new FlutterFFmpeg();&#xA;&#xA;        String commandToExecute = &#x27;-y -i ${_storedVideoOne.path} -i ${_storedVideoTwo.path} -filter_complex \&#x27;[0:0][1:0]concat=n=2:v=1:a=0[out]\&#x27; -map \&#x27;[out]\&#x27; $outputPath&#x27;;&#xA;        _flutterFFmpeg.execute(commandToExecute).then((rc) => print("FFmpeg process exited with rc $rc"));&#xA;&#xA;  }&#xA;

    &#xA;&#xA;

    and this is the output displayed on my debug console when ffmpeg gets executed :

    &#xA;&#xA;

    D/flutter-ffmpeg(29135): Running FFmpeg with arguments: [-y, -i, /storage/emulated/0/Android/data/com.example.video_merger_two/files/Pictures/1e8947f4-c9c2-4020-b78d-c40fb77ce0d16301015681843175998.mp4, -i, /storage/emulated/0/Android/data/com.example.video_merger_two/files/Pictures/3555b190-a9a6-450d-b6a7-7d1b8fc89ad38627500242651150494.mp4, -filter_complex, [0:0][1:0]concat=n=2:v=1:a=0[out], -map, [out], /data/user/0/com.example.video_merger_two/app_flutter/output.mp4].&#xA;    I/mobile-ffmpeg(29135): Loading mobile-ffmpeg.&#xA;    I/mobile-ffmpeg(29135): Loaded mobile-ffmpeg-https-x86-4.3.1-20200125.&#xA;    D/mobile-ffmpeg(29135): Callback thread started.&#xA;    I/mobile-ffmpeg(29135): ffmpeg version git-2020-01-25-fd11dd500&#xA;    I/mobile-ffmpeg(29135):  Copyright (c) 2000-2020 the FFmpeg developers&#xA;    I/mobile-ffmpeg(29135):&#xA;    I/mobile-ffmpeg(29135):   built with Android (5220042 based on r346389c) clang version 8.0.7 (https://android.googlesource.com/toolchain/clang b55f2d4ebfd35bf643d27dbca1bb228957008617) (https://android.googlesource.com/toolchain/llvm 3c393fe7a7e13b0fba4ac75a01aa683d7a5b11cd) (based on LLVM 8.0.7svn)&#xA;    I/mobile-ffmpeg(29135):   configuration: --cross-prefix=i686-linux-android- --sysroot=/files/android-sdk/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64/sysroot --prefix=/home/taner/Projects/mobile-ffmpeg/prebuilt/android-x86/ffmpeg --pkg-config=/usr/bin/pkg-config --enable-version3 --arch=i686 --cpu=i686 --cc=i686-linux-android24-clang --cxx=i686-linux-android24-clang&#x2B;&#x2B; --target-os=android --disable-neon --disable-asm --disable-inline-asm --enable-cross-compile --enable-pic --enable-jni --enable-optimizations --enable-swscale --enable-shared --disable-v4l2-m2m --disable-outdev=v4l2 --disable-outdev=fbdev --disable-indev=v4l2 --disable-indev=fbdev --enable-small --disable-openssl --disable-xmm-clobber-test --disable-debug --enable-lto --disable-neon-clobber-test --disable-programs --disable-postproc --disable-doc --disable-htmlpages --disable-manpages --disable-podpages --disable-txtpages --disable-static --disable-sndio --disable-schannel --disable-securetransport --disable-xlib --disable-cuda --disable-cuvid --disable-nvenc --di&#xA;    I/mobile-ffmpeg(29135):   libavutil      56. 38.100 / 56. 38.100&#xA;    I/mobile-ffmpeg(29135):   libavcodec     58. 65.102 / 58. 65.102&#xA;    I/mobile-ffmpeg(29135):   libavformat    58. 35.101 / 58. 35.101&#xA;    I/mobile-ffmpeg(29135):   libavdevice    58.  9.103 / 58.  9.103&#xA;    I/mobile-ffmpeg(29135):   libavfilter     7. 70.101 /  7. 70.101&#xA;    I/mobile-ffmpeg(29135):   libswscale      5.  6.100 /  5.  6.100&#xA;    I/mobile-ffmpeg(29135):   libswresample   3.  6.100 /  3.  6.100&#xA;    I/mobile-ffmpeg(29135): Input #0, mov,mp4,m4a,3gp,3g2,mj2, from &#x27;/storage/emulated/0/Android/data/com.example.video_merger_two/files/Pictures/1e8947f4-c9c2-4020-b78d-c40fb77ce0d16301015681843175998.mp4&#x27;:&#xA;    I/mobile-ffmpeg(29135):   Metadata:&#xA;    I/mobile-ffmpeg(29135):     major_brand     :&#xA;    I/mobile-ffmpeg(29135): mp42&#xA;    I/mobile-ffmpeg(29135):&#xA;    I/mobile-ffmpeg(29135):     minor_version   :&#xA;    I/mobile-ffmpeg(29135): 0&#xA;    I/mobile-ffmpeg(29135):&#xA;    I/mobile-ffmpeg(29135):     compatible_brands:&#xA;    I/mobile-ffmpeg(29135): isommp42&#xA;    I/mobile-ffmpeg(29135):&#xA;    I/mobile-ffmpeg(29135):     creation_time   :&#xA;    I/mobile-ffmpeg(29135): 2020-06-17T18:26:00.000000Z&#xA;    I/mobile-ffmpeg(29135):&#xA;    I/mobile-ffmpeg(29135):     com.android.version:&#xA;    I/mobile-ffmpeg(29135): 10&#xA;    I/mobile-ffmpeg(29135):&#xA;    I/mobile-ffmpeg(29135):   Duration:&#xA;    I/mobile-ffmpeg(29135): 27:34:19.38&#xA;    I/mobile-ffmpeg(29135): , start:&#xA;    I/mobile-ffmpeg(29135): 0.000000&#xA;    I/mobile-ffmpeg(29135): , bitrate:&#xA;    I/mobile-ffmpeg(29135): 0 kb/s&#xA;    I/mobile-ffmpeg(29135):&#xA;    I/mobile-ffmpeg(29135):     Stream #0:0&#xA;    I/mobile-ffmpeg(29135): (eng)&#xA;    I/mobile-ffmpeg(29135): : Video: h264 (avc1 / 0x31637661), yuv420p(tv, GBR), 1280x720, 3554 kb/s&#xA;    I/mobile-ffmpeg(29135): , SAR 1:1 DAR 16:9&#xA;    I/mobile-ffmpeg(29135): ,&#xA;    I/mobile-ffmpeg(29135): 29.01 fps,&#xA;    I/mobile-ffmpeg(29135): 29 tbr,&#xA;    I/mobile-ffmpeg(29135): 90k tbn,&#xA;    I/mobile-ffmpeg(29135): 180k tbc    &#xA;    I/mobile-ffmpeg(29135):  (default)&#xA;    I/mobile-ffmpeg(29135):&#xA;    I/mobile-ffmpeg(29135):     Metadata:&#xA;    I/mobile-ffmpeg(29135):       rotate          :&#xA;    I/mobile-ffmpeg(29135): 90&#xA;    I/mobile-ffmpeg(29135):&#xA;    I/mobile-ffmpeg(29135):       creation_time   :&#xA;    I/mobile-ffmpeg(29135): 2020-06-17T18:26:00.000000Z&#xA;    I/mobile-ffmpeg(29135):&#xA;    I/mobile-ffmpeg(29135):       handler_name    :&#xA;    I/mobile-ffmpeg(29135): VideoHandle&#xA;    I/mobile-ffmpeg(29135):&#xA;    I/mobile-ffmpeg(29135):     Side data:&#xA;    I/mobile-ffmpeg(29135):&#xA;    I/mobile-ffmpeg(29135): displaymatrix: rotation of -90.00 degrees&#xA;    I/mobile-ffmpeg(29135):&#xA;    I/mobile-ffmpeg(29135):     Stream #0:1&#xA;    I/mobile-ffmpeg(29135): (eng)&#xA;    I/mobile-ffmpeg(29135): : Audio: amr_nb (samr / 0x726D6173), 8000 Hz, mono, flt, 12 kb/s&#xA;    I/mobile-ffmpeg(29135):  (default)&#xA;    I/mobile-ffmpeg(29135):&#xA;    I/mobile-ffmpeg(29135):     Metadata:&#xA;    I/mobile-ffmpeg(29135):       creation_time   :&#xA;    I/mobile-ffmpeg(29135): 2020-06-17T18:26:00.000000Z&#xA;    I/mobile-ffmpeg(29135):&#xA;    I/mobile-ffmpeg(29135):       handler_name    :&#xA;    I/mobile-ffmpeg(29135): SoundHandle&#xA;    I/mobile-ffmpeg(29135):&#xA;    I/mobile-ffmpeg(29135): Input #1, mov,mp4,m4a,3gp,3g2,mj2, from &#x27;/storage/emulated/0/Android/data/com.example.video_merger_two/files/Pictures/3555b190-a9a6-450d-b6a7-7d1b8fc89ad38627500242651150494.mp4&#x27;:&#xA;    I/mobile-ffmpeg(29135):   Metadata:&#xA;    I/mobile-ffmpeg(29135):     major_brand     :&#xA;    I/mobile-ffmpeg(29135): mp42&#xA;    I/mobile-ffmpeg(29135):&#xA;    I/mobile-ffmpeg(29135):     minor_version   :&#xA;    I/mobile-ffmpeg(29135): 0&#xA;    I/mobile-ffmpeg(29135):&#xA;    I/mobile-ffmpeg(29135):     compatible_brands:&#xA;    I/mobile-ffmpeg(29135): isommp42&#xA;    I/mobile-ffmpeg(29135):&#xA;    I/mobile-ffmpeg(29135):     creation_time   :&#xA;    I/mobile-ffmpeg(29135): 2020-06-17T18:26:09.000000Z&#xA;    I/mobile-ffmpeg(29135):&#xA;    I/mobile-ffmpeg(29135):     com.android.version:&#xA;    I/mobile-ffmpeg(29135): 10&#xA;    I/mobile-ffmpeg(29135):&#xA;    I/mobile-ffmpeg(29135):   Duration:&#xA;    I/mobile-ffmpeg(29135): 27:34:19.62&#xA;    I/mobile-ffmpeg(29135): , start:&#xA;    I/mobile-ffmpeg(29135): 0.000000&#xA;    I/mobile-ffmpeg(29135): , bitrate:&#xA;    I/mobile-ffmpeg(29135): 0 kb/s&#xA;    I/mobile-ffmpeg(29135):&#xA;    I/mobile-ffmpeg(29135):     Stream #1:0&#xA;    I/mobile-ffmpeg(29135): (eng)&#xA;    I/mobile-ffmpeg(29135): : Video: h264 (avc1 / 0x31637661), yuv420p(tv, GBR), 1280x720, 3765 kb/s&#xA;    I/mobile-ffmpeg(29135): , SAR 1:1 DAR 16:9&#xA;    I/mobile-ffmpeg(29135): ,&#xA;    I/mobile-ffmpeg(29135): 28.80 fps,&#xA;    I/mobile-ffmpeg(29135): 29.08 tbr,&#xA;    I/mobile-ffmpeg(29135): 90k tbn,&#xA;    I/mobile-ffmpeg(29135): 180k tbc&#xA;    I/mobile-ffmpeg(29135):  (default)&#xA;    I/mobile-ffmpeg(29135):&#xA;    I/mobile-ffmpeg(29135):     Metadata:&#xA;    I/mobile-ffmpeg(29135):       rotate          :&#xA;    I/mobile-ffmpeg(29135): 90&#xA;    I/mobile-ffmpeg(29135):&#xA;    I/mobile-ffmpeg(29135):       creation_time   :&#xA;    I/mobile-ffmpeg(29135): 2020-06-17T18:26:09.000000Z&#xA;    I/mobile-ffmpeg(29135):&#xA;    I/mobile-ffmpeg(29135):       handler_name    :&#xA;    I/mobile-ffmpeg(29135): VideoHandle&#xA;    I/mobile-ffmpeg(29135):&#xA;    I/mobile-ffmpeg(29135):     Side data:&#xA;    I/mobile-ffmpeg(29135):&#xA;    I/mobile-ffmpeg(29135): displaymatrix: rotation of -90.00 degrees&#xA;    I/mobile-ffmpeg(29135):&#xA;    I/mobile-ffmpeg(29135):     Stream #1:1&#xA;    I/mobile-ffmpeg(29135): (eng)&#xA;    I/mobile-ffmpeg(29135): : Audio: amr_nb (samr / 0x726D6173), 8000 Hz, mono, flt, 12 kb/s&#xA;    I/mobile-ffmpeg(29135):  (default)&#xA;    I/mobile-ffmpeg(29135):&#xA;    I/mobile-ffmpeg(29135):     Metadata:&#xA;    I/mobile-ffmpeg(29135):       creation_time   :&#xA;    I/mobile-ffmpeg(29135): 2020-06-17T18:26:09.000000Z&#xA;    I/mobile-ffmpeg(29135):&#xA;    I/mobile-ffmpeg(29135):       handler_name    :&#xA;    I/mobile-ffmpeg(29135): SoundHandle&#xA;    I/mobile-ffmpeg(29135):&#xA;    I/mobile-ffmpeg(29135): Stream mapping:&#xA;    I/mobile-ffmpeg(29135):   Stream #0:0 (h264) -> concat:in0:v0&#xA;    I/mobile-ffmpeg(29135):&#xA;    I/mobile-ffmpeg(29135):   Stream #1:0 (h264) -> concat:in1:v0&#xA;    I/mobile-ffmpeg(29135):&#xA;    I/mobile-ffmpeg(29135):   concat&#xA;    I/mobile-ffmpeg(29135):  -> Stream #0:0 (mpeg4)&#xA;    I/mobile-ffmpeg(29135): Press [q] to stop, [?] for help&#xA;    W/mobile-ffmpeg(29135): [graph 0 input from stream 0:0 @ 0xed087710] sws_param option is deprecated and ignored&#xA;    W/mobile-ffmpeg(29135): [graph 0 input from stream 1:0 @ 0xed086830] sws_param option is deprecated and ignored&#xA;    W/mobile-ffmpeg(29135): [mp4 @ 0xeccd8790] Frame rate very high for a muxer not efficiently supporting it.&#xA;    W/mobile-ffmpeg(29135): Please consider specifying a lower framerate, a different muxer or -vsync 2&#xA;    E/mobile-ffmpeg(29135): [mpeg4 @ 0xe68049d0] timebase 1/1000000 not supported by MPEG 4 standard, the maximum admitted value for the timebase denominator is 65535&#xA;    E/mobile-ffmpeg(29135): Error initializing output stream 0:0 -- Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height&#xA;    I/mobile-ffmpeg(29135): Conversion failed!&#xA;    D/flutter-ffmpeg(29135): FFmpeg exited with rc: 1&#xA;    I/flutter (29135): FFmpeg process exited with rc 1&#xA;

    &#xA;