Questions tagged [ffmpeg]

FFmpeg is a free software project that produces libraries and programs for handling multimedia data. The most notable parts of FFmpeg are libavcodec, an audio/video codec library used by several other projects, libavformat, an audio/video container mux and demux library, and the ffmpeg command line program for transcoding multimedia files.

Filter by
Sorted by
Tagged with
1 vote
0 answers
10 views

ffmpeg merge videos with different audio encoding

How can I merge two videos that have different audio encoding using ffmpeg. I don't want to re-encode the video but re-encoding of the audio portion is fine. Video1 audio codec: sowt Channels: Stereo ...
  • 111
1 vote
1 answer
10 views

ffmpeg - Too many inputs specified for the "split" filter

So I'm trying to add text and a logo onto all my video qualities with HLS and I am receiving the error Too many inputs specified for the "split" filter. I am not sure how to correct it so ...
0 votes
0 answers
7 views

ffmpeg - How do I modify Channel Layout labels only on 8 separate mono audio tracks?

I have a QuickTime .mov file which has 1 video track (ProRes 4444 XQ) and 8 mono audio tracks, which combined make up the 5.1 surround mix and a stereo mixdown. Per delivery requirements, I need to ...
1 vote
1 answer
16 views

How do I add (layer) a .wav audio file to a ProRes 422 HQ .mxf video without re-encoding?

Here's the detailed info of the .mxf video General Complete name : D:\R-2180634-1250074380.jpeg-gigapixel-low_res-scale-2_00x.mxf Format : ...
1 vote
0 answers
9 views

ffmpeg drawtext + colorspectrum - background partly transparent only

I am currently working with the drawtext/alphamerge filters to have the text coloured with colorspectrum on a transparent background. While I have been trying many options, the closest I managed to ...
  • 11
0 votes
1 answer
18 views

Is there a way to name/label inputs in ffmpeg, instead of using input number?

I'm writing a program to automate building of an ffmpeg command line. One thing that is challenging me is that ffmpeg uses index numbers to identify the input sources. It would be easier if there was ...
0 votes
0 answers
15 views

Issues in trimming a video with FFmpeg

I have a .webm video captured through a web browser. Using ffmpeg, I want to trim it into its first 30s without re-encoding and quality degradation. But I have issues doing it and ffmpeg complains ...
  • 101
1 vote
1 answer
21 views

Mpeg file not playing to the end - how to fix corruption

I have a 3.6gb mpeg2 video file the length should be about 25min but the file is corrupt after about 13 minutes and it stops there. This is the result I got when I tried to correct it: Z:\Recovery\bin&...
  • 11
0 votes
0 answers
12 views

FFmpeg v4l2 recording - variable frame rate output

I have a video device and an audio device I'm trying to record from, as below: $ v4l2-ctl -d /dev/video0 --list-formats-ext ioctl: VIDIOC_ENUM_FMT Type: Video Capture [0]: 'MJPG' (Motion-JPEG,...
  • 1
0 votes
0 answers
21 views

how to compare 2 video (side by side, lossless way) with ffmpeg?

I have 2 mkv. They have the same pixel format and resolution. They are the same video but: A.mkv Is the original file B.mkv Is encoded with x265 I want to play them simultaneament. Only the left ...
0 votes
0 answers
39 views

ffmpeg MP4/x264 output colours change when input source is different resolution (bug?)

I'm a beginner to ffmpeg so I'm having a hard time believing that a utility so old and so widely used has such a fundamental bug, but the evidence is staring me in the face and leads me to no other ...
  • 101
0 votes
0 answers
13 views

How to use FFMPEG graph2dot tool

I'm trying to debug some FFMPEG filters and can't get graph2dot to work. Using the simplest example from the documentation: echo "nullsrc,scale=640:360,nullsink" > vf graph2dot -i vf -o ...
0 votes
0 answers
9 views

Could someone please explain significance VIF and ADM metrices in VMAF?

I've been studying about video quality assessment metric VMAF and I know VMAF score is calculated based on VIF, DLM and Motion. I want to know in layman terms how is VIF and DLM calculated and then ...
0 votes
0 answers
16 views

Creating a 0x0 webm file

Currently, I am trying to create a video that changes size using the ffmpeg concat function. However, I want to make the video hide, and the only way to do that is to make it a line. But, I want to ...
0 votes
0 answers
35 views

ffmpeg convert and segment subtitles

I'm trying to create an HLS subtitle playlist from subtitles embedded within a video file. So the input looks something like this: container: mkv stream 0: video h264 stream 1: audio aac stream ...
  • 136
1 vote
0 answers
9 views

Duplicating every frame with ffmeg

I plan to do some stop motion animation and would like to shooot in twos - basically shooting at 12fps and duplicating every frame. I can do this with the camera, but was wondering if there isn't ...
  • 11
0 votes
0 answers
16 views

How to extract part of a video with subtitles included?

How to extract part of a video with subtitles included? I have a video (in .mkv format if it matters) and its subtitles of multiple languages (usually embedded in the file as selectable subtitles (but ...
  • 123
0 votes
1 answer
42 views

How to convert ProRes/Quicktime MOV to instagram-friendly with ffmpeg so I can post it on IG

My colleague made a really nice video to hype my record release. The file he exported is a 1.3GB MOV file, and appears to use the Apple ProRes codec in a quicktime container (I have no idea what this ...
  • 103
0 votes
0 answers
12 views

How to properly convert PNG to video with FFmpeg (JPG to video however works)? [duplicate]

I would like to make an image to a 15 second long video 30fps using the same dimensions as the image. In my test case, I use the following command: ffmpeg -y -framerate 1/15 -i image.jpg -c:v libx264 -...
  • 101
0 votes
0 answers
225 views

"Non-monotonous DTS in output stream 0:0 This may result in incorrect timestamps in the output file." error

Adding all mp4 file in the directory with FFMPEG . my usual command: ffmpeg -f concat -safe 0 -i <(for f in ./*.mp4; do echo "file '$PWD/$f'"; done) -c copy output.mp4 This shows below ...
  • 1
0 votes
1 answer
18 views

How to efficiently create a video from an mp3 and a single jpeg using ffmpeg?

I have a 329MB MP3 file and a 200K JPEG image, which I'd like to combine into an MP4 file which simply plays the MP3 with the image in the background. The way I go about it today is by using FFMPEG ...
0 votes
0 answers
34 views

Remove black frames from a videos

Is there any way to remove & replace black frames from a video without losing video quality? There are like just 3-4 frames to be removed. I tried this method, but the result was nt that great and ...
1 vote
1 answer
106 views

Using FFMPEG to convert an MKV with multiple subtitles, audio tracks and chapters to a plain mp4

I have MKV files which contain multiple subtitle options, multiple audio options, and multiple chapters. I'm wanting to convert to MP4. The MKV's are x265 with DD 5.1. I just want x264 MP4's with ...
  • 113
0 votes
0 answers
30 views

Applying dynamic mask across all images to make uniform with baseline

I do time lapses. In the attached image, notice each image has slightly different shades but are otherwise consistent. This is an artifact of a mechanical shutter. I'd like to take a single pixel in ...
0 votes
0 answers
27 views

Putting a png background on h264 encoded mp4 video using ffmpeg

I would like to put a png file as a background to an h264 encoded mp4 video. I am just trying to replace the video's white background with a specific png background. They are both of the same size. ...
0 votes
0 answers
24 views

Run FFMPEG-Kit command with commas and single quotes

I am using FFMPEG-Kit for iOS BUT this issue applies to all releases of FFMPEG-Kit... within my command I run [1:v]format=argb,geq=r='r(X,Y)':a='0.5*alpha(X,Y)'[withOpacitySet] but it does not work, ...
0 votes
0 answers
41 views

FFMPEG Highest quality without highering bitrate

I need the highest possible quality without needing to raise the bitrate or changing the codec (h264). I came up with this command ffmpeg -c:v h264_cuvid -i input.mp4 -preset placebo -b:v 1400k -b:a ...
0 votes
0 answers
69 views

Is it possible to embed a thumbnail in a .mkv file?

I am trying to embed a thumbnail in a .mkv file with h265 video encoding using ffmpeg from the Linux command line. I am able to embed thumbnails in h264-encoded .mp4 files using the following command: ...
0 votes
0 answers
25 views

Join Two video Error "h264_mp4toannexb filter failed to receive output packet videolist.txt"

When I merge two video then it give this error "h264_mp4toannexb filter failed to receive output packet" both video has same format, regulation, code. Please Help ffmme.
0 votes
0 answers
52 views

How to merge images into video and add audio using FFMPEG?

I am very inexperienced using FFMPEG, so your help will be greatly appreciated! I have the source video. Here is what I am trying to do with it: I need to extract all frames from the source video ...
0 votes
0 answers
9 views

I was encoding a video 1080p hevc i got a 7mb file And an error ErrorDetectionType : Per level 1

I was encoding a video 1080p hevc i got a 7mb file And an error ErrorDetectionType : Per level 1 This error is in my telegram bot using ffmpeg library This is the video info before http://telegra.ph/...
1 vote
0 answers
26 views

How to convert camrec to mp4 using ffmpeg?

I raise such problem but in the same post I raise the solution. The first thing to know is that the .camrec format (from Camtasia) is a compressed file, so we must first decompress these files before ...
  • 11
1 vote
0 answers
43 views

What actually distinguishes various MPEG-4 Part 2 video codecs (divx, xvid, mpeg4, msmpeg4v1, mp4v, etc.)

I recently audited a large folder containing a variety of encoded videos from 2002-2014. Using ffmpeg, I extracted and recorded metadata, including the video codec used on the film. An example command ...
  • 61
1 vote
1 answer
91 views

Remove tiktok video logo/watermark using ffmpeg?

How I can remove tiktok video logo using FFmpeg? Like most sites are doing e.g https://ssstik.io/en I tried to remove the logo using delogo filter but it leaves a blur effect in the video while the ...
0 votes
0 answers
72 views

Merge Insta360 INSV files into 360 video with ffmpeg 360vr filter

Insta produces 2 video files, from back and front camera. They have .INSV extenstion, but they are acutally mp4 video files. That's how they look: And expected result is 360 panorama video: Can I ...
0 votes
0 answers
44 views

Use ffmpeg to cut video to shortest stream leangth

First post, so Hi, but anyway, am try to cut a video which has a video stream significantly shorter that the included audio tracks. I've tried this REM Testing for loop FOR %%m in (*.mkv) do ( REM Cut ...
0 votes
1 answer
26 views

Help needed on ffmpeg zoompan filter expression syntax

I have the following command: ffmpeg -loglevel verbose -y \ -i "https://my.domain/workspaces/473/RFP-107718.mp4" \ -i "https://my.domain/workspaces/473/margaritaville/palm_beach.png&...
0 votes
0 answers
15 views

Can I label streams during import in ffmpeg?

Suppose I import three videos: -i 'video0.mov' -i 'video1.mov' -i 'video2.mov' Then I open a filter_complex. I can send the videos filters by referring to their number, which ffmpeg documentation ...
  • 101
0 votes
0 answers
14 views

FFmpeg saturates memory + CPU usage drops to 0% during very basic conversion of PNG files to MP4 video

I have this Python function that runs ffmpeg with minimal options from the Windows command line: def run_ffmpeg(frames_path, ffmpeg_path=notebook_directory): ''' This function runs ffmpeg.exe ...
0 votes
0 answers
6 views

Adjust playing length to fix target timespan?

Given a video with a playing length of e.g. 30min, is there a way I can reduce the playing length to a fixed target length? E.g., 5min?
0 votes
0 answers
7 views

Confused about framerate and resulting video length [duplicate]

I am trying to create a video (time-lapse) out of a bunch of jpegs I took within roughly six months. Here is the command I've used. ffmpeg -hide_banner \ -benchmark \ -pattern_type glob \...
1 vote
1 answer
44 views

Cryptic FFmpeg + Python error: "Cannot find a matching stream for unlabeled input pad 0 on filter Parsed_crop_1"

I want to use ffmpeg with Python in a Jupyter notebook to create a video from 2000 PNG image files generated by matplotlib. I'm on a Windows 7 machine. The frames are very narrow and high, so I'd like ...
0 votes
0 answers
14 views

Concatenate image with audio using melt

We are using this mlt configuration <?xml version='1.0' encoding='utf-8'?> <mlt title="Anonymous Submission" producer="main_bin" version="6.20.0" root="&...
  • 1
0 votes
0 answers
36 views

How to use/download FFmpeg LGPL build with the LGPL h246/libx246 (not Open H246)?

I am exploring all the different license options of distributing a commercial Desktop software that uses FFmpeg. From what I understand, there are two versions of FFmpeg full builds that can be ...
  • 101
0 votes
1 answer
29 views

How to put an image on top of video using ffmpeg? +scale video

What i have : png picture dem.png (not transparent) and video cat.mp4. I need to put this png as a background to video with resizing video inside. Current result : by executing : ffmpeg -i cat.mp4 -...
0 votes
0 answers
55 views

Add video in front of image (background) using ffmpeg?

I have a png and would like to add there video, so png is my case is something like a border. I trying : ffmpeg -i cat.mp4 -framerate 30 -i dem.png -filter_complex "[0]pad=1920:1080:500:0[vid];[...
0 votes
0 answers
64 views

Export a video to 4k or 2k with FFMPEG and without lag (UPSCALE VIDEO)

how do I upscale a video to 4k or 2k with ffmpeg? youtube encodes the videos which results in some quality loss of the video. So to make youtube use VP09 encoder on my videos, I have to export the ...
  • 13
1 vote
1 answer
48 views

Whats the smoothest way to screen record with FFMPEG with accurate colors?

ffmpeg -f x11grab -framerate 60 -probesize 42M -i $DISPLAY -preset ultrafast -pix_fmt yuv420p vid.mp4 I use this currently and the video recording is smooth but colors are not accurate, they are ...
  • 13
0 votes
0 answers
19 views

What ffmpeg command flags to use for concatenating video files without errors

I run the following command to concatenate video clips that come straight out of my camera (my camera breaks them down into 4GB files). ffmpeg -safe 0 -f concat -probesize 256M -i input-files-to-...
  • 111
0 votes
0 answers
80 views

Best deinterlacing filter for FFMPEG (no GPU)

I am hoping you can help. I am trying to extract frames (1 per second) from various videos and from various sources. However, I am getting blur/deinterlacing (see below). I've tried with various types ...

1
2 3 4 5
39