Recherche avancée

Médias (1)

Mot : - Tags -/ogg

Autres articles (62)

  • Des sites réalisés avec MediaSPIP

    2 mai 2011, par

    Cette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
    Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page.

  • La file d’attente de SPIPmotion

    28 novembre 2010, par

    Une file d’attente stockée dans la base de donnée
    Lors de son installation, SPIPmotion crée une nouvelle table dans la base de donnée intitulée spip_spipmotion_attentes.
    Cette nouvelle table est constituée des champs suivants : id_spipmotion_attente, l’identifiant numérique unique de la tâche à traiter ; id_document, l’identifiant numérique du document original à encoder ; id_objet l’identifiant unique de l’objet auquel le document encodé devra être attaché automatiquement ; objet, le type d’objet auquel (...)

  • MediaSPIP version 0.1 Beta

    16 avril 2011, par

    MediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Pour avoir une installation fonctionnelle, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

Sur d’autres sites (12971)

  • 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;