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.

-1 votes
0 answers
22 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
30 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
69 views

How much and what data is lost in ffmpeg transcoding? [closed]

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
  • 11
-1 votes
0 answers
29 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
356 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
73 views

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

FFmpeg 7.0.1. I want to understand whether it is possible to trim a video using trim and to specify start and end time using the HH:MM:SS format instead of just seconds. That is, the following command ...
jsx97's user avatar
  • 49
2 votes
0 answers
54 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
63 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
35 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
72 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
98 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
66 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
52 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

15 30 50 per page