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
-1 votes
1 answer
49 views

Use ffmpeg add a video watermark,attached as the cover image [duplicate]

Use ffmpeg to add a video watermark, and the video contains a cover image. The watermark is attached as the cover image. command like this ffmpeg -ss 0 -t 60 -i .\test2.mp4 -i logo_gray20p.png -...
0 votes
0 answers
89 views

FFmpeg loop streaming YouTube

I'm trying to run a stream on YouTube with a video that loops 24/7, using FFmpeg 4.4 from a server with Ubuntu 22, it works but I'm loosing the "Live" red light on YouTube, and here is the ...
  • 1
0 votes
0 answers
123 views

Why does my video from ffmpeg have a variable framerate?

I tried stacking 4 3840x2160 mandelbrot sets into a 7680x4320 rectangle using ffmpeg built in filters directly (without producing the y4m as done below) and that produced a variable framerate video. I ...
0 votes
0 answers
37 views

Which ffmpeg video filters (e.g. drawtext, hstack, vstack) produce a variable framerate output video?

I saw from the last comment here: Force ffmpeg to produce constant frame rate, that setpts produces a variable framerate in the output. Which other ffmpeg video filters do this?
0 votes
1 answer
77 views

ffmpeg | How can I get the keyframes of a video sorted by time and position and save them to a text file?

I'm new to this and I don't really understand a lot of things yet. The following command tells me which line the video keyframe is on: ffprobe -select_streams v -show_frames -show_entries frame=...
0 votes
2 answers
129 views

Can ffmpeg automaticaly align audio and video tracks

I have searched and found many similar questions, but not this one. I've experimented and can't come up with an answer. I have a Standalone "Digital TV Converter Box". This receives ...
0 votes
2 answers
29 views

Is row-mt allowed in all formats in ffmpeg

I saw that FFmpeg added support for row based multi threading in version 3.4. Since it is up to version 5+ now. I have a question, if I am converting a series of different version files, can I add -...
  • 625
0 votes
1 answer
164 views

Encode to h265 with ffmpeg in batch

I have several Movies/Animes in Full HD and encoded in h264 (current market standard), and I need to perform the Encode to h265 of all these files (separated by folder and subfolders) to save space, ...
  • 113
0 votes
0 answers
20 views

FFMPEG - Loudnorm changes audio bpm

In the command below I select the sample rate and bit stream of the original file to keep the original values in the normalized output file. The file is generated without errors, but the BPM is ...
  • 561
0 votes
0 answers
38 views

ffmpeg start timecode frame misinterpretation when reinterlacing 50p to 50i

we try to convert 50p files to 50i using this command: ffmpeg -i "%%i" -vcodec dnxhd -b:v 120M -q 1 -flags +ildct -vf "fps=50,format=yuv422p,scale=1920:1080,interlace,fieldorder=tff&...
  • 1
0 votes
0 answers
26 views

Split a picture into smaller grids using ffmpeg of smaller pixel values

I want to use ffmpeg library to break a picture into smaller grid parts of smaller pixel values. i.e. (divide a picture into quarter grids) etc. Hypothetically, from one picture of size 5000 * 4000 ...
0 votes
0 answers
12 views

is it possible to lower a track volume and compress the tracks in a video in one command?

basically i clipped a video game via shadowplay and the tracks are separated. separately, i have combined the two tracks successfully and from the original clip i have lowered the volume successfully ...
0 votes
0 answers
138 views

ffmpeg - make video skippable/seekable

I have downloaded a few lectures from my uni website but they look like they can not be seeked/skipped properly either by clicking on a specific timestamp on my video player or by skipping forward by ...
0 votes
0 answers
209 views

FFMPEG throws error while converting WEBM/MP4 audio files from MediaRecorder to MP3

I use MediaRecorder to record the audio from the browser and then upload it to my server (ARM-based Linux machine - AWS Lambda Function, if it matters). Based on the browser type, I get either an MP4 ...
0 votes
0 answers
30 views

ffmpeg - concatenate mp4 files + audio from a folder structure

I use this batch file to concatenate several .mp4 files and then join them with an audio song. @echo off mkdir ".\Export" set "sourcedir=" set "outputdir=Export" ...
0 votes
1 answer
42 views

ffmpeg on Windows Server Core 2022?

Recently upgraded to Windows Server Core 2022 and ffmpeg doesn't start. No errors, no logs, no nothing. I thought I had seen mention of ffmpeg running on Server Core 2012 with the Essentials role ...
  • 1
1 vote
2 answers
172 views

Ffmpeg x265 error: "Color Primaries must be", "Transfer Characteristics must be", "Matrix Coefficients must be"

I'm trying to do the following conversion: ffmpeg -i video.mp4 -map 0 -c copy -c:v libx265 -crf 30 -vf "scale=-1:\'min(720,ih)\'" -c:a libopus -b:a 44k -map_metadata 0 -loglevel error -...
2 votes
1 answer
133 views

Old family videos with no audio... any hope of recovering the audio?

I have limited experience but have used simple tools like mediainfo and ffmpeg before, though I don't usually know what is happening. I dug up some old digital video files of family members that are ...
  • 287
0 votes
0 answers
31 views

How to cut 1 video into many different videos with different lengths? ( FFMPEG)

I need to cut a video with a length of several minutes into many different videos, In all but the videos cut from the original video will have different short lengths. what do i need to do? This is ...
  • 89
0 votes
0 answers
88 views

No #EXT-X-ENDLIST in stream.m3u8

Having a ts file with 60s duration and this part of a config for rtsp-simple-server: ... ~archive/(.*)$: runOnDemand: ffmpeg -re -stream_loop 0 -i /cameras/$G1 -c copy -f rtsp rtsp://localhost:$...
0 votes
0 answers
67 views

Trim video tail with ffmpeg

I have this ffmpeg command where it detects motion and save frames into output video. ffmpeg -t 60 -i $lores -vf "select='gt(scene\,0.018)',setpts=N/(25*TB)" -acodec aac -vcodec libx265 $...
0 votes
0 answers
27 views

How to achieve the following stream information using FFMPEG parameters?

Duration: 00:52:37.26, start: 0.000000, bitrate: 1329 kb/s Stream #0:0[0x1](und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(progressive), 1280x720 [SAR 1:1 DAR 16:9], 1210 kb/s, 24 fps, 24 tbr,...
0 votes
0 answers
24 views

ffmpeg convert mp4 to image seq. with ORIG framerate and back

I search the Internet for ffmpeg example to make image sequences out from mp4 (h264) and then make it back from image sequences to mp4 (h264) with maximum accuracy. All examples using "framerate&...
  • 63
0 votes
0 answers
30 views

FFmpeg source code of "Stream copy"

Wanna learn from how to stream copy audio is implemented, for my own use case, video need to be transcoded (since will apply filter), but audio should not be changed (so I would rather than copy it, ...
  • 1
0 votes
1 answer
253 views

What is the equivalent flag for -crf for hevc_amf in ffmpeg

I am trying to compress some of my video collections with ffmpeg, and I wish to accelerate it with my RX 6900XT. For libx265, I know that I can use the following command: ffmpeg -i input.mp4 -v:c ...
0 votes
1 answer
47 views

Trouble with splitting a .mkv file in half with FFMPEG using one command, had to do it one at a time with a slightly different command

So I have a ~400GB .mkv file I wanted to upload to YouTube, unfortunately for me YouTube has a 256GB limit. So I Googled if I could split the file with FFMPEG and found the following article (FFMPEG ...
0 votes
0 answers
18 views

ffmpeg detects motion on 1 input and triggers the other input to copy video & audio

I am new to ffmpeg and would like to learn if something can be feasible or not. I have 2 rtsp inputs : one low resolution and the other high. My idea is to do the motion filter detection the low ...
0 votes
0 answers
262 views

ffmpeg Stream specifier ':a' in filtergraph description matches no streams for muted audio

I get an error message 'Stream specifier ':a' in filtergraph description' for a video with muted audio. How can I detect such videos which I cannot specify their audio stream? The command : 'ffmpeg -i ...
  • 115
0 votes
0 answers
42 views

How to combine to side-by-side videos in an top-below way?

I use a function from a Python library that combines two .wmv videos side by side with these properties: parts = ['ffmpeg', '-y', '-i', '"%s"' % str(vid1), '-i', '"%s"' % str(vid2),...
  • 1
0 votes
0 answers
19 views

FFmpeg possibilities script

I would like to ask for advice. I have a video .MTS file. I need to add "paste" time (time track) to a new video file. I mean a time in the frame on the picture. In the same step I need to ...
1 vote
0 answers
95 views

PTS timecode in milliseconds tweak to roll over at 60 seconds?

I'm using FFMPEG to extract images from an MP4. I have a large project where I need to extract a few hundred images. I've cobbled together a working solution from various sites since I'm not an FFMPEG ...
0 votes
1 answer
348 views

How to suppress (only) warning "Application provided invalid, non monotonically increasing dts to muxer in stream 0:"

When I am converting a *.mp4 video files with command line ffmpeg and 2-pass h264 codec then occasionally many lines similar to the following warning appear: [libx264 @ 0000026e183ad900] non-strictly-...
0 votes
1 answer
57 views

How can I properly normalise surround audio to stereo(2 channels)

This question has been asked before but my query is different and more specific. In MPV player I use this command af=format=channels=stereo,dynaudnorm which is like live normalising the audio. However,...
0 votes
0 answers
68 views

Broken video download with FFmpeg. Is this a DRM issue?

I'm a member of a local movie platform. I'm watching the movie but the player is bad. I want to download and watch it with PowerDVD. I downloaded the image and sound with FFmpeg. I tried it in all ...
  • 1
0 votes
0 answers
56 views

Stop recording audio stream with ffmpeg

I have a Rasberry PI with a mic emitting audio through next command: ffmpeg -ar 44100 -ac 1 -f alsa -i plughw:2,0 -f wav -listen 1 tcp://0.0.0.0:8554 And capturing with VLC, next command: cvlc -R -...
0 votes
0 answers
107 views

how to change bitrate/pitch using asetrate throughout audio file

how can I combine ffmpeg -i original_song.mp3 -af "asetrate=36000" out.mp3 with ffmpeg -i input.mp3 -af "volume=enable='between(t,1,2)':volume=0" output.mp3 I want to increase the ...
2 votes
0 answers
85 views

ffmpeg cli settings for the most accurate seeking in the output video

I have a problem with video encoding for HLS stream. I've found that most video players not support frame accurate seeking or pausing at specific frame and they can't really give us the accurate ...
  • 21
1 vote
1 answer
71 views

ffmpeg image overlay doesn't execute on expected time

My image overlay is not playing on the expected time. I have this image list called "Lista.txt" where I set the time of 15 seconds for each image: file 'C:\Users\ricar\Desktop\Criar Video ...
0 votes
0 answers
120 views

FFMPEG losing quality when removing duplicate frames

I currently use the command prompt to convert a video: ffmpeg.exe -r 60 -i "D:\clip.mp4 -vf mpdecimate,setpts=N/FRAME_RATE/TB "D:\clip-converted.mp4" On the assumption of the principle ...
  • 480
1 vote
0 answers
152 views

FFmpeg not copying chapters

I'm experimenting with using ffmpeg to process some mkv files. The goal is ultimately to convert a bunch of H264 files to H265 to save space. However the part of the solution I'm experimenting with at ...
  • 206
0 votes
0 answers
14 views

Get exact timestamp of keyframe with ffmpeg (for making a precise cut) [duplicate]

I am trying to split a video in two at a precise point programmatically. This needs to be efficient in my use case, so simply re-encoding the entire video is not an option. The issue is the input ...
0 votes
0 answers
41 views

Live video in facebook is lagging while using ffmpeg from video link

Livevideo in facebook is working fine for local device video(case 1) but its having lagging issue from video link(case 2) using FFMPEG. Please find command for the same and log. Case 1 - Command : ...
0 votes
0 answers
29 views

FFMPEG Concat Demuxer causes freeze between clips

I wrote a program that takes multiple clips from a video, then concats them into a single, shorter video, using FFMPEG. The issue that I have come across is that, in the output video, the clips freeze ...
  • 1
0 votes
0 answers
132 views

Streaming to multiple RTMP ffmpeg

I have this line to stream using a source to two outputs but im getting a signal for the first rtmp server but nothing for the second, what im doing wrong? ffmpeg -reconnect_at_eof 1 -...
0 votes
0 answers
23 views

Which properties have to match to use the concat remuxer in ffmpeg?

I am trying to generate a video to be concated into another video via the ffmpeg concat remuxer. The remux process needs to be extremely efficient for my purposes so I am trying to generate the video ...
0 votes
0 answers
19 views

ffmpeg on RPi latest version fails (7:4.3.4-0+deb11u1+rpt3): B-frames: Invalid argument

I'm using ffmpeg on a Raspberry Pi (3 and 4) w/ hw acceleration (h264_v4l2m2m codec) to encode a time-lapse MP4 from a series of stills. The current ffmpeg release (7:4.3.4-0+deb11u1+rpt3) produces a ...
0 votes
0 answers
27 views

How to stream adding a logo a scaling

I have this command line, ffmpeg -reconnect_at_eof 1 -reconnect_streamed 1 -reconnect 1 -reconnect_delay_max 4 -i hello.mp4 -i logo.png -filter_complex "overlay=10:10" -vf scale=1024:576 -...
0 votes
0 answers
49 views

An error occurred in convert MPEG4 to AMV via ffmpeg: AMV files only support 2 streams

About March, at that time, I found about convert MPEG4 to AMV via ffmpeg in superuser. And successfully uses this command to convert MP4 to AMV: ffmpeg -i C:\Users\26591\Videos\WebADB-Demo.mp4 -s ...
0 votes
0 answers
56 views

Recursively search all subfolders for png images and convert them to one mp4 video

I have timelapse camera that is recording a png picture every 30 seconds. The timelapse system makes a subfolder that has the date as its name and then each subfolder contains png files which are ...
2 votes
0 answers
23 views

Huge video duration after PGS subtitles burn onto video

i'm trying to burn subtitles onto video stream and something weird happens. This is my video file before the process: ffprobe version N-107936-gf99d15cca0-20220829 Copyright (c) 2007-2022 the FFmpeg ...
  • 21