Recherche avancée

Médias (91)

Autres articles (54)

  • Submit enhancements and plugins

    13 avril 2011

    If you have developed a new extension to add one or more useful features to MediaSPIP, let us know and its integration into the core MedisSPIP functionality will be considered.
    You can use the development discussion list to request for help with creating a plugin. As MediaSPIP is based on SPIP - or you can use the SPIP discussion list SPIP-Zone.

  • Des sites réalisés avec MediaSPIP

    2 mai 2011, par

    Cette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
    Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page.

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

Sur d’autres sites (6278)

  • A/V out of sync when using ffmpeg from mpeg-ts to dash

    17 mai 2018, par user3540646

    I’m using ffmpeg in order to convert MPEG-TS stream to MPEG-DASH.
    The mpeg-ts is h264 and aac_latm.
    Therefore I don’t need to reencode the video.
    The command I use :

    ffmpeg -i http://10.0.0.211:55555/Ch%2011%20Kan -strict -2 -c:v copy -window_size 10 -extra_window_size 10 -use_template 1 -use_timeline 1 -f dash kan.mpd

    I’m copying the video codec by using -c:v copy and the audio codec is default to aac.

    That way I get DASH stream BUT the audio/video is out of sync !

    How can I fix it ?

    Notes :

    1. If I reencode both audio and video like :

      ffmpeg -i http://10.0.0.211:55555/Ch%2011%20Kan -strict -2 -window_size 10 -extra_window_size 10 -use_template 1 -use_timeline 1 -f dash kan.mpd

    Then the audio/video is synced perfectly.
    But I do not want to reencode the video for nothing as I mentioned the video is already h264. (directly impact to performance)

    1. If I convert the MPEG-TS stream to mp4 file like :

      ffmpeg -i http://10.0.0.211:55555/Ch%2011%20Kan -strict -2 -c:v copy kan.mp4

    Then the audio/video is synced perfectly.

  • merge multiple videos and images dynamically using ffmpeg [duplicate]

    16 avril 2018, par robert tamunoemi

    I am trying to merge several images and videos together. When there is more than one video, the audio of the next video is lost. Here is my command :

    $filter = "[0][1][2][3][4]concat=n=5:v=1:a=0,scale=320:240";

    $cmd = 'ffmpeg -y  -i videos/video__152344425320.mp4  -loop 1 -framerate 24 -t 10 -i images/4_152222487376001.png -i videos/video__152344425320.mp4 -loop 1 -framerate 24 -t 10 -i images/4_152222487376002.png -loop 1 -framerate 24 -t 10 -i images/4_152222487376003.png -filter_complex '.$filter.' out.mp4';
    shell_exec($cmd.' 2> log.txt');

    This works but when I set concat=n=5:v=2:a=1, I get this error :

    ffmpeg version N-89674-g57d0c24132 Copyright (c) 2000-2018 the FFmpeg developers
     built with gcc 7.2.0 (GCC)
     configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-bzlib --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --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-amf --enable-cuda --enable-cuvid --enable-d3d11va --enable-nvenc --enable-dxva2 --enable-avisynth --enable-libmfx
     libavutil      56.  7.100 / 56.  7.100
     libavcodec     58.  9.100 / 58.  9.100
     libavformat    58.  3.100 / 58.  3.100
     libavdevice    58.  0.100 / 58.  0.100
     libavfilter     7.  8.100 /  7.  8.100
     libswscale      5.  0.101 /  5.  0.101
     libswresample   3.  0.101 /  3.  0.101
     libpostproc    55.  0.100 / 55.  0.100
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'videos/video__152344425320.mp4':
     Metadata:
       major_brand     : mp42
       minor_version   : 0
       compatible_brands: isommp42
       creation_time   : 2017-12-10T04:51:23.000000Z
     Duration: 00:02:48.62, start: 0.000000, bitrate: 77 kb/s
       Stream #0:0(und): Video: mpeg4 (Simple Profile) (mp4v / 0x7634706D), yuv420p, 176x144 [SAR 1:1 DAR 11:9], 51 kb/s, 10.01 fps, 9.99 tbr, 15984 tbn, 999 tbc (default)
       Metadata:
         creation_time   : 2017-12-10T04:51:23.000000Z
         handler_name    : IsoMedia File Produced by Google, 5-11-2011
       Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 22050 Hz, mono, fltp, 24 kb/s (default)
       Metadata:
         creation_time   : 2017-12-10T04:51:24.000000Z
         handler_name    : IsoMedia File Produced by Google, 5-11-2011
    Input #1, png_pipe, from 'images/4_152222487376001.png':
     Duration: N/A, bitrate: N/A
       Stream #1:0: Video: png, rgba(pc), 176x144 [SAR 3780:3780 DAR 11:9], 24 fps, 24 tbr, 24 tbn, 24 tbc
    Input #2, mov,mp4,m4a,3gp,3g2,mj2, from 'videos/video__152344425320.mp4':
     Metadata:
       major_brand     : mp42
       minor_version   : 0
       compatible_brands: isommp42
       creation_time   : 2017-12-10T04:51:23.000000Z
     Duration: 00:02:48.62, start: 0.000000, bitrate: 77 kb/s
       Stream #2:0(und): Video: mpeg4 (Simple Profile) (mp4v / 0x7634706D), yuv420p, 176x144 [SAR 1:1 DAR 11:9], 51 kb/s, 10.01 fps, 9.99 tbr, 15984 tbn, 999 tbc (default)
       Metadata:
         creation_time   : 2017-12-10T04:51:23.000000Z
         handler_name    : IsoMedia File Produced by Google, 5-11-2011
       Stream #2:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 22050 Hz, mono, fltp, 24 kb/s (default)
       Metadata:
         creation_time   : 2017-12-10T04:51:24.000000Z
         handler_name    : IsoMedia File Produced by Google, 5-11-2011
    Input #3, png_pipe, from 'images/4_152222487376002.png':
     Duration: N/A, bitrate: N/A
       Stream #3:0: Video: png, rgba(pc), 176x144 [SAR 3780:3780 DAR 11:9], 24 fps, 24 tbr, 24 tbn, 24 tbc
    Input #4, png_pipe, from 'images/4_152222487376003.png':
     Duration: N/A, bitrate: N/A
       Stream #4:0: Video: png, rgba(pc), 176x144 [SAR 3780:3780 DAR 11:9], 24 fps, 24 tbr, 24 tbn, 24 tbc
    [AVFilterGraph @ 00000000030fe580] Too many inputs specified for the "scale" filter.
    Error initializing complex filters.
    Invalid argument
  • How to convert a set of images into a video ?

    16 juin 2018, par Jayesh Padhiar

    I’m currently working on an Android Project that browses some images from the Android gallery and converts them into a video file(any format) storing it somewhere on my phone.
    I’m a beginner in Android Programming and I’ve researched a lot about this stuff in this platform but unfortunately I haven’t got any working answer.

    Here are some libraries that I’ve researched about :

    1. FFmpeg
    2. Xuggler
    3. jCodec
    4. JavaCV, OpenCV

    Link 1

    Link 2

    Link 3

    I have also researched a lot more links but most of them don’t have a proper answer and many are outdated.

    As I said i’m a beginner and I have absolutely no idea about FFmpeg, Xuggler and stuff.... I need some thorough tutorial and any proper answer code as I couldn’t find any.

    I hope to get a perfect answer(or code......specially for FFmpeg or jCodec)
    Any thorough tutorial will help a lot.

    Thank You !