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 &...
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 ...
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. ...
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 -...
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 ...
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 ...
1 vote
1 answer
1k views

Concatenate (non-encoding) without creating a text file ffmpeg

So after all the searches, I couldn't find anything relating to this topic. Can I do a non-encoding concatenation without having to create a text file?
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, ...
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 ...
213 votes
7 answers
268k views

How can I normalize audio using ffmpeg?

I want the loudest peak sound in a movie clip to be as loud as the codec allows, then have every other sound amplified accordingly. What's a practical example in order to accomplish this using ffmpeg?...
8 votes
1 answer
11k views

Using ffmpeg + MPDecimate to get rid of exact duplicate frames (i.e. losslessly)

According to the documentation, mpdecimate will "Drop frames that do not differ greatly from the previous frame in order to reduce frame rate." I would like to be able to remove only exact ...
0 votes
1 answer
6k views

How to convert 4K .mkv to .mp4 for YouTube

I want to convert small clips of a 4K movie to .mp4 without losing quality so I can upload them to YouTube. Loading a whole movie into Premiere Pro and then cutting it at exact points is already a ...
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 ...
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,...
0 votes
1 answer
4k views

FFMPEG transcoding failing on cur_dts is invalid

I'm transcoding RTMP input from NGINX ingesting server to UDP TS stream h264 & mp2 with ffmpeg and SW enconder libx264. From time to time, transcoding process hang on the initialization and don't ...
0 votes
2 answers
3k views

How to read the name of audio track using ffmpeg

I was able to create MP4 with multiple audio tracks and custom name for each track using this example How do I name an audio track with ffmpeg - Super User. Now I want to read the titles back ...
1 vote
0 answers
46 views

itDJ fails installation because FFmpeg is missing [closed]

I am trying to install itDJ but the installation stops and the window says I must install FFmpeg. It gives me the option to install it right then but it never downloads. I installed ffmpeg from ...
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 ...
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 ...
0 votes
1 answer
5k views

FFMpeg - How to resize and change colorspace in one command

I am trying to resize a 1080p mkv file to 1440p. The recording is in rec601 and the scale filter will change it to rec709 for some reason. I need to keep the recording in rec601 as the color will ...
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 ...
2 votes
1 answer
4k views

Normalize varying audio levels in a single video

I have a script to process/encode videos. Some of the videos have varying audio levels (like 2 videos were merged and one had loud audio and other quiet audio). I want to normalize the audio in a way ...
8 votes
2 answers
2k views

FFmpeg incorrect colourspace with hardcoded subtitles

Problem I have a MKV file which has 1 video and 1 subtitle stream, of which I want to hardcode the subtitle stream and output a MP4 file. Example file, images and results can be found here. mediainfo ...
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=/...
-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 ...
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 ...
-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 ...
0 votes
2 answers
3k views

FFPLAY/FFMPEG (Capture Device)

I'm copying some VHS tapes with my Windows 10 computer using FFPLAY/FFMPEG (Capture Device) in a Batch File. FFPLAY can view the tape this way, and it's great. FFPLAY.EXE -hide_banner -f dshow -...
-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 ...
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 /') -...
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 ...
2 votes
1 answer
359 views

how to remove SVT AV1 information from FFMpeg output

I can't find how to remove SVT AV1 information, like the ones I report below, from the FFMpeg output. Command : .\ffmpeg.exe -loglevel error -hide_banner -stats -hwaccel auto -i .\in.mp4 -c:V ...
0 votes
1 answer
5k views

How to record multiple RTMP streams into multiple files with FFmpeg?

I tried the following, but it does not work. ffmpeg -i rtmp://83.229.210.89/RAZTV/BTVraztv1 -map 0 -b:v 900k -vcodec libx264 -acodec aac -b:a 256k -strict -2 -t 3600 /media/TV_1T_3T_6/ffmpegtest/ort....
0 votes
1 answer
4k views

How to use ffmpeg to save video and audio streams to a file in Linux

My computer is Linux OS, and now I have a USB HDMI capture card, the chip is ms2109, it is compatible with UVC, you can think of it as a webcam. I tried to use obs to do this work, but obs does not ...
-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 ...
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 ...
2 votes
4 answers
9k views

Extracting frame timestamp (PTS) and seting it as a file name

I have a video file that lasts 9.3s and was recorded at FPS=10. I would like to use FFMPEG in order to extract frames from this video at arbitrary FPS (e.g. FPS=3). Example command: ffmpeg -i input....
11 votes
1 answer
6k views

Combine/concatenate multiple MP4 files, making each file into a chapter

I am looking to use handbrake to combine 43 short mp4 files into one larger file. However, I want to ensure that the start of each file is recognized as a chapter. I'd be using vlc to play the file.
0 votes
1 answer
4k views

Method to stop FFmpeg encoding process & complete uninstall in Windows 7

Recently i installed FFmpeg cause i want to convert 10bit H.265 to 8 bit H.264.I found the encoding to be very slow & want to uninstall this software Also can someone guide me on how to kill/stop ...
1 vote
3 answers
8k views

Live Streaming over rtmps using FFMPEG

Facebook has deprecated rtmp for Live API. My question now is how to use ffmpeg to stream live over rmtps? Here is my last command. ffmpeg -re -i 'https://sample-videos.com/video123/mp4/480/...
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....
1 vote
1 answer
4k views

ffmpeg h.264 options to pipe into VLC for MJPEG streaming

I am trying to get VLC to recognize ffmpeg libx264 h.264 output from a stdin pipe. I have a source of raw RGB24 video (currently a file, but eventually realtime from an app) that I wish to h.264 ...
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 ...
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 ...
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': ...
-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 = &...
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: ...
77 votes
14 answers
142k views

Properly downmix 5.1 to stereo using ffmpeg

I have a 5.1 audio track from a film where front left and front right contains music, and center contains dialogue. Playing the 5.1 track in VLC blends everything together nicely. I'm trying to ...
74 votes
4 answers
159k views

Install FFmpeg on OS X

Is there a good place or bash script I can use (or at least a version I can build myself) for FFmpeg on OS X? I have Xcode installed as well as the CLI for Xcode (gcc etc). I have a version of ...
1 vote
1 answer
3k views

Convert Dolby Vision file in MKV container to MP4 container

I have a 5GB Dolby Vision file encoded in MKV container. If I play this file in my LG CX TV, there is a discoloration all over the display. Apparently the default WebOS media player that comes with ...

1
2 3 4 5
143