
Recherche avancée
Médias (1)
-
Revolution of Open-source and film making towards open film making
6 octobre 2011, par
Mis à jour : Juillet 2013
Langue : English
Type : Texte
Autres articles (54)
-
Les autorisations surchargées par les plugins
27 avril 2010, parMediaspip 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, parThe 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, parTo 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 Robinsonavformat/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>
-
torchaudio.io.StreamReader doesn't throw error when seeking to time stamp more than the duration of audio file
27 mars 2023, par lokeshI am trying to get the audio chunk of audio file between specific start time and end time


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


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
Ref : https://github.com/pytorch/audio/issues/2524

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


def read_audio(audio_file, start, end):
 audio_file.seek(0)
 reader = StreamReader(audio_file)
 sample_rate = int(reader.get_src_stream_info(reader.default_audio_stream).sample_rate)

 reader.seek(start * sample_rate)
 reader.add_basic_audio_stream(frames_per_chunk=(end - start) * sample_rate)

 return list(reader.stream())[0].pop()



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.
Is there any way to know the given offsets are out of bounds.


-
torchaudio.io.StreamReader doesn't through error when seeking to time stamp more than the duration of audio file
27 mars 2023, par lokeshI am trying to get the audio chunk of audio file between specific start time and end time


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


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
Ref : https://github.com/pytorch/audio/issues/2524

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


def read_audio(audio_file, start, end):
 audio_file.seek(0)
 reader = StreamReader(audio_file)
 sample_rate = int(reader.get_src_stream_info(reader.default_audio_stream).sample_rate)

 reader.seek(start * sample_rate)
 reader.add_basic_audio_stream(frames_per_chunk=(end - start) * sample_rate)

 return list(reader.stream())[0].pop()



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.
Is there any way to know the given offsets are out of bounds.