
Recherche avancée
Médias (91)
-
999,999
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
The Slip - Artworks
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Texte
-
Demon seed (wav version)
26 septembre 2011, par
Mis à jour : Avril 2013
Langue : English
Type : Audio
-
The four of us are dying (wav version)
26 septembre 2011, par
Mis à jour : Avril 2013
Langue : English
Type : Audio
-
Corona radiata (wav version)
26 septembre 2011, par
Mis à jour : Avril 2013
Langue : English
Type : Audio
-
Lights in the sky (wav version)
26 septembre 2011, par
Mis à jour : Avril 2013
Langue : English
Type : Audio
Autres articles (50)
-
Publier sur MédiaSpip
13 juin 2013Puis-je poster des contenus à partir d’une tablette Ipad ?
Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir -
Submit bugs and patches
13 avril 2011Unfortunately a software is never perfect.
If you think you have found a bug, report it using our ticket system. Please to help us to fix it by providing the following information : the browser you are using, including the exact version as precise an explanation as possible of the problem if possible, the steps taken resulting in the problem a link to the site / page in question
If you think you have solved the bug, fill in a ticket and attach to it a corrective patch.
You may also (...) -
Pas question de marché, de cloud etc...
10 avril 2011Le vocabulaire utilisé sur ce site essaie d’éviter toute référence à la mode qui fleurit allègrement
sur le web 2.0 et dans les entreprises qui en vivent.
Vous êtes donc invité à bannir l’utilisation des termes "Brand", "Cloud", "Marché" etc...
Notre motivation est avant tout de créer un outil simple, accessible à pour tout le monde, favorisant
le partage de créations sur Internet et permettant aux auteurs de garder une autonomie optimale.
Aucun "contrat Gold ou Premium" n’est donc prévu, aucun (...)
Sur d’autres sites (10800)
-
Fluent-ffmpeg and complex filter in Electron (node)
9 juillet 2016, par Matt Sergej RincI want to use fluent-ffmpeg module to call ffmpeg with complex filter from Electron but have no success. The error ’[AVFilterGraph @ 0xb8.......] No such filter " Error initalizing complex filters . Invalid argument’ is the same as in this question Error : Running FFmpeg command in Android ,splitting command in array not working but the context is different.
What is needed ?
Run this ffmpeg command using fluent-ffmpeg :ffmpeg -i safework-background-0.mp4 -i image1.png -i image2.png -i
image3.png -filter_complex "[0:v][1:v]
overlay=1:1:enable=’between(t,5,8.5)’ [tmp] ; [tmp][2:v]
overlay=1:1:enable=’between(t,8.5,12)’ [tmp] ; [tmp][3:v]
overlay=1:1:enable=’between(t,12,15)’" test-video-safework3.mp4It uses a complex filter to overlay three images on a video in sequence and exports a new video.
What doesn’t work ?
Obviously fluent-ffmpeg chokes with required quotes for complex filter, that is my conclusion (and is the same as for the Android variant question above).What works without fluent-ffmpeg in Electron ?
As you can guess I have to resort to calling ffmpeg directly. To help others, the following command, with input and output video filenames parametrized, translates to Electron as :var spawn = require('child_process').spawn
var fargs = ['-y', '-i', sourceDir.path() + '/' + inVideoName, '-i', tempDir.path() + '/' + 'image1.png',
'-i', tempDir.path() + '/' + 'image2.png', '-i', tempDir.path() + '/' + 'image3.png',
'-filter_complex', '[0:v][1:v]overlay=1:1:enable=\'between(t,5,8.5)\'[tmp];' +
'[tmp][2:v]overlay=1:1:enable=\'between(t,8.5,12)\'[tmp];[tmp][3:v]' +
'overlay=1:1:enable=\'between(t,12,15)\'', targetDir.path() + '/' + outVideoName]
var ffmpeg = spawn(ffmpegc, fargs, { cwd:jetpack.cwd(app.getPath('home')).path() })
// some code ommitted
ffmpeg.on('close', (code) => {
console.log(`child process exited with code ${code}`)
webContents.send('notify-user-reply', 'Video processing done.')
})The above command already has removed spaces between various filters (in complex filter) for each image or it would also choke.
I would really love to use fluent-ffmpeg in Electron, not just for the convenience of calling ffmpeg more elegantly but also for some additional features like easy progress reporting.
-
Saving an animation using ffmpeg and matplotlib on anaconda3
21 juin 2016, par Varsha DyavaiahI am trying to create videos of NBA Action with Sportsvu data.
I was following the steps given in this blog by Dan Vatterott :
I am trying to create a animation and save it using ffmpeg and matplotlib.
The code snippet is attached below.import matplotlib.animation as animation
plt.rcParams['animation.ffmpeg_path'] = '/home/anaconda3/pkgs/ffmpeg-2.1.0-1/bin'
fig = plt.figure(figsize=(15,7.5)) #create figure object
ax = plt.gca() #create axis object
draw_court([0,100,0,50]) #draw the court
player_text = list(range(10)) #create player text vector
player_circ = list(range(10)) #create player circle vector
ball_circ = plt.Circle((0,0), 1.1, color=[1, 0.4, 0]) #create circle object for bal
for i in list(range(10)): #create circle object and text object for each player
col=['w','k'] if i<5 else ['k','w'] #color scheme
player_circ[i] = plt.Circle((0,0), 2.2, facecolor=col[0],edgecolor='k') #player circle
player_text[i] = ax.text(0,0,'',color=col[1],ha='center',va='center') #player jersey # (text)
ani = animation.FuncAnimation(fig, animate, frames=np.arange(0,np.size(ball_xy,0)), init_func=init, blit=True, interval=5, repeat=False,\
save_count=0) #function for making video
FFwriter = animation.FFMpegWriter()
ani.save('Event_%d.mp4' % (search_id),dpi=100,writer = FFwriter,fps=25) #function for saving video
plt.close('all') #close the plotWhen I try to save the animation ’ani’ , I get Errno 13 (Permission denied).
---------------------------------------------------------------------------
PermissionError Traceback (most recent call last)
in <module>()
17
18 FFwriter = animation.FFMpegWriter()
---> 19 ani.save('Event_%d.mp4' % (search_id),dpi=100,writer = FFwriter,fps=25) #function for saving video
20 plt.close('all') #close the plot
/home/anaconda3/lib/python3.5/site-packages/matplotlib/animation.py in save(self, filename, writer, fps, dpi, codec, bitrate, extra_args, metadata, extra_anim, savefig_kwargs)
799 # since GUI widgets are gone. Either need to remove extra code to
800 # allow for this non-existant use case or find a way to make it work.
--> 801 with writer.saving(self._fig, filename, dpi):
802 for anim in all_anim:
803 # Clear the initial frame
/home/anaconda3/lib/python3.5/contextlib.py in __enter__(self)
57 def __enter__(self):
58 try:
---> 59 return next(self.gen)
60 except StopIteration:
61 raise RuntimeError("generator didn't yield") from None
/home/anaconda3/lib/python3.5/site-packages/matplotlib/animation.py in saving(self, *args)
192 '''
193 # This particular sequence is what contextlib.contextmanager wants
--> 194 self.setup(*args)
195 yield
196 self.finish()
/home/anaconda3/lib/python3.5/site-packages/matplotlib/animation.py in setup(self, fig, outfile, dpi, *args)
182 # Run here so that grab_frame() can write the data to a pipe. This
183 # eliminates the need for temp files.
--> 184 self._run()
185
186 @contextlib.contextmanager
/home/anaconda3/lib/python3.5/site-packages/matplotlib/animation.py in _run(self)
210 stdout=output, stderr=output,
211 stdin=subprocess.PIPE,
--> 212 creationflags=subprocess_creation_flags)
213
214 def finish(self):
/home/anaconda3/lib/python3.5/subprocess.py in __init__(self, args, bufsize, executable, stdin, stdout, stderr, preexec_fn, close_fds, shell, cwd, env, universal_newlines, startupinfo, creationflags, restore_signals, start_new_session, pass_fds)
948 c2pread, c2pwrite,
949 errread, errwrite,
--> 950 restore_signals, start_new_session)
951 except:
952 # Cleanup if the child failed starting.
/home/anaconda3/lib/python3.5/subprocess.py in _execute_child(self, args, executable, preexec_fn, close_fds, pass_fds, cwd, env, startupinfo, creationflags, shell, p2cread, p2cwrite, c2pread, c2pwrite, errread, errwrite, restore_signals, start_new_session)
1542 else:
1543 err_msg += ': ' + repr(orig_executable)
-> 1544 raise child_exception_type(errno_num, err_msg)
1545 raise child_exception_type(err_msg)
1546
PermissionError: [Errno 13] Permission denied
</module>Can someone help me ? Thanks in advance.
-
How to run python when I receive post request
28 septembre 2021, par BigJI made python code for capture the image from rtsp streaming server using ffmpeg. I want to make api that when I receive POST request include rtsp address in message, then run python file using with the rtsp address. Like running child-process.

I'm using loopback(typescript) for api developing.

Can you recommend useful library or sample code ??