Recherche avancée

Médias (17)

Mot : - Tags -/wired

Autres articles (100)

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

  • ANNEXE : Les plugins utilisés spécifiquement pour la ferme

    5 mars 2010, par

    Le 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 (9801)

  • ffplay : avoid direct access to lowres use av_codec_g/set_lowres()

    3 octobre 2013, par Michael Niedermayer
    ffplay : avoid direct access to lowres use av_codec_g/set_lowres()
    

    Reviewed-by : Marton Balint <cus@passwd.hu>
    Signed-off-by : Michael Niedermayer <michaelni@gmx.at>

    • [DH] ffplay.c
  • I can't access an mp3 file in python to get the length of [closed]

    11 janvier 2024, par Sameer

    I've tried using pydub, mutagen, and eyed3 to try and access the length of an mp3 file I created using pyttsx3. However, I repeatedly get similar issues with my machine telling me that it is unable to access the mp3, that the file cannot be found at the specified path I'm trying to access it at, despite me ahving confirmed it does exist by the time it gets to the problematic line of code. Here's me trying to use eyed3 :

    &#xA;

        original_clip = VideoFileClip(original_video_path)&#xA;    voiceoverDirTitle = "VoiceoversTitle"&#xA;    filePath = f"{voiceoverDirTitle}/{id}.mp3"&#xA;    engine = pyttsx3.init()&#xA;    engine.save_to_file(title, filePath)&#xA;    engine.runAndWait() &#xA;&#xA;    script_dir = os.path.dirname(os.path.abspath(__file__))&#xA;    voiceoverDirTitle = "VoiceoversTitle"&#xA;    filePathAbsolute = os.path.join(script_dir, voiceoverDirTitle, f"{id}.mp3")&#xA;    print(filePathAbsolute)&#xA;&#xA;    exists = os.path.isfile(filePathAbsolute)&#xA;    print(exists)&#xA;    audio = eyed3.load(filePathAbsolute)&#xA;

    &#xA;

    up until the very last line of code, everything looks promising, when it throws me this error message :

    &#xA;

    AttributeError: &#x27;NoneType&#x27; object has no attribute &#x27;info&#x27;&#xA;

    &#xA;

    This is me trying to use pydub :

    &#xA;

        original_clip = VideoFileClip(original_video_path)&#xA;    voiceoverDirTitle = "VoiceoversTitle"&#xA;    filePath = f"{voiceoverDirTitle}/{id}.mp3"&#xA;    engine = pyttsx3.init()&#xA;    engine.save_to_file(title, filePath)&#xA;    engine.runAndWait() &#xA;&#xA;    script_dir = os.path.dirname(os.path.abspath(__file__))&#xA;    voiceoverDirTitle = "VoiceoversTitle"&#xA;    filePathAbsolute = os.path.join(script_dir, voiceoverDirTitle, f"{id}.mp3")&#xA;    print(filePathAbsolute)&#xA;&#xA;    exists = os.path.isfile(filePathAbsolute)&#xA;    print(exists)&#xA;    audio = AudioSegment.from_mp3(filePathAbsolute)&#xA;    duration_seconds = len(audio) / 1000&#xA;

    &#xA;

    And the error it returns :

    &#xA;

    FileNotFoundError: [WinError 2] The system cannot find the file specified&#xA;

    &#xA;

    I suspected at first it was an ffmpeg issue, but when i try "pip install ffmpeg", it says "requirement already satisfied", and besides, moviepy (the library I'm using) uses ffmpeg for its final encoding, and that part of my code seems to work fine. Any help would be greatly appreciated !!

    &#xA;

  • FFmpeg dxva2 H264 decoder reinitialize codec - access violation

    18 janvier 2023, par Spuriga

    I have a small project which decodes h264 I frame (SPS+PPS in extradata).&#xA;It uses "dxva2" hw acceleration and works fine until I reinitialize the codec. This can be occured when an rtsp stream change the format. Fe. : h264 to h264H. and the extradata must be changed.

    &#xA;

    The extradata modifying code is :

    &#xA;

        ...&#xA;&#xA;    ret = decode_write(decoder_ctx, packet);          //GOOD    &#xA;    ret = decode_write(decoder_ctx, NULL);&#xA;&#xA;    if (avcodec_close(decoder_ctx) &lt; 0)&#xA;        return -2;&#xA;&#xA;    if (hw_decoder_init(decoder_ctx, type) &lt; 0)&#xA;        return -1;&#xA;&#xA;    if ((ret = avcodec_open2(decoder_ctx, decoder, NULL)) &lt; 0) {&#xA;        fprintf(stderr, "Failed to open codec for stream.\n");&#xA;        return -1;&#xA;    }&#xA;&#xA;    ret = decode_write(decoder_ctx, packet);         //ACCESS VIOLATION&#xA;    ret = decode_write(decoder_ctx, NULL);&#xA;

    &#xA;

    The next avcodec_send_packet goes access violation exception.&#xA;When I switch off the HW acceleration and fallback to CPU this change is works fine.

    &#xA;

    So the only problem when I use dxva2 and reinitialize the codec.

    &#xA;

    The extradata change code is not in this small example, because the error reason is the reinitialize.

    &#xA;