
Recherche avancée
Médias (1)
-
Revolution of Open-source and film making towards open film making
6 octobre 2011, par
Mis à jour : Juillet 2013
Langue : English
Type : Texte
Autres articles (47)
-
Les autorisations surchargées par les plugins
27 avril 2010, parMediaspip 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, parMediaSPIP 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 2011MediaSPIP 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 Balintavdevice/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>
-
What is wrong with this FFMpeg filter string ?
9 juillet 2023, par Codemonkey<?php
shell_exec('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')



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




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




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...


-
ffmpeg does not recognize long string filter in execv
4 mai 2023, par incertiaI 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.


below is a working version of the code after some debugging


inputs = sorted(list(askopenfilenames()))
n = len(inputs)

filter = []
for i in range(n):
 filter.append("[{}:v]".format(i))
 filter.append("[{}:a]".format(i))
filter.append("concat={}:v=1:a=1".format(n))
filter.append("[v]")
filter.append("[a]")
filter = " ".join(filter)

fargs = zip(itertools.repeat('-i'), inputs)
fargs = itertools.chain(
 ["ffmpeg"],
 itertools.chain.from_iterable(fargs),
 ["-filter_complex", '"{}"'.format(filter), "-vsync", "vfr", "-map", "[v]", "-map", "[a]"],
 ["-c:v", "libx264", "-crf", "{}".format(quality)],
 ["-c:a", "aac", "-b:a", "192k"],
 [out]
 )

os.execvp("ffmpeg", list(fargs))



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

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



we see that
ffmpeg
somehow sees this as multiple arguments

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



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

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



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