
Recherche avancée
Autres articles (25)
-
Qu’est ce qu’un éditorial
21 juin 2013, parEcrivez votre de point de vue dans un article. Celui-ci sera rangé dans une rubrique prévue à cet effet.
Un éditorial est un article de type texte uniquement. Il a pour objectif de ranger les points de vue dans une rubrique dédiée. Un seul éditorial est placé à la une en page d’accueil. Pour consulter les précédents, consultez la rubrique dédiée.
Vous pouvez personnaliser le formulaire de création d’un éditorial.
Formulaire de création d’un éditorial Dans le cas d’un document de type éditorial, les (...) -
Installation en mode ferme
4 février 2011, parLe mode ferme permet d’héberger plusieurs sites de type MediaSPIP en n’installant qu’une seule fois son noyau fonctionnel.
C’est la méthode que nous utilisons sur cette même plateforme.
L’utilisation en mode ferme nécessite de connaïtre un peu le mécanisme de SPIP contrairement à la version standalone qui ne nécessite pas réellement de connaissances spécifique puisque l’espace privé habituel de SPIP n’est plus utilisé.
Dans un premier temps, vous devez avoir installé les mêmes fichiers que l’installation (...) -
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
Sur d’autres sites (5464)
-
I am using Whisper to transcribe and I am getting the below error, unable to figure out the issue
9 février 2024, par SRajI am using Whisper to transcribe an audio file. I have installed Python3.9, ffmpeg and the associated dependencies, and openai-whisper==20230308. I could import whisper, but when I try to run transcribe :


audio = f'audio_dataset/testaudio.wav'
model = whisper.load_model("base") 

result = model.transcribe(audio, fp16=False,language="en")



...I get the following error :


ValueError Traceback (most recent call last)
Cell In [32], line 1
----> 1 result = model.transcribe(audio, fp16=False, language="en")

File ~/.local/lib/python3.9/site-packages/torch/autograd/grad_mode.py:27, in _DecoratorContextManager.__call__.<locals>.decorate_context(*args, **kwargs)
 24 @functools.wraps(func)
 25 def decorate_context(*args, **kwargs):
 26 with self.clone():
---> 27 return func(*args, **kwargs)

File ~/.local/lib/python3.9/site-packages/whisper/decoding.py:811, in decode(model, mel, options, **kwargs)
 808 if kwargs:
 809 options = replace(options, **kwargs)
--> 811 result = DecodingTask(model, options).run(mel)
 813 return result[0] if single else result

File ~/.local/lib/python3.9/site-packages/whisper/decoding.py:522, in DecodingTask.__init__(self, model, options)
 520 self.initial_tokens: Tuple[int] = self._get_initial_tokens()
 521 self.sample_begin: int = len(self.initial_tokens)
--> 522 self.sot_index: int = self.initial_tokens.index(tokenizer.sot)
 524 # inference: implements the forward pass through the decoder, including kv caching
 525 self.inference = PyTorchInference(model, len(self.initial_tokens))

ValueError: tuple.index(x): x not in tuple
</locals>


Has anybody faced a similar issue ?


-
Show video while saving it
13 septembre 2022, par Mohamed Adel El-BadryI have a folder full of images, I need to save these images into the video while doing so I want to show the user the video being played from these images (frames). I can run two separate processes one for the saving and one for the showing but this is not what I am looking for, I want to do both in one step. If you know a solution please let me know.


My code uses C++ with OpenCV but feel free to share with me any code written with any language, or event a concept.


I use gStreamer, ffmpeg as well for the video generation, so I am not looking how to save a video or how to show the video I am looking for a process that can do both in one operation.


-
Can't obtain information with ffmpeg to Smooth Streaming Manifest file
4 mars 2015, par AlbertoI’m trying to get details for a stream of protocol Microsoft Smooth Streaming, with ffmpeg tools (ffprobe and ffplay) but when I run the next command :
ffprobe -i http://b31282.cdn.telefonica.com/31282/Manifest
I obtain this :
http://b31282.cdn.telefonica.com/31282/Manifest: Invalid data found when processing input
I assume that this Manifest file is correct and complies with standards of Smooth Streaming . This is a brief extract of Manifest file :
<smoothstreamingmedia majorversion="2" minorversion="0" duration="0" timescale="10000000" islive="TRUE" lookaheadfragmentcount="2" dvrwindowlength="6000000000" canseek="TRUE" canpause="TRUE">
<protection>
<protectionheader systemid="9a04f079-9840-4286-ab92-e65be0885f95">oioAAAIAAQCUAjwAV...</protectionheader>
</protection>
<streamindex type="audio" language="esp" subtype="" chunks="0" timescale="10000000" url="QualityLevels({bitrate})/Fragments(audio_esp={start time})"></streamindex>
<streamindex type="video" language="" subtype="" chunks="0" timescale="10000000" url="QualityLevels({bitrate})/Fragments(video={start time})"></streamindex>
</smoothstreamingmedia>Is a Fedora 21 and ffmpeg version and configuration is :
ffmpeg version git-2015-02-27-d490b26
configuration: --enable-gpl --enable-nonfree --enable-libfdk_aac --enable-libopus --enable-libvorbis --enable-libvpx --enable-libx264
libavutil 54. 19.100
libavcodec 56. 26.100
libavformat 56. 23.105
libavdevice 56. 4.100
libavfilter 5. 11.102
libswscale 3. 1.101
libswresample 1. 1.100
libpostproc 53. 3.100PD : I prefer use only ffmpeg tool
Thanks for all