125 questions
-1
votes
0
answers
66
views
Matplotlib ffmpeg libopenh264 error in FFMpegWriter
When I try to use matplotlib's ``FFMpegWriter```.
import matplotlib.animation as animation
FFwriter = animation.FFMpegWriter(fps=10)
...
ani.save('./temp/animation.mp4', writer = FFwriter)
I get the ...
4
votes
1
answer
145
views
ffmpeg: How to merge multiple audio files into stereo
I have an initially undefined number of input mono audio files (.wav) that I want to merge into a single stereo output audio file (.mp3), so that one of the input files goes into left channel, and all ...
0
votes
1
answer
177
views
Discord Music Bot FFMPEG Troubleshooting
I am trying to create a Python Cog for a Discord.py bot on Windows 10 that allows the bot to join a voice channel to play music or funny audio. It is just something for me and my friends to goof off ...
1
vote
2
answers
831
views
convert YT video to audio file - "ERROR: Postprocessing: audio conversion failed: Error opening output files: Encoder not found"
I am using yt_dlp with Python to load a video from Youtube as an audio-only mp3 file. Until recently this worked fine, but now I get the following error message:
ERROR: Postprocessing: audio ...
-1
votes
1
answer
568
views
How to fix the ffmpeg python issue "Error applying option 'original_size' to filter 'ass': Invalid argument"?
ENVIRONMENT:
Python 3.10
Windows 11
ffmpeg-python==0.2.0
CONTEXT:
I am trying to add hardcoded subtitles on a video with ffmpeg and Pyton.
PROBLEM:
ffmpeg is not able to find the path of my ass ...
1
vote
2
answers
229
views
How to resize dimensions of video through ffmpeg-python?
I'm trying to resize a video file which a user has uploaded to Django, by using ffmpeg-python. The documentation isn't very easy to understand, so I've tried to cobble this together from various ...
2
votes
0
answers
129
views
Automate removing segments of a video using ffmpeg-python
I'm very new to ffmpeg and unable to wrap my head around the concepts entirely. My goal for this little script I've been working on all day is to:
Step 1: Read a list of timestamps from a text file ...
-1
votes
1
answer
167
views
How to Stream Audio from Google Cloud Storage in Chunks and Convert Each Chunk to WAV for Whisper Transcription
I'm working on a project where I need to transcribe audio stored in a Google Cloud Storage bucket using OpenAI's Whisper model. The audio is stored in WebM format with Opus encoding, and due to the ...
0
votes
1
answer
71
views
Saving frames for mov file with multiple streams using python-ffmpeg
I have a mov file with multiple video streams, and I'm trying to use ffmpeg python bindings to read each stream and save all of its frames.
To do so, I've made a code similar to this one:
import numpy ...
0
votes
1
answer
203
views
Getting Error while trying to download youtube video by using python
Code
I'm working on a script that allows users to manually select and download separate video and audio streams from YouTube using yt-dlp. The script lists the available video and audio formats, lets ...
0
votes
1
answer
443
views
AttributeError: 'FilterableStream' object has no attribute 'input' - ffmpeg-python
I am a fresh programmer and I am learning the Python language.
I have been trying to design a graphical application (using tkinter and ffmpeg-python libraries) that converts an image file along with ...
-1
votes
2
answers
74
views
how i can save overlay text box with a video in gallery by using ffmpeg?
final escapedOverlayText = overlayText.replaceAll(''', '\'');
final command =
'-i $videoPath -vf "drawtext=text='$escapedOverlayText':x=10:y=10:fontsize=24:fontcolor=white" -c:a copy $...
0
votes
0
answers
108
views
ffmpeg python causing deadlock
I am facing issues using ffmpeg python to process camera frames. My first approach with process.communicate() worked well, but has latency issues.
process = (
ffmpeg
.input('...
-1
votes
1
answer
112
views
How Do I Get Python To Capture My Screen At The Right Frame Rate
I have this python script that is supposed to record my screen, on mac os.
import cv2
import numpy as np
from PIL import ImageGrab
import subprocess
import time
def record_screen():
# Define the ...
-1
votes
1
answer
60
views
Trying to convert code to be compatible with macOS by not using the .exe version of FFmpeg and FFmprobe. Cant open the .mp4 file when i go to run code
I am attempting to edit some code in python for extracting frames from a video (using parallel processing to make it faster) a friend created that works on windows, so that it can be used on macOS. ...