Recherche avancée

Médias (1)

Mot : - Tags -/bug

Autres articles (91)

Sur d’autres sites (16689)

  • Rendering list of images over a video with ffmpeg does not work if video has audio

    12 mai 2023, par Alex Stirken

    I'm using FFmpegKit for Flutter to render a list of changing images onto a video.
Im using the following arguments :

    


    final arguments = [
  '-y',
  '-i', inputVideoPath,
  '-framerate', '$fps',
  '-start_number', '100',
  '-i', '${tempDirectoryPath}/%3d.png',
  '-filter_complex', '[1:v]scale=720:1280 [ovrl]; [0:v][ovrl]overlay=0:0,format=yuv420p[v]',
  '-map', '[v]',
  '-c:v', 'libx264',
  "-preset", "medium",
  '-pix_fmt', 'yuv420p',
  '-shortest',
  '$outputFilePath'
];


    


    It works like a charm as long as the video file (.mp4) has no audio stream. If the video has an audio stream, only the first image is getting rendered (overlayed) over the video.

    


    Any suggestions ?

    


  • Best video format for video processing and converting to mp4

    29 août 2014, par Max Grigoriev

    I may have video in selected format and I should make some video changes - add logo to the whole video as example and then convert to mp4. Right now original file is in h.264/mp4 format too. As I understand to add logo original file should be decoded to frames then logo should be added and then frames should be encoded to H.264 and packed to mp4. Since I’m newbie in video processing maybe there’s a raw video format which removes decoding stage and it saves time and cpu ?

    Thanks

  • how to improve the quality of resultant video when merging audio-video with ffmpeg ?

    6 novembre 2015, par R.S

    When merging an audio and video with ffmpeg, the quality of the resultant video goes down. How to we improve the quality(esp. the audio quality) ?

    The audio quality gets degraded to quite an extent with random screeches in between.
    I’ve tried converting the audio to mp3 and video to mp4 before merging them, tried various audio-video parameters like bitrate, sample-rate, qscale etc but still unsuccessful.
    Any help would be greatly appreciated !