Recherche avancée

Médias (91)

Autres articles (72)

  • Encoding and processing into web-friendly formats

    13 avril 2011, par

    MediaSPIP automatically converts uploaded files to internet-compatible formats.
    Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
    Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
    Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
    All uploaded files are stored online in their original format, so you can (...)

  • MediaSPIP Player : problèmes potentiels

    22 février 2011, par

    Le lecteur ne fonctionne pas sur Internet Explorer
    Sur Internet Explorer (8 et 7 au moins), le plugin utilise le lecteur Flash flowplayer pour lire vidéos et son. Si le lecteur ne semble pas fonctionner, cela peut venir de la configuration du mod_deflate d’Apache.
    Si dans la configuration de ce module Apache vous avez une ligne qui ressemble à la suivante, essayez de la supprimer ou de la commenter pour voir si le lecteur fonctionne correctement : /** * GeSHi (C) 2004 - 2007 Nigel McNie, (...)

  • Supporting all media types

    13 avril 2011, par

    Unlike most software and media-sharing platforms, MediaSPIP aims to manage as many different media types as possible. The following are just a few examples from an ever-expanding list of supported formats : images : png, gif, jpg, bmp and more audio : MP3, Ogg, Wav and more video : AVI, MP4, OGV, mpg, mov, wmv and more text, code and other data : OpenOffice, Microsoft Office (Word, PowerPoint, Excel), web (html, CSS), LaTeX, Google Earth and (...)

Sur d’autres sites (6110)

  • avdevice/decklink_enc : use 64bit format string for BMD timebase instead of long long

    2 juillet 2023, par Marton Balint
    avdevice/decklink_enc : use 64bit format string for BMD timebase instead of long long
    

    BMDTimeValue is defined as LONGLONG on Windows, but int64_t on Linux/Mac.

    Fixes format string warnings :

    libavdevice/decklink_enc.cpp : In function ‘void construct_cc(AVFormatContext*, decklink_ctx*, AVPacket*, klvanc_line_set_s*)’ :
    libavdevice/decklink_enc.cpp:424:48 : warning : format ‘%lld’ expects argument of type ‘long long int’, but argument 4 has type ‘BMDTimeValue aka long int’ [-Wformat=]
    ctx->bmd_tb_num, ctx->bmd_tb_den) ;
     ^
    libavdevice/decklink_enc.cpp:424:48 : warning : format ‘%lld’ expects argument of type ‘long long int’, but argument 5 has type ‘BMDTimeValue aka long int’ [-Wformat=]

    Signed-off-by : Marton Balint <cus@passwd.hu>

    • [DH] libavdevice/decklink_enc.cpp
  • FFmpeg video has an excessively long duration

    8 juillet 2023, par daraem

    When using ytdl-core and ffmpeg-static to download high quality youtube videos, the output video is supposedly thousands of hours long, which makes it not let me advance the video in a media player. The error only occurs in windows 10 players. In VLC or Discord it does not happen.

    &#xA;

            res.header("Content-Disposition", `attachment;  filename=video.mp4`)&#xA;&#xA;        let video = ytdl(link, {&#xA;            filter: &#x27;videoonly&#x27;&#xA;        })&#xA;        let audio = ytdl(link, {&#xA;            filter: &#x27;audioonly&#x27;,&#xA;            highWaterMark: 1 &lt;&lt; 25&#xA;        });&#xA;        const ffmpegProcess = cp.spawn(ffmpeg, [&#xA;            &#x27;-i&#x27;, `pipe:3`,&#xA;            &#x27;-i&#x27;, `pipe:4`,&#xA;            &#x27;-map&#x27;, &#x27;1:0&#x27;,&#xA;            &#x27;-map&#x27;, &#x27;0:0&#x27;,&#xA;            &#x27;-vcodec&#x27;, &#x27;libx264&#x27;,&#xA;            &#x27;-c:v&#x27;, &#x27;libx264&#x27;,&#xA;            &#x27;-c:a&#x27;, &#x27;aac&#x27;,&#xA;            &#x27;-crf&#x27;, &#x27;27&#x27;,&#xA;            &#x27;-preset&#x27;, &#x27;veryslow&#x27;,&#xA;            &#x27;-b:v&#x27;, &#x27;1500k&#x27;,&#xA;            &#x27;-b:a&#x27;, &#x27;128k&#x27;,&#xA;            &#x27;-movflags&#x27;, &#x27;frag_keyframe&#x2B;empty_moov&#x27;,&#xA;            &#x27;-f&#x27;, &#x27;mp4&#x27;,&#xA;            &#x27;-loglevel&#x27;, &#x27;error&#x27;,&#xA;            &#x27;-&#x27;,&#xA;        ], {&#xA;            stdio: [&#xA;                &#x27;pipe&#x27;, &#x27;pipe&#x27;, &#x27;pipe&#x27;, &#x27;pipe&#x27;, &#x27;pipe&#x27;,&#xA;            ],&#xA;        });&#xA;    &#xA;        video.pipe(ffmpegProcess.stdio[3]);&#xA;        audio.pipe(ffmpegProcess.stdio[4]);&#xA;        ffmpegProcess.stdio[1].pipe(res);&#xA;    &#xA;        let ffmpegLogs = &#x27;&#x27;&#xA;    &#xA;        ffmpegProcess.stdio[2].on(&#xA;            &#x27;data&#x27;,&#xA;            (chunk) => {&#xA;                ffmpegLogs &#x2B;= chunk.toString()&#xA;            }&#xA;        )&#xA;    &#xA;        ffmpegProcess.on(&#xA;            &#x27;exit&#x27;,&#xA;            (exitCode) => {&#xA;                if (exitCode === 1) {&#xA;                    console.error(ffmpegLogs)&#xA;                }&#xA;            }&#xA;        )&#xA;

    &#xA;

    I've tried changing the codecs options. But I'm not sure what I'm doing

    &#xA;

  • ffmpeg does not recognize long string filter in execv

    4 mai 2023, par incertia

    I am writing some simple python script to call ffmpeg and concat some clips together. However, it doesn't work for reasons I am unable to explain.

    &#xA;

    below is a working version of the code after some debugging

    &#xA;

    inputs = sorted(list(askopenfilenames()))&#xA;n = len(inputs)&#xA;&#xA;filter = []&#xA;for i in range(n):&#xA;    filter.append("[{}:v]".format(i))&#xA;    filter.append("[{}:a]".format(i))&#xA;filter.append("concat={}:v=1:a=1".format(n))&#xA;filter.append("[v]")&#xA;filter.append("[a]")&#xA;filter = " ".join(filter)&#xA;&#xA;fargs = zip(itertools.repeat(&#x27;-i&#x27;), inputs)&#xA;fargs = itertools.chain(&#xA;    ["ffmpeg"],&#xA;    itertools.chain.from_iterable(fargs),&#xA;    ["-filter_complex", &#x27;"{}"&#x27;.format(filter), "-vsync", "vfr", "-map", "[v]", "-map", "[a]"],&#xA;    ["-c:v", "libx264", "-crf", "{}".format(quality)],&#xA;    ["-c:a", "aac", "-b:a", "192k"],&#xA;    [out]&#xA;    )&#xA;&#xA;os.execvp("ffmpeg", list(fargs))&#xA;

    &#xA;

    but the entire fargs construction causes ffmpeg to complain about the filter chain when quotes are not utilized. e.g. by utilizing the below process

    &#xA;

    fargs = itertools.chain(&#xA;    ["ffmpeg", "-loglevel", "debug"],&#xA;    itertools.chain.from_iterable(fargs),&#xA;    #["-filter_complex", &#x27;"{}"&#x27;.format(filter), "-vsync", "vfr", "-map", "[v]", "-map", "[a]"],&#xA;    ["-filter_complex", filter, "-vsync", "vfr", "-map", "[v]", "-map", "[a]"],&#xA;    ["-c:v", "libx264", "-crf", "{}".format(quality)],&#xA;    ["-c:a", "aac", "-b:a", "192k"],&#xA;    [out]&#xA;    )&#xA;

    &#xA;

    we see that ffmpeg somehow sees this as multiple arguments

    &#xA;

    Reading option &#x27;-filter_complex&#x27; ... matched as option &#x27;filter_complex&#x27; (create a complex filtergraph) with argument &#x27;[0:v]&#x27;.&#xA;Reading option &#x27;[0:a]&#x27; ... matched as output url.&#xA;Reading option &#x27;[1:v]&#x27; ... matched as output url.&#xA;Reading option &#x27;[1:a]&#x27; ... matched as output url.&#xA;Reading option &#x27;[2:v]&#x27; ... matched as output url.&#xA;Reading option &#x27;[2:a]&#x27; ... matched as output url.&#xA;Reading option &#x27;concat=3:v=1:a=1&#x27; ... matched as output url.&#xA;Reading option &#x27;[v]&#x27; ... matched as output url.&#xA;Reading option &#x27;[a]&#x27; ... matched as output url.&#xA;

    &#xA;

    even though a simple print(list(fargs)) yields

    &#xA;

    [&#x27;ffmpeg&#x27;, &#x27;-loglevel&#x27;, &#x27;debug&#x27;, &#x27;-i&#x27;, &#x27;a.mp4&#x27;, &#x27;-i&#x27;, &#x27;b.mp4&#x27;, &#x27;-i&#x27;, &#x27;c.mp4&#x27;, &#x27;-filter_complex&#x27;, &#x27;[0:v] [0:a] [1:v] [1:a] [2:v] [2:a] concat=3:v=1:a=1 [v] [a]&#x27;, &#x27;-vsync&#x27;, &#x27;vfr&#x27;, &#x27;-map&#x27;, &#x27;[v]&#x27;, &#x27;-map&#x27;, &#x27;[a]&#x27;, &#x27;-c:v&#x27;, &#x27;libx264&#x27;, &#x27;-crf&#x27;, &#x27;20&#x27;, &#x27;-c:a&#x27;, &#x27;aac&#x27;, &#x27;-b:a&#x27;, &#x27;192k&#x27;, &#x27;asdf.mp4&#x27;]&#xA;

    &#xA;

    implying that the long filter string is being passed to ffmpeg as a single argument.

    &#xA;