Recherche avancée

Médias (91)

Autres articles (97)

  • Encoding and processing into web-friendly formats

    13 avril 2011, par

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

  • Installation en mode ferme

    4 février 2011, par

    Le mode ferme permet d’héberger plusieurs sites de type MediaSPIP en n’installant qu’une seule fois son noyau fonctionnel.
    C’est la méthode que nous utilisons sur cette même plateforme.
    L’utilisation en mode ferme nécessite de connaïtre un peu le mécanisme de SPIP contrairement à la version standalone qui ne nécessite pas réellement de connaissances spécifique puisque l’espace privé habituel de SPIP n’est plus utilisé.
    Dans un premier temps, vous devez avoir installé les mêmes fichiers que l’installation (...)

  • Installation en mode standalone

    4 février 2011, par

    L’installation de la distribution MediaSPIP se fait en plusieurs étapes : la récupération des fichiers nécessaires. À ce moment là deux méthodes sont possibles : en installant l’archive ZIP contenant l’ensemble de la distribution ; via SVN en récupérant les sources de chaque modules séparément ; la préconfiguration ; l’installation définitive ;
    [mediaspip_zip]Installation de l’archive ZIP de MediaSPIP
    Ce mode d’installation est la méthode la plus simple afin d’installer l’ensemble de la distribution (...)

Sur d’autres sites (8213)

  • avcodec/nvdec_av1 : fix setting film grain parameters for frames with update_grain...

    12 novembre 2020, par James Almer
    avcodec/nvdec_av1 : fix setting film grain parameters for frames with update_grain == 0
    

    The spec in section 6.8.20 states the parameters should be loaded from a
    reference frame indexed by film_grain_params_ref_idx.

    Signed-off-by : James Almer <jamrial@gmail.com>

    • [DH] libavcodec/nvdec_av1.c
  • Why the stereo mp3 file lost a channel when converted from mp4 with ffmpeg ?

    11 novembre 2020, par Vivi

    I am following this tutorial https://hackernoon.com/audio-handling-basics-how-to-process-audio-files-using-python-cli-jo283u3y, and when I extract the data from the mp3 file, it is only an one dimensional array, while the data from wav file is 2D. I converted them from the same mp4 file with ffmpeg.

    &#xA;

    # read WAV file using scipy.io.wavfile&#xA;fs_wav, data_wav = wavfile.read("data/music_8k.wav")&#xA;&#xA;# read MP3 file using pydub&#xA;audiofile = AudioSegment.from_file("data/music_8k.mp3")&#xA;data_mp3 = np.array(audiofile.get_array_of_samples())&#xA;fs_mp3 = audiofile.frame_rate&#xA;&#xA;print(data_wav.shape) #(9835520, 2)&#xA;print(fs_wav) #44100&#xA;print(data_mp3.shape) #(19671040,)&#xA;print(fs_mp3) #44100&#xA;

    &#xA;

    When I check the info of the mp3 file it says Stereo, but does the fact that data_mp3 is only one dimensional array mean it is actually mono ? Did it lose one channel during converting ? And how should I reshape the data if I want to confirm these two files have identical signal ?

    &#xA;

  • ffmpeg handle packet lost during mixing video

    9 novembre 2020, par Pittie

    I am trying to mix several video and audio streams into one big video and then stream it using HLS. What should I do if there are some packets lost during processing, especially in large amount such as 1 or 2 seconds lost. Is there any option that can be used to solve this issue or should I just simply create fake packets/frames to fill the lost ones ? I am using ffmpeg api to do this so I can utilize both ffmpeg command-line options and code.&#xA;Here is my shortened complex filter for two videos (the full filter is too complex and unnecessary here)

    &#xA;

    [0:v] setpts=&#x27;(RTCTIME - RTCSTART)  / (TB * 1000000)&#x27; [v0]; [1:v] setpts=&#x27;(RTCTIME - RTCSTART)  / (TB * 1000000)&#x27; [v1]; [v0][v1] xstack=inputs=2:layout=0_0|428_0 [vmixed]; [0:a] asetpts=&#x27;(RTCTIME - RTCSTART)  / (TB * 1000000)&#x27; [a0]; [1:a] asetpts=&#x27;(RTCTIME - RTCSTART)  / (TB * 1000000)&#x27; [a1];  [a0][a1] amix=inputs=2:duration=longest [amixed];

    &#xA;