Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

0
votes
0answers
12 views

How to record system sound without video?

I installed Soundflower with brew cask install soundflower and I see it listed: $ ffmpeg -f avfoundation -list_devices true -i "" [AVFoundation input device @ 0x7f9a32515e80] AVFoundation video ...
0
votes
0answers
10 views

FFMPEG: Prepend MPAA rating to a movie trailer

I have a number of movie trailers from various sources: Web, youtube, DVD and Blu-Ray disks and I would like to prepend the MPAA rating to the beginning of each. What I have: Movie trailers that ...
0
votes
0answers
9 views

FFmpeg with OpenCL support - Ubuntu 18.04

Recently I asked about GPU acceleration in FFmpeg using AMD Radeon (AMD support for ffmpeg? Can't get my dedicated GPU to work). After many tests I see that fighting with this topic is hard, ...
0
votes
0answers
24 views

AMD support for ffmpeg? Can't get my dedicated GPU to work

I'd like to ask for your advice. Recently I got refurbished Dell Latitude E6540 with two GPUs: integrated Intel HD Graphics 4600 and external AMD Radeon HD 8790M: 00:02.0 VGA compatible controller: ...
0
votes
0answers
26 views

How to fix interlaced mpeg2 video marked as progressive?

Is there a way to use ffmpeg (or anything else that can be used in linux) to fix an interlaced video marked as progressive, and mark it as interlaced so that I can get rid of bad interlaced frames? ...
0
votes
0answers
7 views

Using FFmpeg to pick video frames in R-studio

I have a machine learning project to track a moving object (little beyond my expertise at the moment as I am a student) and I have been trying to figure out how to do the two tasks below using R-...
0
votes
0answers
20 views

How to lower number of parameters passed to ffmpeg

I am processing video with ffmpeg. I am trying to add image overlays at certain times. I have command something like this: ffmpeg -i video.mp4 -i img_a.png -i img_xx.png -i some_third_image.png -i ...
0
votes
0answers
15 views

Ffmpeg recording with gdigrab will drop frame

I write a code to use gdigrab to capture screen and use dshow to capture audio. But no matter how I set the frame rate to gdigrab, the acquisition frame rate is 10 frames. I thought maybe my ...
0
votes
1answer
18 views

Black/silent video with specific duration with ffmpeg

I'm trying to generate video files that follow a "prototype" file as much as possible (frame rate, dimensions, container format, codecs, etc.) but show a black screen with silent audio. Here's one ...
0
votes
0answers
7 views

Use ffmpeg to switch between 2 rtmp inputs having different profiles

I've got an nginx rtmp setup on the cloud, which I use as a "distributor" that takes a single rtmp input and splits it out to multiple rtmps such as Facebook and Youtube. There are ffmpeg processes ...
0
votes
0answers
23 views

FFmpeg: apply audio/video fade-in on the first TS chunk, then “cat” all chunks produces a frame loss

this is my first post (on video.stackexchange.com). I need some explanation regarding to re-encoding a single .ts chunk and then use cat command. I'll explain my scenario. I've a lot of .ts chunks ...
0
votes
0answers
15 views

Cut GoPro video and preserve streams with ffmpeg

I have a video file which was created with a GoPro camera. It has video and audio streams as well as 3 data streams. Below is the ffprobe output: ffprobe version 4.0.2 Copyright (c) 2007-2018 the ...
0
votes
0answers
23 views

FFmpeg afade produces horrible audio quality

I'm trying to add a video and audio fade in and fade out to my video using the fade and afade filters. I'm using the following command: ffmpeg -i trimmed.mp4 -vf 'fade=in:0:60,fade=out:2940:300' -af '...
0
votes
0answers
16 views

FFmpeg How to make multiple moving box?

i want to make multiple moving box,i tried but not work used ffmpeg 4.1.3 ./ffmpeg -i ./1115449702147276803.mp4 -vf "drawbox=x=if(between(t\,4.769586\,9.625816)\,(500+((517-500)/(9.625816-4.769586))...
0
votes
0answers
10 views

FFMPEG - How to add watermark picture in 2 videos overlayed

I created a conference with 2 participants and both are recorded. After conference, I run FFMPEG to merge videos and creates the output.mp4. It synchronizes the time, also. I have a command that works ...
0
votes
2answers
17 views

ffmpeg : Copy all the streams (including cover art) except the first video stream from one MP4 file to another

I want to copy all the streams (including cover art) except the first video stream from one MP4 file to another, here is what I do : $ time ffmpeg -hide_banner -i toto1.mp4 -map 0 -vn -c:v:1 copy -c ...
1
vote
0answers
22 views

ffmpeg - How to crop Harry Potter moving newspaper style video?

The Harry Potter moving newspaper is like a video overlay on a static background. Here is an example: . the video starting from 1min, 17sec. HOWTO crop only the video ...
2
votes
1answer
31 views

ffmpeg: how to ignore an EDIT LIST?

I've got a 10-minute long mp4 file which plays just fine with VLC. Apple Quicktime however plays only the first 6.5 seconds, stops and can't be convinced to jump past that. Similarly, when I try ...
0
votes
1answer
23 views

How to decrypt DASH mp4protection with ffmpeg

I can watch the live stream video from android device but can't watch on Windows. Is it possible to download and decrypt it with FFMPEG ? the sample playlist <?xml version="1.0" encoding="UTF-8"?...
0
votes
0answers
15 views

Convert 3d video to double 2d video using ffmpeg

I want to convert 3d video to 2d video. I saw another topic How to convert a 3D movie to 2D using ffmpeg but as far I know 3d video is build from 2 videos so I should be double output video. One for ...
0
votes
0answers
35 views

Sony Vegas or FFmpeg?

My Sony Vegas Licence will expire soon. Thanks to this site i found this free software FFmpeg. I also see that is largely used and has a lot of support here. Tbh i never heard of it. What would you ...
0
votes
1answer
18 views

Can't capture video from dshow device. FFmpeg finish immediately resulting empty file

I'm digitizing my old tape recordings from usb dongle. Everything been ok, I digitized several tapes, but I'm abandoned this project for a while and reinstalled windows. Keeping on secondary drive the ...
0
votes
1answer
14 views

How to change start time using ffmpeg?

I am recording a live stream to .ts file. But when I run this file through ffmpeg using ffmpeg -i myRecordedFile.ts it gives me wrong start time which is way out of the range. For example, my file's ...
0
votes
0answers
7 views

Ffmpeg render only modified times/frames

2 questions. I need to black out 15 seconds of the video and I think I know how to do it... I generally used that command ffmpeg -i input.mp4 -vf "drawbox=c=black:t=max:enable='between(t,X,Y)'" -c:a ...
0
votes
1answer
17 views

FFMpeg -filter_complex to place a video in a window on a larger image with text

I'm trying to work out how to combine both features of the following in one -filter_complex statement in order to take an image, write some text on it, and then do an additive composite of a small ...
0
votes
2answers
37 views

Loop the first frame of a video and then play a selected portion of the video

I would like to to play the first frame of an input video for 260 frames and then play frames 310–930 of the input video: $ ffmpeg -i video.mp4 -i video.mp4 -filter_complex ' [0:v]loop=loop=259:...
0
votes
0answers
15 views

ffmpeg Optimizing minterpolate at lower fps

I have 50 hand-drawn frames, an animation. They were setup to be played back at 24 fps. I don't need to worry about any pre-existing audio sync. I wanted to turn these frames into a video segment ...
0
votes
0answers
21 views

How can I use ffmpeg to crop a part of a video by frames numbers including video and audio?

I have a simple list in csharp only for example: LReg.start = rise[i]; LReg.end = fall[i]; LR.Add(LReg); start and end are int's in the end I have a List of the frames I want to extract from a video ...
0
votes
1answer
24 views

Color changes after video to single frame images back to video using ffmpeg

Given master video in mov rle: Video: qtrle (rle / 0x20656C72), rgb24(progressive) Converted the video to a serie of single .bmp frames. ffmpeg -i source.mov $FRAMES/f%03d.bmp Frames from ...
0
votes
0answers
24 views

ffmpeg convert H264 CFR + timestamps to VFR

I have a H264 video source that was recorded with variable framerate (VFR) and a text file with frame ID, timestamp pairs that looks like this: frameId,timestamp 1890413473,13792093 1890413474,...
1
vote
0answers
19 views

How do I add a 1 second fade out effect to the end of a video with ffmpeg? [duplicate]

How do I add a simple one or half second fade effect to the start or end of a video using ffmpeg and keep everything else the same (codec,quality)?
0
votes
1answer
18 views

ffmpeg zoompan filter zoom value limits

Does ffmpeg zoompan filter has a cap for z value? I tried a simple test that stops zooming up at 10.5. Is it that 10.5 is the maximum value for the z parameter or is there a limit for maximum frame ...
1
vote
1answer
28 views

What is the opposite of 360 video?

I would like to make a video out of N cameras all focusing a central area from different points of view. In order to do it, I first need to know how is that kind of video called; I would like to ...
0
votes
0answers
11 views

FFmpeg looping mp4 to duration of mp3

i want to merge mp4 with mp3 using ffmpeg. Duration of mp4 : 2 sec Duration of mp3 : 23 sec Output needed : Mp4 of duration 23 sec with vidoe playing in loop till 23 sec Tried below code 1: Below ...
0
votes
0answers
14 views

ffmpeg mp4 video created from mp3 with image has longer duration

I am trying to convert an mp3 to mp4 with images. Below are two ffmpeg commands I tried. Length of mp3: 23 sec Here, the length of the video is same as the mp3, but video's sound does not work when ...
1
vote
0answers
14 views

FFmpeg: Cutting 3 seconds at the beginning of a video leaves 5 seconds blank

I have an MKV video, and want to cut the first 3 seconds. I tried with FFmpeg: ffmpeg -i /input.mkv -ss 00:00:3.0 -c copy -t 00:09:58.0 output.mkv But the result (when played in VLC) is that there ...
1
vote
1answer
18 views

FFmpeg being killed when creating tiled overlayed video

I am trying to creeate a tiled video using FFmpeg - a result of putting several videos together, tiled, using -filter_complex with overlays. Following the how-to here, I have created a script that ...
0
votes
1answer
15 views

How to animate size parameter of ffmpeg zoompan filter?

How is it possible to dynamically evaluate the s (output image size) parameter of ffmpeg zoompan filter on each frame? The parameter expectes its value in "WxH" format i.e. "1920x1080". How to ...
1
vote
0answers
30 views

What's wrong with VLC seeking and/or MKV created by ffmpeg?

I have creeated a video using FFmpeg. It is a result of putting 4 videos together, tiled, using -filter_complex with overlays. Following the how-to here, I have it created as MKV. When playing this ...
1
vote
3answers
43 views

Some H.264 videos that I have seem to have excessive bitrate, is there a way to determine/find their recommended bitrate?

So I have some videos that are Full HD, h264 but they have over 30M bitrate at 30 FPS, they are SDR and their quality is not very impressive so it seems excessive and unnatural for such unimpressive ...
0
votes
0answers
17 views

Parsing H264 stream - For Learning

I'm now learning about H264, And because the standard (ITU-T), is not easy to understand, and I want some "extra" materials, and I thought about ffmpeg and trying to look at the stram. So, I have ...
0
votes
0answers
18 views

VFR output from muxer-level concatenation of CFR inputs

I used this command for concatenating 2 constant rate videos: ffmpeg -f concat -i files.txt -c copy output.mp4 where the file files.txt has this content: file input1.mp4 file input2.mp4 I'm ...
0
votes
1answer
30 views

What happens when you use a specific CRF value on a already encoded x264 video?

If there is a h.264 video, and I use -crf 17 I sometimes I get a lower bitrate, but the weird thing is - most of the time get a higher ones. I am trying to get this setting because I think some ...
1
vote
0answers
28 views

Image Sequence input missing frames FFMPEG

Is it possible for ffmpeg to parse an input image sequence with missing frames? I was hoping to interpolate them or create a variable framerate(or a CCFR duplicate frame) video while having the ...
0
votes
1answer
24 views

A program or script to overlay several video clips

I have a few hundred few-second-long video clips (c001.mp4-c999.mp4) and need to merge them into a clip slideshow. This is very easy - I drop them into iMovie and click "slideshow", done! However - ...
0
votes
0answers
15 views

How to zoom in from zero in ffmpeg?

An image is composited on top of background. It should appear by zooming in over number of frames from a zero-sized point to its 100% size. Can this be done in ffmpeg with zoompan or maybe other ...
1
vote
0answers
61 views

ffmpeg: av1 getting worse results than hevc (h265)

I converted an avc (h264) file to an hevc (h265) file and an av1 file. Relative to the hevc (h265) file, the av1 file is far larger in size, and the av1 file has worse psnr and ssim results too. ...
0
votes
0answers
27 views

FFMPEG text overlay on top of video using array

i have a video and i have some array of text... i want to show the text on top of video for say xxSec at some interval and the video should be paused while showing the text. example: {"0.23": "text ...
0
votes
1answer
22 views

Color shift FFmpeg raw RGBA images to YUV format

I have a list of raw bitmap in rgba format, captured with an openGL frameBuffer. I want to export them in a video, currently i am using the following command: ffmpeg -f rawvideo -r 30 -pix_fmt rgba -...
0
votes
1answer
61 views

RTMP server using ffmpeg

I'd like to use a Teradek Cube connected to a broadcast camera to push to a server running ffmpeg with an open RTMP port, and have ffmpeg re-stream that feed to a decoder using RTMP or RTSP. ...