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

How to draw a moving line as slider for the image comparison video generator script in Python with FFmpeg

I have the below script to generate a video slider with FFmpeg You can see example here (first 10 seconds) : https://youtu.be/F_wf1uHqZRA I am trying to replicate effect of imgsli like a person is ...
Furkan Gözükara's user avatar
0 votes
0 answers
107 views

Weird ffmpeg behavior - "-shortest" flag ends the audio too early

I'm trying to generate some video files using ffmpeg, but when I use the -shortest flag, I get a file whose audio stream is several seconds shorter than its video stream. I tried several ...
asaelr's user avatar
  • 101
0 votes
0 answers
88 views

I need help installing FFMPEG on my server

I'm trying to get FFMPEG installed on my VPS. Plesk Obsidian Version 18.0.59 Ubuntu 22.04.4 LTS Basically, I need FFMPEG installed, as the custom MP3 player I use for my website can generate audio ...
alkemy007's user avatar
0 votes
0 answers
49 views

Find out the audio channel that has LTC

I need to be able to check a video file for any audio channels that have LTC (Linear Timecode) I tried using ffmpeg and ffprobe but I am only getting general info about the audio stream (like number ...
Catalin Morosan's user avatar
0 votes
2 answers
143 views

ffmpeg extra lines between lines in drawtext textfile

I'm getting extra lines when displaying a text file with drawtext. The original text.txt file looks like this: But when I use with ffplay or ffmpeg using something like this: ffplay -f lavfi "...
Ricardo Bohner's user avatar
2 votes
1 answer
129 views

FFMPEG - Adjust DrawText Based on the Length of the Video

I am creating a video with a DrawText, that vertically scrolls from down to up. The text.txt file contains several lines of text. Is it possible to adjust the scrolling of the text based on the length ...
DigitalNomad's user avatar
  • 1,708
-1 votes
1 answer
361 views

How to mute audio by looping the last second of every x seconds in the video?

UPDATE: Баяр Гончикжапов and inspired by this post, tried: ffmpeg -i input.mp4 -af "volume=volume=0:enable ='gte(mod(t\,20)\,15)'" -c:v copy -c:a aac -b:a 192K output.mp4 Post solved, thank ...
Scenario's user avatar
0 votes
0 answers
472 views

FFMpeg Concat error: [mxf @xxx] index entry xxx+ TemporalOffset 1 = xxx, which is out of bounds

Use FFmpeg to concatenate broadcast files about 50 times a day. Files are transcoded to XDCAMHD prior to being concatenated. This error occurs on 15% of all concats even if there is only 1 source file....
Rens's user avatar
  • 91
-1 votes
1 answer
67 views

Creating 8K HDR Stillframe AV1 videos?

I would like to create 8k/4k (DCI/UHD) videos out of mp3 audio tracks. The whole video would be a single image, but I'd like the image to be UltraHDR and the end output video to have HDR metadata. I ...
MyPreciousss's user avatar
1 vote
1 answer
142 views

FFMPEG - How to Merge Three Files - Only Middle One Has Audio

I have three videos that I want to merge into single one. Intro video (mp4) - 3 seconds - No Audio Main video (mp4) - 1 minute - With Audio End video (mp4) - 3 seconds - No Audio When I use ffmpeg, ...
DigitalNomad's user avatar
  • 1,708
0 votes
0 answers
60 views

Adjusting volume levels with ffmpeg afade

I am having some trouble with the following ffmpeg command string: ffmpeg -i 20s.wav -af "afade=t=out:st=2:d=1:silence=0.07, afade=t=in:st=5:d=1" out.wav What I expect from this: At 2 ...
Albert Elmore's user avatar
1 vote
0 answers
209 views

concatenating multiple files is giving Non-monotonic DTS in output stream error

I am trying to concatenate multiple video files with ffmpeg and python with the following code :- def story(path): videos = [f for f in os.listdir(path) if f.endswith(".mp4")] print(videos) ...
nish's user avatar
  • 41
2 votes
2 answers
228 views

convert 30sec 240 fps video to 2min 60fps video using ffmpeg

I have a 30-second 240fps video from my GoPro Hero10. Now I want to create a "slow-motion" out of it, which should be 1/4 speed. So the output would be 2 mins @ 60fps. (Sound should be ...
Jafix's user avatar
  • 23
0 votes
1 answer
165 views

FFMpeg : Overlay an image or gif on top of a video for X seconds while the video remains paused

My requirement is as follows: Input video is an MP4 Overlay can be either gif or png. Overlay should appear over the the input video at a timestamp. It should last for 5 seconds. If it's a gif, it ...
Aneesh's user avatar
  • 115
-2 votes
1 answer
101 views

Video to geotagged images using powershell

I have an MP4 from a GoPro with a gpstrack included. Now I am trying to extract a geotagged image sequence from that video. For that I am currently using FFmpeg and exiftool; I'm open to better ...
e-shirt's user avatar
  • 105
1 vote
1 answer
397 views

How to detect and reduce a WAV file’s sample rate to its real sample rate?

I'm not sure if my question makes sense, but here it is the problem I have. I have a bunch of wave (WAV) files that I believe were converted from MP3 or some other format that I have no information ...
user17952421's user avatar
1 vote
0 answers
33 views

Determine format of uncompressed ZIP file with ffprobe

I am working on a project where I need to handle ZIP archives that contain media files. Specifically, I have two files, video1.hevc and video2.mp4. For testing purposes, I created two ZIP archives ...
Gman's user avatar
  • 23
2 votes
1 answer
119 views

FFmpeg sample_fmt not actually changing bit _depth + missing supported sample formats

Disclaimer: I am a beginner about all of this, this question might be stupid I am attempting to change a mp3 files bit depth from 32 to 16 and also changing the bitrate This is my command: ffmpeg -i ...
7KMANN's user avatar
  • 23
6 votes
0 answers
216 views

How to correct Hindi text rendering when using FFmpeg?

I have a FFmpeg script to add some Hindi text to the MP4 video file. The FFmpeg command looks like this ffmpeg -i template_video.mp4 -filter_complex "drawtext=text='नमस्कार जी मैं हूँ':fontfile=...
Varun Raj's user avatar
  • 161
0 votes
1 answer
98 views

How to speedup video with FFmpeg based on timestamps from CSV?

There are already questions with regard to speeding up a video with FFmpeg, like this one. My question is: Is there also a way to specify multiple sections which shall be speedup via an external CSV. ...
tim's user avatar
  • 350
0 votes
0 answers
227 views

ffmpeg getting error "Failed to seek for auxiliary info, will only parse senc atoms for encryption"

ffmpeg -i link.mpd -c copy file.mp4 But getting error: Failed to seek for auxiliary info, will only parse senc atoms for encryption info Please help me. What can I do to fix it?
Carmel's user avatar
  • 1
0 votes
0 answers
46 views

Why can my device through PLEX only play one of these two 4K files?

I have two 4K .mkvs consisting of both video and audio tracks - my device seems to be able to play 4K content just fine for a movie, but won't playback upscaled 120 fps content. Both videos are x265 ...
bigboss's user avatar
  • 11
0 votes
0 answers
286 views

FFmpeg: format error when trying to use hardware scale_npp filter

I have CUDA installed on Ubuntu 22.04LTS with NVidia Geforce graphic card. I am currently trying to capture the full desktop by running this command ffmpeg -y -hide_banner \ -hwaccel cuda \ -f ...
Celdor's user avatar
  • 711
0 votes
0 answers
68 views

ffmpeg package loss during *local* transcoding

I'm trying to transcode videos with outdated codecs/containers, mostly .wmv or .avi files. The following ffmpeg (v6.1.1) command works and produces a working .mp4 file that doesn't seem to present any ...
r41n's user avatar
  • 101
2 votes
1 answer
412 views

How to intentionally add a delay to an input stream with ffmpeg

I have a framegrabber that I connect to a Windows PC. The capture input device is 1080p, 60fps, 4:4:4 raw video. I want to use this in a test setup where I let a user work on an existing windows ...
Juergen's user avatar
  • 31
0 votes
0 answers
52 views

ffmpeg batch doesnt work all of a sudden

I have a batch script that has always worked, but after I formated and installed Windows 11 it doesnt work anymore, tried it on another Windows 10 machine, doesnt work there either so I must be ...
fomt's user avatar
  • 3
0 votes
0 answers
57 views

How to automatically convert zoompan filter's private fps to input video's fps?

I have a 24 fps video, I'm trying to use the zoompan filter in my video and I'm having trouble setting the filter's private fps. If you set the fps in the zoompan filter to fps=30, the video and audio ...
Hiddos's user avatar
  • 1
0 votes
1 answer
129 views

ffmpeg showing wrong frame number on drawtext output

I'm using the following command to save each frame as picture with the frame number printed on it: ffmpeg -i input.mp4 -vf "drawtext=text='%{n}':fontsize=72:fontcolor=white:borderw=3:bordercolor=...
Ricardo Bohner's user avatar
0 votes
0 answers
27 views

Minimum frame rate after merging the same MP4 files

Recently I'm trying to merge some split movies in MP4 format. Found the lossless merging of a movie and its copy using ffmpeg. This has no practical meaning, the purpose is to ensure that the format ...
zmjun's user avatar
  • 1
1 vote
0 answers
367 views

FFMpeg command line to create specific MPEG-DASH manifest

I have tried to get an FFMpeg command to yield the below manifest. Right below is the FFmpeg command that I have tried to make but it has not created the same manifest file as what I am trying to ...
Seth Haberman's user avatar
0 votes
1 answer
148 views

Complex ffmpeg multi-encode/streamcopy/muxing scenario: is this actually doable?

I'm trying to do multiple muxing/re-encode/copy operations on an input video with ffmpeg and have run into roadblocks with the methods I've tried; before I continue testing, I want to confirm whether ...
rudds's user avatar
  • 3
0 votes
0 answers
176 views

Extract frame from .hevc video with ffmpeg

I use the following command to create a snapshot 10 hours into a video: ffmpeg -y -ss 36000.0 -i INPUT -frames:v 1 -q:v 1 output.png But I'm running into an issue where this command doesn't work with ....
Gman's user avatar
  • 23
0 votes
0 answers
29 views

How to Record System Audio using ffmpeg? [duplicate]

It has come to my attention that some apps like camtasia have options to record system sounds / alert sounds (System Audio). is there a way to capture system sounds without modificating windows system ...
Zen Of Kursat's user avatar
1 vote
1 answer
132 views

How extract currently displayed frame with ffmpeg?

I'm conducting a test with a 10-second video that plays at a rate of 1 frame per second. My goal is to capture a specific frame as a snapshot. Currently, I use the following ffmpeg command for this ...
Gman's user avatar
  • 23
1 vote
0 answers
70 views

Can't open Raw GREY (8-bit) file

I have a Raspberry Pi Zero W with the MV-MIPI-IMX264M sensor, and I'm capturing images in raw format with the specified settings. However, I cannot open these images. Any ideas on how to view these ...
Seongschik's user avatar
0 votes
0 answers
117 views

FFmpeg batch compressing mp4s and changing them to gifs

I want to take a folder of mp4s and with ffmpeg compress them and turn them into gifs. I do this for each file using this code: ffmpeg -i input.mp4 -c:v libx264 -tune zerolatency -preset ultrafast -...
RayRay's user avatar
  • 1
0 votes
1 answer
1k views

Constructing encoding statements using ffmpeg QSV and Intel ARC card

I purchased an Intel ARC A770 with the intent to test hardware encoding with AV1 and HEVC under Linux. Being newer to ffmpeg, I need help constructing ffmpeg statements to engage the Intel QSV ...
videomouse's user avatar
0 votes
0 answers
166 views

How can make Drawtext Slide Animation on ffmpeg - Left top corner to Right bottom corner of video

I have found the command for overlaying the text "HelloWorld" right bottom to left top. but its not accurately working on edge to edge , instead its starting above the bottom edge and ends ...
Raymond's user avatar
  • 23
0 votes
0 answers
32 views

Dynamic Location Offsetting while Desktop Video Capture in FFPMEG

is there a way to dynamically change offsets during screen capture ? but this offset values are static (eg. 66 and 77) and we cannot change these values during video recording. simply I am trying to ...
Zen Of Kursat's user avatar
0 votes
1 answer
182 views

How to encode FLAC and DTS audio formats to AAC most efficiently?

I have been encoding audio for my own personal media library from various formats into AAC available for direct play on my Plex Server. I have been using the following command with ffmpeg: ffmpeg -i &...
bigboss's user avatar
  • 11
0 votes
1 answer
349 views

FFmpeg fails to concat the videos, “More than 1,000 frames duplicated.”

I'm trying to concatenate videos with the command: ffmpeg -f concat -i input.txt -y ProductionVideo.mp4 Where input.txt has files listed as file 'vid1.mp4' file 'vid2.mp4' file 'vid3.mp4' While ...
ZombieSpale's user avatar
1 vote
1 answer
374 views

How to fix ffmpeg concatenated video playback issue?

I want to put watermarks in my video (in Specific time). I researched some sources, and it said I need to (video filter) reencode the whole video to put a watermark, but I don't have a high-end PC to ...
Raymond's user avatar
  • 23
0 votes
1 answer
144 views

FFmpeg copy multiple stream and one audio stream convert to ac3

I have file 1.mkv, which contains the following streams: 0 - video 1 - audio FR - AC3 2 - audio GER - AC3 3 - audio EN - DTS 4 - subtitles FR 5 - subtitles GER 6 - subtitles GER 7 - subtitles GER 8 - ...
Rod's user avatar
  • 3
2 votes
0 answers
196 views

How to quick record system audio in background on macOS?

On macOS Monterey I want to achieve what can be done on Windows with ShareX: record system audio with a global hotkey and have the audio file automatically copied to the clipboard – all in the ...
user0145's user avatar
0 votes
0 answers
402 views

How to extract keyframe timestamps from video using ffmpeg

I want to extract the timestamps of keyframes from a video using ffmpeg. I found this thread that explains pretty much how to do it. However, it appears that my video does not have the pkt_pts_time ...
K G's user avatar
  • 101
0 votes
0 answers
2k views

How can I publish an RTSP stream to a MediaMTX instance with TLS encryption configured?

I have an instance of (MediaMTX) running on my laptop. I have an Amcrest IP camera. I can publish the camera's RTSP stream to the server so that the stream can be accessed from the MediaMTX instance. ...
cmd's user avatar
  • 1
0 votes
1 answer
321 views

How to change the sample rate of audio for all video files in a directory?

I performed screen records using wf-recorder and I realized that it was hardcoded to encode at 44.1 kHz, but Pipewire defaults to 48 kHz. So it turned out the audio would be perfectly in sync if I ...
Blacklight MG's user avatar
1 vote
1 answer
305 views

Using ffprobe to get count of audio streams in mp4 file

I am looking for a way to get a count of the number of audio streams in mp4 files. Among some big long threads (mostly pre-2019 dated) on using ffprobe for this I found the following command: ffprobe ...
Alan MusicMan's user avatar
0 votes
0 answers
49 views

How to compute the total output duration after applying Xfade in FFmpeg?

I'm trying to understand how to get the expected total duration after applying Xfade. The answer here says: Simple illustration: each input is 3 seconds long and the fade transition is 1 second long ...
threeFatCat's user avatar
0 votes
1 answer
197 views

Downsampling 4:4:4 YUV video to 4:2:2?

I'm attempting to downsample a YUV raw video in FFMPEG from 444 to 422 sampling, but the issue is that the output file remains 444?! Framerate and size is all correct. Here's my most recent code: ...
Daniel Bland's user avatar

1
3 4
5
6 7
143