Recherche avancée

Médias (1)

Mot : - Tags -/MediaSPIP

Autres articles (21)

  • Liste des distributions compatibles

    26 avril 2011, par

    Le tableau ci-dessous correspond à la liste des distributions Linux compatible avec le script d’installation automatique de MediaSPIP. Nom de la distributionNom de la versionNuméro de version 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
    Si vous souhaitez nous aider à améliorer cette liste, vous pouvez nous fournir un accès à une machine dont la distribution n’est pas citée ci-dessus ou nous envoyer le (...)

  • List of compatible distributions

    26 avril 2011, par

    The 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 (...)

  • Déploiements possibles

    31 janvier 2010, par

    Deux types de déploiements sont envisageable dépendant de deux aspects : La méthode d’installation envisagée (en standalone ou en ferme) ; Le nombre d’encodages journaliers et la fréquentation envisagés ;
    L’encodage de vidéos est un processus lourd consommant énormément de ressources système (CPU et RAM), il est nécessaire de prendre tout cela en considération. Ce système n’est donc possible que sur un ou plusieurs serveurs dédiés.
    Version mono serveur
    La version mono serveur consiste à n’utiliser qu’une (...)

Sur d’autres sites (4967)

  • libavcodec/mpegvideo_enc.c : Fix encoding videos with less frames than the delay of...

    16 octobre 2015, par Alexis Ballier
    libavcodec/mpegvideo_enc.c : Fix encoding videos with less frames than the delay of the encoder.
    

    When the encoder is fed with less frames than its delay, the picture list looks like NULL, NULL, ..., frame, frame, frame . When flushing the encoder (input frame == NULL), we need to ensure the picture list is shifted enough so that we do not return an empty packet, which would mean the encoder has finished, while it has not encoded any frame.

    Before the patch, the command :
    ’./ffmpeg_g -loglevel debug -f lavfi -i "testsrc=d=0.01" -bf 2 -vcodec mpeg2video out.mxf’ prints :

    Output stream #0:0 (video) : 1 frames encoded ; 0 packets muxed (0 bytes) ;

    After :

    Output stream #0:0 (video) : 1 frames encoded ; 1 packets muxed (8058 bytes) ;

    Relates to ticket #4817.

    Signed-off-by : Michael Niedermayer <michael@niedermayer.cc>

    • [DH] libavcodec/mpegvideo_enc.c
  • ffmpeg adding a lot of time when concatenating files

    27 novembre 2023, par Jovi Juan

    I'm not sure if this will help anyone else, but I was trying to concatenate some files made in Premiere (problem #1) and ffmpeg kept adding time or changing the timeframe, about an hour for a 37 minute file) which was really frustrating.

    &#xA;

    I essentially was adding a new credit sequence onto the end and wanted to do it without rerendering any of the sourcefiles which in Premiere takes an amazing 8 hours at 4k and often fails or drops audio or video for no apparent reason.

    &#xA;

    I tried many many things, but what turned out to be the problem was the timescale, which by using ffprobe, turned out to be two subtly different timescales. Arrrgh. Same program (Premiere), same project.

    &#xA;

    Anyway the probe results were :&#xA;codec_name=h264&#xA;r_frame_rate=2997/100

    &#xA;

    And the other&#xA;codec_name=h264&#xA;r_frame_rate=30000/1001

    &#xA;

    So I fixed both of them by running it through this script

    &#xA;

    ffmpeg -i original.mp4 -c copy -video_track_timescale 30000 output.mp4&#xA;

    &#xA;

    where original and output were the respective filenames.

    &#xA;

    When I ran the concatenation script, it worked !&#xA;files.txt :

    &#xA;

    file &#x27;output.mp4&#x27;&#xA;file &#x27;output2.mp4&#x27;&#xA;

    &#xA;

    ffmpeg -f concat -i files.txt -c copy concat-movie.mp4&#xA;

    &#xA;

    I can only think that Premiere/Adobe is sneakily doing this to files to make such operations in other programs difficult and frustrating. I even made a sequence using the same files and regenerating the credit sequence from there to ensure the timescales and framerates were the same and it still generated files that were different.

    &#xA;

    Anyway, that was like a day of work. Hope this saves others the same hassle.

    &#xA;

  • Python unknown file extension .mp4

    18 février 2024, par marlise23

    I am working on a simulation project, however I am unable to create a visual. I started out by running code from matplotlib's documentation (i.e. the code does not belong to me).&#xA;When I run the code, I get the error "unknown file extension : .mp4". &#xA;I have installed ffmpeg and checked that it is an updated version.

    &#xA;&#xA;

    I am using a Windows computer and Python 3.

    &#xA;&#xA;

    import numpy as np&#xA;from matplotlib import pyplot as plt&#xA;from matplotlib import animation&#xA;plt.rcParams[&#x27;animation.ffmpeg_path&#x27;]=&#x27;‪C:\\FFmpeg\bin\ffmpeg.exe&#x27;&#xA;&#xA;# First set up the figure, the axis, and the plot element we want to animate&#xA;fig = plt.figure()&#xA;ax = plt.axes(xlim=(0, 2), ylim=(-2, 2))&#xA;line, = ax.plot([], [], lw=2)&#xA;&#xA;# initialization function: plot the background of each frame&#xA;def init():&#xA;    line.set_data([], [])&#xA;    return line,&#xA;&#xA;# animation function.  This is called sequentially&#xA;def animate(i):&#xA;    x = np.linspace(0, 2, 1000)&#xA;    y = np.sin(2 * np.pi * (x - 0.01 * i))&#xA;    line.set_data(x, y)&#xA;    return line,&#xA;&#xA;# call the animator.  blit=True means only re-draw the parts that have changed.&#xA;anim = animation.FuncAnimation(fig, animate, init_func=init,&#xA;                               frames=200, interval=20, blit=True)&#xA;&#xA;# save the animation as an mp4.  This requires ffmpeg or mencoder to be&#xA;# installed.  The extra_args ensure that the x264 codec is used, so that&#xA;# the video can be embedded in html5. &#xA;anim.save(&#x27;basic_animation.mp4&#x27;, fps=30, extra_args=[&#x27;-vcodec&#x27;, &#x27;libx264&#x27;])&#xA;&#xA;plt.show()&#xA;

    &#xA;