Recherche avancée

Médias (3)

Mot : - Tags -/spip

Autres articles (38)

  • L’espace de configuration de MediaSPIP

    29 novembre 2010, par

    L’espace de configuration de MediaSPIP est réservé aux administrateurs. Un lien de menu "administrer" est généralement affiché en haut de la page [1].
    Il permet de configurer finement votre site.
    La navigation de cet espace de configuration est divisé en trois parties : la configuration générale du site qui permet notamment de modifier : les informations principales concernant le site (...)

  • HTML5 audio and video support

    13 avril 2011, par

    MediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
    The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
    For older browsers the Flowplayer flash fallback is used.
    MediaSPIP allows for media playback on major mobile platforms with the above (...)

  • Support audio et vidéo HTML5

    10 avril 2011

    MediaSPIP utilise les balises HTML5 video et audio pour la lecture de documents multimedia en profitant des dernières innovations du W3C supportées par les navigateurs modernes.
    Pour les navigateurs plus anciens, le lecteur flash Flowplayer est utilisé.
    Le lecteur HTML5 utilisé a été spécifiquement créé pour MediaSPIP : il est complètement modifiable graphiquement pour correspondre à un thème choisi.
    Ces technologies permettent de distribuer vidéo et son à la fois sur des ordinateurs conventionnels (...)

Sur d’autres sites (4161)

  • avformat/vividas : Error out on audio packets in the absence of audio streams

    5 novembre 2019, par Michael Niedermayer
    avformat/vividas : Error out on audio packets in the absence of audio streams
    

    Signed-off-by : Michael Niedermayer <michael@niedermayer.cc>

    • [DH] libavformat/vividas.c
  • audio issues when merging a video with an audio file using python ffmpeg and moviepy

    29 février 2024, par Stevenb123

    I’m trying to create a code that syncs between an audio file and a background file in terms of duration.&#xA;When creating the merged video I hear a cut or a loop sound of the last sentence for like 0.2 seconds.&#xA;I have tried to solve it in many different ways, listed below.

    &#xA;

    Has anyone solved this issue ? I saw many people having a similar problem.&#xA;I’m using Ubuntu version 20.04 and ffmpeg version 4.2.7

    &#xA;

    This is my code :

    &#xA;

    def merge_videos_with_subs(&#xA;    background_path, audio_path, subs, output_directory, output_filename&#xA;):&#xA;    try:&#xA;        # Load background video and audio&#xA;        background_clip = VideoFileClip(background_path)&#xA;        background_clip = background_clip.without_audio()&#xA;        audio_clip = AudioFileClip(audio_path)&#xA;&#xA;        # Adjust video duration to match audio duration&#xA;        audio_duration = audio_clip.duration&#xA;&#xA;        # If the background video is longer, trim it to match the audio duration&#xA;        if background_clip.duration > audio_duration:&#xA;            background_clip = background_clip.subclip(0, audio_duration)&#xA;        # If the audio is longer, loop the background video&#xA;        else:&#xA;            background_clip = background_clip.loop(duration=audio_duration)&#xA;&#xA;        # Set audio of the background clip&#xA;        background_clip = background_clip.set_audio(audio_clip)&#xA;&#xA;        # Overlay subtitles on the video&#xA;        final_clip = CompositeVideoClip(&#xA;            [background_clip, subtitles.set_pos(("center", "bottom"))]&#xA;        )&#xA;&#xA;        # Ensure the output directory exists&#xA;        os.makedirs(output_directory, exist_ok=True)&#xA;&#xA;        # Define the output path&#xA;        output_path = os.path.join(output_directory, output_filename)&#xA;&#xA;        # Write the merged video with subtitles&#xA;        final_clip.write_videofile(&#xA;            output_path, codec="libx264", audio_codec="aac", threads=4, fps=24&#xA;        )&#xA;&#xA;        # Close the clips&#xA;        final_clip.close()&#xA;        background_clip.close()&#xA;        audio_clip.close()&#xA;&#xA;        print(f"Merged video with subtitles saved to: {output_path}")&#xA;    except Exception as e:&#xA;        print(f"Error merging videos: {e}")&#xA;

    &#xA;

    I’ve tried changing the codec, tried cutting 0.2 seconds of the audio before and after the merge or silencing it, nothing seems to help.
    &#xA;When I run my code without the background subclip to match the audio it worked flawlessy.&#xA;If I let the background run until its full duration or make it loop there were no audio issues.
    &#xA;Looks like the issue is on the cutting part.

    &#xA;

  • Encoding audio to matroska container using ffmpeg audio encoder adpcm_adx

    22 octobre 2019, par Narek Aydinyan

    Trying to reencode audio file from mp4 container to Matroska(mkv) container using FFmpeg audio encoder adpcm_adx or (aptx, comfortnoise, g726le...) I am getting an error message

    No wav codec tag found for codec ...

    I have c++ code which includes thired-party integration of ffmpeg,
    and I am having the same result using ffmpeg terminal options.

    ffmpeg -i file.mp4 -c:v copy -c:a adpcm_adx -b:a 44100 output.mkv

    Instead of getting output file correctly I am getting

    No wav codec tag found for codec adpcm_adx
    Could not write header for output file #0 (incorrect codec parameters ?): Invalid argument
    Error initializing output stream 0:0 -- Conversion failed!

    Maybe I should specify extra parameters for making it work which I haven’t hooked up yet.
    Thanks in advance.
    I’ll appreciate any help.