Recherche avancée

Médias (1)

Mot : - Tags -/copyleft

Autres articles (47)

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

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

Sur d’autres sites (9753)

  • 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
  • What is wrong with this FFMpeg filter string ?

    9 juillet 2023, par Codemonkey
    &lt;?php&#xA;shell_exec(&#x27;ffmpeg -i input.mp4 -i watermark.png -filter_complex "[1]format=rgba,colorchannelmixer=aa=0.75[logo];[0]scale2ref=oh*mdar:ih*0.3[video][logo];[video][logo]overlay=(main_w-overlay_w)/2:(main_h-overlay_h)/2;" output.mp4&#x27;)&#xA;

    &#xA;

    I'm losing my mind trying to fix this. It WAS working, until I added the alpha transparency. Now no matter what I try I seem unable to go back to anything that works, getting

    &#xA;

    &#xA;

    [AVFilterGraph @ 0x5615d18ba440] No such filter : ''&#xA;Error initializing complex filters&#xA;Invalid argument

    &#xA;

    &#xA;

    every time. My logs seem to even show that this string DID work once. It feels like I'm missing something really stupid, please help...

    &#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;