Recherche avancée

Médias (1)

Mot : - Tags -/iphone

Autres articles (96)

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

  • Multilang : améliorer l’interface pour les blocs multilingues

    18 février 2011, par

    Multilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
    Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela.

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

Sur d’autres sites (7981)

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