Questions tagged [ffmpeg-python]

Python FFmpeg wrapper wiith complex filter support. ffmpeg-python works well for simple as well as complex signal graphs.

Python FFmpeg wrapper with complex filter support. ffmpeg-python works well for simple as well as complex signal graphs.

113 questions
0
votes
0 answers

FuncAnimation run twice of frames in the tk backends in the Jupyter notebook

I have some plot-related questions regarding FuncAnimation used in Jupyter notebook. The main issue is the FuncAnimation runs twice of frames number while it saves the right number of frames. The minor issue is in the %matplotlib tk magic, the GUI…
0
votes
0 answers

AttributeError: module 'ffmpeg' has no attribute 'load'

I'm having difficulty with ffmpeg. I've installed it properly (I think) but still get AttributeErrors. I used the online guide (https://ffmpeg.org/download.html), and doing pip install ffmpeg-python instead of pip install ffmpeg. I've verified the…
0
votes
0 answers

How to add ffmpeg in my python program in exe

I created a program that downloads videos from YouTube and in the last step I use the ffmpeg library to combine audio and video streams into one video file. Then I converted this program to exe using auto-py-to-exe. But the program works only on a…
0
votes
2 answers

How do I reverse a video in ffmpeg?

- Full Error: Stream specifier 's1:v' in filtergraph description [0]split=2:outputs=2[s0][s1];[s1:v]reverse[s2];[s0][s2]concat=a=0:n=2:v=1[s3] matches no streams. - Formatted…
0
votes
1 answer

How to translate ffmpeg linux comand into python

I'm using this to join screenshots into a movie ffmpeg -hide_banner -loglevel error -framerate 1 -pattern_type glob -i "$1" -c:v libx264 -pix_fmt yuv420p $2 But is there a way to translate this command into ffmbeg-python python command? If you…
user11419808
0
votes
0 answers

Overlay image onto a video at specific time interval using ffmpeg-python

I would like to overlay .png image file onto a video using ffmpeg-python. The image file should appear in the video at time of 5 s until time of 5.5 s. Here is the sample code containing creation of synthetic video and image, based on this…
Moonwalk
  • 123
  • 3
0
votes
1 answer

"No Output pad"error when using ffmpeg to create a subtitle overlay

I am using a Lambda function to run ffmpeg to rescale a video and then add subtitles from an .ass file. I have tried a few variations, but am continuing to get an error: [AVFilterGraph @ 0x721bec0] No output pad can be associated to link label…
user3324136
  • 415
  • 5
  • 20
0
votes
0 answers

How to merge two videos, so that the scale of the video takes up 50% of the size of the output video

How to merge two videos, so that the scale of the video takes up 50% of the size of the output video. For example I need to merge two videos so that one half of the video takes up 50% of the output video size from the top and the other half takes up…
0
votes
1 answer

reverse Video: Moviepy Error, by using time.mirror

im desperately trying to reverse a movie with moviepy by using .time_mirror. from moviepy.editor import * import moviepy.video.fx.all as vfx # Load the video video = VideoFileClip("/videos/uncut/videogames/other/001.mp4") popreversed_video =…
0
votes
0 answers

Merge .mkv files with already included subtitles using ffmpeg-python

I'm trying to merge two (and more in the future) .mkv files that already have subtitles included in them, this means I DO NOT have .srt files that need to be encoded. Let's call the .mkv files intro.mkv and episode.mkv. However, the way I want to…
Eeshe
  • 3
  • 1
0
votes
0 answers

Scale and crop video with ffmpeg-python bindings

I need to scale and crop a video from Python. Scale is made to to match a target height while the vertical dimension scales accordingly in order not to distort the images. Finally, a crop is made to end up with the video in the desired spatial…
Mauro Gentile
  • 1,463
  • 6
  • 26
  • 37
0
votes
1 answer

Mathematical formula to always center text along X and Y axis ffmpeg python?

I am trying to center a text horizontally and vertically with ffmpeg python but I can't seem to get it right. The mid point shifts depending on the amount of characters in the text. How do I always center the text to the centre of the screen no…
0
votes
0 answers

Bot won't play next song automatically, when the last one ends

I created a simple Music Bot, but there is one problem. When I run the "?play" Command, the Youtube Link is actually playing. Also, if I run the "?play" Command a second time, the link has been safed in the array. So when I run the "?skip" Command,…
0
votes
1 answer

Converting sequence of SVG images (which contain Emojis) to a MPEG video

I googled and even asked chatGPT but I'm unable to find a solution and hope to get some guidance here. First I've to mention that I'm not a programmer but rather a beginner. Following a short description of what I'm trying to achive and what I've…
0
votes
0 answers

Problem concatenating an mp4 file with an mp4 created by repeating a single image, with the same codec with ffmpeg concat demuxer

I have an mp4 video (of a lecture) containing two streams, video and audio. I wanted an introduction for it (title slide of the presentation that accompanied it), so I made an mp4 out of the intro image via ffmpeg -framerate 30 -i lec01_title.jpg -t…
ashay
  • 1
  • 1