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.
ffmpeg
26,118
questions
0
votes
1
answer
23
views
FFmpeg C demo generates "Could not update timestamps for skipped samples" warning
When I run my demo code I get these warnings when testing it on a webm video:
[opus @ 0x5ec0fc1b4580] Could not update timestamps for skipped samples.
[opus @ 0x5ec0fc1b4580] Could not update ...
-2
votes
0
answers
11
views
FFmpeg makes multipile HTTP requests before starting conversion
Is there a way to make FFmpeg send only one HTTP request? My HTTP page is dynamic so FFmpeg just fails to load the video.
I expected it to do a HTTP request once, and load the video normally. It just ...
0
votes
0
answers
14
views
FFmpeg Could not write header (incorrect codec parameters ?): Invalid data found when processing input
I was trying to add a subtitle to in.mkv, but I got an error. If I add the subtitle to another mkv file, it works fine, so I'm sure the problem is in in.mkv.
And I try the following command:
> ...
0
votes
0
answers
10
views
Error initializing FFmpegKit: "TypeError: Cannot read property 'getLogLevel' of null" in React Native
I'm developing a React Native application where I need to process videos using the ffmpeg-kit-react-native library. However, I'm encountering an issue during the initialization of FFmpegKitConfig. The ...
-3
votes
1
answer
36
views
When extracting a part of a video with ffmpeg, without reencoding, the output is choppy
I extract the part 00:02:00.000 to 00:03:30.000 of a video with ffmpeg:
ffmpeg -i input.mp4 -ss 120 -t 90 -vcodec copy -acodec copy output.mp4
It works but the output video is jerky/choppy, i.e. not ...
0
votes
1
answer
13
views
Split a video with ffmpeg, without reencoding, at timestamps given in a txt file
Let's say we have a video input.mp4, and a file split.csv containing:
start;end;name
00:00:27.132;00:07:42:422;"Part A.mp4"
00:07:48.400;00:17:17.921;"Part B.mp4"
(or I could ...
0
votes
0
answers
37
views
NodeJS - efficiently and correctly convert from raw PCM to WAV at scale (without FFMPEG?)
I have a stream of raw PCM buffers I need to convert to playable WAV buffers.
@ffmpeg.wasm can convert an individual buffer in the stream well, but it's limited to executing 1 command at a time, so it ...
-1
votes
0
answers
14
views
Cropping? a Video with ffmpeg
I want to build a script that downloads a video from youtube, and then place that video on a canvas with the aspect ratio of 1080px wide and 1920px high.
Because youtube video have an aspect ratio of ...
-2
votes
0
answers
24
views
Streaming raw yuv as jpeg2000 over a network [closed]
Is there a mechanism to stream video over a network with video as jpeg2000 coded images? I tried to mux jpeg2000 video with aac audio in ffmpeg into mpegts, but this fails. As I understand ffmpeg ...
-2
votes
0
answers
27
views
How to merge multiple videos end-to-end with yt-dlp or ffmpeg [closed]
We want to download a bunch of small sections of videos then stitch them all together into one big video. How would we go about this? Is there a way to bulk-stitch together videos from a particular ...
2
votes
0
answers
10
views
Problem opening xvid264 with avcodec_alloc_context(NULL)
I want to multiplex audio and video together using the ffmpeg encoding library with xvid264rgb codec. I can open the codec when I create the context specifying that codec, but not if I use NULL for ...
0
votes
0
answers
28
views
FFMPEG in Node.js: Conversion Failed
I have a small node.js web app. I use like this in a get request:
app.get('/api/voice/:gender/:voice/:pitch', function(req, res){
if(req.params.pitch == "1" || req.params.pitch == &...
-4
votes
0
answers
13
views
about ffmpeg option atomic_writing used in segment output [closed]
I made a ffmpeg command like this:
"ffmpeg -y -i ./test.mp4 -ar 16000 -ac 1 -acodec pcm_s16le -f segment -segment_format s16le -segment_time 5 -vn -copyts -frame_pts true -atomic_writing true ./...
0
votes
0
answers
33
views
Encoding PNG to MP4 using FFMPEG.js
I'm attempting to convert a series of base64 encoded PNG frames (captured from a canvas) to an MP4 video using FFMPEG.js but seem to be running into following error on attempting to run the conversion ...
0
votes
0
answers
20
views
How to add subtitles using FFmpeg-kit?
I'm running a flutter app with Ffmpeg-kit package to burn a subtitle on a video. i have a words list with the timings and map that to generate an srt and ass file. but when executing this tho it didn'...
-1
votes
0
answers
44
views
Low latency video streaming over local network using MediaMTX [closed]
I'm using OBS with MediaMTX to stream content to less than 5 clients within local network. All devices are capable of H265 decoding. However I am having issues with latency. RTMP/RTSP/HLS or WebRTC no ...
0
votes
0
answers
35
views
How to initialize FFmpeg in .NET MAUI-Windows
I have installed the bin using winget install "FFmpeg (Shared)" on Windows 11 22631.3810. it installs successfully but when running FFmpegInit.Initialise() I get System.NotSupportedException:...
0
votes
1
answer
19
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. ...
-1
votes
0
answers
24
views
Is it possible to "stretch" audio in the frequency domain?
We would like to make quite similar frequencies better decernible for further AI-analysis. Because of that, we would like to stretch the audio in the frequency domain. This means that instead of ...
0
votes
2
answers
34
views
Streaming an Updating Folder of Images with FFmpeg Without Restarting the Script
I'm working on a project where I need to stream a series of images stored in a folder using FFmpeg.
My current command looks like this:
ffmpeg -stream_loop -1 -f image2 -framerate 5 -i "C:\Images\...
-2
votes
0
answers
41
views
Media-players show longest duration of multi-track MP4 files from FFmpeg [closed]
I need to merge two videos into one using ffmpeg. The resulting video should have two video tracks and one audio track, with the audio track taken from the longer video.
When playing the merged video ...
0
votes
0
answers
17
views
How to extract audio from video with ffmpegKit in flutter
I want to extract audio from video with this method:
Future<Audio> extractAudio(Video video, String formatAudioByUser) async {
final pathAudio = video.pathIn;
FFmpegKit.execute(
...
0
votes
0
answers
19
views
How to display transparent GIFs using AutoHotkey script when pressing CapsLock?
I am trying to create a script in which if you press the capslock key a gif image appears on the screen, but the gif image appears with a solid black background, it is not transparent, what am I doing ...
-2
votes
0
answers
17
views
Audio Lag Issue in Long-term FFmpeg Live Streaming with x11grab and Pulse
I am currently working on a live streaming project where I use FFmpeg with x11grab and PulseAudio to stream headlessly from a Linux server to an RTMP endpoint. While the setup generally works well, I ...
-2
votes
0
answers
27
views
ffmpeg 180 degree panoramic fisheye image to equirectangular / flat
I am trying to get my Hikvision Panovu image of a sportsfield to look like a standard camera image, similar to what would be seen with a Veo solution / traditional camera.
This is what the image would ...
0
votes
0
answers
20
views
Converting konvajs state to Advanced SubStation Alpha (ASS) format for subtitles
I am building a subtitle editor using react.js. I plan to use konvajs to build the styling feature of editor like rotate subtitles, change size etc. How do I convert resultant konva state to ass ...
0
votes
1
answer
41
views
Using SDL2 Render Pixels to create video using ffmpeg
I made a small animation using SDL2 and I want to use ffmpeg to convert it to an h264 encoded video. I'm getting the texture RGBA pixels using SDL_RenderReadPixels and sending them to ffmpeg for ...
-2
votes
2
answers
66
views
Can't view and record graph at the same time using FFMpegWriter [closed]
So this code is used for graphing and logging sensor data coming from bluetooth ports. I wanted to add an function that will record the graph in mp4 format. In order to achieve this I used ...
-2
votes
0
answers
20
views
Cutting video with FFMPEG produces corrupted video file [closed]
Im using FFmpeg library for trimming videos. The problem comes when I try to get a thumbnail from that video using MediaMetadataRetriever - getFrameAtTime(); and on my logcat I can see this error - ...
-1
votes
0
answers
27
views
How to display a stream of mdat/moof boxes in VLC? [closed]
I am trying to display a real-time video stream in VLC. The snag is that the real-time video that is being received is a stream of just the mdat and moof boxes of a fragmented MP4 file that is being ...
-2
votes
0
answers
19
views
FFmpeg command optimization [closed]
I am trying to create a mp4 from an audio, couple of images and subtitle, I am using following command for this
ffmpeg -framerate 0.39 -i img/Apollo%d.jpeg -i Apollo.wav -vf "fps=60,scale=8000:-1,...
1
vote
3
answers
75
views
How do I make sure that something is in Path on Github Actions?
I'm having trouble with my GitHub Action to test a Python module on Windows. To test the module, I need to install ffmpeg and make sure that it's on Path but no matter what I do in the workflow file ...
-1
votes
0
answers
34
views
Need help accessing the key when trying to decrypt .ts files via ffmpeg
I have downloaded all the individual .ts files and the corresponding m3u8 file from a VOD and I now want to merge them together into a single watchable file.
The problem is, that the .ts files are ...
-1
votes
0
answers
16
views
How to add a subtitle stream with date/time (or timestamp) in ffmpeg
How can I add an input source to ffmpeg so I can add the current datetime/timestamp/ISO-time as a seperate subtitle stream? E.g. something like this:
ffmpeg -i video.mp4 -i audio.mp3 -i <YYYY-MM-...
0
votes
1
answer
29
views
How to add a subtitle to a video using ffmpeg in Flutter?
I'm using flutter_ffmpeg_kit_full package to add subtitles to my video. First I loop through all words and create an srt file and stored it in temp folder:
Future<String> _createSrtFile() async ...
-1
votes
0
answers
52
views
Resuming ffmpeg hls trancoding from an existing segment
I'm setting up a service to transcode input videos, generally MP4, for HLS with MPEG-TS as the container format. This currently works fine when starting from scratch, but I would like the transcode to ...
0
votes
0
answers
27
views
What is the Relationship Between RMS Level and Amplitude?
I have an Android recorder project, and I'm trying to implement a waveform display for recording and playing audio.
During recording, I chose to use mediaRecorder.maxAmplitude to get the data I need ...
0
votes
1
answer
26
views
fluent-ffmpeg vstack passthrough stream of buffered images
I am all day stuck at this issue. I have an array of buffered images and i need a script to concat them on top of each other.
I tried to do this using the sharp package, but since I am already using ...
-3
votes
1
answer
62
views
FFmpeg: To trim a video using 'trim' and specify time using HH:MM:SS format [closed]
FFmpeg 7.0.1. I want to understand whether it is possible to trim a video using trim and to specify start and end time using the HH:MM:SS format instead of just seconds.
That is, the following command ...
0
votes
0
answers
43
views
How do you run ffmpeg from Java, without crashing?
I try running ffmpeg from Java, and for a couple of moments everything is working fine. I want ffmpeg to record my screen, and split the recording into small clips. The command is working fine from ...
0
votes
0
answers
16
views
How can I export a video with a widget overlay in a Flutter app?
I'm developing a Flutter app for a embedding caption on a videos that need to be export as video file after processing it. I'm utilizing the flutter_ffmpeg_kit package. However, I'm having trouble ...
-3
votes
1
answer
69
views
Zsh script using formatted date string in FFMPEG command [closed]
In my zsh script, I am receiving a string that represents a Unix epoch, like:
myTimestamp="1719742786"
I want to change that date into a formatted string, and then store it in a variable so ...
-2
votes
0
answers
27
views
ffmpeg missing "drawtext" filter for linux arm64
I needa build to run within AWS Lambda Arm64 that enables me to use the "drawtext" filter.
I guess I can build it myself in the docker file but I was wondering if there's a static build for ...
-1
votes
0
answers
25
views
upload and stream ffmpeg stream chunk and mpd file in s3
i want to make ann web app where i can upload a video. After uploading video its should be compress by ffmpeg after that i want to keep the data on aws S3.
I can compress by ffmpeg. but i have no idea ...
0
votes
0
answers
55
views
Error Running MoviePy in a Frozen Python Application with cx_Freeze
I'm encountering a persistent issue when trying to run a Python application that uses moviepy, which has been frozen using cx_Freeze. The application throws an error related to ffmpeg when I attempt ...
-1
votes
0
answers
28
views
Filter complex with split source and multiple overlays: Can my code be simplified?
I've created a complex split filter that splits a single 1372 x 1372 input source into multiple uniquely shaped and cropped slices (s1, s2, etc), and overlays them on a padded background plate into a ...
-1
votes
0
answers
70
views
RTSP to HLS via FFMPEG, latency issues
The following are all the steps that I took to render a RTSP stream in my web app:
How to display RTSP stream in browser using HLS
Situation and Problem
You have an RTSP stream that you want to ...
1
vote
1
answer
62
views
FFMPEG MKV -> MP4 Batch Conversion
I'm trying to write a program that lets me convert a series of .mkv files with subtitle files into .mp4 files with the subs hardcoded.
Right now, the script I use is
ffmpeg -i input.mkv -vf subtitles=...
0
votes
0
answers
40
views
While using skvideo.io.FFmpegReader and skvideo.io.FFmpegWriter for video throughput the input video and output video length differ
I have an h264 encoded mp4 video of about 27.5 minutes length and I am trying to create a copy of the video which excludes the first 5 frames. I am using scikit-video and ffmpeg in python for this ...
-1
votes
1
answer
51
views
Cross compiling Rust app depending on ffmpeg fails
Trying to cross compile an application depending on ffmpeg-next from Linux to Windows. It works well on Linux but when using cross to compile for Windows I get this error
error: failed to run custom ...