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
1 answer
19 views

Ghost image issues with ffmpeg -filter_complex displace

I've (almost) been able to apply a displacement based on 2 animated gaussian noise videos, but I'm having issues with a ghost image. A picture is worth a thousand words. Here you have a script to ...
user avatar
  • 101
0 votes
0 answers
21 views

What video container formats are similar to MPEG-TS?

I have been looking to live video streaming where a client can join the stream of bytes and play the video automatically. I have recently found MPEG-TS which seems to work pretty well, and I noticed ...
user avatar
  • 1
0 votes
0 answers
10 views

ffmpeg to output something video/mp4; codecs="avc1.42401f" can read

I have a webapp that plays a video through the MediaSource API. The codec is set to video/mp4; codecs="avc1.42401f" and I cannot change that. I'm able to play the following file https://...
user avatar
  • 101
0 votes
1 answer
27 views

Meaning of ffmpeg output (tbc, tbn, tbr)

I am using ffmpeg to tell me video info. Specifically: ffmpeg -i video.ext I get the output: Stream #0.0[0x1e0]: Video: mpeg2video, yuv420p, 704x576 [PAR 12:11 DAR 4:3], 9578 kb/s, 25 tbr, 90k tbn, ...
user avatar
0 votes
0 answers
14 views

How to make FFMPEG start faster (Initial delay creates extra latency)

When starting a transcoding process (for RTMP -> HLS in this case) the ffmpeg process does some probing initially. This takes at least 1 second. Afterwards the transcoding starts. The transcoding ...
user avatar
0 votes
0 answers
5 views

How do I remove background from camera video with ffmpeg?

I'm overlaying my camera video on a screencast. Is there anyway to remove the background (like how zoom etc do it live) using ffmpeg and filter? Here is the command I use now: screencap() { file=`...
user avatar
  • 121
0 votes
0 answers
9 views

ffmpeg, why down-conversion results in bigger file?

I usually reconvert my videos recorded on Android, because most of the time they can be well compressed. I mean, sometimes 150Mb becames 50Mb or even better, sometimes just a few megabytes gets saved. ...
user avatar
0 votes
0 answers
13 views

FFMPEG conversion from HEVC .MP4 video to .MKV stutters in VLC

I've been trying to convert a .mp4 file containing a HEVC encoded video and AAC encoded audio into a .mkv container with ffmpeg. However, when I try to play the resulting file in VLC it stutters. ...
user avatar
0 votes
0 answers
7 views

ffmpeg complex filter lowering audio quality

I used some complex filters on a audio file and did some re-encoding. ffmpeg -f lavfi -t 5 -i anullsrc=channel_layout=stereo:sample_rate=192000 -i file1.mp3 -filter_complex "[1:a][0:a]concat=n=2:...
user avatar
  • 21
0 votes
0 answers
10 views

Use ffmpeg to stream rawvideo from a USB camera

I have a image sensor that streams 640x480 in RAW8 format. A USB controller is receiving this data, packing two pixels of 8-bits each and sending to USB as a 16-bits per pixel YUV422 format (this is ...
user avatar
  • 1
0 votes
0 answers
26 views

Command for dithering video using FFMPEG?

Noob here. I'd like to use FFMPEG to dither a video file. I'm unable to find how to put together a command and where and how to use it. I really like the look of ezgif.com gifs, which I believe use &...
user avatar
0 votes
1 answer
18 views

How can I apply a crop to frames before tiling with ffmpeg?

I'm using the following to build a preview filmstrip image by grabbing every Nth frame and tiling them into a grid: ffmpeg -i "$file" -frames 1 -vf "select=not(mod(n\,$N)),tile=${COLS}x$...
user avatar
1 vote
0 answers
19 views

Improve sound + image combination performance

First question on this site, unsure if it's off-topic to ask for specific solutions to specific problems. If it is, I'm sorry in advance. Code I have the following ffmpeg command inside a bash script. ...
user avatar
0 votes
0 answers
6 views

FFmpeg - Is it possible to invert blackdetect filter's results to extract timecodes start/end of "segments" between blacks?

I'm researching to automate some process on rushes video files. The timeline is black > sequence > black > sequence... I would like to extract the timecodes start/end of each sequence and ...
user avatar
1 vote
1 answer
28 views

ffmpeg merge video with 2 audio files

What I'm trying to accomplish is the following: I want to use ffmpeg (preferably a single command) to combine a video (video.mp4) file with an audio file (audio.mp3) and have some background music (...
user avatar
  • 21
0 votes
0 answers
6 views

FFMPEG: concatenate short excerpts from multiple videos on frame basis

Synopsis: For a music video project, I want to concatenate a larger ammount of short excerpts from multiple videos into a kind of video "remix" on Windows (10). The concatenation should work ...
user avatar
0 votes
0 answers
10 views

FFMpeg generate single rawvideo every n second

I am trying to create byte arrays to search video file duplicates with different resolutions. For creating single byte array, I am use next command: -t 1 -f rawvideo -pix_fmt gray -vframes 1 -s 32x32 ...
user avatar
  • 101
1 vote
0 answers
5 views

I'm trying to make an op-1a pattern mxf file from an interleaved 5.1 BWF file. Must be audio only. Any ideas?

I've used quite a few commercial products over the years to create mxf files for various application (OP-atom, OP-1a, AS02, IMF, DCP, etc) but now I need to find a CLI method (preferably open source) ...
user avatar
0 votes
0 answers
12 views

can I change ffmpeg crop position at runtime for each frame during stream

I am trying to move an Region of Interest (RoI) around a multi-camera tiled source (which will be too big to encode for smooth viewing), and stream this "live". The RoI is externally ...
user avatar
  • 1
0 votes
0 answers
8 views

Separating Videos Contained in Single .AVI (Mpegts)

I have a single output file, in .AVI format that contains 3 video streams (h.264 encoding). It appears as a single stream of data, but from 3 ports. It was created using gstreamer with mpegts. An ...
user avatar
0 votes
0 answers
12 views

FFmpeg optimizations for trimming large video with precision?

I'm playing around with FFmpeg options for large and small videos of different container formats. I'm wanting to trim the video in a performant way that is also accurate. I've read a lot on this topic ...
user avatar
0 votes
0 answers
12 views

Shorten MXF video preserving the metadata

I am having an MXF file with lots of metadata, which is quite long and big in size. I want to cut 30-40 seconds of it while preserving the said metadata. My first guess was using ffmpeg but ...
user avatar
0 votes
0 answers
7 views

looping my videos in Inkscape

I have a short clip, 10 seconds or so. I'd like to loop in/down the timeline to create a 6-hour video (for sleep music on YouTube). How do i do that using inkScape. I have an idea of how to do it on ...
user avatar
0 votes
1 answer
15 views

FFmpeg combine Stream Loop and Filter into one command

I'm currently running two FFmpeg commends: [1] Looping a video for the entire duration of an audio file. ffmpeg -stream_loop -1 -i 1min-loop.mp4 -i 2min-song.mp3 -shortest -map 0:v:0 -map 1:a:0 -y ...
user avatar
  • 101
0 votes
0 answers
17 views

I have an YUV MKV file where it seems that RED and GREEN are inverted. What filter can I use with ffmpeg to exchange these 2 colors?

I already tried: ffmpeg -i in -vf negate out That does not work. Edit: no need. There are some very weird colors at the start of the clip, but they appear intended, the remaining is ok.
user avatar
  • 1
0 votes
0 answers
9 views

Getting specific part of ffmpeg console output

I have this command which I use to find certain frames using an image: ffmpeg -hide_banner -i "video.avi" -loop 1 -i "image.png" -an -filter_complex "blend=difference:shortest=...
user avatar
1 vote
1 answer
37 views

Converted TS to MP4, what is the meaning of new (and multiple SAR, DAR ) in the output video?

I have a file with extension .ts, information given by ffmpeg -i MyMovieFile.ts is: [mpegts @ 000001f8fc13fa80] start time for stream 0 is not set in estimate_timings_from_pts Input #0, mpegts, from '...
user avatar
  • 115
0 votes
1 answer
29 views

ffmpeg to combine video + alpha video, transparency key with threshold

I have two corresponding video files. One is a regular video and the other is meant to be the alpha channel for that video. I wish to combine them, and use the alpha video to lay a transparency key ...
user avatar
  • 101
0 votes
0 answers
10 views

Can i crop the video using ffmpeg during recording?

Has the ffmpeg function which allow record only particular part of the video? For example for slit scan photo you don't need full size video, and it should be faster if it is possible record a few ...
user avatar
0 votes
1 answer
50 views

Resultant Video is always longer than input audio, even though I am using -shortest option of ffmpeg

I am using the following command to make a video from a single image; ffmpeg -loop 1 -i MyInputImage.png -i MyInputSound.m4a ^ -c:v libx264 -pix_fmt yuv420p -c:a aac ^ -shortest MyOutputVideo.mp4 ...
user avatar
  • 115
1 vote
2 answers
42 views

Manual fade-in/fade-out expression in ffmpeg is not smooth

I want to fade-in/fade-out the saturation of a video based on the time (t). For three videos, the saturation should fade in and fade out at different points in time, starting with 0, 6, and 12 seconds....
user avatar
  • 955
0 votes
1 answer
64 views

Parallel throughput of Intel QuickSync (QSV) for real time streams

I'm using Intel QuickSync to lower CPU loading of real time video transcode with FFmpeg. Specifically, qsv is used to deinterlace and decode the input video. A special HW module is used for the ...
user avatar
  • 101
0 votes
1 answer
63 views

Convert mp4 to webm in a reasonable time

I have found this solution provided by hackerb9: ffmpeg -i input.mp4 -b:v 0 -crf 30 -pass 1 -an -f webm -y /dev/null ffmpeg -i input.mp4 -b:v 0 -crf 30 -pass 2 output.webm It's works, but ...
user avatar
0 votes
1 answer
41 views

How to fix a file using ffmpeg so that VLC detects Aspect ratio automatically

I have a video, where the video resolution is 852x480. When I open it up in VLC, "the Video Aspect" ratio defaults to *Default However, all I see is a black screen with a thin line as the ...
user avatar
  • 115
3 votes
0 answers
24 views

Optimized Parameters of `FFMPEG` for Screen Recording

Windows has a great codec for screen recording called Windows Media Video Screen. It generates artifacts free videos which are highly compressed (small size). I was wondering, what would be the ...
user avatar
0 votes
0 answers
32 views

How to use FFmpeg to do Ken Burns affects using rectangles?

I have a process of specifying starting and ending 16:9 rectangles on an image. This is easier for the end user to select what they want the resulting affect to be. I would like to use FFmpeg to ...
user avatar
  • 101
0 votes
0 answers
28 views

why does FFMPEG encode videos from last video causing clipping video and noise

I am having issues in a windows Batch file where I when i start a video to stream it will play like 1 sec from last video that I had encoded at the beginning . I originally thought it was because of ...
user avatar
0 votes
0 answers
16 views

Adding .srt subtitles to a DVD image

We currently have a toolchain that takes an input file (ProRes 4444 .mov) and creates a DVD .iso from it, using ffmpeg, dvdauthor, and mkisofs. It all works fine. We'd like to add subtitles to the ...
user avatar
0 votes
1 answer
165 views

How can we keep the subtitle track when converting from MKV to MP4 with ffmpeg?

I have an MKV with integrated subtitles as such: I want to keep "English [Full] - [English]" when converting to MP4. Currently I use this command: ffmpeg -i myMovie.mkv -vcodec copy -acodec ...
user avatar
0 votes
0 answers
18 views

How do I accelerate fisheye to hequirect conversion with cuda?

This is my command ffmpeg -y -i in.mp4 -vf v360=input=sg:ih_fov=118.2:iv_fov=69.5:output=hequirect:w=2924:h=2924 -b:v 102400k -bufsize 5000k -c:a copy out.mp4 I tried ffmpeg -y -hwaccel cuda -...
user avatar
0 votes
1 answer
22 views

Filtering video and adding metadata in one step failed

I want to filter a video stream -vf crop=300:ih,mpdecimate and add metadata for it to the output video: -metadata:s:v:0 rotate=90 This command filter it, but the metadata are NOT added: ffmpeg -to 6 ...
user avatar
  • 1,362
0 votes
0 answers
22 views

Ffmpeg How to avoid audio sync when merging videos

I want to merge some videos from a list. Some of them have frozen frames, with silence filling. When I merge them the silence disappears, but the frozen frames are kept. Is there any way to add async=...
user avatar
0 votes
0 answers
31 views

How To Add Image Overlay Code On My Existing Command

so I have this code which adds text ffmpeg -i video.mp4 -vf "drawtext=fontfile=C:\Sanal\##WeightLoss\ProximaNova-Bold\ProximaNovaScOsfExtraCondensedBold.otf:text='CHECK DESCRIPTION FOR':fontcolor=...
user avatar
  • 13
0 votes
1 answer
54 views

FFmpeg embed thumbnail Windows

I have seen commands like this online: ffmpeg -i video.mp4 -i image.png -map 1 -map 0 -c copy \ -disposition:0 attached_pic out.mp4 However these command don't work as advertised with Windows ...
user avatar
  • 260
0 votes
1 answer
38 views

Is it possible to increase horizontal and vertical padding on ffmpeg burned subtitles - using .srt format?

Using command : ffmpeg -i source_video_path.mp4 -vf "subtitles=srt_source.srt:force_style='OutlineColour=&H80000000,BorderStyle=4,BackColour=&H80000000,Outline=0,Shadow=0,MarginV=25,...
user avatar
  • 143
0 votes
2 answers
94 views

How to run multiple FFMPEG commands as a batch file in Windows 10/11?

I have the following code which adds a small overlay text over my video: ffmpeg -i video.mp4 -vf "drawtext=fontfile=path\font.ttf:text='ABC':fontcolor=black:fontsize=45:box=1:boxcolor=white@1:...
user avatar
  • 13
0 votes
1 answer
28 views

FFMPEG: How to remove audio from entire directory

I am a novice coder using Terminal on MAC that has installed FFMPEG and attempting to edit an entire directory. My goal is to remove all of the audio from all of the videos and output or overwrite the ...
user avatar
2 votes
1 answer
54 views

ffmpeg subtitles background issue when multiple lines (using .srt format)

While using ffmpeg to burn .srt subtitles to mp4 files I'm having an issue with multiple text lines - background is overlaying each other. Command I'm using: ffmpeg -i source_video_path.mp4 -vf "...
user avatar
  • 143
0 votes
1 answer
26 views

Stack two videos side and side but play one after another. Show thumbnail when not playing

I have two videos, that i want to concatenate side by side but second one should play after the first one. If the video is not playing, thumbnail should be shown Below is the example that i want to ...
user avatar
0 votes
0 answers
13 views

On screen translation text

Does ffmpeg keep on screen text that is used when a foreign or unknown language is used so that it can be understood what they are saying? I'm not talking about subtitles, but on screen text. I use ...
user avatar
  • 1

1
2 3 4 5
39