Skip to main content

Questions tagged [ffmpeg]

Media tool with support for multiple codecs, filters, and containers. Include your actual command and the complete console output when asking questions involving FFmpeg tools. An easy way to do this is by adding `-report` to your command and pasting the contents of the logfile generated. For help with CLI use only of ff* binaries - ffmpeg, ffprobe, ffplay. For help with API usage, post on Stack Overflow.

Filter by
Sorted by
Tagged with
2 votes
1 answer
228 views

QSV hardware acceleration does not work with ffmpeg 7.0

I've been using Intel Quick Sync (QSV) hardware acceleration for several years with ffmpeg for decoding, encoding, and filtering. I've been using only 4.4-full_build-www.gyan.dev on Windows 7 and 10 ...
Bart Lederman's user avatar
1 vote
0 answers
36 views

ffmpeg enables subtitles even when copying a video

I'm trying to work out why the subtitles are enabled after copying a video. Given the following: ffmpeg -i "in.mkv" -c:v copy -c:a copy -c:s copy -map_metadata 0 -map 0 out.mkv Then out.mkv ...
Tom B's user avatar
  • 111
0 votes
0 answers
61 views

Can't stream two rtmp streams simultaneously on nginx server

I'm having a problem streaming two streams at the same time using nginx/1.22.1 and ffmpeg on raspberrypi 6.6.20+rpt-rpi-v8 #1 SMP PREEMPT Debian 1:6.6.20-1+rpt1 (2024-03-07) aarch64 GNU/Linux nginx....
Dinamo's user avatar
  • 1
1 vote
0 answers
36 views

Can anyone help e with FFMPEG on Centos 7

I have a script that requires FFMPEG but I cant seem to get it working on my Centos 7 server the script gives the following error: ffmpeg version 2.8.15 Copyright (c) 2000-2018 the FFmpeg developers ...
Nick Eyre's user avatar
0 votes
0 answers
64 views

How to run ffmpeg with hardware encoding when using --filter_complex to hardcode subtitles?

I'm converting MKV files and hardcoding subtitles into MP4 format. I have over 100 files and want to speed the process up by enabling hardware encoding. I am able to hardware encode without hardcoding ...
user2006141's user avatar
0 votes
0 answers
64 views

Ffmpeg - Generate loudnorm conversion log file

I have a bat file that reads several audio files in the "µudios LUFS" folder and performs LUFS normalization by copying the files to the "Normalized µudios Lufs" folder. I'm trying ...
Clamarc's user avatar
  • 663
0 votes
0 answers
21 views

Expected speedup comparing x_videotoolbox vs x_libx encoding

I just got a new M3 pro mac and it is indeed much quicker than my previous intel based machine. However, I was expecting more of a speedup in doing h264/hevc_toolbox encoding compared to libx encoding....
Misha's user avatar
  • 225
-1 votes
2 answers
111 views

Install file doesnt work when installing ffmpeg

How to install ffmpeg on pc? It seems really complicated. I downloaded and extracted the files and then clicked on install.md but nothing.. Checked few places but couldn't understand the procedure. Do ...
upstream's user avatar
  • 107
0 votes
0 answers
45 views

How to merge videos without overlap maintaining ratio 16:9 using ffmpeg

I have 2 videos in format 16:9. I need to merge together without any overlap and I need to keep final ratio 16:9 as well. One video need to be large (covering 80 % or more) and other has to be smaller ...
Petr Glaser's user avatar
0 votes
1 answer
82 views

ffmpeg creates out-of-sync and glitchy audio when using concatenate filter to cut segments of video

I have created an artificial test case where I want to have red + middle C, green + middle D, and blue + middle E each for 2.5 seconds, cut down to each for 1.5 seconds. This is a simplification of ...
grendell's user avatar
0 votes
0 answers
86 views

FFMPEG: RTSP Client sending "Keep Alive" packets back to camera

I am using the FFMPEG Libraries (Windows Build) to connect and stream RTSP Streams from IP Cameras, this works with no issues on Dahua, Hikvision, etc. Pseudo code : avformat_open_input (...) .... .......
adder's user avatar
  • 1
0 votes
0 answers
58 views

Making Visually Lossless GIFs and Animated WEBPs

Which software can make the best visually lossless gifs out of videos? Also, how do I use rgb and/or rgba when making visually lossless animated WEBP files?
Calvin Jack's user avatar
0 votes
0 answers
212 views

Connection reset when streaming rtmp from ffmpeg to nginx

I'm trying to stream video file to nginx rtmp server with ffmpeg, I've posted the exact commands/configuration i've used, but i get Connection reset by peer/Broken pipe errors from ffmpeg I'm running ...
Dinamo's user avatar
  • 1
0 votes
0 answers
117 views

FFMPEG unexpectedly stops any stream

I am trying to stream my webcams (32+ pcs) with ffmpeg -hide_banner -y -v verbose -rtsp_transport tcp -fflags +genpts -i "{SOME RTSP URL}" -c:v copy -an -threads auto -f hls -hls_time 3 ...
Matew Sticker's user avatar
0 votes
1 answer
48 views

ffmpeg: Unrecognized option 'alpha_quality'

I want to make transparent videos work in Safari, which doesn't support WebM for this purpose but only H265 with alpha transparency. According to this post, I used Shutter Encoder, but only some of ...
László Monda's user avatar
1 vote
1 answer
159 views

How to fix MP4 file whose recording was terminated by TERM signal?

I want to be able to listen to the content already recorded. The file contains Opus stream in MP4 container and it is recorded from Internet using ffmpeg (4.4.2). $ ffprobe -hide_banner file.m4a [mov,...
jarno's user avatar
  • 353
1 vote
1 answer
29 views

Seeking with ss dont seem to work in combination with VideoFilter

In FFMPEG I am using the following command to extract frames from a video: ffmpeg -ss "00:47:13" -i "Video.webm" -vf select="gte(n, 90000)" -vframes 5000 "frames_%d....
Snickbrack's user avatar
0 votes
0 answers
31 views

Error initializing filters when trying to use arnndn

I’m trying to do noise reduction on an audio clip using the arnndn filter from ffmpeg: ffmpeg -i audio.aac -af 'arnndn=m=mp.rnnn' audio_out.aac but I keep getting the error [AVFilterGraph @ ...
Sulli's user avatar
  • 137
1 vote
0 answers
38 views

How to add texts at specified timestamps (FFmpeg)

I have a video (input.mp4) file showing a series of cashier transactions. I would like to add a counter showing cumulative number of purchases. I was able to add a running counter doing this: ffmpeg -...
sleepysleeps's user avatar
0 votes
1 answer
72 views

Ffmpeg - How to remove only one tag from the mp3 track output?

I need to remove the lyrics tag from my output track. Track information: Stream mapping: Stream #0:1 -> #0:0 (copy) Stream #0:0 -> #0:1 (mp3 (mp3float) -> mp3 (libmp3lame)) Output #0, ...
Clamarc's user avatar
  • 663
1 vote
0 answers
103 views

How to preserve contrast/highlights when converting ProRes HDR 10-bit to SDR using hevc_videotoolbox?

I'm trying to convert a 4K HDR 10-bit video clip to BT.709, preserving as much color as possible while allowing the clip to be played where HDR is not supported. With the command below, the output is ...
jslp's user avatar
  • 21
0 votes
0 answers
72 views

how to use ffmpeg to small size file .ts

How do I ensure that .ts files are no larger than 1024Kbps..? I use this code ffmpeg -i https://bitmovin-a.akamaihd.net/content/MI20192708/master.m3u8 -c:v libx264 -preset medium -crf 23 -c:a aac -b:a ...
horasjey's user avatar
1 vote
0 answers
99 views

Is there a way to reduce the initial startup time for FFmpeg when muxing subtitles?

When I run the FFmpeg command: ./ffmpeg.exe -i video.mkv -map 0:V -map 0:a:0 -c:a copy -c:v copy -f mp4 -movflags frag_keyframe+faststart -strict unofficial file.mp4 It starts almost immediately, ...
SubJunk's user avatar
  • 121
1 vote
0 answers
58 views

Why the video is like this after ffmpeg save RTSP stream to MP4 file?

I use ffmpeg to save an IPcam RTSP to a MP4 file, but the video have half green or gray blocks, here is the parameter: ffmpeg -i "rtsp://192.168.0.37/live/1" -s 1920x1080 -filter:v "fps=...
UncleKing's user avatar
1 vote
1 answer
44 views

Issues Generating .ism and .ismc Files from .ismv with ffmpeg on Windows

I'm attempting to generate .ism and .ismc files for a .ismv file using ffmpeg on Windows. However, when I run the command: ffmpeg.exe ismindex -n myvideo myvideo.ismv I consistently encounter the ...
Panzer Ihnen's user avatar
0 votes
0 answers
65 views

Flutter error in Ffmpeg, "Unhandled Exception: ProcessException: No such file or directory" in macOS desktop version

I'm trying video trim video using ffmpeg, for macOS desktop application. I have downloaded ffmpeg from here for macOS. Here is my code String mainPath = 'Users/apple/Workspace/User/2024/Project/...
pratik vekariya's user avatar
1 vote
1 answer
88 views

FFMPeg: Rotate Image on centre of image

Im trying to overlay an image on at a position X,Y of video and then rotate it an arbitrary angle where x,y = 150,100 This however does not work as expected. Below is the command I'm using. ffmpeg -i ...
Aneesh's user avatar
  • 115
0 votes
0 answers
92 views

How do I write unique images to each video frames?

There are unique images for each frame of a video and I am trying to use ffmpeg to overlay the images back to source video to generate same source video metadata with overlayed image. ffmpeg -i input....
Zuerst's user avatar
  • 101
1 vote
0 answers
56 views

Why is the total time is off when combining MP3s with FFmpeg? [closed]

I have over a 1.5TB of audio books about 1/2 are MP3s. I am combing MP3s and first I check the bit rate to be the all the same. Then I run and MP3 checker for file errors. I have used multiple program ...
Pentagrid's user avatar
0 votes
0 answers
163 views

Ffmpeg out of memory issues with filter_complex_script

I’m trying to do a "moving crop" on a video with ffmpeg, following this question: https://stackoverflow.com/questions/78314831/ffmpeg-dynamic-cropping-using-sendcmd-correct-syntax I’m ...
Sulli's user avatar
  • 137
1 vote
0 answers
46 views

Issues with FFmpeg in converting linear light bayer image

I'm having trouble using ffmpeg to convert a raw video stream embedded in a SER container to individual images using: ffmpeg -i my.ser frames_%03d.fits The data in the stream is encoded as ...
Eyecon's user avatar
  • 11
0 votes
0 answers
999 views

How to convert heic format to jpeg format

The ffmpeg master branch already supports the heic format. How do I pass parameters using the ffmpeg command to convert heic images to jpeg images of other resolutions? ffmpeg -i test.heic output.jpg, ...
zejia lin's user avatar
0 votes
2 answers
79 views

Creation of black half size frame in the middle of a split video stream results in an FFmpeg error

The error was raised against the creation of black half size frame in the middle of a split video stream. The purpose of this script is to shift the dual fisheye images up by 20 pixels. This file ...
CANJMP's user avatar
  • 23
1 vote
2 answers
146 views

FFMpeg: How to get the real return value in bash

I've always used ffmpeg via a cmd-script and I always could check the %ERRORLEVEL% which was always '0' on success or '!0' if an error occured. I'm trying to recode my cmd-scripts in bash (using msys2 ...
lhksoft's user avatar
  • 13
0 votes
0 answers
191 views

Multithreading in ffmpeg with -f rawvideo

The newly released verion 7.0 of ffmpeg has greatly improved multithreading support for transcoding on the commandline. (https://ffmpeg.org/download.html#release_7.0) Previously transcoding with ...
Sugrue's user avatar
  • 121
0 votes
0 answers
68 views

FFMPEG: Filter zoompan is shaking

I'm trying to apply a smooth zoom effect to my 5-second video using FFmpeg, but I'm encountering a shaky/jittery zoom. Here's the command I'm using: ffmpeg -i island_zoom.mp4 -vf "zoompan=z='min(...
Kataklycm's user avatar
0 votes
1 answer
33 views

Ffmpeg: Compile argument for 'delogo'

I use a custom version of ffmpeg I compiled myself (for cuda support), but when I try to use the delogo filter I get: [AVFilterGraph @ 0x586ea2283880] No such filter: 'delogo' [vost#0:0/mpeg4 @ ...
Sulli's user avatar
  • 137
0 votes
0 answers
47 views

FFmpeg scale filter unexpectedly adds padding

I'm using FFmpeg to transcode and shrink some videos to AV1 using the scale filter and AMD's hardware encoder, available in FFmpeg as av1_amf. Usually it works fine, but now I've run into a video ...
TigerhawkT3's user avatar
1 vote
0 answers
80 views

How to explain discrepancies between the way LAME and FFmpeg encode with low CBR MP3 files?

I am trying to find the matching FFmpeg options that would produce the equal result when using lame. We are using CBR mostly so the transition seems to be straightforward. LAME: -b XXX --cbr -m j -q 2 ...
pv_'s user avatar
  • 11
0 votes
0 answers
47 views

How to stream integrated camera to Facebook using FFMpeg

I'm currently using this command to stream to Facebook: ffmpeg -f dshow -i video="HD User Facing":audio="Varios micrófonos (Realtek(R) Audio)" -c:v h264 -pix_fmt yuv420p -r 30 -g ...
Cesar LI's user avatar
0 votes
0 answers
145 views

Separating audio m4b file based on a cue file

Separating audio m4b file based on a cue file How can I split an audio m4b into separate files using a cue file? Note: The m4b file has no chapters that's why I need to use the cue file to split it. I ...
Rick T's user avatar
  • 153
0 votes
1 answer
56 views

adding audio overlay at a specific point

I am trying to overlay temp.mp3 on top of a.mp3 at timestamp 00:00:10 seconds. Below is the command I am trying to use, but I get the below errors. temp.mp3 is a short file and I do not want it to ...
Smith Kumar's user avatar
0 votes
1 answer
153 views

ffmpeg fetching PTS/DTS for data packets incorrectly

I have captured a transport stream through TSP command Command: tsp -I ip port --source ip -O file stream_capture1.ts then using ffprobe, below is the output which is capturing correct stream Input #0,...
Parmesh Kumawat's user avatar
0 votes
1 answer
89 views

FFMPEG extract chapters not copying correct title

The original ffmpeg file has the chapters like Menu 00:00:00.000 : en:Chapter 01 00:07:02.083 : en:Chapter 02 00:13:40.833 ...
paperskyline's user avatar
3 votes
1 answer
610 views

How to create animated GIF from a sequence of image files?

I tried this command line: D:\Captured>ffmpeg -framerate 1/2 -start_number 1 -i "D:/New folder (76)/Image%d.png" -loop -1 D:/test.gif But getting this error: [image2 @ 00000000026324a0] ...
Daniel Lip's user avatar
0 votes
0 answers
52 views

Can I use ffmpeg on a broken video file, using a good video file's parameters?

I have an old mini HD camera that outputs AVI files with an MJPEG codec. I have some new files that won't open in my Windows video utilities and would like to repair them. ffprobe complains: [avi @ ...
just_asking's user avatar
1 vote
0 answers
56 views

How to achieve the same performance of Geforce Experience using FFMpeg screen capture

I have a NVidia card and currently use Geforce Experience to do screen capturing. GE performance is really excellent and even if I record a video in 4K, 60 FPS, and high bit rate, I don't experience ...
Celdor's user avatar
  • 711
0 votes
0 answers
47 views

Why does FFmpeg encoding stall on Ubuntu with DVD video file?

I've encountered a challenging issue while using FFmpeg on Ubuntu to encode a DVD video file contained in a .bin format. Despite various attempts (also employing vlc or bounting converted .iso), ...
jay.sf's user avatar
  • 821
0 votes
1 answer
327 views

How to specify audio input to FFplay?

I find FFplay a very simple and useful program to display the video from my capture device (MS2109) with: ffplay -f v4l2 -framerate 60 -video_size 1280x720 -input_format mjpeg -i /dev/video0 But ...
Ken Mandelberg's user avatar
0 votes
0 answers
101 views

How to create a box shadow effect when overlaying an image on a video using FFmpeg?

I'm working on a video project where I need to overlay an image on a background video. I've managed to achieve the basic overlay using the following FFmpeg command: ffmpeg -i background.mp4 -i ...
Kataklycm's user avatar