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
0 votes
0 answers
209 views

Extracting multiple video streams using FFmpeg

I have a video file that contains 4 streams, 3 videos streams and one steam for metadata. Stream Info: Input #0, matroska,webm, from 'output_master.mkv': Metadata: title : Azure Kinect ...
Ashutosh Singla's user avatar
1 vote
0 answers
95 views

FFmpeg dnn_processing with tensorflow backend: difficulties applying a dnn filter on an image

I am trying to perform a video segmentation for background blurring similar to Google Meet or Zoom using FFmpeg, and I'm not very familiar with it. Google's MediaPipe model is available as a ...
ArnoBen's user avatar
  • 11
0 votes
1 answer
972 views

What does the tag "-tag:v hvc1" means?

I am using FFMpeg to compress a video to X265/HEVC. When I am doing it normally the converted video doesn't working on iPhone or iPad. But while I am using the tag - "-tag:v hvc1" in the ...
d0tb0t's user avatar
  • 11
0 votes
0 answers
67 views

Why do I get a r_frame_rate of 1000/1 in ffmpeg for videos when using MediaRecorder to record getDisplayMedia?

Each time I download a video from a jsfiddle that I created the r_frame_rate is reported as 1000/1. However, I set the frameRate constraint to: { ideal: 30, max: 60}. When the stream object is logged ...
David Krause's user avatar
0 votes
2 answers
124 views

ffmpeg max resolution surpassed

I'm creating a sprite sheet for my website which will be used as an animated background mask on a button hover. The only issue I'm having is creating the sprite sheet mask I have 297 720p images I ...
InterPixel's user avatar
0 votes
0 answers
59 views

How do you blend smoothly between frames of video with ffmpeg?

I have a 10 frame timelapse video (@ 1 fps = 10 seconds long). I would like to add additional frames between these 10 frames that blend between them (so the transitions aren't so jarring) and still ...
nickponline's user avatar
0 votes
0 answers
75 views

FFmpeg select filter does not return frames

I observed a strange behavior while using the select filter. In short, I'm using ffmpeg to detect frozen sections in a video, calculate the exact middle point of these sections, then using filters to ...
Gergely Lukacsy's user avatar
1 vote
0 answers
63 views

ffmpeg QP: AMD Radeon (Vega7) hevc_vaapi results in lager files than hevc_nvenc - why?

I've switched from an RTX 3070 to an AMD Radeon Vega7 APU (4600G/5600G). I'm trying to tweak the ffmpeg parameters, so that the transcode output results in a similar quality AND file size. hevc_vaapi ...
Jaek Farce's user avatar
0 votes
0 answers
166 views

Why X265 conversion is very slow on some devices

When I am converting my video using FFMpeg, I am using x265 to do the compression. But the issue is this conversion is much much slower. But while I am using my iPad 6th Generation, this works much ...
d0tb0t's user avatar
  • 11
0 votes
0 answers
8 views

How to add and keep moving my custom image throughout the video with ffmpeg in nodejs

I need some guidance about how to implement this:- I recorded the user tab screen (without the default mouse), and now I want to capture the user mouse movements with my chrome extension throughout ...
Aviato's user avatar
  • 1
0 votes
2 answers
116 views

ffmpeg nearest-neighbor downscale not working as expected

I'm trying to downscale a video with nearest-neighbour scaling, but the results are very poor. To try and get to the bottom of it, I created this image which is a repeating pattern of various colours. ...
spacer GIF's user avatar
1 vote
2 answers
96 views

Changing the DEFAULT video stream?

I used VLC to play what's supposed to be a video file, and it plays just a still image with sound; Before trashing it, I decided to open it in the Windows Media Player, and to my surprise I can see ...
joedotnot's user avatar
  • 135
1 vote
1 answer
734 views

Unable to find a suitable output format for 'libfdk_aac' libfdk_aac: Invalid argument

I'm trying to run this command in Windows 10. The script ran fine with 2 60mb samples. But now trying to run it on the full video, I'm getting this error: Unable to find a suitable output format for '...
dkrus's user avatar
  • 11
0 votes
1 answer
84 views

Converting a log colour space to linear using ffmpeg

I'm making some viewing files of some neg film scans. The film scans are converted to FFV1.mkv using rawcooked and then I have an ffmpeg recipe to create the viewing files. I have managed to convert ...
jim_e_jib's user avatar
0 votes
0 answers
29 views

MOV file not playing in iMovie and QuickTime

I did convert two MTS files to MOV. But one of the file is playing and working fine in iMovie app and QuickTime. But the other is not working. I did convert the first file by doing copy the stream and ...
d0tb0t's user avatar
  • 11
0 votes
0 answers
87 views

how to encode a video like gopro 11 using ffmpeg

I want to concat two videos with ffmpeg. In order to concat the videos without re-encoding the videos have to be exactly the same format (same codec, same width, height, same color format, same time ...
Daniel Gómez's user avatar
1 vote
0 answers
105 views

FFMpeg - How to delete parts of a video that (partially) match an image

I have videos that include ad breaks whereupon the frames include a big logo in the middle (and text saying ad break). I have extracted one of those frames as an image. I want to run an ffmpeg command ...
charlie-bird's user avatar
0 votes
0 answers
133 views

FFMPEG Trying to make a 8K 30 FPS MP4 video out of several hundred 8K PNG images

I have been trying to make an 8K MP4 video @ 30 FPS out of a few hundred 8K PNG images using FFMPEG since forever, but to no avail. The PNG images are serially numbered, starting from 000000 and going ...
edeafeam's user avatar
0 votes
1 answer
96 views

How to cut video, add audio and burn subtitle while cropping video all in one command - ffmpeg

Currently I have the following command, which cuts the video, adds audio and burns subtitle into the video. -ss 00:00:30 -t -i video.mp4 -i audio.wav -vcodec copy -acodec copy -map 0:0 -map 1:0 -vf ...
constantlyFlagged's user avatar
1 vote
0 answers
140 views

Setting dpi flag in image files generated using ffmpeg

We're using ffmpeg to batch out some TIFF images that are being resized and having white borders created to fit specific paper sizes. The resulting images default to 72dpi, even when the source is ...
jim_e_jib's user avatar
0 votes
2 answers
124 views

Lossless masking of MP4/h.264

I am familiar with the UNIX command jpegtran which supports the wipe (1) command line option for JPEG (ITU.81) format. Using ffmpeg one can losslessly encode a jpg image sequence to a MJPEG video. I ...
malat's user avatar
  • 256
0 votes
1 answer
1k views

ffmpeg command to convert interlaced video to progressive without any loss of quality

Can anyone provide me with the ffmpeg code to convert deinterlaced 80's video to progressive video without any loss of quality - ideally where I could deinterlace only the interlaced fields(I use ...
Elvisisalive's user avatar
0 votes
1 answer
49 views

What improvements can I make to my FFMPEG script?

I am trying to create an FFMPEG script for some of my emulated game captures. I normally use Virtualdub2 (formerly Virtualdubmod) to upscale and trim my game captures for YouTube. With my laptop gone ...
GAP's user avatar
  • 51
0 votes
0 answers
66 views

Gray screen issue after recovered video with ffmpeg

After recovered ".mp4" videos from mobile phone, some videos were corrupt. I used the FFMPEG method to fix the videos. Some CMD commands below; First Code: recover_mp4.exe good.mp4 --analyze ...
Mark's user avatar
  • 1
0 votes
1 answer
75 views

Codecs supporting variable resolution (y height of frame changes with time)?

I found a video posted on discord once that made the whole webpage underneath it bounce up and down when it was played. I assume it must have been encoded using a codec that supports a variable ...
joejoejoejoe4's user avatar
0 votes
0 answers
147 views

Can't find the right video encoding setting to be able to send video over Messenger

I have been trying to transcode an existing video (let's call this input.mkv) to a new video file (output.mp4) in order to be able to send it over Facebook's messenger in the browser. So far, all my ...
tvc's user avatar
  • 101
0 votes
0 answers
63 views

mpeg-2 422P@H-14 by ffmpeg

I want to convert videos to mpeg2 422P Profile H-14 Layer, (422P@H-14), with the use of ffmpeg. What arguments would i need to use? I followed the comments in this forum post to solve my problem. I ...
mm_test's user avatar
0 votes
0 answers
176 views

Why does FFMPEG crash on me?

I'm a complete noob, but I've managed to get simple encoding jobs performed. For example: ffmpeg64 -i "source.mpeg" -c:v libx265 -preset slow -crf 14 -pix_fmt yuv420p10le output.mkv works ...
FFMPEGNoob's user avatar
0 votes
0 answers
73 views

ffmpeg works with laptop webcam but not with android camera

I am working on Macbook with M1 Chip with this ffmpeg version locally installed. ffmpeg version 5.1.2 Copyright (c) 2000-2022 the FFmpeg developers built with Apple clang version 14.0.0 (clang-1400.0....
Rajkumar Somasundaram's user avatar
0 votes
1 answer
82 views

ffmpeg how to change audio tbn

I changed my video container with: ffmpeg -hide_banner -y -i in.mkv -c copy -video_track_timescale 1k out.mp4 But video_track_timescale only changes video tbn, not audio tbn. To check it: ffprobe -...
kwjsksai's user avatar
  • 103
0 votes
1 answer
231 views

Why do I use ffmpeg to embed .ssa subtitles and ffprobe recognizes that the subtitle is ass format?

I use ffmpeg to embed .ssa subtitles into mkv, but ffprobe recognizes that the subtitle is ass format. ffmpeg -i input.avi -i input.ssa -map 0:0 -map 0:1 -map 1:0 -c copy demo.mkv Also, I learned ...
mm_test's user avatar
0 votes
1 answer
199 views

How to adjust video histogram using ffmpeg?

I have a dark video and'd like to adjust its histogram. In a graphical editor I've found the values of the color levels that enhance video contrast. How to set this level values in ffmpeg?
Ivan Z's user avatar
  • 101
0 votes
0 answers
127 views

FFMPEG hardware accelerated 10 bit downsampling to H264

I have a home setup where I use a Kubuntu 22 box as my home theater PC (HTPC) to play videos/movies/music in my living room. I also set up a raspberry Pi in the kitchen that receives a video stream (...
Jon V's user avatar
  • 1
0 votes
0 answers
42 views

FFmpeg - Cut video from the beginning until a certain pixel is colored at a specific color

I am new to working with FFmpeg and would like to automate video trimming but can't find a way to do it. So, what I would like to achieve is this: I want to delete the beginning of a video file until ...
himeh5's user avatar
  • 1
0 votes
0 answers
74 views

ffmpeg: Adding longer audio to shorter video, with video synced to end of audio

My audio file is longer than the video. I want to merge the two, but I want both audio and video to end at the same time, leaving black frames at the beginning of the video as the audio plays. How can ...
tiz.io's user avatar
  • 101
0 votes
0 answers
353 views

ffmpeg to MXF OP-Atom for Avid: how to get audio and video linked in Avid

I'm trying to create MXF Op-Atom files for Avid with ffmpeg. It works, but when put into an Avid bin, the Audio and Video show as separate clips. Is there some metadata I need to add so that Avid ...
mivk's user avatar
  • 567
0 votes
0 answers
43 views

How to make animation when composing mp4 with ffmpeg?

This code compose 3 mp4 into 1 with ffmepg, it works, but there is no animation: ffmpeg() .input(`./media/001.mp4`) .inputFormat('mp4') ....
János's user avatar
  • 105
0 votes
1 answer
243 views

ffmpeg dash output for multiple resolutions to be in the same mpd file

I am using ffmpeg to convert an input stream into multiple resolutions and creating an mpd for each resolution. So far, so good. But I am trying to find a way to create a single mpd for all ...
Rajkumar Somasundaram's user avatar
0 votes
1 answer
49 views

Fade transition - fade vs. fadefast vs. fadeslow

In the xfade filter, the speed of transition may be controlled by the duration= parameter – longer duration implies slower transition and vice versa. So why are there – beside the fade value for the ...
MarianD's user avatar
  • 1,494
0 votes
1 answer
117 views

ffmpeg - inacurate overlay position

I am trying to add two overlays using ffmpeg as below: [v0][1:v] overlay=21:24:enable='between(t,0.000, 1.135)' [v1]; [v1][2:v] overlay=120:24:enable='between(t,0.000, 1.135)' " These two ...
RadekJ's user avatar
  • 101
1 vote
1 answer
535 views

Can you fix videos with "error: more than 5 seconds of late video" without re-encoding with ffmpeg?

I have obtained a video, ffprobe for it shows: $ ffprobe test-000000.mp4 ffprobe version 4.2.7-0ubuntu0.1 Copyright (c) 2007-2022 the FFmpeg developers ... Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '...
sdbbs's user avatar
  • 141
0 votes
0 answers
169 views

Fast method for adding text watermark to only first 25 frames using ffmpeg

I am looking to add a text watermark to the first 25 frames of a video using ffmpeg. I have already tried the following command but it takes a long time as it processes the entire video: ffmpeg -i ...
Sarkar's user avatar
  • 101
1 vote
1 answer
264 views

Use same output file name from pipe as input name with ffmpeg

I'm trying to get the output name to be the same as the input name while using the pipe command in ffmpeg. The file is called 1-Minute Audio Test for Stereo Speakers & Headphones [2ZrWHtvSog4].m4a ...
Rick T's user avatar
  • 125
0 votes
1 answer
186 views

How do you convert an mxf file to wav using ffmpeg?

I am using a Mac, I've run this: ffmpeg -i source.mxf -map_channel 0.1.0 -map_channel 0.1.1 \ -af 'volume=volume=6dB:precision=fixed' target.wav but I keep getting 'no such file or directory' ...
r2blammy's user avatar
0 votes
0 answers
23 views

Creating video using ffmeg

I have a sequence of the image files which are named as follows; AA_0000000.jpeg, AA_0001000.jpeg, AA_0002000.jpeg, ... , AA_0300000.jpeg. I would like to make a video out of these image files. I run ...
alimuradpasa's user avatar
0 votes
0 answers
414 views

Change color and hue in video

I have an mp4 video with a 0x0000f6 background color, a grayscale subject with some areas highlighted in green. I'm attempting to set the background color to 0x111B40 and adjust the hue of the green ...
csm232s's user avatar
  • 101
0 votes
0 answers
46 views

Audio/Video sync issues in VLC but not in QuickTime

I have a HD video file - 422MB. When I open it with QuickTime everything is in sync. When I open it with VLC the audio is late by half a second. What may be the problem?
Uriel Frankel's user avatar
0 votes
0 answers
181 views

FFMPEG Seeking with concat demuxer out of sync

I have a very simple use case that's driving me bananas. My problem and question: I'm using ffmpeg version 5.1.2 on a MacOS and i'm using ffmpeg seeking and concat demuxer to cut many 1 minute videos ...
Garuuk's user avatar
  • 101
0 votes
0 answers
142 views

How output multiple stats file for multiple output?

I'm launching encoding ffmpeg using GPU with 2 outputs: one using H264_NVENC and one using HEVC_ENV. To enable video stats output I'm putting -vstats before input file. To specify output of video ...
Tarhan's user avatar
  • 101
1 vote
1 answer
434 views

ffmpeg seek position options not working with h264

I can use ss and sseof parameters with mp4 files and stream the result, but I get errors when I use same commands on h264 file (checked that it also works without seek parameters) here are the ...
Aras's user avatar
  • 15

1
3 4
5
6 7
43