Recherche avancée

Médias (91)

Autres articles (63)

Sur d’autres sites (4192)

  • How to add text to video using FFMPEG with Fast speed rotation ?

    8 avril 2015, par vijay shegokar

    I am using the FFMPEG library in my project to work on video encoding.

    I am using the below command to add text to video at bottom of video, which is working fine. The only problem is that text moves very slow here in video. I want to speed up the text rotation in video.

    Add Text to Video FFMPEG Command

    D:/video/res/ffmpeg -y -i "D:/video/input.mp4" -filter_complex "drawtext=text='Cricket, Football, Tennis, Hockey, Chess, Carrom, Polo, Table Tennis':fontfile=\'D:/video/res/arial.ttf\':y=h-line_h:x=h-(2*lh)-n:fontcolor=white:fontsize=24:box=0" -codec:v libx264 -codec:a copy "D:/video/text_added_video.mp4"

    Please help me on this topic.

    Above code is useful for those who just want to add text to video at bottom of video with rotation from right to left. And doesn’t bother about the speed of text rotation.

  • FFMPEG Speed up video (loss of audio is fine)

    14 mai 2015, par adsun

    I’m trying to speed up a video by 2X by using this command.

    ./ffmpeg -i input.mp4 -filter:v setpts=(1/2)*PTS output.mp4

    But I get the following error :

    Error while opening encoder for output stream #0:1 - maybe incorrect parameters such as bit_rate, rate, width or height

    Can someone help me with the correct command to do it ? The input video is a valid MP4 file. It is fine even if there is no audio in the video after speeding up.

  • What's right way to change playback speed with ffmpeg ?

    25 août 2016, par user2440195

    In my project i’m using ffmpeg to playback media. Currently I’m trying to implement changing of playback speed. Will it be right to drop certain packets at high rates, for example not keyframes ? Or I should rely only on changing timestamps and duration, even if performance is low(for example 4k video) and as a consequence increased speed isn’t noticable ?