Recherche avancée

Médias (91)

Autres articles (110)

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

  • Multilang : améliorer l’interface pour les blocs multilingues

    18 février 2011, par

    Multilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
    Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela.

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

  • Why does ffmpeg ignore protocol_whitelist flag when converting https m3u8 stream ?

    28 février 2020, par Jacob Ford

    I am attempting to download and convert an m3u8 stream to mp4 using ffmpeg. The command I first tried was

    ffmpeg -i MIE.m3u8 -c copy -bsf:a aac_adtstoasc -safe 0 -protocol_whitelist file,http,https,tcp,tls,crypto MIE.mp4

    (see below for contents of MIE.m3u8)

    This failed immediately with error

    [https @ 0x7fb419607d40] Protocol 'https' not on whitelist 'file,crypto'!
    MIE.m3u8: Invalid argument

    (Note that the memory address changes each time.)

    I discovered the -protocol_whitelist flag and appended -protocol_whitelist file,http,https,tcp,tls,crypto to my command

    ffmpeg -i MIE.m3u8 -c copy -bsf:a aac_adtstoasc -safe 0 -protocol_whitelist file,http,https,tcp,tls,crypto MIE.mp4

    but this still resulted in the same error.

    Why does ffmpeg appear to ignore the protocol_whitelist flag and parameters ?


    MIE.m3u8 (which I managed to fetch from the website I am trying to scrape video from) looks like this :

    #EXTM3U
    #EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=508000,RESOLUTION=640x360,CODECS="avc1.77.30, mp4a.40.2"
    https://nhk-vh.akamaihd.net/i/das/D0005140/D0005140255_00000_V_000.f4v/index_0_av.m3u8?null=0&id=AgBdrl8GX2UAVyUXA1tF7MYlFTbSF88WtA7oAMDksTsiVdAKPuuREVfi8iXMsOWFp6eQU2sk6dnE9g%3d%3d
    #EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=47000,CODECS="mp4a.40.2"
    https://nhk-vh.akamaihd.net/i/das/D0005140/D0005140255_00000_V_000.f4v/index_0_a.m3u8?null=0&id=AgBdrl8GX2UAVyUXA1tF7MYlFTbSF88WtA7oAMDksTsiVdAKPuuREVfi8iXMsOWFp6eQU2sk6dnE9g%3d%3d
  • ffmpeg - duration usage in input text file

    12 mai 2018, par Voicu

    I am trying to use ffmpeg to concatenate video segments with some black screen. To do that I’ve first generated a blank 10-second video (no audio track) with :

    $ ffmpeg -f lavfi -i color=black:s=320x240:r=1 -f lavfi -i anullsrc -t 10 -vcodec libvpx -an blank.mkv

    I then created the simplest possible scenario within input.txt file (contents below) in order to have three seconds of black screen followed by some video (no audio track) :

    file 'blank.mkv'
    duration 3
    file 'video_example.mkv'

    And, finally, ran the following ffmpeg command to concat the contents of that input file :

    $ ffmpeg -f concat -i input.txt -codec:v copy -codec:a copy output.mkv

    The issue that I have is that the duration 3 is not considered, so the final video still has ten seconds of black frames (instead of three) followed by my video. And also "Non-monotonous DTS in output stream 0:0 ..." message is shown when using duration x in the file. If I remove duration the warnings are gone and getting the 10-second black screen first output as well.

    Full output of the ffmpeg concat command :

    $ ffmpeg -hide_banner -f concat -i input.txt -codec:v copy -codec:a copy output.mkv
    Input #0, concat, from 'input.txt':
     Duration: N/A, start: 0.000000, bitrate: N/A
       Stream #0:0: Video: vp8, yuv420p(progressive), 320x240, SAR 1:1 DAR 4:3, 1 fps, 1 tbr, 1k tbn, 1k tbc
       Metadata:
         ENCODER         : Lavc57.107.100 libvpx
         DURATION        : 00:00:10.000000000
    File 'output.mkv' already exists. Overwrite ? [y/N] y
    Output #0, matroska, to 'output.mkv':
     Metadata:
       encoder         : Lavf57.83.100
       Stream #0:0: Video: vp8 (VP80 / 0x30385056), yuv420p(progressive), 320x240 [SAR 1:1 DAR 4:3], q=2-31, 1 fps, 1 tbr, 1k tbn, 1k tbc
       Metadata:
         ENCODER         : Lavc57.107.100 libvpx
         DURATION        : 00:00:10.000000000
    Stream mapping:
     Stream #0:0 -> #0:0 (copy)
    Press [q] to stop, [?] for help
    [concat @ 000000000031a440] DTS 3000 < 9000 out of order
    [matroska @ 0000000000328420] Non-monotonous DTS in output stream 0:0; previous: 9000, current: 3000; changing to 9000. This may result in incorrect timestamps in the output file.
    [matroska @ 0000000000328420] Non-monotonous DTS in output stream 0:0; previous: 9000, current: 4001; changing to 9000. This may result in incorrect timestamps in the output file.
    [matroska @ 0000000000328420] Non-monotonous DTS in output stream 0:0; previous: 9000, current: 4998; changing to 9000. This may result in incorrect timestamps in the output file.
    [matroska @ 0000000000328420] Non-monotonous DTS in output stream 0:0; previous: 9000, current: 6004; changing to 9000. This may result in incorrect timestamps in the output file.
    [matroska @ 0000000000328420] Non-monotonous DTS in output stream 0:0; previous: 9000, current: 7002; changing to 9000. This may result in incorrect timestamps in the output file.
    [matroska @ 0000000000328420] Non-monotonous DTS in output stream 0:0; previous: 9000, current: 8005; changing to 9000. This may result in incorrect timestamps in the output file.
    frame= 5794 fps=0.0 q=-1.0 Lsize=    7109kB time=01:37:09.70 bitrate=  10.0kbits/s speed=5.16e+004x
    video:7043kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.926229%

    Any idea what am I doing wrong ? The warning seems to hint towards the issue here.

    Other possibly useful info :

    $ ffprobe -hide_banner blank.mkv
    Input #0, matroska,webm, from 'blank.mkv':
     Metadata:
       ENCODER         : Lavf57.83.100
     Duration: 00:00:10.00, start: 0.000000, bitrate: 1 kb/s
       Stream #0:0: Video: vp8, yuv420p(progressive), 320x240, SAR 1:1 DAR 4:3, 1 fps, 1 tbr, 1k tbn, 1k tbc (default)
       Metadata:
         ENCODER         : Lavc57.107.100 libvpx
         DURATION        : 00:00:10.000000000

    $ ffprobe -hide_banner video_example.mkv
    Input #0, matroska,webm, from 'video_example.mkv':
     Metadata:
       encoder         : GStreamer matroskamux version 1.8.1.1
       creation_time   : 2018-05-04T17:57:04.000000Z
     Duration: 01:37:08.70, start: 15434.269000, bitrate: 9 kb/s
       Stream #0:0(eng): Video: vp8, yuv420p(progressive), 320x240, SAR 1:1 DAR 4:3, 1 fps, 1 tbr, 1k tbn, 1k tbc (default)
       Metadata:
         title           : Video

    $ ffmpeg -v
    ffmpeg version 3.4.2 Copyright (c) 2000-2018 the FFmpeg developers
     built with gcc 7.3.0 (GCC)
  • Why is the resulting clip of my ffmpeg concatenation much longer than expected ?

    21 mai 2018, par joeycato

    I’d like to extract a set of clips from a 60fps input video, change each of their durations, then recombine those modified clips. Unfortunately when I attempt this, the resulting clip doesn’t exactly match the sum of those durations.

    Here’s my repro case :

    1. Extend an extracted 2-second clip to 4 seconds ( input frame count = 120 = 60fps * 2 sec ) )

    ffmpeg -y -ss 8 -t 2 -i ./clip_60fps.avi -filter:v "settb=(4/120),setpts=(4/120)*N/TB" -r 120/4 -vcodec huffyuv step1.avi

    1. Shorten an extracted 4-second clip to 1 second ( input frame count = 240 = 60fps * 4 sec )

    ffmpeg -y -ss 10 -t 4 -i ./clip_60fps.avi -filter:v "settb=(1/240),setpts=(1/240)*N/TB" -r 240/1 -vcodec huffyuv step2.avi

    1. Concatenate the modified clips :

    mylist.txt contents :

    file './step1.avi'
    file './step2.avi'
    ffmpeg -y -safe 0 -f concat -i ./mylist.txt -r 60 -vcodec huffyuv steps_joined.avi

    The result :

    ffmpeg -i step1.avi 2>&1 | grep Duration
    ffmpeg -i step2.avi 2>&1 | grep Duration
    ffmpeg -i steps_joined.avi 2>&1 | grep Duration

    Duration : 00:00:04.00, start : 0.000000, bitrate : 3228 kb/s

    Duration : 00:00:01.00, start : 0.000000, bitrate : 23132 kb/s

    Duration : 00:00 :39.98, start : 0.000000, bitrate : 910 kb/s

    Why am I not getting an exact result of 5 seconds, but instead a much larger value ?