Questions tagged [ffmpeg]

Only questions about programmatic use of the FFmpeg libraries, API, or tools are on topic. Questions about interactive use of the command line tool should be asked on Super User or Video Production. FFmpeg is a free, open source project that produces libraries and programs for handling multimedia data.

Filter by
Sorted by
Tagged with
0 votes
0 answers
9 views

H264 to jpeg FFMPEG decoding/encoding in C

I'm trying to write a script in C to decode H264 frames and then encode them to jpeg/png format, frame-by-frame. I'm going off of the tutorials given in the official decoder and encoder examples, but ...
Vikram Kamath's user avatar
-1 votes
1 answer
19 views

Use ffmpeg to extract/remix audio from/into video

Working on a Mac, I have a bunch of .mkv files that I want to extract the audio from, then use an ML model I have in order to translate them and then mix them back into the video. For the extraction ...
user37143's user avatar
  • 111
-1 votes
1 answer
18 views

Online RTMP radio with Python + FFmpeg + Nginx: unable to have a continuous output stream

Thinking about an application similar to an online radio, I'm trying to transmit a sequence of audio files chosen by the user, where he chooses which file will be played in the sequence, sufficiently ...
Igor Longo's user avatar
0 votes
0 answers
10 views

MoviePy failing to execute because it cannot find ffmpeg on my macOS

I have a macbook pro running sonoma latest version, i have installed ffmpeg with brew and its located at /opt/homebrew/bin/ffmpeg Im trying to run this script but i get the error : from moviepy.editor ...
altiinberiisha's user avatar
0 votes
0 answers
10 views

How can we play 2 videos side by side as per the resolution we provide to the output video and adjust the two input videos position

-> For playing two video side by side as per the output video resolution I provide :- I want output video of resolution 1280x720 so for this. a. First I have trimmed the two video using below ...
Bhavya Nayak's user avatar
0 votes
1 answer
22 views

How can I allow my users to combine audio and video tracks for downloading a youtube video? [closed]

I have a website which, along a bunch a text, has a embedded youtube videos to play. I want to allow my users to also a be able to download those videos. There are too many videos there to store on my ...
Faizan Ahanger's user avatar
-2 votes
0 answers
14 views

How to update this script to generate HLS video with different resolution streams? [closed]

I have the following FFmpeg script: ffmpeg -i video.mp4 -i video.vtt \ -map 0:v -map 0:a:0 -map 1 \ -s:v:0 1080x1920 -c:v:0 h264 -b:v:0 500K \ -c:a:0 copy -c:a:1 copy -c:a:2 copy -c:s webvtt \ -f ...
Andy Z's user avatar
  • 1
-3 votes
0 answers
10 views

"ffmpeg exited with code 1: https://drive.google.com/uc?id=file_id Server returned 403 Forbidden (access denied)\n" [closed]

sometimes I can able to access sometime sometimes it is showing to me this error "ffmpeg exited with code 1: https://drive.google.com/uc?id=file_id Server returned 403 Forbidden (access denied)\n&...
Shihab Ahmed Efty's user avatar
-1 votes
0 answers
10 views

Slow start time in FFmpeg conversion - Seeking advice on optimization and identifying unnecessary flags

I'm currently facing an issue with the startup time of FFmpeg conversion from RTSP stream to DASH stream in my application. The conversion process takes longer to initiate than expected (sometimes ...
Mohamed Dhouib's user avatar
-1 votes
0 answers
24 views

FFMPEG PNG sequence into mkv cause "inflate returned error -3" every 600-800 frames [closed]

I am new to ffmpeg. I try to use it for creating videos from png sequences. I have uncompressed pngs. All of them rgb24 format. But during encoding process I get inflate errors. I compared PNG and ...
sergey9295's user avatar
0 votes
0 answers
8 views

generate mpeg dash segments in specific directory using FFMPEG

I need to generate mpeg dash mpd file and m4s chunks files for streaming which is working perfectly. The issue is the segments parts (.m4s files) generated in the app directory (ignoring the output ....
hegazy's user avatar
  • 99
-2 votes
0 answers
37 views

Is there a way to get the frame number progress from FFMPEG while converting video? [closed]

I would like to run a loop on the output of FFMPEG video conversion and retrieve the current frame number so I can update a progress bar. The output of the process only displays in the console after ...
Jacob's user avatar
  • 5
-1 votes
0 answers
20 views

Shell Script for passing multiple audio sources as arguments to a script that uses ffmpeg for recording video/audio? [duplicate]

I have the following Shell/Bash Script, that records video with audio in my Linux: #!/bin/bash # Command to record audio from one microphone and video from one webcam ffmpeg_cmd="ffmpeg -f ...
Raul Chiarella's user avatar
0 votes
0 answers
22 views

Ffmpeg output stream closed

There is one problem in my code that uses ffmpeg to convert webm videos to mp4 and set duration to 10 seconds, it works well but, sometimes returns "output Stream closed" error. What can be ...
excalibur's user avatar
0 votes
2 answers
48 views

How to retrieve mediainfo from raw data in Flask app?

I'm uploading an audio file via Flask's FileField form and I want to get to its mediainfo. Uploaded audio is available in the form of bytrs. To obtain a path for pydub.utils.mediainfo function, I was ...
Hi-tecX's user avatar
-2 votes
0 answers
22 views

There is a code that I want to make and improve with this code [closed]

crop_command = f'ffmpeg -i "{input_file}" -filter_complex "crop=1080:1080:420:0,scale=1920:1920:flags=lanczos" -acodec aac -strict experimental "{temp_output_file}"' os....
kenan bahadir's user avatar
0 votes
0 answers
27 views

Transcode webcam blob to RTMP using ffmpeg.wasm

I'm trying transcode webcam blob data to a rtmp server from browser by using ffmpeg.wasm . first, i create a MediaStream. const stream = await navigator.mediaDevices.getUserMedia({ ...
hassan moradnezhad's user avatar
-2 votes
0 answers
20 views

ffmpeg conversion from mp4 to mov or webm to mov [closed]

I have a mp4 video with green background. This is being converted to webm with transparent background using ffmpeg. Now i need a mov format of that video with transparent background as well. Command ...
RTB's user avatar
  • 1
0 votes
0 answers
18 views

How to Stream RTP (IP camera) Into React App setup

I am trying to transfer a live broadcast from an IP camera or any other broadcast coming from an RTP/RTSP source to my REACT application. BUT MUST BE LIVE My setup at the moment is: IP Camera -> (...
sharon2469's user avatar
0 votes
0 answers
33 views

What is the recommended method to get metadata from files uploaded with ffmpeg.wasm? [closed]

I'm developing an app using vite react.js and ffmpeg.wasm and I'm having trouble to find out how to get the duration time of a file. I need to writeFile to the FS, read the metadata, get the time ...
Palma Dulce's user avatar
-1 votes
0 answers
32 views

How to use FFprobe on Pycharm? [closed]

Sort of a segue from my other question, is it possible to use ffprobe on Pycharm? I thought I had it imported in, and even so, I have the exe file in my PATH variables, but I keep getting errors. I'm ...
someoneontheglobe's user avatar
0 votes
0 answers
33 views

No such file or directory: 'ffprobe': 'ffprobe'

I'm hoping someone can point me in the right direction. I'm currently trying to build a python GUI that plays clips of sounds from a specified file and allows the user to annotate it. All the research ...
Jack McCumber's user avatar
-2 votes
0 answers
11 views

FFMPEG stream over UDP after port holepunch

i'm trying to stream a video with FFMPEG over UDP. I have holepunched the ports on both clients and communication work, but obviusly if i try to play the stream on same port it say it's already in use....
Matteo Beretta's user avatar
0 votes
1 answer
69 views

Streaming Webcam Over LAN: HTML5 Video Element Not Loading

I am currently working on a project where I aim to stream my webcam over my LAN and read the stream in an HTML5 video element with minimal setup. My setup involves a server (192.168.0.1 dev/video0 -&...
Franck Freiburger's user avatar
-2 votes
0 answers
13 views

ffmpeg adding a lot of time when concatenating files

I'm not sure if this will help anyone else, but I was trying to concatenate some files made in Premiere (problem #1) and ffmpeg kept adding time or changing the timeframe, about an hour for a 37 ...
Jovi Juan's user avatar
-2 votes
1 answer
35 views

Looking for a way to convert image folder to a WEBM video slideshow using FFMPEG

I am trying to create a slideshow video in WEBM format using ffmpeg. I could create a video slideshow in MP4 format using the below command: exec('ffmpeg -r 10 -s 1080x1620 -i images/img%03d.jpeg -...
Sujith's user avatar
  • 1
0 votes
1 answer
34 views

Piping OpenCV raw video frames into FFMpeg results in corrupted output

I have written a python script to open my webcam in OpenCV and convert captured frames to video streams. I have followed some tutorials that basically do these things: Creating a pipe input to FFMpeg ...
Dudad's user avatar
  • 1
-2 votes
0 answers
19 views

FFmpeg - Error submitting a packet to the muxer [closed]

I m having an issue with my self compiled ffmpeg since 2020. here is my ffmpeg comfig [``` built with gcc 11 (Ubuntu 11.4.0-1ubuntu1~22.04) configuration: --enable-gpl --enable-version3 --enable-...
undercash's user avatar
-2 votes
0 answers
36 views

Struggling to make ffmpeg function properly on Azure's app service [closed]

I've developed a backend using Node.js and Express, with certain functionalities relying on ffmpeg. While everything runs smoothly locally, I've encountered challenges after deploying the backend to ...
rickkorsten's user avatar
0 votes
0 answers
28 views

Why does subprocess.run() have unexpected behavior in try else block?

Trying to make a "to mp4" converter function using ffmpeg that is going to convert a file to mp4, delete the original file, and return True or False for specific conditions. But I get some ...
Nikita Savenkov's user avatar
-2 votes
0 answers
29 views

How to animate transparent images using Xfade and ffmpeg

I am trying to making a video using 1 background image and 5 transparent images (all the images are in same dimensions 500x500). Where the 5 transparent images animate for 2 seconds (Slideup, WipeDown,...
RSD's user avatar
  • 51
0 votes
2 answers
69 views

FFmpeg to rotate video if necessary, and overlay png

I am trying to write a script that can accept videos of arbitrary orientation, use FFmpeg to detect the orientation, then overlay a logo in the correct way in the bottom right corner of the screen. ...
reallymemorable's user avatar
-2 votes
0 answers
24 views

ffmpeg splitted output larger than original file [closed]

am trying to split an input audio file into multiple parts of smaller size, while the original file size is 28 MB, the output files are 28MB, 28MB, 14MB. what other parameters should be used in order ...
Exorcismus's user avatar
  • 2,328
-1 votes
1 answer
36 views

How do I make my discord.py bot play a sound effect?

My bot is supposed to be some sort of jeopardy quiz show type of bot. /joinvc makes the bot connect to the call, however, I cant seem to make the bot make noise when its in a vc. Here's some of the ...
Kronik71's user avatar
0 votes
0 answers
45 views

Stuck in installing a voicecloner via Python (module not found)

I use Python 3.11.5 As a great Python n00b I enter this forum because I'm stuck with installing a Voice Cloner (for personal use to do a funny trick for X-mas with my family) Its this tool that i'm ...
Wimmah's user avatar
  • 1
-2 votes
0 answers
29 views

When converting a PNG with transparency to AVIF with FFmpeg, the transparency is lost [closed]

I have the following script that converts all PNGs to AVIF in the current directory. #!/bin/zsh setopt nullglob for file in *.png; do filename="${file%.*}" ffmpeg -i "$file&...
Rodrigo's user avatar
  • 112
0 votes
1 answer
28 views

do uploaded files to lambda persist?

I have a node.js function where users kan upload a video file. The video file is uploaded to an S3-bucket. I have a lambda function which listens to the bucket for every upload. Every video that gets ...
Sam Leurs's user avatar
  • 1,704
-1 votes
0 answers
14 views

Error while converting FLV to MP4 using FFMPEG on Linux [closed]

can someone help me please ? I'm trying to reencode some FLV files to MP4 and some of them are returning an error, the error is: [flv @ 0x5645b9dc59c0] Invalid keyframes object, skipping. [flv @ ...
Senhor Supremo's user avatar
0 votes
0 answers
112 views
+100

Problems with outputting stream format as RTMP via FFmpeg C-API

I am using FFmpeg's C API to push video streams rtmp://.... into an SRS server. The input stream is an MP4 file named juren-30s.mp4. The output stream is also an MP4 file named juren-30s-5.mp4. My ...
dongrixinyu's user avatar
-2 votes
0 answers
25 views

How to convert mpeg-1 to mpeg-2.5 using ffmpeg? [closed]

How to convert mpeg-1 to mpeg-2.5 using ffmpeg? The mpeg-1 file detail: Audio Format : MPEG Audio **Format version : Version 1** Format ...
Charles's user avatar
  • 671
0 votes
0 answers
34 views

I want to take any Audio from a file and encode it as PCM_ALAW. My Example is a .m4a file to .wav file

I have been working on this for a while now while am generally new to ffmpeg library, I have studied it a bit. The challenge I have that at the point of witting to file I get the following exception. &...
Clockman's user avatar
-1 votes
0 answers
26 views

Passing runtime input to ffmpeg to cut video at multiple points [closed]

I need to create a webpage with Form input for cut points (in seconds) as input. The number of cut points may vary every time. Question: How can I pass these inputs to FFmpeg command. Example Case 1: ...
MuthuKumar S's user avatar
-2 votes
0 answers
28 views

ffmpeg errors when playing a playlist - Non monotonous DTS

i have a strange bug in ffmpeg. I am using ffmpeg to stream Twitch VODs and CLIPs to a 24/7 twitch channel. If i stream the files one by one its working. If i am streaming a playlist containing vods ...
Evilmachine's user avatar
0 votes
1 answer
28 views

Frozen video clips when concatenating mp4 videos using ffmpeg via nodje.js fluent-ffmpeg

I'm trying to write a simple js application that takes all video files in a directory and the produce one single video consisting of all the clips combined one after another into one timeline. To test ...
Rasmus Puls's user avatar
  • 3,051
0 votes
1 answer
92 views

Node 18 or Node 20 break ffmpeg (in google cloud functions -> ffprobe was killed with signal SIGSEGV)

Please see below, the code is working on node js 16, but not when upgrading to node 18 or 20. const ffmpeg = require("fluent-ffmpeg"); // Following is inside a .https.onRequest Google Cloud ...
user20206929's user avatar
1 vote
1 answer
37 views

Put text into AVFrame

I use the FFmpeg library and I have an object of AVFrame which uses the format AV_PIX_FMT_YUV420P. I'd like to put a text on such frame in a given location, font size etc. I cannot find a proper API ...
Michal's user avatar
  • 653
0 votes
0 answers
78 views

Getting and decoding video by RTP H264

Parsing RTP H264. WINAPI C. A queue from C++ has been applied, I repent. RTP is generated using FFMPEG with the following command: ffmpeg.exe -f gdigrab -framerate 25 -i desktop -s 853x480 -b:v 120000 ...
AlekseiKraev's user avatar
0 votes
1 answer
32 views

memory leak reading video frames to numpy array using ffmpeg as a python subprocess

I can stream videos frame by frame to an OpenGL Texture2D OK in python (pi3d module, example in pi3d_demos/VideoWalk.py) but I've noticed that it gradually leaks memory. Below is a stripped down ...
paddyg's user avatar
  • 2,183
1 vote
1 answer
27 views

Combine video and audio with moviepy in mobile app

import moviepy.video.io.ffmpeg_tools as mvp def Merge(self,title:str): # Kombiniert die Video und die Audiodatei self.percent.text = "Verarbeiten..." os.rename(f"{self.outpath}/...
GoodGameCrafter's user avatar
0 votes
0 answers
26 views

ffmpeg to concat list of videos without txt

iven been trying different ways to concat the list of videos called videoPaths but it doesnt work so i tried this way but it results in a zero byte file mergeVideos() async { String ...
tee Swift's user avatar

1
2 3 4 5
522