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
0 votes
0 answers
39 views

How can I mix audio in FFmpeg for voice over music so music quiets only during periods of narration?

Typically, when there is background music, it gets quieter when a narrator speaks. It should have a slight fade shortly before the narration begins, then a fade back to full volume shortly after any ...
GraniteStateColin's user avatar
0 votes
1 answer
49 views

How to change the bitrate of a stream in the middle of a filter chain

Backgrond: I have an HSBS 3D video which is corrupt at some points, i.e. in some specific points of time, some frames are missing. Now I want to fix it (at least make it look better) in a way that I'm ...
M Mahdi's user avatar
0 votes
0 answers
40 views

Concatenated mp3 stop playing at 15s on some players (e.g. iTunes)

I have mp3 file and I can not figure out why it stops playing at 15s even thought it is 12 minutes long. ffprobe returns: Duration: 00:12:02.30, start: 0.023021, bitrate: 131 kb/s I figured that ...
knagode's user avatar
  • 101
0 votes
0 answers
97 views

FFMPEG does not load Font from ASS file

I'm trying to burn an ASS subtitle file onto a video using ffmpeg. This is the style part of the ASS file: [Script Info] ; Script generated by FFmpeg/Lavc60.3.100 ScriptType: v4.00+ PlayResX: 384 ...
Mehdi Haghgoo's user avatar
1 vote
1 answer
200 views

Flip video with hardware acceleration ffmpeg on Windows 11

I am trying to use hardware acceleration to horizontally flip videos but I can't seem to get it right. I don't want to change the codec but just keep the same (just hflipped). I am using Intel Arc Pro ...
Sha's user avatar
  • 311
2 votes
1 answer
92 views

Overlay a different png for each single frame of a video

I have a video and a set of images (each image for one video frame) I want to overlay the images over the video, each image over one single frame. The images and the video have the same size. I know ...
Catalin Morosan's user avatar
0 votes
1 answer
119 views

FFmpeg: How to encoding h264 mkv files in h265 mkv and keep the 2 subtitles streams?

I've lots of mkv files in h264 format with 2 languages of subtitle, and I'm trying to convert them in h265 (with cuda) and keep the 2 subtitles streams. I've tried that: ffmpeg -i "xxx.mkv" -...
ShkYo's user avatar
  • 11
0 votes
0 answers
34 views

Combine Image and Audio AND fade in and out

I have an ffmpeg command that merges 1 image and 1 audio file, but I also want the output video to have a fade in and fade out, how can I do that? Here's the command: ffmpeg -r 1 -loop 1 -i images/...
Jake's user avatar
  • 1
2 votes
0 answers
56 views

How can I concatenate video clips with ffmpeg without causing audio de-sync?

I'm trying to automate the trimming and concatenation of video clips that also contain audio using ffmpeg. The following commands are being used to trim clips and then concatenate the trimmed clips. .\...
ws90's user avatar
  • 21
3 votes
1 answer
54 views

Is there an equivalent for ImageMagick’s “-shear” command in FFmpeg?

FWIW, I must run this on Windows platform. I have a series of videos shot in identical conditions (mounted camera shooting trains), all exhibiting the same rolling shutter effect when train passes. ...
user2349195's user avatar
0 votes
0 answers
155 views

ffmpeg convert dvd vob to mp4 sometimes no audio

Using this cmd (from here : https://www.winxdvd.com/dvd-ripper/rip-dvd-with-ffmpeg.htm) to convert dvd vob files to mp4. (adjusting file names as needed) ffmpeg -i "concat:VTS_01_1.VOB|VTS_01_2....
Gert Gottschalk's user avatar
0 votes
0 answers
83 views

ffplay play h265 video BUG

Test environment: Two computers, both are WIN10X64 Nvidia GT1030 Intel630 + Nvidia 2070 The same ffplay.exe file; plays the same H265 video file。 Test Results ffplay -hwaccel cuda -fs f:\video\x265....
dbyoung whoami's user avatar
1 vote
0 answers
271 views

FFmpeg HLS conversion with HEVC and fmp4

I've tried everything but I can't get this to work: I'm trying to convert a .mkv AVC video to HLS with HEVC codec, also creating two streams for 1080p and 720p quality, and the command I came out with ...
mrpino's user avatar
  • 11
0 votes
0 answers
106 views

ffmpeg hevc_toolbox producing video files with audio but no video

I have a React Native application that is attempting to transcode users videos so they are in a format both platforms can natively playback, we are doing it on device for now as we don't want to incur ...
Martin Calvert's user avatar
0 votes
1 answer
99 views

FFmpeg frame counter + resolution/bitrate/FPS box

I was trying to use drawtext FFmpeg filter to insert a frame counter at the bottom of my video by using this command: ffmpeg -i input.mp4 -vf "drawtext=fontfile=C\\:/Windows/fonts/consola.ttf: ...
NoyaZ_'s user avatar
  • 3
1 vote
0 answers
40 views

Side by side video with multiple single image sources

I'm creating 4 video files with 4 different single images sources (with pattern_type glob): ffmpeg -framerate 2 -pattern_type glob -i './1/*.jpg' -y out_1.mp4 ffmpeg -framerate 2 -pattern_type glob -i ...
hscho's user avatar
  • 11
1 vote
0 answers
68 views

ffmpeg can't find shared library on Asustor

On Asustor installing ffmpeg (from App Central in the web interface) puts it in /volume1/.@plugins/AppCentral/ffmpeg (with executables in bin and libraries in lib). But typing the command ffmpeg from ...
Ken's user avatar
  • 13
0 votes
0 answers
112 views

FFMPEG encode interlaced frames

I try to encode incoming frames using FFMPEG to h264 and write it to an SD card. I get the raw frames as memory buffers from hardware and then use the FFMPEG C API to encode those. Encoding is running....
user3219624's user avatar
0 votes
0 answers
34 views

FFMPEG DTS Max Bitrate

Recently having problems with the DTS part of FFMPEG. When defining a bitrate higher than 1536kb/s, the end result reverts to 640kb/s. Using 1536kb/s or lower seems to have no problems. Is this normal ...
Pete's user avatar
  • 1
1 vote
0 answers
74 views

Playback drops frames or stutter on good hardware

I'm planning to use TDARR and trying to prevent any issues before with (re)encoding. And I have stumbled on issue with one TV Show - recently I have downloaded refreshed old show but playback stutters ...
Lemonek's user avatar
  • 21
0 votes
1 answer
72 views

ffmpeg - converting one audio track of a multi-track mp4

I'm having a few mp4 with two audio tracks, an english one in aac and a french one in dts. Now I want to convert only the french dts to eac3 with a single ffmpeg command. I use ffmpeg -hide_banner -i ...
Shaun.M's user avatar
1 vote
0 answers
863 views

FFmpeg Could not write header for output file #0 (incorrect codec parameters ?): Invalid data found when processing input

I'm having trouble using FFmpeg to host an RTSP server for continuous video streaming. The command I'm using is: ffmpeg -report -v verbose -re -stream_loop -1 -i store-aisle-detection.mp4 -c copy -f ...
randompersonhehe's user avatar
0 votes
0 answers
330 views

Transcode h264/mjpeg with new resolution as rtsp mjpeg

I have the problem that my IP cam (Dahua) cannot stream 640x480 as sub-stream to feed my 2N Verso as external camera. It only supports 1280x720 or a 704x?? and 320x288. I played around with FFmpeg and ...
Martin's user avatar
  • 1
0 votes
0 answers
73 views

Issue decoding EXR images compressed with DWAB using Imagemagick

I've created an image sequence by converting PNG images to EXR using ImageMagick 7.1.1. If I compress them using PIZ, ffmpeg 5.1.4 can read them well and convert the sequence to a video format. If I ...
rvdboom's user avatar
0 votes
1 answer
51 views

How can I convert an Indeo 5.1 format file to a more current, supported format using FFmpeg?

I had a large series of images from a kitchen rebuild that I compiled into a time-lapse video that was very cool. Unfortunately I used the Indeo 5.1 codec that has since been lost to history, now I ...
John Green's user avatar
0 votes
0 answers
50 views

Is it possible to use the signalstats YAVG filter in FFMPEG to control the gamma correction in a video?

I don't know if this is even possible, but something tells me it is… You see, I want to dynamically control the gamma correction in FFMPEG/FFPLAY depending on how bright/dark the frame being ...
tuqueque's user avatar
0 votes
1 answer
472 views

Convert mp3 with cue file to m4b with chapters

I have an mp3 and a cue file (with chapters) of a CD that I ripped. I want to turn this into an m4a or m4b that I can play as an audiobook and maintain the chapters, bitrate and stay stereo. I want to ...
DratAudio's user avatar
1 vote
0 answers
68 views

preserving image quality J2K/MXF => FFV1/MKV interlaced

i need to transcode lossless JPEG2000 video to FFV1. the source video is interlaced, but using a non-standard method developed by opencube that uses 1 field per frame. i succeed at preserving ...
david furst's user avatar
0 votes
1 answer
124 views

ffmpeg streaming UDP port is closed

I'm trying to use ffmpeg in order to transcode RTSP stream from CCTV to HLS stream so it could be accessed through a web server. ffmpeg used to stream video from CCTV with following command $ ffmpeg -...
BrilliantContract's user avatar
1 vote
1 answer
207 views

Merge and copy 2 audio tracks from video file

I have a video file with 2 audio tracks. I wish to utilize a single ffmpeg operation to have a video with: Merged audio Audio #1 Audio #2 With this I can merge the audios, ending up with video with ...
Det's user avatar
  • 123
0 votes
1 answer
120 views

How can i add audio at specific Frame in FFmpeg?

I have audio that i am adding (without Re-encode) in mute video file, in starting i have intro which has no sound and i want to add audio file after that time/frame , after searching so hard i only ...
Mickey S's user avatar
0 votes
0 answers
43 views

How do create a dynamic delay fix with MPEG-TS?

My media player can display a couple of videos (origin video - Multicast address, video stream is in MPEG-TS) Whenever I play both video streams I see a delay in one of the streams. I would like to ...
david blacheow's user avatar
0 votes
1 answer
43 views

ffmpeg transcode on cifs mount hangs

To save some space on my NAS I plan on transcoding recorded videos (source: vuplus duo2 vdr dvb-s2 / transport streams). With a local file this works perfectly and reduces size to roughly 20% of ...
segment0287's user avatar
0 votes
0 answers
125 views

Get ffmpeg to output frames closer to start time specified

I'm running ffmepg version 6.1 with the following command: ffmpeg \ -y \ -copyts \ -ss 2841000000us \ -to 2843000000us \ -i <INPUT_FILE/URL> \ -fps_mode passthrough \ ...
casperOne's user avatar
  • 177
2 votes
1 answer
631 views

Why does ffmpeg alter timestamps when "-codec copy" is given, and how to prevent this?

I am currently trying to remove certain audio tracks from a bunch of m2ts files (mainly to save space), using ffmpeg. In doing so, I would like the removal of those tracks to be the only action that ...
Binarus's user avatar
  • 1,785
1 vote
0 answers
105 views

ffmpeg : has the quality setting for x265 changed in version 2:6.1-3

On Arch Linux, I updated ffmpeg a few days ago from 2:6.1-2 to 2:6.1-3 - now the quality setting on x265 encodes only seems to produce very compressed files. Command used: ffmpeg -probesize 3000M -...
Summers's user avatar
  • 11
0 votes
0 answers
115 views

FFMpeg removes the video stream unintentionally

I used the following ffmpeg command to downscale a video. But surprisingly the output did not have any video stream, just an audio-only output. ffmpeg -y -i "input.mov" -c:v libx264 -vf ...
CtrlAltElite's user avatar
0 votes
1 answer
341 views

ffmpeg convert x264 to x265 with GPU and equivalent options

I usually convert video from x264 to x265 with this ffmpeg command: ffmpeg -i %arg1% -vcodec libx265 -crf 28 %arg2% And although it takes some time (from 2 to 15 hours) it gets the job done nicely, ...
Pedro Araujo Jorge's user avatar
0 votes
1 answer
230 views

how to convert a wav to WAVE audio, IEEE Float, stereo 44100 Hz

I am trying to convert a generic audio to a specific format accepted by BOSS RC-5 looper (supported format: WAV 44.1 kHz, stereo, 32-bit floating point), I have downloaded one of the accepted files ...
elpaso66's user avatar
  • 103
0 votes
0 answers
255 views

When I attempt to live a video in an infinite loop using the ffmpeg command, it automatically terminates after a few hours

When attempting to continuously loop a video using the ffmpeg command with the following syntax: ffmpeg -re -stream_loop -1 -i abc.mp4 -c copy -f flv rtmps://abc.xyz/..... I encounter an issue where ...
Isteyak Ali's user avatar
0 votes
2 answers
92 views

How do I store a bit of data inside a video file so it does not get stripped by other tools when sharing

I have an app that takes videos and I need to store the exact creation time (down to milliseconds) inside the video. The video is then shared through whatever app the user wants in order to reach a ...
Catalin Morosan's user avatar
1 vote
0 answers
97 views

Redirect ffmpeg showinfo (only) to pipe while keeping other output on stderr

I am using ffmpeg to help with processing video by breaking it down into smaller regions which are then piped to my program for processing. I run ffmpeg like so: ffmpeg \ -y \ -ss 2841000000us ...
casperOne's user avatar
  • 177
0 votes
0 answers
233 views

ffmpeg - Jitter when streaming audio over RTP

So as a disclaimer, i'm trying to do something with ffmpeg that may be at the limit of what can be achieved. However, even though it's not possible, i would like to understand why. What I want to do ...
Nicolas Floquet's user avatar
0 votes
1 answer
77 views

Why the playlist chunk duration is different?

I have this m3u8 playlist from Twitter/x which has this chunk: #EXTINF:2.923, chunk_1701372432609842942_707_a.aac #EXT-X-PROGRAM-DATE-TIME:2023-11-30T19:27:21.236Z As you can see the duration of this ...
Rux's user avatar
  • 3
0 votes
1 answer
166 views

How to trim multiple videos and position them to specific position using -filter_complex?

How do I mix several videos and have them not overlap each other? I need to use -filter_complex as I cram many more commands there and seems weird how when I trim video its frames remain and overlap ...
Pavlo Holotiuk's user avatar
3 votes
1 answer
189 views

How to escape file path for burned-in text-based subtitles with FFmpeg?

I'm trying to burn text-based subtitles into a video using ffmpeg, via the command line option -vf followed by subtitles=(filename):si=(subtitle index). I need this to work for both Windows and macOS. ...
kshetline's user avatar
  • 155
1 vote
1 answer
177 views

How to merge raw H.264 video and AAC audio streams, making sure the video matches audio duration?

I had a corrupt screen recording, and I used mp4fixer to extract the raw h264 stream and the aac streams separately. The audio sounds just fine, but the h264 stream doesn't seem to have a well defined ...
Blacklight MG's user avatar
0 votes
1 answer
144 views

More buffering when ffmpeg saving rtsp to mkv file

I have a GSM connection to my cameras. When I playback stream directly from cameras everythink is OK, but if I save the same stream to file I have 80% of broken frame like this: My ffmpeg params: ...
Rafal's user avatar
  • 11
0 votes
0 answers
93 views

ffmpeg use of ildct flag in progressive encoding

I've encountered a scenario whereby someone else has configured an ffmpeg encoding command with flags that don't make sense, and I'm having difficulty understanding their purpose. The command in ...
Mikolaj's user avatar
  • 183
0 votes
1 answer
154 views

How do I compile ffmpeg so that "-map_metadata -1" works.?

I just tried the (static) ffmpeg build from https://johnvansickle.com/ffmpeg/ and I also tried the ffmpeg build that comes with my Linux Mint 21.2 distro and they both were able to remove the metadata ...
BongoR's user avatar
  • 1

1
3 4
5
6 7
141