
Recherche avancée
Médias (1)
-
Video d’abeille en portrait
14 mai 2011, par
Mis à jour : Février 2012
Langue : français
Type : Video
Autres articles (96)
-
MediaSPIP 0.1 Beta version
25 avril 2011, parMediaSPIP 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, parMultilang 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, parLe 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 CurtisDon'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> -
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.


-
PHP-FFMpeg filters()->resize() throw Use of undefined constant RESIZEMODE_INSET
27 février 2023, par Angus SimonsI'm using
PHP-FFMpeg
to use FFMpeg with php, unfortunately I can't set resize filter.


This is my code :



$video = $ffmpeg->open('video.mov');

$dimension = new FFMpeg\Coordinate\Dimension(1920, 1080);
$video->filters()
 ->resize($dimension, RESIZEMODE_INSET, true, 1)
 ->synchronize();

$format = new FFMpeg\Format\Video\X264('aac', 'libx264');
$format->setAudioChannels(2)->setAudioKiloBitrate(256);
$video->save($format, 'video.mp4');




But it throws this error :



Use of undefined constant RESIZEMODE_INSET - assumed 'RESIZEMODE_INSET'



I tried also :



->resize($dimension, 'RESIZEMODE_INSET', true, 1)



and



->resize($dimension, 'inset', true, 1)



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



Thanks in advance