
Recherche avancée
Médias (1)
-
Richard Stallman et le logiciel libre
19 octobre 2011, par
Mis à jour : Mai 2013
Langue : français
Type : Texte
Autres articles (9)
-
Les statuts des instances de mutualisation
13 mars 2010, parPour des raisons de compatibilité générale du plugin de gestion de mutualisations avec les fonctions originales de SPIP, les statuts des instances sont les mêmes que pour tout autre objets (articles...), seuls leurs noms dans l’interface change quelque peu.
Les différents statuts possibles sont : prepa (demandé) qui correspond à une instance demandée par un utilisateur. Si le site a déjà été créé par le passé, il est passé en mode désactivé. publie (validé) qui correspond à une instance validée par un (...) -
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 (...) -
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 (3336)
-
looking for the right regex expression to pick some specific sentences from a file using java regex
26 novembre 2014, par sachh_ke_nasdiikI am writing a program in java that records the screen.
it is actually something that uses the ffmpeg tool
with a simple GUI.
what I actually need is a way to grab from the following file :- ffmpeg version N-57367-g2f31b73 Copyright (c) 2000-2013 the FFmpeg developers
-
built on Oct 23 2013 20:22:19 with gcc 4.8.2 (GCC)
-
configuration : —enable-gpl —enable-version3 —disable-w32threads —enable-avisynth
— enable->bzlib —enable-fontconfig —enable-frei0r —enable-gnutls —enable-iconv —enable-
libass —enable-libbluray —enable-libcaca —enable-libfreetype —enable-libgsm —enable-libilbc —enable-
libmodplug —enable-libmp3lame —enable-libopencore-amrnb —enable-libopencore-amrwb —enable-
libopenjpeg —enable-libopus —enable-librtmp —enable-libschroedinger —enable-libsoxr —enable-
libspeex —enable-libtheora —enable-libtwolame —enable-libvidstab —enable-libvo-aacenc —enable-
libvo-amrwbenc —enable-libvorbis —enable-libvpx —enable-libwavpack —enable-libx264 —enable-
libxavs —enable-libxvid —enable-zlib - libavutil 52. 47.101 / 52. 47.101
- libavcodec 55. 38.101 / 55. 38.101
- libavformat 55. 19.104 / 55. 19.104
- libavdevice 55. 4.100 / 55. 4.100
- libavfilter 3. 89.100 / 3. 89.100
- libswscale 2. 5.101 / 2. 5.101
- libswresample 0. 17.104 / 0. 17.104
- libpostproc 52. 3.100 / 52. 3.100
- [dshow @ 02482700] DirectShow video devices
- [dshow @ 02482700] "screen-capture-recorder"
- [dshow @ 02482700] DirectShow audio devices
- [dshow @ 02482700] "Microphone (ASUS Xonar DGX Audio Device)"
- [dshow @ 02482700] "virtual-audio-capturer"
- [dshow @ 02482700] "Line In (ASUS Xonar DGX Audio Device)"
- [dshow @ 02482700] "Stereo Mix (ASUS Xonar DGX Audio Device)"
- [dshow @ 02482700] "Aux (ASUS Xonar DGX Audio Device)"
- [dshow @ 02482700] "Wave (ASUS Xonar DGX Audio Device)"
- dummy : Immediate exit requested
only the sentences between the quotation marks,
those that describes the different devices,
that shows up at the end of the file,
ignoring of course the line numbering, that does not appear in the
output file, but inserted here for better fluency.
does anyone have any ideas how to work it out using java regex ?
assuming I am using an enhanced for loop over a string array
checking each line for its contents. -
Rename tpel_template.c ---> pel_template.c
12 juin 2014, par Diego Biurrun -
How do I properly save an animation involving circles with matplotlib.animation and ffmpeg ?
12 juillet 2020, par bghostI recently tried out matplotlib.animation, and it's a wonderful tool. I can now make and save basic animations (ie that only involve straight lines) without any issues. However, when I made an animation involving circles, even though the interactive display was perfect, the saved mp4 file wasn't really satisfying. In the mp4 file, the edges of the circles were blurred, and if the circles were made semi-transparent (ie with an alpha value < 1), they all suddenly became completely opaque after a couple of frames. I suspected it was due to the fact that my bitrate wasn't high enough, but I went up to 10000 kb/s (instead of 1800), and exactly the same phenomenon occurred.


What can be done to solve these 2 issues (blurred edges + negated transparency) in the generated mp4 file ?


Here is a simple animation that describes what I just said :


import numpy as np
import matplotlib.pyplot as plt
import matplotlib.animation as animation

fig = plt.figure(figsize=(11, 7))
ax = plt.axes(xlim=(-1.2, 1.2), ylim=(-0.7, 0.7))
ax.set_aspect('equal')

dict_circles = {}
dict_circles['ring'] = plt.Circle((-0.5, 0), 0.5, color='b', lw=2, fill=False)
dict_circles['disk'] = plt.Circle((-0.5, 0), 0.5, color='b', alpha=0.2)

def init():
 for circle in dict_circles.values():
 ax.add_patch(circle)
 return(dict_circles.values())

nb_frames = 100
X_center = np.linspace(-0.5, 0.5, nb_frames)

def animate(frame):
 for circle in dict_circles.values():
 circle.center = (X_center[frame], 0)
 ax.add_patch(circle)
 return(dict_circles.values())

ani = animation.FuncAnimation(fig, animate, init_func=init, frames=nb_frames, blit=True, interval=10, repeat=False)
plt.show()

plt.rcParams['animation.ffmpeg_path'] = 'C:\\ffmpeg\\bin\\ffmpeg.exe'
Writer = animation.writers['ffmpeg']
writer_ref = Writer(fps=15, bitrate=1800)

ani.save('Blue circle.mp4', writer=writer_ref)