25,874 questions
-1
votes
0
answers
15
views
Frame extraction from video is too slow (like CapCut/VN/InShot apps) in Android despite using FFmpeg, MediaCodec, MediaExtractor and OpenCV
I am developing a video editor app for Android and trying to extract frames from videos for timeline preview (like CapCut, VN, InShot apps).
I have already tried multiple approaches but all of them ...
Tooling
1
vote
0
replies
44
views
Compression to AV1 with ffmpeg, enabled --enable-libsvtav1
Ubuntu Mate 24.04, ffmpeg 8.0, 16GB Ram, AMD Ryzen 5 3500U
I use ffmpeg to compress H.264, 50f/ps videos to AV1.
Used parameter : -crf 12 -preset 3 -g 250
The given encoding speedx by ffmpeg : speed=0....
2
votes
1
answer
68
views
Parsing error: Unable to add .ASS to .MP4 using FFMPEG and Powershell
I have an issue with adding an ASS file to MP4 file using FFMPEG in Powershell.
This is my function:
# Function to add ASS subtitles to video
function Add-Subtitles-To-Video {
param ($videoPath, $...
Advice
0
votes
0
replies
82
views
Client-side video crop + audio mux on iOS Safari with HEVC — any viable approach?
I'm building a web app where users upload a video, the app crops the first 60 seconds client-side, extracts audio for server-side AI processing, then muxes the returned audio back into the cropped ...
1
vote
0
answers
164
views
Transcoding WebM from mediarecorder to m3u8 in realtime
I have to transcode recorded WebM media to HLS.
mediaRecorder.ondataavailable = async event => {
const buffer = new Uint8Array(await blob.arrayBuffer());
await ffmpeg.writeFile(`/work/...
5
votes
0
answers
118
views
Why can't rust-lld see symbols in a static build of Libsvtav1?
This is not to Rust-specific; Libsvtav1 built with GCC is not linkable with lld. I am attempting to link a static build of FFmpeg's Libav* libraries for use in a Rust application. I built FFmpeg and ...
0
votes
1
answer
81
views
Discord voice.play(source) doesn't do anything
When I try to play audio from a YouTube URL it doesn't play anything and outputs:
[2026-02-06 22:11:21,663] {player.py:233} INFO - ffmpeg process 7252 successfully terminated with return code of ...
0
votes
1
answer
109
views
Onvif device manager crash [closed]
I'm building a Python-based ONVIF server that streams the desktop using Flask (MJPEG) and FFmpeg (RTSP). The MJPEG stream works fine, and FFmpeg is running, but ONVIF Device Manager (ODM) crashes when ...
Advice
0
votes
5
replies
120
views
How to add more video sizes to FFMPEG HLS script
As a complete beginner with FFMPEG, I've found this script(?) for encoding three sizes of HLS video - it works pretty well, but I want it to output five or six sizes of video. I've been through the ...
Best practices
1
vote
1
replies
78
views
EXR normalize and stretch with ffmpeg process and quality preserve
I’m processing a sequence of OpenEXR frames and I’m seeing what looks like “quality compression” only in one specific pipeline. I suspect this is actually precision loss / quantization (e.g., writing ...
Best practices
0
votes
1
replies
105
views
Using user-defined constant in ffmpeg filtergraph?
In a Windows batch file, is it possible to define a constant when using a filter or when chaining filters? E.g. to pad a video with 15 pixels, I can use:
-filter_complex "[0:v:0] pad= iw+30 : ih+...
Advice
0
votes
1
replies
114
views
Exclude ffmpeg on installation
I use Playwright for recording and playback of the tests, but because of specific constraints, I can't have ffmpeg installed as part of Playwright. I want to find a way to exclude ffmpeg from being ...
0
votes
0
answers
66
views
DTLS handshake fails with "no SRTP profile negotiated" when streaming from ffmpeg (schannel) to aiortc WHIP server
I'm trying to test low-latency video streaming using ffmpeg's WHIP protocol to stream to an aiortc-based Python server. The ICE connection completes successfully, but the DTLS handshake fails with &...
Advice
0
votes
3
replies
67
views
ffmpeg concat images and subtitle caption video length and timestamp incorrect
I have a input.txt files with content
file 'flower-red.jpg'
duration 5
file 'flower-blue.jpg'
duration 5
file 'flower-blue.jpg'
file 'dummy.jpeg'
I am using following command to combine these image ...
-1
votes
1
answer
76
views
FFmpeg doesn't detect small invalid data inputs [closed]
While writing tests for an endpoint that writes input to an FFmpeg process's stdin, I encountered an issue where FFmpeg doesn't respond when I pass small, invalid data (non-media data). It only reacts ...
0
votes
1
answer
162
views
Next.js App Router API Route: @ffmpeg-installer/ffmpeg throws "Module not found" and "server relative imports not implemented" error
I'm trying to convert a WebM video file to MP4 using fluent-ffmpeg and @ffmpeg-installer/ffmpeg in a Next.js 14 API route (using the App Router). The same code worked perfectly in a standalone Node.js ...
Tooling
0
votes
0
replies
53
views
Broadcasting software help BlackMagic decklink
I'm building a broadcasting system to replace a Grass Valley K2 server using BlackMagic DeckLink cards (Recorder and Monitor 4K). I need basic playback and recording functionality for clips. Current ...
2
votes
1
answer
173
views
Libav* encoding to FLAC results in MD5 Signature Mismatch
I am trying to learn how to use the FFmpeg libav* libraries but have encountered an issue when encoding to FLAC audio.
Running FFmpeg 5.1.7
I have copied the transcoding.c example from https://www....
0
votes
0
answers
67
views
Compiling ffmpeg and android.mk
I'm trying to compile ffmpeg for Android, but I'm having a problem.When the file is read, it enters the libavformat directory, but when it reads, for example, the avformat.h file, it has some ...
2
votes
1
answer
152
views
Finding the previous keyframe in a video using Ffmpeg
I want to create a short clip from an existing video using ffmpeg and moviepy, which I have accomplished using this code:
ffmpeg_extract_subclip(inputfile, start, end, targetname=outputfile)
This ...
Advice
0
votes
1
replies
131
views
Is it possible to use random IV for each ts segment when ffmpeg do hls encrypt?
I want to encrypt the hls like this: each segment with different IV (random string)
#EXTM3U
#EXT-X-VERSION:3
#EXT-X-MEDIA-SEQUENCE:0
#EXT-X-ALLOW-CACHE:YES
#EXT-X-TARGETDURATION:11
#EXT-X-KEY:METHOD=...
0
votes
0
answers
235
views
avcodec_send_frame constantly returns -22
I am trying to write a WAV-to-AAC encoder using ffmpeg/libavcodec. Finding the encoder, setting up the context and feeding data into the frame all work, but once it's time to avcodec_send_frame() I ...
4
votes
1
answer
366
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 ...
11
votes
4
answers
826
views
How to correctly pass a filename with a single quote to ffmpeg's subtitles filter in Python?
I'm writing a Python script using subprocess to hardcode subtitles onto a video. My code builds a complex filter graph for ffmpeg's -vf argument, which includes burning in multiple layers of styled ...
1
vote
0
answers
119
views
C# WinUI3 Is it possible to use ffmpeg to decode using hardware and then render using win2d?
I'm using FFmpeg.AutoGen and Microsoft.Graphics.Win2D in C# to decode and render from an H264 Frame byte[] event. I've currently achieved smooth AirPlay screen mirroring using CanvasAnimatedControl ...
0
votes
2
answers
93
views
Why does ffmpeg not produce data in a NodeJS child_process?
I'm developing a suite of NodeJS-based tools that accepts a real-time audio pipeline from a Websocket connection (Webaudio API format), resamples the audio, and sends it along to downstream services. ...
1
vote
2
answers
149
views
Can't get a "ffmpeg_g" file during making a "static" ffmpeg
Currently I'm trying to get a static-linked ffmpeg from source rpi-ffmpeg git.
It's a Raspberry Pi oriented fork of original ffmpeg. And my working environment is RaspiOS (port of Debian "...
0
votes
1
answer
67
views
Problem in compiling c++ codes including FFmpeg libraries using em++ into WebAssembly
When I try to compile FFmpeg to WebAssebly I got wasm-ld-13: error: unknown file type: demux.o, I configure and install FFmpeg (ffmpeg-8.0) using:
emconfigure ./configure \
--prefix=$(pwd)/installed ...
1
vote
0
answers
89
views
PHP signed video URL with HMAC works initially but fails with 500 error after multiple downloads
I have a video streaming site, and I want to add an expire time and HMAC hash to my download/stream URLs.
I’m using the following function to generate signed URLs:
function generate_signed_url($...
0
votes
1
answer
86
views
Bash script having custom functions not running under systemd service [closed]
I have this script to get images from a webcam & process them via RKNN NPU
#!/bin/bash
# Define the temporary directory for images
TEMP_DIR="/media/32GB/pics"
# Define the resize/...
2
votes
2
answers
141
views
Why does ffmpeg command work in terminal but not subprocess.call
I reviewed the "similar questions", but those seem to refer to using the full path for ffmpeg to ensure using the same version, which I am already doing so posting my question.
I am using a ...
0
votes
1
answer
130
views
Can not add tmcd stream using libavcodec to replicate behavior of ffmpeg -timecode option
I'm trying to replicate option of command line ffmpeg -timecode in my C/C++ code. For some reasons the tcmd stream is not written to the output file. However the av_dump_format shows it in run time
...
1
vote
1
answer
223
views
Write EPIPE after upgrade Node.js
I am using this code for detecting audio replay gain. It was working well with Node.js 16, but after upgrading to Node.js 22, it started crashing a few times in an hour with this error:
write EPIPE
...
0
votes
0
answers
186
views
FFmpeg-wasm unpredictable errors with next js
I use ffmpeg-wasm in next-js.
Whenever I execute an ffmpeg command it has a chance that it throws a runtime error "memory access out of bounds". In this case I created a page that has an ...
0
votes
0
answers
134
views
Continuously stream audio from .m3u8 file between FFmpeg processes
My webserver streams audio using HLS. I'm using a Python script to create an FFmpeg process that takes a random MP3 file and segments it so it can be delivered by the webserver. My issue occurs when ...
0
votes
1
answer
100
views
Can I use t with drawbox to simulate a playhead over a waveform in a generated video?
I want to simulate a playhead moving over a waveform, like when playing a track in an audio editor. As far as I understand, I can generate this effect if I have both the audio file and an image of the ...
-1
votes
1
answer
871
views
FFmpeg WASM Compilation with Hardware-Accelerated H.264/HEVC Decoding
I'm working on a media processing SDK with a substantial C++ codebase that currently uses FFmpeg for video decoding on native platforms (Windows/Linux). I need to port this to browsers while ...
1
vote
0
answers
33
views
exe file not executing from deployed ASP.NET MVC app in TAS (Tanzu /PCF)
I am facing an issue for my ASP.NET MVC web application on .NET 4 being deployed to TAS.
I am trying to do image compression using ffmpeg.exe.
While it is working on my local machine, I get an "...
1
vote
0
answers
291
views
"Could not find com.arthenica:ffmpeg-kit-https:6.0-2" after ffmpeg_kit_flutter deprecation
I am at latest flutter 3.32.4
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':ffmpeg_kit_flutter:compileDebugJavaWithJavac'.
> Could not resolve all files ...
0
votes
1
answer
252
views
ValueError: No valid stream found in input file. Is -1 of the desired media type?
While using torchcodec with the following code
import torchcodec
file_path = "/path/to/episode_000000.mp4"
x = torchcodec.decoders.VideoDecoder(file_path, seek_mode="approximate")
...
0
votes
1
answer
159
views
How to install pytorch and opencv using a fixed conda channel order?
Conda creates a pristine environment, configures a fixed channel order, and then starts installing pytorch torchvisioni pytorch-cuda and opencv, and it prompts for dependency conflicts. Do I have to ...
0
votes
0
answers
81
views
How to add a fake microphone to android emulator running on linux headless
Trying to add a microphone to the android emulator running on Linux headless. Host as no microphone so I need to create fake one and simulate playing some random music for my android test.
In emulator ...
5
votes
1
answer
137
views
App Store Submission Fails Due to Unsupported Architectures and Invalid Segment Alignment [closed]
I’m using ffmpegkit in my iOS app, but when I submit the app to the App Store, I get these errors:
Validation failed
Unsupported Architectures. The executable for MyApp.app/Frameworks/ffmpegkit....
4
votes
0
answers
156
views
Safari sends excessive HTTP range requests during HTML5 MOV playback
I am currently developing a web application based on React and Next.js, and I use the react-player library to play user-uploaded videos stored on AWS S3. The supported upload video formats are mp4, ...
-1
votes
2
answers
385
views
Real time HLS editing with FFmpeg filter_complex without re-encoding full stream
I'm new to FFmpeg and working on a lightweight video editor for HLS streams that allows cutting and trimming without re-encoding the entire video. I'm using FFmpeg to only process the segments that ...
-1
votes
1
answer
270
views
How to dynamically overlay images with ffmpeg
As a part of a bigger project, I'm trying to stream a live feed using ffmpeg through RTSP while also dynamically changing subtitles depending on the situation.
As of now, I'm able to live stream with ...
0
votes
0
answers
71
views
Why are rectangular boxes ([]) showing instead of text in burned subtitles when using ffmpeg/MoviePy on Google Colab?
I'm working on a Python script that adds subtitles to a video using MoviePy and burns/hardcodes them directly onto the video. The subtitles contain Hindi text, and I’ve specified a custom font that ...
0
votes
1
answer
240
views
ffmpeg how to set max_num_reorder_frames H264
Anyone know how can I set max_num_reorder_frames to 0 when I am encoding H264 video ?
You can find in the docs as uint8_t H264RawVUI::bitstream_restriction_flag
PS. Based on the discussion in the ...
-1
votes
2
answers
648
views
Flutter ffmpeg_kit_flutter_new can't build Android app in any version
I can't build my project on Android ( on Ios it works and the project itself without ffmpeg_kit_flutter_new builds without problems )
This is the error i obtain:
/GeneratedPluginRegistrant.java:51: ...
0
votes
0
answers
44
views
Apply multiple text filters at once and burn into video for captioning without re-encoding, and fix error [ffmpeg-python wrapper]
Is there any way to burn text into a video without re-encoding? I ask this because the re-encoding process goes at around 0.1x speed on my device when writing to WEBM. Alternatively, if there is a ...