Recherche avancée

Médias (0)

Mot : - Tags -/diogene

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (111)

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

  • Le profil des utilisateurs

    12 avril 2011, par

    Chaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
    L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...)

Sur d’autres sites (14903)

  • avcodec/h264dec : Skip late SEI

    27 avril 2022, par Michael Niedermayer
    avcodec/h264dec : Skip late SEI
    

    Fixes : Race condition
    Fixes : clusterfuzz-testcase-minimized-mediasource_MP2T_AVC_pipeline_integration_fuzzer-6282675434094592

    Found-by : google ClusterFuzz
    Tested-by : Dan Sanders <sandersd@google.com>
    Signed-off-by : Michael Niedermayer <michael@niedermayer.cc>

    • [DH] libavcodec/h264dec.c
  • how to solve '[mov,mp4,m4a,3gp,3g2,mj2 @ 0000021c356d9e00] moov atom not found' in opencv

    9 juillet 2022, par Daniel dos Santos

    I'm trying to create a video uploader in a kivy app using OpenCV. However, when I try to upload a video, I get the following error

    &#xA;&#xA;

    [mov,mp4,m4a,3gp,3g2,mj2 @ 0000021c356d9e00] moov atom not found&#xA;[mov,mp4,m4a,3gp,3g2,mj2 @ 0000021c356d9e00] moov atom not found&#xA;[mov,mp4,m4a,3gp,3g2,mj2 @ 0000021c356d9e00] moov atom not found&#xA;[mov,mp4,m4a,3gp,3g2,mj2 @ 0000021c356d9e00] moov atom not found&#xA;...&#xA;

    &#xA;&#xA;

    The screen becomes unresponsive during this. I edited the save() function recently and added an uploadClass() because I was getting another error.

    &#xA;&#xA;

    main.py

    &#xA;&#xA;

    ...&#xA;&#xA;class SaveDialog(Screen):&#xA;    save = ObjectProperty(None)&#xA;    text_input = ObjectProperty(None)&#xA;    cancel = ObjectProperty(None)&#xA;&#xA;    def save(self, path, filename):&#xA;&#xA;        for letter in os.path.join(path, filename):&#xA;            print(letter)&#xA;&#xA;        def find(s, ch):&#xA;            return [i for i, letter in enumerate(s) if letter == ch]&#xA;&#xA;        os_path_simpl = list(os.path.join(path, filename))&#xA;&#xA;        for t in range(len(find(os.path.join(path, filename), &#x27;\\&#x27;))):&#xA;            os_path_simpl[find(os.path.join(path, filename), &#x27;\\&#x27;)[t]] = &#x27;\\&#x27;&#xA;&#xA;        class uploadClass(object):&#xA;            video = &#x27;&#x27;.join(os_path_simpl)&#xA;&#xA;            def __init__(self, src=video):&#xA;                self.video_selected = cv2.VideoCapture(src)&#xA;&#xA;                self.vid_cod = cv2.VideoWriter_fourcc(*&#x27;mp4v&#x27;)&#xA;                self.out = cv2.VideoWriter(&#x27;media/testOne.mp4&#x27;, self.vid_cod, 20.0, (640,480))&#xA;&#xA;                self.thread = Thread(target=self.update, args=())&#xA;                self.thread.daemon = True&#xA;                self.thread.start()&#xA;&#xA;            def update(self):&#xA;                while True:&#xA;                    if self.video_selected.isOpened():&#xA;                        (self.status, self.frame) = self.video_selected.read()&#xA;&#xA;            def show_frame(self):&#xA;                if self.status:&#xA;                    cv2.imshow(&#x27;uploading&#x27;, self.frame)&#xA;&#xA;                if cv2.waitKey(10) &amp; 0xFF == ord(&#x27;q&#x27;):&#xA;                    self.video_selected.release()&#xA;                    self.out.release()&#xA;                    cv2.destroyAllWindows()&#xA;                    exit(1)&#xA;&#xA;            def save_frame(self):&#xA;                self.out.write(self.frame)&#xA;&#xA;        rtsp_stream_link = &#x27;media/testOne.mp4&#x27;&#xA;        upload_Class = uploadClass(rtsp_stream_link)&#xA;        while True:&#xA;            try:&#xA;                upload_Class.__init__()&#xA;                upload_Class.show_frame()&#xA;                upload_Class.save_frame()&#xA;            except AttributeError:&#xA;                pass&#xA;&#xA;        sm.current = "home"&#xA;&#xA;...&#xA;&#xA;

    &#xA;

  • Speech recognition with python-telegram-bot without downloading an audio file

    25 juin 2022, par linz

    I'm developing a telegram bot in which the user sends a voice message, the bot transcribes it and sends back what was said in text.&#xA;For that I am using the python-telegram-bot library and the speech_recognition library with the google engine.&#xA;My problem is, the voice messages sent by the users are .mp3, however in order to transcribe them i need to convert them to .wav. In order to do that I have to download the file sent to the bot.&#xA;Is there a way to avoid that ? I understand this is not an efficient and a safe way to do this since many active users at once will result in race conditions and takes a lot of space.

    &#xA;

    &#xA;def voice_handler(update, context):&#xA;    bot = context.bot&#xA;    file = bot.getFile(update.message.voice.file_id)&#xA;    file.download(&#x27;voice.mp3&#x27;)&#xA;    filename = "voice.wav"&#xA;    &#xA;    # convert mp3 to wav file&#xA;    subprocess.call([&#x27;ffmpeg&#x27;, &#x27;-i&#x27;, &#x27;voice.mp3&#x27;,&#xA;                         &#x27;voice.wav&#x27;, &#x27;-y&#x27;])&#xA;&#xA;    # initialize the recognizer&#xA;    r = sr.Recognizer()&#xA;    &#xA;    # open the file&#xA;    with sr.AudioFile(filename) as source:&#xA;    &#xA;        # listen for the data (load audio to memory)&#xA;        audio_data = r.record(source)&#xA;        # recognize (convert from speech to text)&#xA;        text = r.recognize_google(audio_data, language=&#x27;ar-AR&#x27;)&#xA;        &#xA;        &#xA;def main() -> None:&#xA;    updater.dispatcher.add_handler(MessageHandler(Filters.voice, voice_handler)) &#xA;&#xA;

    &#xA;