I am using FFmpeg to render videos (concatenating image files with audio and then applying speed and volume filters) to export videos to upload to TikTok. As a result, I must first move the videos to my phone. I do not understand why my phone (S20) will happily play one of the videos (codec information pictured first), but presents an
Tag: ffmpeg
Dynamically created QImage frames to ffmpeg stdin using QThread
I am trying to create video files with ffmpeg using frames dynamically created on a separate thread. While I can create those frames and store them on disk/memory, I’d like to avoid that passage since the amount/size of the frames can be high and many “jobs” could be created with different format or options. But, also importantly, I’d like to
How to delete mp3 file after the bot played it
I am trying to create a music bot and now I want the bot to delete the current playing song after it finished playing. There’s my code: It’s saving the files to a folder called “music_files” with the format videoid.mp3 I noticed that it’s logging something in the cmd when logging.basicConfig(level=logging.INFO) is added to the main.py file under the imports,
Display stream with FFmpeg, python and opencv
Situation : I have a basler camera connected to a raspberry pi, and I am trying to livestream it’s feed with FFmpg to a tcp port in my windows PC in order to monitor whats happening in front of the camera. Things that work : I manage to set up a python script on the raspberry pi which is responsible
ffmpeg command throwing “Invalid duration specification for ss: 00:00:00,000”
ffmpeg -i input.mp4 -ss 00:00:00,000 -to 00:00:03,466 -c:v copy output.mp4 The above is my ffmpeg command which is throwing the error of “Invalid duration specification for ss 00:00:00,000”. I think it is throwing the error because of the timestamp format. It is not taking input of milliseconds. That is why it is not executing the full command. Any idea how
ffmpeg does not recognize used codec in any way
I am using ffmpeg-python to combine video and audio in my program but for one video file I constantly get this error: It just doesn’t recognize it. I know that the codec is av01 I have tried passing it in as the vcodec keyword but nothing would work. I tried going to cmd directly and adding to the ‘analyzeduration’ and
Python ffmpeg won’t accept path, why?
everytime i launch the code and set the correct path it gives me this error, I tried including ffmpeg path, uninstalling and installing the library back but no luck. I’ve also tried using diffrent ways to set the path like putting it directly without saving it to a variable, this is getting me crazy please help me with a solution
Can you insert text from a file in real time with ffmpeg streaming?
I have this code i use to stream a file and place the name of the show of the video at a certain time of the video ( name_of_show ) at the top of the screen, and the bottom of the screen it take the name of the show from video_title.txt and places it on the bottom of the screen.
Trouble with converting webm into mp3 with pydub in python
so basically I want to convert song what I downloaded from youtube in webm and convert to into mp3 when I wanted export song just with song.export(“neco.mp3”) it didn’t work too I have in workfolder ffmpeg.exe and ffprobe.exe here is the code here is the output of the console I think it is something with codec but I have no
FFMPEG concat leaves audio gapes between clips
I’m writing a python script that uses subprocess to invoke FFMPEG, not using pyffmpeg. My script generates a variable number of MP4 files using the AAC audio codec, and concatenates them together using FFMPEG. Here is how I’m constructing each clip: The command I’m using to concatenate them is: I then take that resulting video, and mix a looping audio