
Recherche avancée
Médias (91)
-
Corona Radiata
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Lights in the Sky
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Head Down
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Echoplex
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Discipline
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Letting You
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
Autres articles (72)
-
Encoding and processing into web-friendly formats
13 avril 2011, parMediaSPIP 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, parLe 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, parUnlike 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 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>
-
FFmpeg video has an excessively long duration
8 juillet 2023, par daraemWhen 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.


res.header("Content-Disposition", `attachment; filename=video.mp4`)

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



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


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