26,126
questions
-4
votes
0
answers
44
views
Decode a Twitch Stream to raw RGBA data ussing FFMPEG [closed]
As the title states, I would like to take a Twitch stream, say the one at (https://www.twitch.tv/selectfm) and pass the URI to a formatContext for decoding packets in realtime.
How would I go about ...
0
votes
0
answers
11
views
Should I open source my source code when I rebuild ffmpeg and dynamiclly link to my program?
I have a c++ program developed on visual studio 2022, and my program need to work with ffmpeg, I rebuild it and I don't know if there is open source problem.
I rebuild ffmpeg for windows msvc paltform ...
-1
votes
0
answers
25
views
Transcode a video with FFMPEG C API gives error: Could not get pixel format for color format 'yuvj420p' range 'pc'
I am trying to transcode a video with the FFMPEG C API but am getting this error:
[h264_videotoolbox @ 0x7faf92306800] Could not get pixel format for color format 'yuvj420p' range 'pc'.
[...
-1
votes
0
answers
12
views
ffmpeg is lossing quality
I have this in ffluent ffmpeg
const ffmpegPath = require('@ffmpeg-installer/ffmpeg').path;
const ffmpeg = require('fluent-ffmpeg');
ffmpeg.setFfmpegPath(ffmpegPath);
ffmpeg()
.input(...
-1
votes
0
answers
13
views
Concatenate multiple Genrated Output Video files using single command
i am trying to Build a FFMPEG command that accept 4 input Videos and generate the output video with 2x2 Grid also play all those video one after another one. so Archive this I have pass lavfi 4 inputs ...
-1
votes
0
answers
26
views
Frame duration issues when trimming videos in MATLAB/ffmpeg?
I have two videos (A.MOV and B.MOV), that are supposed to be perfectly synced. However, Video A (3708 frames), has 5 more frames than Video B (3703 frames). When I look at the timestamps of these ...
-3
votes
0
answers
11
views
FFmpeg leaves green pixels in a simple video [closed]
I use this command to remove the green screen and overlay another video as background. However, green screen removal leaves green pixels all around a stick figure carton character. My video is a ...
0
votes
1
answer
38
views
FFMPEG - Struggling to find correct input audio codec parameters on macOS
I am trying to read my external stereo microphone with ffmpeg within my Qt Windows+macOs application, but I am struggling to obtain consistent correct input codec parameters on macOs. My findings and ...
-2
votes
0
answers
39
views
ServletOutputStream failed to flush:
I try to convert m3u8 file to WebM using ffmpeg and stream it onto browser.
I want it to play on browser without using any javascript.
Stream video method:
public void streamVideo(OutputStream os ){
...
-1
votes
0
answers
19
views
Multiple live video outputs advice. Live stream/Record/Preview, FFMPEG, Windows, Decklink [closed]
I am looking for advice on how best to achieve multiple live video outputs.
The live source is a Decklink card on Windows. (We have a ffmpeg build working to access the card) We want 4 outputs;
We ...
-4
votes
0
answers
21
views
There is a problem with converting ffmpeg video from hev1 to hvc1
ffmpeg -i in.mp4 -c:v copy -c:a copy -tag:v hvc1 out.mp4
I used ffmpeg to transcode the videos, but some of the transcoded videos were black screens with audio but no visuals.
enter image description ...
-2
votes
0
answers
19
views
How to solve video is choppy when scrolling on android browser?
I am currently doing video scrolly kind of things. I'm using GSAP and Scrolltrigger and sveltekit to play video on scroll. At the beginning of the implementation, the video is very laggy on scroll on ...
-1
votes
0
answers
14
views
How to get language for embedded subtitles in video file using FFMPEG libraries
I have seen lots of examples on how to get the language codes using the command line interface, but how do you get them using the libraries?
0
votes
1
answer
35
views
Python PyAV how to flush to disk regularly
I am using PyAV for encoding a video stream from a camera and saving it to disk. This works in general, but I have one problem left: the file on the disk stays at 0kb regardless of how long i record. ...
-2
votes
0
answers
25
views
Generate MPEG-DASH segments when requested [closed]
Up front disclaimer: this question is almost identical to the one here: Generate single MPEG-Dash segment with ffmpeg but it seems that ffmpeg has updated over time and now the answer provided by ...
1
vote
1
answer
54
views
Video streaming error: Uncaught (in promise) NotSupportedError: Failed to load because no supported source was found
Here is my problem: I have one video src 1080p (on the frontend). On the frontend, I send this video-route to the backend:
const req = async()=>{try{const res = await axios.get('/catalog/item',{...
0
votes
0
answers
77
views
`free(): invalid next size (normal)` after loading some frames of some videos using ffmpeg libs
here is the function:
uint8_t *load_first_frame(const char *file_path, AVFrame **frame)
{
int ret;
AVFormatContext *format_ctx = NULL;
if ((ret = avformat_open_input(&format_ctx, ...
0
votes
0
answers
20
views
How to feed frames one by one and grab decoded frames using LibAV?
I am integrating a third party system where I send a TCP packet to ask e.g. 5 frames from a live CCTV camera stream, and it sends those 5 frames one by one. Each package is h264 encoded frame, wrapped ...
0
votes
0
answers
21
views
Merge audio streams with ffmpeg in nodejs into one stream seamlessly?
I've been working on a music bot for DnD which we are using as our main source of music in Discord.
Discord is not important as it accepts pretty much any stream.
What i want to achieve:I want to have ...
1
vote
0
answers
48
views
how to resolve pixel jittering in javacv generated video
I am trying to generate video using images, where image have some overlays text and png icons. I am using javacv library for this.
Final output video seems pixelated, i don't understand what is it ...
-2
votes
0
answers
34
views
How to reduce latency in WebRTC streaming with ffmpeg [closed]
I have a backend written in Go that captures the screen using ffmpeg and streams it to the frontend via WebRTC. The goal is to reduce the latency in the stream.
For WebRTC, I'm using the pion library, ...
0
votes
0
answers
14
views
FFmpeg can successfully retrieve the RTSP stream, but it cannot print the time_base
I can successfully obtain the RTSP stream and use the av_dump_format function to print the stream information, but I cannot retrieve the time_base. Why is that?
FFmpeg is version: n4.0.6
this is my ...
0
votes
0
answers
21
views
How to Record Video of a Dynamic Div Containing Multiple Media Elements in React Konva?
I'm working on a React application where I need to record a video of a specific div with the class name "layout." This div contains multiple media elements (such as images and videos) that ...
-2
votes
0
answers
53
views
How to merge two audio files and remove their overlap [closed]
I have two mp3 files, there have some overlap. The last few seconds, normally less than 2 second, of the first file are always appear on the first few seconds of the last file.
How can I conbine the ...
-1
votes
0
answers
41
views
Get blur effect inside a drawn box using ass format
I have Nodejs application which generates subtitles file for video editing. The editing is done by ffmpeg. For each word I also generate a backdrop with rounded corners using drawing command. Example ...
0
votes
0
answers
55
views
Find frames in the video that are similar to the static image, to crop the video
I use opencv with ffmpeg to cut the video. Specifically, find the frame in the video that is the same as the picture, then cut the video at the time the video frame is the same as the picture.
I found ...
-1
votes
0
answers
39
views
Convert raw PCM data to OGG format using FFmpeg?
AudioSegment AudioSegment::from_file(const std::string& file_path, const std::string& format, const std::string& codec,
const std::map<std::string, int>& parameters, int ...
0
votes
0
answers
13
views
How does wrap_unicode option work when ffmpeg renders subtitles
This is my complete command, which accepts the wrap_unicode option, but the option is not working
'/usr/local/ffmpeg/bin/ffmpeg' '-y' '-i' 'input.mp4' '-threads' '12' '-vcodec' 'libx264' '-acodec' '...
-1
votes
1
answer
58
views
On the fly video conversion in django during upload
I an making a backend in django rest where user will be uploading videos in multiple formats such as mp4, avi, etc. I want to convert these videos to a single h264 format while storing them but rather ...
-1
votes
0
answers
12
views
first audio lost when using ffmpeg to overlay one mp4 on top of a big mp4
I searched a lot (including chatgtp and google), and tried a lot of methods, not work.
below is my ffmpeg command line on windows 10:
ffmpeg -i video.mp4 -i b-.mp4 -filter_complex "[0:v]setpts=...
3
votes
0
answers
55
views
Unknown encoder 'h264_videotoolbox'
I'm facing an issue with FFmpeg on my iOS app. When I use the mobile-ffmpeg-full-gpl pod, hardware-accelerated video encoding with h264_videotoolbox works perfectly. But, when I try to use a prebuilt ...
0
votes
2
answers
218
views
SPM binary target, additional frameworks not being included
I'm trying to integrate a binaryTarget into a project using Swift Package Manager. The binary comes as a .zip containing the main ffmpegkit.xcframework plus 7 additional .xcframework's that it depends ...
-1
votes
1
answer
39
views
php ffmpeg pipe multicast issue
I have four video in my server. I want to display all of them same page but video tag url is a php page.
Actually it is working. But when i tried to open new tab again index.php then display only 2 ...
-1
votes
0
answers
21
views
execute ffmpeg -version hit error by NodeJS but not with docker
The background is that I am using puppeteer.screencast to record screen. puppeteer.screencast requires you to install ffmpeg as a dependency. I was requested to only install ffmpeg for lambda ...
-1
votes
0
answers
46
views
C++ ffmpeg - export to wav error: Invalid PCM packet, data has size 2 but at least a size of 4 was expected
C++ code:
AudioSegment AudioSegment::from_file(const std::string& file_path, const std::string& format, const std::string& codec,
const std::map<std::string, int>& parameters,...
-1
votes
0
answers
46
views
ffmpeg remote url not working in lambda function
I have created lambda function to trim video.
I run this command:
/opt/bin/ffmpeg -protocol_whitelist file,http,https,tcp,tls -i 'https://source-bucket.s3.amazonaws.com/1.mp4' -ss 5 -t 10 -loglevel 48 ...
0
votes
1
answer
47
views
Error loading FFmpeg: ReferenceError: SharedArrayBuffer is not defined - Angular 18.2.3
Question:
I am working on an Angular project (version 18.2.3) where I use ffmpeg.wasm to trim videos and extract frames. However, when trying to load FFmpeg, I am encountering the following error in ...
0
votes
0
answers
21
views
FFmpeg.AutoGen C# library Can't open Codec G726
I am stuck with FFmpeg.AutoGen G726 Audio codec, it always shows error invalid argument.
Note that I Tried other codecs such as G722, G711 and it is working fine except for G726 codec. I also confirm ...
0
votes
0
answers
30
views
The problem with pydub.AudioSegment.from_file (ffmpeg)
I'm trying to make a normal voice recording discord. When I try to convert an Audio Data object, an error occurs. I've already tried everything I can, I can't solve the problem.
Here is the code, the ...
1
vote
0
answers
40
views
ffmpeg-next potential bug in write_header causes timebase to bet set to Rational(1/15360)
I am trying to encode a video using the ffmpeg_next crate. I got everything working and it successfully creates an output video.
The only problem is that the time_base of my stream is wrongly written ...
0
votes
0
answers
35
views
Audio offset get wrong after some time when streaming audios
I use microsoft-cognitiveservices-speech-sdk (1.38.0) in order to do real time speech to text.
It seems like the offset is right when I send a full audio but it is wrong when I send it cut in a lot of ...
0
votes
1
answer
62
views
ffmpeg change audio encoding and combine audio files
I asked a question about combining linear16 encoded audio files together here - Combine linear16 encoded audio files | PHP
I was suggested to use ffmpeg, I'm new with it, any suggestion how to combine ...
0
votes
0
answers
57
views
why can't I access rtsp camera in python?
I'm trying to access an RTSP camera in Python and get frame information from it.
One of the camera options is RTSP authentication, and when I include it, VLC asks for login information. ('[rtsp @ ] ...
0
votes
0
answers
36
views
Write buffer to ffmpeg stdin and send websocket message after that
I am working on a streaming application in which user can stream videos in real time to my server usig websocket and media recorder. I have written my backend code using fastapi python and I setup a ...
-1
votes
0
answers
27
views
Render a small video with low delay
So I have a problem where I need to be able to render a (3s, 180 frame) video on demand and delay is important. I know that video rendering scales linearly but for some reason when using a threadpool ...
-1
votes
1
answer
48
views
ffmpeg invalid pts <= last "Error submitting frame to the encoder"
I'm using this command to extract keyframes from long videos (full movies).
ffmpeg -i data/full_videos/pleasantville_1998.mp4 -filter:v "select='gt(scene,0.1)',showinfo" -vsync 0 frames/%05d....
-1
votes
0
answers
37
views
FFMpeg 6.1 h265 decoding with grey artifacts
I'm using FFmpeg 6.1 with Delphi 10.3, and when decoding an H.265 MP4 file, I occasionally get gray artifacts. It seems to occur when there is some processing stress.
I’ve extracted the key points of ...
-1
votes
0
answers
28
views
I have use the ffmpeg in my react konva project but it not import correclty?
I use ffmpeg in my react konva project to record video and download it, but when i import it give me error, when i give to to gpt or google it giveme another way of export when i do this one it same ...
0
votes
0
answers
22
views
Java uses FFmpegRecoder to encode frames into H264 streams
I want to obtain the Frame from the video stream, process it, use FFmpegRecoder to encode it into an H264 stream, and transmit it to the front-end. But I found that the AVPacket obtained directly ...
0
votes
1
answer
27
views
React-Native FFmpeg-kit VideoCompress command not working
I'm Using FFmpeg-kit's React-Native Kit
And I want to encode H264 to HEVC.
But the Videotoolbox in ios not working
I use "ffmpeg-kit-react-native": "^6.0.2"
And here is my Code
...