
Recherche avancée
Médias (1)
-
Rennes Emotion Map 2010-11
19 octobre 2011, par
Mis à jour : Juillet 2013
Langue : français
Type : Texte
Autres articles (91)
-
MediaSPIP 0.1 Beta version
25 avril 2011, parMediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
The zip file provided here only contains the sources of MediaSPIP in its standalone version.
To get a working installation, you must manually install all-software dependencies on the server.
If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...) -
ANNEXE : Les plugins utilisés spécifiquement pour la ferme
5 mars 2010, parLe site central/maître de la ferme a besoin d’utiliser plusieurs plugins supplémentaires vis à vis des canaux pour son bon fonctionnement. le plugin Gestion de la mutualisation ; le plugin inscription3 pour gérer les inscriptions et les demandes de création d’instance de mutualisation dès l’inscription des utilisateurs ; le plugin verifier qui fournit une API de vérification des champs (utilisé par inscription3) ; le plugin champs extras v2 nécessité par inscription3 (...)
-
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 (4930)
-
ffmpeg audio and video out of sync when using the raw format
25 novembre 2019, par Mikhail NovikovI have 2 .webm files, one contains video, the other one audio. I need to produce a single mp4 file containing both video and audio, in sync. Here is what i try to do :
ffmpeg -ss 00:00:00.33 -i user_17624_1-1762.webm -i user_17624_2-1767.webm -r 15 output_good.mp4
-ss by 0.33s is because video started 0.33s before audio - 1762 and 1767 are frame numbers, so they are 5 frames off, and 15 fps.
Doing this, i get a perfect recording where video and audio are in sync over the entire file.
But the thing is, i need to do some alterations of the video frames, and i do it my a C app manipulating the bytes in a raw video stream, so i can’t do it this way, i need to transcode to RAW first, then manipulate, then encode mp4 back from the raw. Removing my C app from the chain to make sure it’s not the problem, it boils down to :
ffmpeg -ss 00:00:00.33 -i user_17624_1-1762.webm -an -r 15 -f rawvideo -pix_fmt yuv420p -s 1920x1080 ./video.pipe &
ffmpeg -i user_17624_2-1767.webm -vn -ar 44100 -ac 2 -f s16le -acodec pcm_s16le ./audio.pipe &
ffmpeg -an -r 15 -f rawvideo -pix_fmt yuv420p -s 1920x1080 -i ./video.pipe -vn -ar 44100 -ac 2 -f s16le -acodec pcm_s16le -i ./audio.pipe -r 15 output_bad.mp4resulting in yes, recording where audio and video are way off from each other, and seems to be also fluctuate over the file duration.
What am i doing wrong with these video transcodings ? Help me please :)
Mikhail
-
avcodec/golomb : Document return value of get_ue_golomb_31 on error
14 juillet 2020, par Andreas Rheinhardtavcodec/golomb : Document return value of get_ue_golomb_31 on error
get_ue_golomb_31() reads nine bits and an array with 512 entries to
parse golomb codes. The longest golomb codes that fit into 9 bits use
four leading zeroes and five value bits and can encode numbers in the
0..30 range. 31 meanwhile is encoded on 11 bits and if the nine bits
read coincide with the first nine bits of the encoding of 31,
get_ue_golomb_31() returns 31 (and skips 11 bits).But looking at the first nine bits only makes it impossible to distinguish
31 from 32..34. Therefore the documentation of get_ue_golomb_31() simply
states that the return value is undefined if the value of the encountered
exp golomb code was outside the 0..31 range.But actually get_ue_golomb_31() does not behave that bad : If the returned
value is in the range of 0..30, then this is the actually encountered value,
so that this function can be used without any problems to parse and validate
parameters whose legal values are a subset of the 0..30 range.This commit documents this fact.
Reviewed-by : Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by : Andreas Rheinhardt <andreas.rheinhardt@gmail.com> -
CreateComponent(AMFVideoEncoderVCE_AVC) failed with error 36
16 février 2021, par Mitrajeet GolsangiI am working on a matplotlib project and want to save it in a mp4 video format.
I am using the ffmpeg program for converting the animation in a video. This is the code for conversion


# The animation definition

ani = FuncAnimation(figure, my_frame_function, frames=100,
 interval=5, init_func=init, blit=True, repeat=True)


# Path for ffmpeg

plt.rcParams['animation.ffmpeg_path'] = 'C:/ffmpeg/bin/ffmpeg.exe'


# Setting up the writer

Writer = writers['ffmpeg']
writer = Writer(fps=10, metadata=dict(artist='Mitrajeet'), bitrate=None)

# Trying to Save the file
ani.save("test.png", writer=writer) # ---- Error here



After running the file I get this Error


MovieWriter stderr:
[h264_amf @ 00000000004ec840] CreateComponent(AMFVideoEncoderVCE_AVC) failed with error 36
Error initializing output stream 0:0 -- Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height

Traceback (most recent call last):
 File "C:\Users\Admin\AppData\Local\Programs\Python\Python38\lib\site-packages\matplotlib\animation.py", line 251, in saving
 yield self
 File "C:\Users\Admin\AppData\Local\Programs\Python\Python38\lib\site-packages\matplotlib\animation.py", line 1161, in save
 writer.grab_frame(**savefig_kwargs)
 File "C:\Users\Admin\AppData\Local\Programs\Python\Python38\lib\site-packages\matplotlib\animation.py", line 363, in grab_frame
 self.fig.savefig(self._frame_sink(), format=self.frame_format,
 File "C:\Users\Admin\AppData\Local\Programs\Python\Python38\lib\site-packages\matplotlib\figure.py", line 2311, in savefig
 self.canvas.print_figure(fname, **kwargs)
 File "C:\Users\Admin\AppData\Local\Programs\Python\Python38\lib\site-packages\matplotlib\backends\backend_qt5agg.py", line 81, in print_figure
 super().print_figure(*args, **kwargs)
 File "C:\Users\Admin\AppData\Local\Programs\Python\Python38\lib\site-packages\matplotlib\backend_bases.py", line 2210, in print_figure
 result = print_method(
 File "C:\Users\Admin\AppData\Local\Programs\Python\Python38\lib\site-packages\matplotlib\backend_bases.py", line 1639, in wrapper
 return func(*args, **kwargs)
 File "C:\Users\Admin\AppData\Local\Programs\Python\Python38\lib\site-packages\matplotlib\backends\backend_agg.py", line 456, in print_raw
 fh.write(renderer.buffer_rgba())
BrokenPipeError: [Errno 32] Broken pipe

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
 File "prime_counting_function.py", line 63, in <module>
 ani.save("D:/PycharmProjects/Math Graphs/Prime Numbers/output/test.png", writer=writer)
 File "C:\Users\Admin\AppData\Local\Programs\Python\Python38\lib\site-packages\matplotlib\animation.py", line 1161, in save
 writer.grab_frame(**savefig_kwargs)
 File "C:\Users\Admin\AppData\Local\Programs\Python\Python38\lib\contextlib.py", line 131, in __exit__
 self.gen.throw(type, value, traceback)
 File "C:\Users\Admin\AppData\Local\Programs\Python\Python38\lib\site-packages\matplotlib\animation.py", line 253, in saving
 self.finish()
 File "C:\Users\Admin\AppData\Local\Programs\Python\Python38\lib\site-packages\matplotlib\animation.py", line 354, in finish
 self.cleanup()
 File "C:\Users\Admin\AppData\Local\Programs\Python\Python38\lib\site-packages\matplotlib\animation.py", line 390, in cleanup
 raise subprocess.CalledProcessError(
subprocess.CalledProcessError: Command '['C:/ffmpeg/bin/ffmpeg.exe', '-f', 'rawvideo', '-vcodec', 'rawvideo', '-s', '640x480', '-pix_fmt', 'rgba', '-r', '10', '-loglevel', 'error', '-i', 'pipe:', '-vcodec', 'h264', '-pix_fmt', 'yuv420p', '-metadata', 'artist=Mitrajeet', '-y', 'D:/PycharmProjects/Math Graphs/Prime Numbers/output/test.png']' returned non-zero exit status 1.
</module>


So whats wrong here ??