Recherche avancée

Médias (1)

Mot : - Tags -/getid3

Autres articles (46)

  • List of compatible distributions

    26 avril 2011, par

    The table below is the list of Linux distributions compatible with the automated installation script of MediaSPIP. Distribution nameVersion nameVersion number Debian Squeeze 6.x.x Debian Weezy 7.x.x Debian Jessie 8.x.x Ubuntu The Precise Pangolin 12.04 LTS Ubuntu The Trusty Tahr 14.04
    If you want to help us improve this list, you can provide us access to a machine whose distribution is not mentioned above or send the necessary fixes to add (...)

  • Ajouter notes et légendes aux images

    7 février 2011, par

    Pour pouvoir ajouter notes et légendes aux images, la première étape est d’installer le plugin "Légendes".
    Une fois le plugin activé, vous pouvez le configurer dans l’espace de configuration afin de modifier les droits de création / modification et de suppression des notes. Par défaut seuls les administrateurs du site peuvent ajouter des notes aux images.
    Modification lors de l’ajout d’un média
    Lors de l’ajout d’un média de type "image" un nouveau bouton apparait au dessus de la prévisualisation (...)

  • La gestion des forums

    3 novembre 2011, par

    Si les forums sont activés sur le site, les administrateurs ont la possibilité de les gérer depuis l’interface d’administration ou depuis l’article même dans le bloc de modification de l’article qui se trouve dans la navigation de la page.
    Accès à l’interface de modération des messages
    Lorsqu’il est identifié sur le site, l’administrateur peut procéder de deux manières pour gérer les forums.
    S’il souhaite modifier (modérer, déclarer comme SPAM un message) les forums d’un article particulier, il a à sa (...)

Sur d’autres sites (7799)

  • lavc/cbs_av1 : restore CodedBitstreamAV1Context when AVERROR(ENOSPC)

    28 septembre 2022, par Haihao Xiang
    lavc/cbs_av1 : restore CodedBitstreamAV1Context when AVERROR(ENOSPC)
    

    The current pbc might be small for an obu frame, so a new pbc is
    required then parse this obu frame again. Because
    CodedBitstreamAV1Context has already been updated for this obu frame, we
    need to restore CodedBitstreamAV1Context, otherwise
    CodedBitstreamAV1Context doesn't match this obu frame when parsing obu
    frame again, e.g. CodedBitstreamAV1Context.order_hint.

    $ ffmpeg -i input.ivf -c:v copy -f null -
    [...]
    [av1_frame_merge @ 0x558bc3d6f880] ref_order_hint[i] does not match
    inferred value : 20, but should be 22.
    [av1_frame_merge @ 0x558bc3d6f880] Failed to write unit 1 (type 6).
    [av1_frame_merge @ 0x558bc3d6f880] Failed to write packet.
    [obu @ 0x558bc3d6e040] av1_frame_merge filter failed to send output
    packet

    Reviewed-by : James Almer <jamrial@gmail.com>
    Reviewed-by : Wenbin Chen <wenbin.chen@intel.com>
    Signed-off-by : Haihao Xiang <haihao.xiang@intel.com>

    • [DH] libavcodec/cbs_av1.c
  • How to merge two audio files while retaining correct timings with ffmpeg

    31 août 2017, par andy

    Disclaimer : I don’t understand ffmpeg and mostly just copy commands

    I have two webm video files. Their duration is off by about a second.

    I converted these to mp4 and everything was fine :

    ffmpeg -acodec libopus -i 1.webm -r 10 -cpu-used 5 -c:v libx264 -crf 20 -c:a aac -strict experimental -loglevel error 1.mp4

    I then extracted the audio from each video and everything was fine. By fine, I mean, when I playback the audio files by themselves they match the timings on the original video. I used this command to extract the audio :

    fmpeg -i 1.mp4 -map 0:a -vn -acodec copy 1audio.m4a

    I now have two audio tracks and I want to combine them into one, I want to "overlay" them, AND I want to keep the timings the same as they were.

    BUT, whenever I try and combine the audio the timings are off. The "seconds" don’t match the original single audio files.

    I have tried these commands to merge the audio :

    ffmpeg -i 1audio.m4a -i 2audio.m4a -filter_complex "[0:a][1:a]amerge=inputs=2[a]" -map [a] -c:a libfdk_aac mergedaudio.m4a

    ffmpeg -i 2audio.m4a -i 1audio.m4a -filter_complex amix=inputs=2:duration=first mergedaudio.m4a

    ffmpeg -i 1audio.m4a -i 2audio.m4a -filter_complex amerge -ac 2 -c:a libfdk_aac -vbr 4 mergedaudio.m4a

    All the above command have resulted in a merged audio file... but the timings are off.

    What am I doing wrong ?

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