Recherche avancée

Médias (1)

Mot : - Tags -/lev manovitch

Autres articles (54)

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

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

  • Automated installation script of MediaSPIP

    25 avril 2011, par

    To overcome the difficulties mainly due to the installation of server side software dependencies, an "all-in-one" installation script written in bash was created to facilitate this step on a server with a compatible Linux distribution.
    You must have access to your server via SSH and a root account to use it, which will install the dependencies. Contact your provider if you do not have that.
    The documentation of the use of this installation script is available here.
    The code of this (...)

Sur d’autres sites (11802)

  • avformat/dashdec : Also fetch final partial segment

    5 avril 2021, par Matt Robinson
    avformat/dashdec : Also fetch final partial segment
    

    Currently, the DASH demuxer omits the final segment for a non-live
    stream (using SegmentTemplate) if it is shorter than the other segments.

    Correct calc_max_seg_no to round up when calulating the number of
    segments instead of rounding down to resolve this issue.

    Signed-off-by : Matt Robinson <git@nerdoftheherd.com>

    • [DH] libavformat/dashdec.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;

  • torchaudio.io.StreamReader doesn't through 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;