Recherche avancée

Médias (1)

Mot : - Tags -/MediaSPIP

Autres articles (86)

Sur d’autres sites (15293)

  • mlpdec : support major sync headers with optional extension blocks

    21 septembre 2014, par Hendrik Leppkes
    mlpdec : support major sync headers with optional extension blocks
    

    Signed-off-by : Michael Niedermayer <michaelni@gmx.at>

    • [DH] libavcodec/mlp_parser.c
    • [DH] libavcodec/mlp_parser.h
    • [DH] libavcodec/mlpdec.c
  • FFmpeg - Slow Down Video by Half - Play Back at 2x

    2 mars 2021, par nomaam

    I am working with the newest version of FFmpeg

    &#xA;

    I am trying to slow down a video with audio by half speed, then play back that video in something like VLC at 2x speed and have the video appear and sound as if it was the original version.

    &#xA;

    So far I have tried

    &#xA;

    ./ffmpeg.exe -i "ffmpeg/testVideo.mp4" -filter_complex "[0:v]setpts=1.5*PTS[v];[0:a]atempo=0.5[a]" -map "[v]" -map "[a]" "ffmpeg/outputVideo.mp4"&#xA;

    &#xA;

    When I play back the video at 2x it isn't close to playing and sounding like the unaltered version.

    &#xA;

    I have read the documentation but am having difficulty understanding where I am going wrong.

    &#xA;

  • Moviepy replays audio at the end for half a second

    31 mai 2023, par Zac Jokface

    I used moviepy to add audio to a given video.&#xA;I started by checking the duration of the video. If it's shorter than the audio, I slow the video down using :

    &#xA;

    video_clip = video_clip.fx( vfx.speedx, (video_clip.duration/audio_clip.duration))

    &#xA;

    Then, I added the audio using :

    &#xA;

    video_clip = video_clip.set_audio(audio_clip)

    &#xA;

    I saved the result with

    &#xA;

    video_clip.write_videofile(save_path, codec="libx264", audio_codec="aac", fps=24, audio_bitrate="64K", threads=32, ffmpeg_params=[&#x27;-safe&#x27;, &#x27;0&#x27;])

    &#xA;

    Everything seems to be OK, except for the last half second of the resulting video, where the audio is replayed right before the end of the video.&#xA;I tried

    &#xA;

    new_audio_clip = afx.audio_loop(audio_clip, duration=video_clip.duration)

    &#xA;

    And added the new audio instead. But nothing changed.

    &#xA;