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
6 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. They are both of the same size. Can this be done using ffmpeg? I have looked into using ffmpeg -filter_complex overlay but ...
user avatar
0 votes
0 answers
6 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, ...
user avatar
0 votes
1 answer
15 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 ...
user avatar
0 votes
0 answers
10 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: ...
user avatar
0 votes
0 answers
3 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.
user avatar
0 votes
0 answers
12 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 ...
user avatar
0 votes
0 answers
4 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/...
user avatar
1 vote
0 answers
9 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 ...
user avatar
  • 11
1 vote
0 answers
23 views
+50

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 ...
user avatar
  • 61
0 votes
0 answers
12 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 ...
user avatar
0 votes
0 answers
19 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 ...
user avatar
0 votes
0 answers
28 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 ...
user avatar
0 votes
1 answer
11 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&...
user avatar
0 votes
0 answers
11 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 ...
user avatar
  • 101
0 votes
0 answers
8 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 ...
user avatar
0 votes
0 answers
4 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?
user avatar
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 \...
user avatar
1 vote
1 answer
30 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 ...
user avatar
0 votes
0 answers
13 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="&...
user avatar
  • 1
0 votes
0 answers
16 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 ...
user avatar
  • 101
0 votes
1 answer
9 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 -...
user avatar
0 votes
0 answers
19 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];[...
user avatar
0 votes
0 answers
29 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 ...
user avatar
  • 13
1 vote
1 answer
41 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 ...
user avatar
  • 13
0 votes
0 answers
11 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-...
user avatar
  • 101
0 votes
0 answers
53 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 ...
user avatar
0 votes
0 answers
24 views

FFMPEG - AMD GPU Transcoding MJPEG to HEVC provides a skewed split screen video

Trying to use AMD GPU for transcoding MJPEG to HEVC using VA-API. Using this command: ffmpeg -hwaccel vaapi -hwaccel_device /dev/dri/renderD128 -hwaccel_output_format vaapi -c:v mjpeg -f v4l2 -...
user avatar
0 votes
0 answers
18 views

Concatenate no-audio video with with-audio video?

I'm using the concatenation technique of creating files.txt and adding one line per file beginning with "file ". ffmpeg -f concat -safe 0 -i files.txt -c copy result.mp4 However I find ...
user avatar
  • 1
0 votes
0 answers
16 views

Video timestamps from security camera, video claims CFR but it's clearly not

I have security camera footage from a bus. The timestamps are resolved only to the second. Upon export from the bus video software, I can select a frame rate. If I select, say, 10 FPS, I get a ...
user avatar
  • 1
0 votes
1 answer
14 views

Crop and boomerang at the same time using ffmpeg?

I'm trying to use ffmpeg to create a cropped "boomerang" video. Where it would take in a video, take a small segment, crop it and then play that little piece forward and then play it ...
user avatar
  • 103
0 votes
1 answer
24 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
  • 111
0 votes
0 answers
24 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
17 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
72 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
46 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
20 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
10 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
26 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
1 answer
35 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
36 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
38 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
30 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
22 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
10 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
61 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
8 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
19 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
12 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
17 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
9 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

1
2 3 4 5
39