Recherche avancée

Médias (91)

Autres articles (67)

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

  • Taille des images et des logos définissables

    9 février 2011, par

    Dans beaucoup d’endroits du site, logos et images sont redimensionnées pour correspondre aux emplacements définis par les thèmes. L’ensemble des ces tailles pouvant changer d’un thème à un autre peuvent être définies directement dans le thème et éviter ainsi à l’utilisateur de devoir les configurer manuellement après avoir changé l’apparence de son site.
    Ces tailles d’images sont également disponibles dans la configuration spécifique de MediaSPIP Core. La taille maximale du logo du site en pixels, on permet (...)

  • Creating farms of unique websites

    13 avril 2011, par

    MediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
    This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...)

Sur d’autres sites (8858)

  • ffmpeg Unrecognized option '—enable-libopus'

    9 juillet 2021, par Irith

    I'm running ffmpeg from a windows 10 machine.

    


    My goal is to trim silence from the beginning to the end of a track (this works just fine) and compress using opus.

    


    I am new in the "audio elaboration" world so maybe I'm not understanding this properly...but the main issue here is that ffmpeg doesn't recognize —enable-libopus although it's clearly in the options (see attachment).

    


    Can anyone help please ?

    


    enter image description here

    


  • ffmpeg convrsion error for mkv to mp4 conversion

    7 mai 2018, par Bhumi Shah

    My command to convert mkv to mp4 is

    ffmpeg -i abc.mkv -vcodec copy -acodec copy  abc.mp4 null >/dev/null 2> log.log & echo $!;ff

    but if i remove -acodec copy

    ffmpeg -i abc.mkv -vcodec copy abc.mp4 null >/dev/null 2> log.log & echo $!;ff

    Here is my log :

    ffmpeg version 3.0.1 Copyright (c) 2000-2016 the FFmpeg developers
     built with gcc 4.8 (Ubuntu 4.8.4-2ubuntu1~14.04)
     configuration: --enable-gpl --enable-version3 --enable-shared --enable-nonfree --enable-postproc --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxvid --disable-yasm
     libavutil      55. 17.103 / 55. 17.103
     libavcodec     57. 24.102 / 57. 24.102
     libavformat    57. 25.100 / 57. 25.100
     libavdevice    57.  0.101 / 57.  0.101
     libavfilter     6. 31.100 /  6. 31.100
     libswscale      4.  0.100 /  4.  0.100
     libswresample   2.  0.101 /  2.  0.101
     libpostproc    54.  0.100 / 54.  0.100
    Input #0, matroska,webm, from 'abc.mkv':
     Metadata:
       COMPATIBLE_BRANDS: iso6avc1mp41
       MAJOR_BRAND     : dash
       MINOR_VERSION   : 0
       ENCODER         : Lavf58.3.100
     Duration: 00:00:44.58, start: 0.007000, bitrate: 1772 kb/s
       Stream #0:0: Video: h264 (Main), yuv420p(tv, bt709), 1280x720 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default)
       Metadata:
         HANDLER_NAME    : VideoHandler
         DURATION        : 00:00:44.545000000
       Stream #0:1(eng): Audio: opus, 48000 Hz, stereo, fltp (default)
       Metadata:
         DURATION        : 00:00:44.581000000
    [mp4 @ 0x848ae0] Could not find tag for codec opus in stream #1, codec not currently supported in container
    Output #0, mp4, to 'abc.mp4':
     Metadata:
       COMPATIBLE_BRANDS: iso6avc1mp41
       MAJOR_BRAND     : dash
       MINOR_VERSION   : 0
       encoder         : Lavf57.25.100
       Stream #0:0: Video: h264 ([33][0][0][0] / 0x0021), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], q=2-31, 23.98 fps, 23.98 tbr, 16k tbn, 1k tbc (default)
       Metadata:
         HANDLER_NAME    : VideoHandler
         DURATION        : 00:00:44.545000000
       Stream #0:1(eng): Audio: opus, 48000 Hz, stereo (default)
       Metadata:
         DURATION        : 00:00:44.581000000
    Stream mapping:
     Stream #0:0 -> #0:0 (copy)
     Stream #0:1 -> #0:1 (copy)
    Could not write header for output file #0 (incorrect codec parameters ?): Invalid argument

    ERROR

    Could not find tag for codec opus in stream #1, codec not currently supported in container
    Could not write header for output file #0 (incorrect codec parameters ?): Invalid argument

    command :

    ffmpeg -i abc.mkv -vcodec copy -acodec copy -strict -2 abc.mp4 null >/dev/null 2> log.log & echo $!;

    version

    ffmpeg version N-83692-gb8a7dcbde2-static http://johnvansickle.com/ffmpeg/  Copyright (c) 2000-2017 the FFmpeg developers
     built with gcc 5.4.1 (Debian 5.4.1-5) 20170205

    LOG :

    ffmpeg version N-83692-gb8a7dcbde2-static http://johnvansickle.com/ffmpeg/  Copyright (c) 2000-2017 the FFmpeg developers
     built with gcc 5.4.1 (Debian 5.4.1-5) 20170205
     configuration: --enable-gpl --enable-version3 --enable-static --disable-debug --disable-ffplay --disable-indev=sndio --disable-outdev=sndio --cc=gcc-5 --enable-fontconfig --enable-frei0r --enable-gnutls --enable-gray --enable-libass --enable-libfreetype --enable-libfribidi --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libzimg
     libavutil      55. 47.100 / 55. 47.100
     libavcodec     57. 81.100 / 57. 81.100
     libavformat    57. 66.102 / 57. 66.102
     libavdevice    57.  3.100 / 57.  3.100
     libavfilter     6. 74.100 /  6. 74.100
     libswscale      4.  3.101 /  4.  3.101
     libswresample   2.  4.100 /  2.  4.100
     libpostproc    54.  2.100 / 54.  2.100
    Input #0, matroska,webm, from 'abc.mkv':
     Metadata:
       COMPATIBLE_BRANDS: iso6avc1mp41
       MAJOR_BRAND     : dash
       MINOR_VERSION   : 0
       ENCODER         : Lavf58.3.100
     Duration: 00:00:44.58, start: -0.007000, bitrate: 1772 kb/s
       Stream #0:0: Video: h264 (Main), yuv420p(tv, bt709, progressive), 1280x720 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default)
       Metadata:
         HANDLER_NAME    : VideoHandler
         DURATION        : 00:00:44.545000000
       Stream #0:1(eng): Audio: opus, 48000 Hz, stereo, fltp (default)
       Metadata:
         DURATION        : 00:00:44.581000000
    File 'abc.mp4' already exists. Overwrite ? [y/N] y
    [mp4 @ 0x4d172a0] Could not find tag for codec opus in stream #1, codec not currently supported in container
    Could not write header for output file #0 (incorrect codec parameters ?): Invalid argument
    Stream mapping:
     Stream #0:0 -> #0:0 (copy)
     Stream #0:1 -> #0:1 (copy)
       Last message repeated 1 times

    conversion is working. I am not getting why is creating issue. Anyone can help ?

  • How to create thumbnail of a video using FFMpegCore ?

    24 janvier, par l.diazborg

    I have a web application, where I need to create thumbnails or images taking the first frame of a video. There are already many examples of this, but I can't find anything that solves my problem. I am using this, but I'm finding it challenging, because I need to read the video and write the result using streams directly. This is my code :

    


    var videoStream = file.OpenReadStream();
var outputStream = new MemoryStream();
FFMpegArguments
    .FromPipeInput(new StreamPipeSource(videoStream))
    .OutputToPipe(new StreamPipeSink(outputStream), options => options
    .WithFrameOutputCount(1)
    .ForceFormat("jpeg")
    )
    .ProcessSynchronously();


    


    Which leads me to the error : Pipe is broken. According to here, the error is related to the fact that the output format cannot be known. Only by adding the .ForceFormat("opus") option does the error disappear, but I understand that the opus format is for audio. Could any expert help me find the solution or tell me how I should do it ? Thank you very much in advance.

    


    UPDATE

    


    I found this answer where it explains how to correctly use ffmpeg pipes. I modified my code and now it is :

    


    var videoStream = file.OpenReadStream();
var outputStream = new MemoryStream();
FFMpegArguments
    .FromPipeInput(new StreamPipeSource(videoStream))
    .OutputToPipe(new StreamPipeSink(outputStream), opt => opt
    .Seek(TimeSpan.Zero)
    .Resize(650, 390)
    .WithFrameOutputCount(1)
    .WithVideoCodec(VideoCodec.Png)
    .ForceFormat("image2pipe")
    )
    .ProcessSynchronously();


    


    The arguments indicated in the answer ffmpeg -i - -ss 00:00:3 -s 650x390 -vframes 1 -c:v png -f image2pipe - are very similar to those generated by my code -i "\\.\pipe\FFMpegCore_9dd64" -ss 00:00:00.000 -s 650x390 -vframes 1 -c:v png -f image2pipe "\\.\pipe\FFMpegCore_997f4" -y, and even so, errors persists.
​