Recherche avancée

Médias (1)

Mot : - Tags -/Rennes

Autres articles (91)

  • MediaSPIP 0.1 Beta version

    25 avril 2011, par

    MediaSPIP 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, par

    Le 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 2011

    MediaSPIP 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 Novikov

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

    resulting 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 Rheinhardt
    avcodec/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>

    • [DH] libavcodec/golomb.h
  • CreateComponent(AMFVideoEncoderVCE_AVC) failed with error 36

    16 février 2021, par Mitrajeet Golsangi

    I am working on a matplotlib project and want to save it in a mp4 video format.&#xA;I am using the ffmpeg program for converting the animation in a video. This is the code for conversion

    &#xA;

    # The animation definition&#xA;&#xA;ani = FuncAnimation(figure, my_frame_function, frames=100,&#xA;                   interval=5, init_func=init, blit=True, repeat=True)&#xA;&#xA;&#xA;# Path for ffmpeg&#xA;&#xA;plt.rcParams[&#x27;animation.ffmpeg_path&#x27;] = &#x27;C:/ffmpeg/bin/ffmpeg.exe&#x27;&#xA;&#xA;&#xA;# Setting up the writer&#xA;&#xA;Writer = writers[&#x27;ffmpeg&#x27;]&#xA;writer = Writer(fps=10, metadata=dict(artist=&#x27;Mitrajeet&#x27;), bitrate=None)&#xA;&#xA;# Trying to Save the file&#xA;ani.save("test.png", writer=writer)  #  ---- Error here&#xA;

    &#xA;

    After running the file I get this Error

    &#xA;

    MovieWriter stderr:&#xA;[h264_amf @ 00000000004ec840] CreateComponent(AMFVideoEncoderVCE_AVC) failed with error 36&#xA;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&#xA;&#xA;Traceback (most recent call last):&#xA;  File "C:\Users\Admin\AppData\Local\Programs\Python\Python38\lib\site-packages\matplotlib\animation.py", line 251, in saving&#xA;    yield self&#xA;  File "C:\Users\Admin\AppData\Local\Programs\Python\Python38\lib\site-packages\matplotlib\animation.py", line 1161, in save&#xA;    writer.grab_frame(**savefig_kwargs)&#xA;  File "C:\Users\Admin\AppData\Local\Programs\Python\Python38\lib\site-packages\matplotlib\animation.py", line 363, in grab_frame&#xA;    self.fig.savefig(self._frame_sink(), format=self.frame_format,&#xA;  File "C:\Users\Admin\AppData\Local\Programs\Python\Python38\lib\site-packages\matplotlib\figure.py", line 2311, in savefig&#xA;    self.canvas.print_figure(fname, **kwargs)&#xA;  File "C:\Users\Admin\AppData\Local\Programs\Python\Python38\lib\site-packages\matplotlib\backends\backend_qt5agg.py", line 81, in print_figure&#xA;    super().print_figure(*args, **kwargs)&#xA;  File "C:\Users\Admin\AppData\Local\Programs\Python\Python38\lib\site-packages\matplotlib\backend_bases.py", line 2210, in print_figure&#xA;    result = print_method(&#xA;  File "C:\Users\Admin\AppData\Local\Programs\Python\Python38\lib\site-packages\matplotlib\backend_bases.py", line 1639, in wrapper&#xA;    return func(*args, **kwargs)&#xA;  File "C:\Users\Admin\AppData\Local\Programs\Python\Python38\lib\site-packages\matplotlib\backends\backend_agg.py", line 456, in print_raw&#xA;    fh.write(renderer.buffer_rgba())&#xA;BrokenPipeError: [Errno 32] Broken pipe&#xA;&#xA;During handling of the above exception, another exception occurred:&#xA;&#xA;Traceback (most recent call last):&#xA;  File "prime_counting_function.py", line 63, in <module>&#xA;    ani.save("D:/PycharmProjects/Math Graphs/Prime Numbers/output/test.png", writer=writer)&#xA;  File "C:\Users\Admin\AppData\Local\Programs\Python\Python38\lib\site-packages\matplotlib\animation.py", line 1161, in save&#xA;    writer.grab_frame(**savefig_kwargs)&#xA;  File "C:\Users\Admin\AppData\Local\Programs\Python\Python38\lib\contextlib.py", line 131, in __exit__&#xA;    self.gen.throw(type, value, traceback)&#xA;  File "C:\Users\Admin\AppData\Local\Programs\Python\Python38\lib\site-packages\matplotlib\animation.py", line 253, in saving&#xA;    self.finish()&#xA;  File "C:\Users\Admin\AppData\Local\Programs\Python\Python38\lib\site-packages\matplotlib\animation.py", line 354, in finish&#xA;    self.cleanup()&#xA;  File "C:\Users\Admin\AppData\Local\Programs\Python\Python38\lib\site-packages\matplotlib\animation.py", line 390, in cleanup&#xA;    raise subprocess.CalledProcessError(&#xA;subprocess.CalledProcessError: Command &#x27;[&#x27;C:/ffmpeg/bin/ffmpeg.exe&#x27;, &#x27;-f&#x27;, &#x27;rawvideo&#x27;, &#x27;-vcodec&#x27;, &#x27;rawvideo&#x27;, &#x27;-s&#x27;, &#x27;640x480&#x27;, &#x27;-pix_fmt&#x27;, &#x27;rgba&#x27;, &#x27;-r&#x27;, &#x27;10&#x27;, &#x27;-loglevel&#x27;, &#x27;error&#x27;, &#x27;-i&#x27;, &#x27;pipe:&#x27;, &#x27;-vcodec&#x27;, &#x27;h264&#x27;, &#x27;-pix_fmt&#x27;, &#x27;yuv420p&#x27;, &#x27;-metadata&#x27;, &#x27;artist=Mitrajeet&#x27;, &#x27;-y&#x27;, &#x27;D:/PycharmProjects/Math Graphs/Prime Numbers/output/test.png&#x27;]&#x27; returned non-zero exit status 1.&#xA;</module>

    &#xA;

    So whats wrong here ??

    &#xA;