
Recherche avancée
Médias (17)
-
Matmos - Action at a Distance
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
DJ Dolores - Oslodum 2004 (includes (cc) sample of “Oslodum” by Gilberto Gil)
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Danger Mouse & Jemini - What U Sittin’ On ? (starring Cee Lo and Tha Alkaholiks)
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Cornelius - Wataridori 2
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
The Rapture - Sister Saviour (Blackstrobe Remix)
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Chuck D with Fine Arts Militia - No Meaning No
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
Autres articles (58)
-
List of compatible distributions
26 avril 2011, parThe table below is the list of Linux distributions compatible with the automated installation script of MediaSPIP. Distribution nameVersion nameVersion number Debian Squeeze 6.x.x Debian Weezy 7.x.x Debian Jessie 8.x.x Ubuntu The Precise Pangolin 12.04 LTS Ubuntu The Trusty Tahr 14.04
If you want to help us improve this list, you can provide us access to a machine whose distribution is not mentioned above or send the necessary fixes to add (...) -
Support de tous types de médias
10 avril 2011Contrairement à beaucoup de logiciels et autres plate-formes modernes de partage de documents, MediaSPIP a l’ambition de gérer un maximum de formats de documents différents qu’ils soient de type : images (png, gif, jpg, bmp et autres...) ; audio (MP3, Ogg, Wav et autres...) ; vidéo (Avi, MP4, Ogv, mpg, mov, wmv et autres...) ; contenu textuel, code ou autres (open office, microsoft office (tableur, présentation), web (html, css), LaTeX, Google Earth) (...)
-
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 (...)
Sur d’autres sites (8928)
-
Some last copyright year updates and change to open bug list
26 novembre 2014, par Martijn van BeurdenSome last copyright year updates and change to open bug list
This updates one rather important mention of the copyright year
(the encoding/decoding progress display) and a few in the
documentation. Furthermore, it updates the open bug listSigned-off-by : Erik de Castro Lopo <erikd@mega-nerd.com>
-
node ffmpeg programmatically built list(?) of commands
16 mai 2022, par MartinI am working on a ffmpeg wasm project and I have it working with this code :


await ffmpeg.run(
 '-loop', '1',
 '-framerate', '2',
 "-i", inputFileNames[0], 
 "-i", inputFileNames[1],
 "-i", inputFileNames[2],
 "-c:a", "libmp3lame", 
 "-b:a", "320k", 
 "-filter_complex", "concat=n=2:v=0:a=1",
 "-vcodec", "libx264", 
 "-bufsize", "3M", 
 "-filter:v", "scale=w=1920:h=1930,pad=ceil(iw/2)*2:ceil(ih/2)*2", 
 "-crf", "18", 
 "-pix_fmt", "yuv420p", 
 "-shortest", "", 
 "-tune", "stillimage", 
 "-t", "13", 
 outputFileName
 );



https://github.com/MartinBarker/ffmpeg-wasm-node


As you can see, the
await ffmpeg.run()
command takes a list of args / vars to run.
I have it statically set to take three file inputs right now (-i
) but I need to have these inputs set dynamically for however many strings are inside the inputFileNames[] list.

I've tried giving
await ffmpeg.run(myListArgs)
a var containing a list of the same args but that does not work but this causes an error as it only runs the last var outputFIlename so this below does not work :

let ffmpegArgs=('-loop', '1',
 '-framerate', '2',
 "-i", inputFileNames[0], 
 "-i", inputFileNames[1],
 "-i", inputFileNames[2],
 "-c:a", "libmp3lame", 
 "-b:a", "320k", 
 "-filter_complex", "concat=n=2:v=0:a=1",
 "-vcodec", "libx264", 
 "-bufsize", "3M", 
 "-filter:v", "scale=w=1920:h=1930,pad=ceil(iw/2)*2:ceil(ih/2)*2", 
 "-crf", "18", 
 "-pix_fmt", "yuv420p", 
 "-shortest", "", 
 "-tune", "stillimage", 
 "-t", "13", 
 outputFileName)

 await ffmpeg.run(
 ffmpegArgs
 );



I've tried to include multiple inputs in one line like so but it results in an error :



 await ffmpeg.run(
 '-loop', '1',
 '-framerate', '2',
 `-i ${inputFileNames[0]} -i ${inputFileNames[1]} -i ${inputFileNames[2]}`,
 "-c:a", "libmp3lame", 
 "-b:a", "320k", 
 "-filter_complex", "concat=n=2:v=0:a=1",
 "-vcodec", "libx264", 
 "-bufsize", "3M", 
 "-filter:v", "scale=w=1920:h=1930,pad=ceil(iw/2)*2:ceil(ih/2)*2", 
 "-crf", "18", 
 "-pix_fmt", "yuv420p", 
 "-shortest", "", 
 "-tune", "stillimage", 
 "-t", "13", 
 outputFileName
 );

[fferr] Unrecognized option 'i input-file-0 -i input-file-1 -i input-file-2'.
[fferr] Error splitting the argument list: Option not found
[ffout] FFMPEG_END



I've tried having only the inputs as a list, and using the ... to expand it inside the function call but that causes an error as well as the commas are included in the command (which they shouldnt be)


let ffmpegInputs=[
 "-i", inputFileNames[0], 
 "-i", inputFileNames[1],
 "-i", inputFileNames[2]
 ]
 await ffmpeg.run(
 '-loop', '1',
 '-framerate', '2',
 [...ffmpegInputs],
 "-c:a", "libmp3lame", 
 "-b:a", "320k", 
 "-filter_complex", "concat=n=2:v=0:a=1",
 "-vcodec", "libx264", 
 "-bufsize", "3M", 
 "-filter:v", "scale=w=1920:h=1930,pad=ceil(iw/2)*2:ceil(ih/2)*2", 
 "-crf", "18", 
 "-pix_fmt", "yuv420p", 
 "-shortest", "", 
 "-tune", "stillimage", 
 "-t", "13", 
 outputFileName
 );

[info] run ffmpeg command: -loop 1 -framerate 2 -i,input-file-0,-i,input-file-1,-i,input-file-2 -c:a libmp3lame -b:a 320k -filter_complex concat=n=2:v=0:a=1 -vcodec libx264 -bufsize 3M -filter:v scale=w=1920:h=1930,pad=ceil(iw/2)*2:ceil(ih/2)*2 -crf 18 -pix_fmt yuv420p -shortest -tune stillimage -t 13 cool-output-video.mp4
TypeError: a.charCodeAt is not a function



How can I create my ffmpeg args dynamically to work for any number of inputs ?


-
ffmpy concatenate multiple files with a file list
10 novembre 2018, par r4ptorI’m currently trying to merge multiple video files with a python script using ffmpeg and ffmpy.
The names of the files are being written into a file list, as suggested by the ffmpeg concatenate wiki.In my example I’m only using two files, but in practice, there will be several hundert files, that’s why I’m choosing the file list approach.
My current code looks like this :
import os
import ffmpy
base_dir = "/path/to/the/files"
# where to seek the files
file_list = open("video_list.txt", "x")
# scan for the video files
for root, dirs, files in os.walk(base_dir):
for video_file in files:
if video_file.endswith(".avi"):
file_list.write("file './%s'\n" % video_file)
# merge the video files
ff = ffmpy.FFmpeg(
global_options={"-f",
"concat ",
"-safe",
"0"},
inputs={file_list: None},
outputs={"-c",
"copy",
"output.avi"},
)
ff.run()So the code I want to run with ffmpy is
ffmpeg -f concat -safe 0 -i video_list.txt -c copy output.avi
But unfortunately my script isn’t working and the resulting error is
Traceback (most recent call last):
File "concat.py", line 20, in <module>
"output.avi", }
File "/usr/lib/python3.7/site-packages/ffmpy.py", line 54, in __init__
self._cmd += _merge_args_opts(outputs)
File "/usr/lib/python3.7/site-packages/ffmpy.py", line 187, in _merge_args_opts
for arg, opt in args_opts_dict.items():
AttributeError: 'set' object has no attribute 'items'
</module>Any hints why the command isn’t working the way it should ? Am I missing something regarding the command formatting for ffmpy ?
Thank you.