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
12 views

How do you create an ffmpeg lossless image without re-encoding?

I'm using the command below but not sure if it’s really lossless and without re-encoding? Is there specific command to create lossless image and without re-encoding? I'm new to this. ffmpeg -lavfi &...
Michael's user avatar
  • 11
0 votes
0 answers
12 views

Apple 14+ is not playing this audio, used ffmpeg to increase volume in audio [migrated]

I recorded an audio using audacity, then increased its volume 10 times using ffmpeg. When I am sending this audio as attachment to my friends to test, then people with older i-phones are able to hear ...
Smith Kumar's user avatar
0 votes
1 answer
11 views

How can I delay a particular rectangular region in a video relative to the rest of it using FFMPEG or other software?

I am watching a video which is a power-point presentation but it also has a view of the speaker in the bottom left corner. Unfortunately, the powerpoint-view and the speaker-view are not synchronized. ...
Dargscisyhp's user avatar
0 votes
0 answers
13 views

ffmpeg doesn't have access to qsv nor vulkan

I'm running gentoo, and I have media-libs/oneVPL-intel-gpu installed, and latest mesa drivers, and intel gmm, however, qsv refuses to transcode and gives me the following error everytime ffmpeg -...
Deyaa's user avatar
  • 1
1 vote
0 answers
18 views

Is there a way to use Intel QSV to have hwaccelerated tone mapping in ffmpeg?

Currently I am trying ffmpeg -hwaccel qsv -hwaccel_output_format qsv -i "Z://Movies/Luca/Luca.mkv" -vf 'hwdownload,format=p010,zscale=transfer=linear,tonemap=hable,zscale=transfer=bt709,...
Nathan Cloutier's user avatar
2 votes
0 answers
53 views

Why can ffmpeg cause a reboot?

Four times in a row, when I started a short simple ffmpeg command on my Ubuntu host, after about ten seconds it rebooted cleanly. Nothing appeared in /var/log/syslog. The fourth time, I ran it ...
Camille Goudeseune's user avatar
0 votes
0 answers
11 views

Avidemux loads vertical video in horizontal orientation

I have recorded a video while holding phone vertically. It opens vertically on phone, as well as on PC, in VLC. However, when I load it in Avidemux it rotates the video to horizontal aspect rate. I ...
overdriven's user avatar
0 votes
0 answers
12 views

Physical server requirements for ffmpeg process [closed]

I need estimate hardware configuration for a server with the following requirements: Backend using Nest.js Frontend using Next.js Microservice using Flask The backend will utilize FFmpeg processes to ...
JULTRUN333's user avatar
0 votes
0 answers
37 views

How do I prevent an extended frame when suspending and resuming an ffmpeg process?

I have a c# application where I have control of an ffmpeg (https://www.ffmpeg.org/) process. I am using it to capture video and audio, either from desktop or webcam. I am using code similar to the ...
this_is_a_display_name's user avatar
2 votes
1 answer
106 views

What a correct playlist.m3u8 should contain, or should look like?

24/06/2024: [Presentation of the problem] I had dowloaded some videos from the Internet, few years ago. I obtained many files: a series of files in .ts a single file playlist.m3u8 In my example: A ...
dg lr's user avatar
  • 57
0 votes
0 answers
22 views

ffmpeg convert container format without re-encoding

This works: ffmpeg -i test.caf recoded.opus ffmpeg version 6.0 Copyright (c) 2000-2023 the FFmpeg developers built with Apple clang version 15.0.0 (clang-1500.0.40.1) configuration: --prefix=/...
lwa's user avatar
  • 1
0 votes
1 answer
58 views

How to solve a final pb when merging a series of .ts file with concat command of FFmpeg?

I had dowloaded some videos from the Internet, feaw years ago… I obtained many files: a series of files in .ts In my example: a series of 306 files named from segment1_4_av.ts to segment306_4_av.ts A ...
dg lr's user avatar
  • 57
0 votes
0 answers
29 views

Drawtext error FFMPEG 7

I upgraded to ffmpeg 7 and now drawtext is no longer found. I already had --enable-libfreetype and was working fine with ffmpeg 6. I tried to add --enable-libharfbuzz from Gyan's answer here But then ...
Panama Jack's user avatar
-2 votes
0 answers
16 views

Newbie using it for the first time sadtalker error code questions (Unable to output [duplicate]

I'm a complete novice and I got an error the first time I used it. I plan to use sadtalker to make audio videos. After uploading the video and picture materials, an error occurs after the progress bar ...
gg319 accgg's user avatar
-1 votes
0 answers
42 views

sadtalker error code troubleshooting related questions [closed]

I plan to use sadtalker to make audio videos. After uploading the video and picture materials, an error occurs after the progress bar runs out. When asking chat gpt, I got the problem of wrong path ...
gg319 accgg's user avatar
0 votes
1 answer
61 views

To cut and download part of video from vk.com

I try to cut and download part of an online video from vk.com, using yt-dlp and ffmpeg, in one step. I tried ffmpeg $(yt-dlp -g 'https://vk.com/video302700968_456241462' | sed 's/^/-ss 05:00 -i /') -...
jsx97's user avatar
  • 49
-1 votes
0 answers
16 views

Highlight video motion into to a single image

I have a fixed camera that captures the motion of a ball bouncing around. I would like to convert this into an "action shot" or simply a superimposed picture of all the balls. It has to be ...
Andy Chow's user avatar
0 votes
0 answers
33 views

How can I add background box to words in ASS subtitle format?

I want to add a background box to the word being spoken, I have tried different ASS subtitle tags but none seems to output my requirement. Which tags can be used to achieve that? I was trying ...
fady taher's user avatar
0 votes
0 answers
11 views

Highlight video motion into to a single image using Linux tools? [closed]

I have a fixed camera that captures the motion of a ball bouncing around. I would like to convert this into an "action shot" or simply a superimposed picture of all the balls. It has to be ...
Andy Chow's user avatar
-1 votes
0 answers
20 views

ffmpeg video faded, poor black depth

When I capture streaming video with ffmpeg I notice that the overall picture is a bit faded, and most notably areas in the frame that are true black are not fully black compared with the original. Is ...
Ken Mandelberg's user avatar
0 votes
0 answers
29 views

Some mp4 files converted with ffmpeg are off by .01 frames/second, how can I fix this (without resampling)

I have several mp4 files with a frame rate of 119.88 frames/second, I need to convert these to 29.97 frames/second without resampling. To do this, I ran ffmpeg -itsscale 4 -i input.mp4 -c copy ...
twilightecologist's user avatar
0 votes
1 answer
36 views

How much and what data is lost in ffmpeg transcoding?

I'm a ffmpeg noob, I don't know much about it except for a basic idea about encoding/decoding and a few videos I watched over youtube about it's usage. I also don't have a big background in digital ...
Deyaa's user avatar
  • 1
-1 votes
0 answers
26 views

Powershell script isn't splitting a video into multiple videos for each chapter

I made a script in pwsh to split video files into separate files for each chapter: Get-ChildItem -Recurse -Include *.mp4, *.mkv, *.avi, *.mov, *.ts | ForEach-Object { $ffmpegOutput = &...
Lord Lance's user avatar
2 votes
1 answer
348 views

Why does crossfading audio files in ffmpeg produce just the last input?

I have two input files (track1.m3 and track2.opus) from which I want to extract four clips and crossfade them in sequence. I arrived at this command based on an answer from Gyan on Stack Overflow: ...
Aankhen's user avatar
  • 125
0 votes
0 answers
34 views

Video width&height is horizontal but video frames are vertical. How to fix it with ffmpeg?

I have a video, that when checked with ffmpeg/ffprobe shows a horizontal aspect ratio. ffprobe.exe my_video.mp4 -show_streams -of json Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'my_video.mp4': ...
sthlm58's user avatar
  • 113
0 votes
2 answers
96 views

Removing a segment from the middle in ffmpeg

Say I want to remove the part between second 60 and the second 200: file video outpoint 60 file video inpoint 200 then running the ffmpeg concat command: ffmpeg -f concat -i input.txt -c copy output....
Mohammad Mansour's user avatar
1 vote
1 answer
56 views

FFmpeg: To trim a video using 'trim' and specifying time in HH:MM:SS format

The following command trims a video from 5s to 10s: ffmpeg -y -i input.mp4 -vf trim=5:10,setpts=PTS-STARTPTS output.mp4 But if I try to specify start and end time using HH:MM:SS format, FFmpeg ...
jsx97's user avatar
  • 49
2 votes
0 answers
53 views

How to split an mp4 into smaller equally sized parts using ffmpeg

I have tried to split an mp4 file into smaller parts of equal time length like this ffmpeg -i ../data/2024-06-02_12-34-51.mp4 -c copy -map 0 -segment_time 00:00:05 -f segment v1_%03d.mp4. However, ...
GBPU's user avatar
  • 121
1 vote
0 answers
56 views

How can I remove every nth frame from raw video using ffmpeg?

I have many cine films that have been digitally converted. They have been converted as a 25 fps with 2 frames in every 23 duplicated. I need to remove the duplicated frames using a bitstream filter so ...
DaveB44's user avatar
  • 11
0 votes
0 answers
32 views

watermark a certain part of an input video with FFmpeg, but output the whole video without triming the length

the original video is 2 hours long, so I don't want to render the whole video since it's time consuming,when I set the time like -ss to -t,the final file only output a portion of the original video, ...
jackie2jet's user avatar
1 vote
1 answer
66 views

How to merge all mp3 files located in the same directory?

The command below used to work but stopped around ubuntu/kubuntu 20.04. ls *.mp3 | sed -e "s/\(.*\)/file '\1'/" | ffmpeg -protocol_whitelist 'file,pipe' -f concat -i - -c copy output.mp3 ...
Cortez's user avatar
  • 11
1 vote
0 answers
90 views

Trimming a video using FFmpeg leads to black screen

I try to figure out how to use FFmpeg to trim videos. I have created a 30 second .mov screen capture using Apple's QuickTime player, and then tried to trim it using three different ways: Using -...
jsx97's user avatar
  • 49
1 vote
0 answers
65 views

Take Screenshot/snapshot from .ts file

I need to take a screenshot/snapshot from .ts files. Currently using the command: ffmpeg -ss 00:06:05.6710000 -i input.ts -frames:v 1 -q:v 1 output.jpeg This works fine for .mp4 files, but for .ts ...
AVG's user avatar
  • 111
1 vote
1 answer
51 views

Using ffmpeg, how can I split an incoming stream, one live web streaming, the other mp4 but in timed chunks?

I have a single mpeg-ts input stream, http://192.168.1.100/stream0, and I wish to do two things with this stream. One output is to be a hls multipart stream with m3u8 so apache can serve to local ...
Jon37's user avatar
  • 21
1 vote
0 answers
44 views

Ffmpeg webm YouTube settings command

Is there a .webm still image command in ffmpeg that is best compatible with YouTube I’m currently using: ffmpeg -loop 1 -framerate 2 -i input.png -i audio.m4a -c:v libx264 -preset medium -tune ...
Michael's user avatar
  • 11
0 votes
0 answers
8 views

ffmpeg does not exit when pipe is closed? [migrated]

If this has already been brought up, I apologize. This is part of a software tuner package I am writing as a POC. It is used by Plex Media Server. For the most part, it works with good picture quality ...
Thomas's user avatar
  • 1
2 votes
0 answers
29 views

ffmpeg - mpegts Multicast

I'm generating a multicast stream with this command: ffmpeg -hwaccel_device 1 -format_code Hi50 -re -f decklink -i 'DeckLink Duo (1)' -pix_fmt yuv420p -c:v h264_nvenc -profile:v high -b:v 3500k -rc 2 -...
Miguel Duarte's user avatar
2 votes
1 answer
52 views

FFmpeg is sometimes slow when cutting video from a network URL

I recently encountered some problems while using FFmpeg to cut videos. For certain videos, FFmpeg processes very slowly and sends multiple HTTP requests to file links. I suspect there's an issue with ...
Hanaasagi's user avatar
  • 121
1 vote
1 answer
48 views

Looking for a better cutting command in FFmpeg

This is the original command, it removes the part between the start and end which will be specified in command: ffmpeg -i input.ext -vf "select='not(between(t,start,end))', setpts=N/FRAME_RATE/TB&...
Mohammad Mansour's user avatar
0 votes
0 answers
38 views

av1_vaapi ffmpeg throws error on last frame of video

I've been using ffmpeg and vaapi to transcode video files, it has been working great except for one group of video which has been throwing the error [vf#0:0 @ 0x5d37f5dd6dc0] Reconfiguring filter ...
Richard Ledbetter's user avatar
0 votes
0 answers
41 views

decreasing probesize on FFMPEG stops audio

I'm trying to setup an encode/decode pair across our corporate wan with the least amount of delay as possible. So far I've been able to get the delay down using -probesize but we've found any value ...
John Munoz's user avatar
0 votes
0 answers
34 views

ffmpeg command to combine mp3 file and embedded album art image file metadata into a video

my below ffmpeg command works for combining 1 audio file with 1 image file into a video. ffmpeg -loop 1 -framerate 2 -i "C:\Users\marti\Videos\ig_sf_6.5.24_highlights\apple image.jpg" -i ...
Martin's user avatar
  • 131
0 votes
0 answers
40 views

Rescale videos and then pad them using vaapi and hwaccel with ffmpeg in amd, linux

This command, make videos to be padded first and then scale them afterwards. However, i want exactly the opposite, first to scale them and then to pad them. How I can do that? rm a_*.mp4; for vids in *...
Estatistics's user avatar
1 vote
1 answer
170 views

Cutting a part from a video: Should '-ss' be before 'i' or after?

Let's say I need to remove everything but the second minute from a video. I can do this, for example, in the following way: ffmpeg -copyts -ss <start> -i input.mp4 -to <end> -c:v libx264 -...
jsx97's user avatar
  • 49
0 votes
0 answers
17 views

ffmpeg extraction with fixed color number

I need a hand in extracting images/frames from mpeg video with specified number of colors, for example when I use identify verbose to see the number of colors
George zaher's user avatar
0 votes
0 answers
34 views

How to create a compatible encoding for the Blackmagic Media Express application using ffmpeg

I'm using the Blackmagic Media Express application frequently but now I'm stuck trying to transcode files using ffmpeg that will be able to play in the BME app. It seems that the BME application is ...
DrBob's user avatar
  • 1
0 votes
0 answers
59 views

For some reason the -threads option for ffmpeg is being ignored

All I'm trying to do is restrict this process to a single core, assuming there won't be a reduction in quality beyond what I could expect while multi-threading, but for some reason it's still using ...
imkira3's user avatar
  • 19
0 votes
2 answers
129 views

How to extract frames from a video using ffmpeg?

Basically I want to extract all frames from the video where the images will be resized to be 720p. All of this I know how to do. But for testing I want to extract every Nth frame. So every 30th image ...
Joan Venge's user avatar
  • 1,496
5 votes
1 answer
292 views

Ffmpeg: concatenate videos and keep framerate the same

I have the following command cobbled together so far: ffmpeg -i input.mp4 -filter_complex "\ [0:v]trim=start=175.2:end=200.9,setpts=PTS-STARTPTS[v1]; \ [0:a]atrim=start=175.2:end=200.9,...
Timwi's user avatar
  • 1,993
0 votes
0 answers
44 views

Using x265-params with ffmpeg does not impact file size nor quality

I am using the following line in Python to compress videos into h265 (in Google Colab). !ffmpeg -v error -nostats -hwaccel_output_format cuda -i "$input_folder/{filename}" -metadata comment=&...
wanderer's user avatar

1
2 3 4 5
143