Recherche avancée

Médias (1)

Mot : - Tags -/illustrator

Autres articles (48)

  • Personnaliser les catégories

    21 juin 2013, par

    Formulaire de création d’une catégorie
    Pour ceux qui connaissent bien SPIP, une catégorie peut être assimilée à une rubrique.
    Dans le cas d’un document de type catégorie, les champs proposés par défaut sont : Texte
    On peut modifier ce formulaire dans la partie :
    Administration > Configuration des masques de formulaire.
    Dans le cas d’un document de type média, les champs non affichés par défaut sont : Descriptif rapide
    Par ailleurs, c’est dans cette partie configuration qu’on peut indiquer le (...)

  • Support de tous types de médias

    10 avril 2011

    Contrairement à beaucoup de logiciels et autres plate-formes modernes de partage de documents, MediaSPIP a l’ambition de gérer un maximum de formats de documents différents qu’ils soient de type : images (png, gif, jpg, bmp et autres...) ; audio (MP3, Ogg, Wav et autres...) ; vidéo (Avi, MP4, Ogv, mpg, mov, wmv et autres...) ; contenu textuel, code ou autres (open office, microsoft office (tableur, présentation), web (html, css), LaTeX, Google Earth) (...)

  • Supporting all media types

    13 avril 2011, par

    Unlike 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 (8449)

  • Don't throw an error when attached picture isn't recognized.

    10 avril 2023, par Dale Curtis
    Don't throw an error when attached picture isn't recognized.
    

    The MIME type field is required per the FLAC standard, but it's
    not an error just because ffmpeg doesn't recognize it.

    Signed-off-by : Dale Curtis <dalecurtis@chromium.org>
    Signed-off-by : Michael Niedermayer <michael@niedermayer.cc>

    • [DH] libavformat/flac_picture.c
  • torchaudio.io.StreamReader doesn't throw error when seeking to time stamp more than the duration of audio file

    27 mars 2023, par lokesh

    I am trying to get the audio chunk of audio file between specific start time and end time

    &#xA;

    Consider a audio of duration 10 seconds. Now i need to get chunk from 4 sec to 7 sec

    &#xA;

    torchaudio.info doesn't give correct num_frames for io.BytesIO flac audio file. So there is no way to find the total number of frames in the given audio to check for out of bounds start offset&#xA;Ref : https://github.com/pytorch/audio/issues/2524

    &#xA;

    What I did to get the chunk of audio with start and end offsets.

    &#xA;

    def read_audio(audio_file, start, end):&#xA;    audio_file.seek(0)&#xA;    reader = StreamReader(audio_file)&#xA;    sample_rate = int(reader.get_src_stream_info(reader.default_audio_stream).sample_rate)&#xA;&#xA;    reader.seek(start * sample_rate)&#xA;    reader.add_basic_audio_stream(frames_per_chunk=(end - start) * sample_rate)&#xA;&#xA;    return list(reader.stream())[0].pop()&#xA;

    &#xA;

    This is working as intended for start time less than the duration of audio file. But when we give the start time more than the duration of audio file, It doesn't throw error or return empty tensor.&#xA;Is there any way to know the given offsets are out of bounds.

    &#xA;

  • PHP-FFMpeg filters()->resize() throw Use of undefined constant RESIZEMODE_INSET

    27 février 2023, par Angus Simons

    I'm using PHP-FFMpeg to use FFMpeg with php, unfortunately I can't set resize filter.

    &#xA;&#xA;

    This is my code :

    &#xA;&#xA;

    $video = $ffmpeg->open(&#x27;video.mov&#x27;);&#xA;&#xA;$dimension = new FFMpeg\Coordinate\Dimension(1920, 1080);&#xA;$video->filters()&#xA;      ->resize($dimension, RESIZEMODE_INSET, true, 1)&#xA;      ->synchronize();&#xA;&#xA;$format = new FFMpeg\Format\Video\X264(&#x27;aac&#x27;, &#x27;libx264&#x27;);&#xA;$format->setAudioChannels(2)->setAudioKiloBitrate(256);&#xA;$video->save($format, &#x27;video.mp4&#x27;);&#xA;

    &#xA;&#xA;

    But it throws this error :

    &#xA;&#xA;

    Use of undefined constant RESIZEMODE_INSET - assumed &#x27;RESIZEMODE_INSET&#x27;

    &#xA;&#xA;

    I tried also :

    &#xA;&#xA;

    ->resize($dimension, &#x27;RESIZEMODE_INSET&#x27;, true, 1)

    &#xA;&#xA;

    and

    &#xA;&#xA;

    ->resize($dimension, &#x27;inset&#x27;, true, 1)

    &#xA;&#xA;

    But I can't get the video converted without stretching.

    &#xA;&#xA;

    Thanks in advance

    &#xA;