Media tool with support for multiple codecs, filters, and containers. Include your actual command and the complete console output when asking questions involving FFmpeg tools. An easy way to do this is by adding `-report` to your command and pasting the contents of the logfile generated.

learn more… | top users | synonyms

0
votes
0answers
5 views

Loop/Repeat a video overlay with ffmpeg

I have two videos, one of which is overlaid onto the other.The one that is overlaid is only a few seconds long, and I want it to keep looping whilst the main video plays. I have tried everything I can ...
0
votes
1answer
13 views

How can I use both filter and filter_complex with ffmpeg?

I want to generate a waveform using this command : ffmpeg -i video.mp4 -filter_complex \ "[0:a]aformat=channel_layouts=mono,showwavespic=s=600x200,colorkey=black,colorchannelmixer=rr=156/255:gg=244/...
0
votes
2answers
43 views

How can I merge video with ffmpeg

How can I get the following merged video files with ffmpeg? Please help me EDIT i Used hstack & vstack the following error 06-24 17:11:39.133 14565-14565/com.parksangha.videorecorder I/...
1
vote
0answers
31 views

How to delete a single metadata item from an MP4 file

Context and question I recorded a video with my MotoG3 phone Android phone and the resulting video (perhaps due to shaking the phone) plays rotated, that is, vertically, which is not something that I ...
0
votes
0answers
47 views

Use FFMPEG To Convert .MKV to .MP4 With Conversion Settings

I am using a powershell script and ffmpeg to convert mkv files to mp4 files so that I can stream them using serviio The script executes as it should, however when serviio tries to add the converted ...
20
votes
7answers
52k views

How to install FFmpeg on Debian?

I would like to know how to install FFmpeg on Debian.
0
votes
1answer
33 views

ask ffmpeg subtitle and watermark on debian8 with no loss quality

please help for my case i have trouble on here for ffmpeg i use the command : ffmpeg -i whiskey.mkv -threads 0 -c:v libx264 -crf 28 -preset veryslow -vf "movie=logo.png[wm];[in][wm]overlay=0:0,...
109
votes
7answers
71k views

How do I convert a video to GIF using ffmpeg, with reasonable quality?

I'm converting .flv movie to .gif file with ffmpeg. ffmpeg -i input.flv -ss 00:00:00.000 -pix_fmt rgb24 -r 10 -s 320x240 -t 00:00:10.000 output.gif It works great, but output gif file has a very ...
0
votes
1answer
23 views

FFMPEG complex filter buffer overflow

I'm trying to use ffmpeg 3.0.2 blend and concat filters together. Here is the command-line: ffmpeg -framerate 25 \ -loop 1 -t 40 -i img/01.png \ -loop 1 -t 40 -i img/02.png \ -filter_complex "\ [1:v][...
0
votes
0answers
43 views

FFMpeg - Unable to slice QT videos

We use ffmpeg in one of our applications to slice videos. While it's working fine for slicing PAL videos, it is not working for QT videos... Here's the command we use: ffmpeg.exe -i "input.mp4" ss ...
0
votes
1answer
16 views

Does using preset=placebo or veryslow option also decrease decode time?

When using h.264 I use preset=placebo option. It increases encoding efficiency, but I don't know I feel like it is also increasing decoding time. Is it right or it doesn't affect decoding time at all?
0
votes
1answer
57 views

Overlay an image with an opacity setting in Ffmpeg

I want to overlay an image with an opacity setting I know how to overlay an image on a video, but I don’t understand how to set its opacity level too. I can easily add a watermark on my video, but ...
0
votes
1answer
28 views

Merge many audio files with specific positions

I have multiple audio files that represent the session. So in one folder I may have: 2016-06-22-15-59-59-000.mka 2016-06-22-16-59-59-001.mka 2016-06-22-17-59-59-002.mka Filename is the date and ...
0
votes
1answer
17 views

ffmpeg flac to aac (libdfdk_aac) missing metadata

I want to convert an album from flac to aac. After converting the aac file is missing all metadata from the original flac file. I've already tried to convert it with the -map_metadata 0 argument My ...
0
votes
1answer
169 views

How can I overlay PNGs with transparency over a video? (each PNG should cover one frame)

I have a video (original.mp4), and then I have a series of PNGs with transparency that I want to overlay every frame in the video. The strategy I'm using is: Create a video from the PNGs ffmpeg -...
0
votes
0answers
40 views

ffmpeg setpts=pts at filter complex doesnt take the different PTS of several streams

i am now testing ffmpeg for some month and have a strage problem. I use the following command to combine 4 streams in a mosaic: ffmpeg -i STREAM1 -i STREAM2 -i STREAM3 -i STREAM4 -filter_complex " ...
0
votes
1answer
19 views

Want to extract out only alpha using ffmpeg

Want to extract alpha channel from the video using ffmpeg in which black will mean transparent and white will mean opaque Used this http://ffmpeg-users.933282.n4.nabble.com/quot-Extracting-quot-Alpha-...
0
votes
0answers
19 views

FFMPEG:merging Image and Audio duration getting increased

I am trying to create a video using a still image(.png) with audio(.wav) file using FFMPEG with video duration equal to audio duration but even keeping '-shortest' & '-loop 1' as flag, pegstill ...
-1
votes
0answers
35 views

Overlay image to video using Ffmpeg

I want set the image, with a 80% opacity overlay to video. I tried this but got an error. ffmpeg -i in.mkv -af "pan=stereo|c0<c0+0*c1|c1<c0+0*c1,aeval=val(1)|-val(1)" -vf "scale=640:360,boxblur=...
0
votes
1answer
35 views

Copy video quality on ffmpeg

I want to use ffmpeg to add a watermark but I want the video will have the same quality. How do I do that ? I tried to use -vcodec copy -acodec copy but was without watermark <?php echo "Starting ...
1
vote
2answers
2k views

Error when trying to enable x11grab in ffmpeg

I'm trying to set up ffmpeg so I can do screen captures and just receive error after error after error. However, the root issue is that I can't even seem to enable x11grab. In Terminal I've done this:...
0
votes
0answers
8 views

How to run FFmpeg.exe through another C#.NET application?

I have to run the FFmpeg.exe on another remote machine to record audio 24/7. The issue is I don't have access to that machine. I wanted to know how to invoke the FFmpeg application through another ...
1
vote
1answer
66 views

Clipping a video (spatially) using FFMPEG

How can I clip a video spatially using FFMPEG, with no border added, and no quality degradation? So basically I just need to split the video into 4 parts to separate the videos, like the frame below:
1
vote
0answers
29 views

Splitting from 1 to 4 stereo input streams to 8 mono streams

I wanted to know if there is a way to splitting from the files with 1 to 4 stereo streams into separate 8 audio streams in one output file. I would like to use the same commande. I convert a large ...
0
votes
1answer
24 views

How to add watermark to video with ffmpeg after 1 minute, lasting 30 seconds?

I would like to watermark videos using ffmpeg, with the watermark showing after 60 seconds, with the watermark showing for only 30 seconds, then disappearing for the rest of the video. Can anyone ...
0
votes
0answers
49 views

ffmpeg generating a blank video as output of a screen capture

I'm trying to record as video a screen but it's a blank video as output. I'm using this command: ffmpeg -f gdigrab -framerate 25 -i title=calc fo.flv How do I fix this?
0
votes
0answers
23 views

Multi image background with video overlay? [on hold]

I want to add multiple images(image-xxx.png) to a video background, and add a video overlay, but the arguments I have invoked using ffmpeg do not seem to work. Where am I going wrong with this? Is ...
0
votes
1answer
15 views

Why do I get a black box when I tile pictures with -filter_complex tile=2x1 in FFmpeg?

As I was trying to write a script (which attempts to join two pictures eventually) using FFmpeg I came across a very weird behaviour. This is a command from I've found in the How to join two images ...
1
vote
1answer
519 views

How to draw a box at the bottom of the video using FFmpeg?

From the docs it's pretty straight forward how to create a box at the top with the y=0 drawbox=x=10:y=0:w=200:h=60:color=red@0.5 But how can I draw the box at the bottom?
0
votes
0answers
16 views

Changing subtitle format with ffmpeg

How can I change the subtitle format of a movie to .srt for example? I have any movie (sound, video and an embedded subtitle). I just want to change the subtitles to .srt while leaving everything the ...
1
vote
1answer
1k views

ffmpeg merging mp3, mp4, no sound with copy codec

I am using ffmpeg to create a video. The source is a set of png images (one per frame) and an mp3 file. I want to create an mp4 with sound. I am doing it in two stages for now. Step one converts the ...
2
votes
1answer
3k views

Is there a way to deal with ffmpeg http input loosing connection?

I have a problem I'm recording a stream from my ip webcam (and storing it to a server but that's not the issue right now). the command looks something like this ffmpeg -f mjpeg -i http://ip.ad.dd....
0
votes
1answer
18 views

ffmpeg - Is it possibe to retain real timecodes using -copyts?

It's is a simple task. I want to make a converted clip of a video using -copyts to have it's real timecodes. For example, the converted clip of this command: ffmpeg -hide_banner -ss 57:41.76 -i input....
0
votes
1answer
76 views

Change framerate in ffmpeg without reencoding

I have a mkv (h264) video that is 23.976 fps (24000/1001) but I want to convert it to 25fps without reencoding and loosing quality. I know mkvmerge can do it ( with option --default-duration '0:25fps')...
-1
votes
0answers
24 views

H.265/H.264 Video transcoding and streaming solution that supports adaptive bitrate (RFC 5104) [closed]

At the moment I transcode a fixed or live video to H.264 or H.265 and then stream this over RTP/UDP to a single device. This works fine using FFmpeg. Now I need a video solution that also supports ...
0
votes
1answer
226 views

When doing 2 pass video encoding with FFmpeg, how to find the optimal bitrate?

When doing 2 pass video encoding with VP8 (libvpx), is there a way to figure out the optimal bitrate, so I don't have to guess? Something like a small compression test, or some ffmpeg command, that ...
1
vote
1answer
4k views

Media Player Classic Home Cinema stops on MKV

Media Player Classic Home Cinema stops on MKV. It goes to "stop" mode after file open. Unable to run playing. No error messages generated. MPC-HC version: 1.6.7.7114 (9eb64ec) 64 bit Compiler ...
1
vote
0answers
44 views

FFMPEG motion compensation and search

I'm trying to modify the motion detection part of FFMPEG. What I want to do is to extend the search space, so that whenever the macroblock hits the rightmost edge of the frame, I need it to still move ...
3
votes
1answer
23k views

ffmpeg and the 'unable to find suitable output' error

I'm trying to convert a large MKV to an old-school AVI file. I'm trying this: ffmpeg -i video.mkv -s -codec:v mpeg4 -bf 1 -b 2567k -mbd 2 -g 300 -flags cgop -acodec copy video.avi but I get [NULL ...
0
votes
0answers
50 views

cut 10 sec from start and from end of video with ffmpeg

I'm trying to cut 10 sec from the begging and from end of videos. I have 150 short videos in mp4 and I want to do this in batch. I have downloaded ffmpeg (x64) and installed. When I type the command "...
0
votes
1answer
29 views

How to loop a video back and forth with ffmpeg

I have a video of 5s length. The final video should be 60s long. The resulting video should be a "ping pong" loop, meaning my 5s should be played back and forth until the 60s are reached. Does ...
1
vote
1answer
467 views

Get Delay of Each Frame In A GIF

I'd like to get the delay of each frame in a GIF. I plan to turn it into an MP4 file. In one of the answers to "How do I convert an animated GIF to a YouTube friendly video format?", it explains how ...
1
vote
1answer
18 views

ffmpeg : combine two or three audios into one by lowering the volume of the other

Want to combine some audio files eg: 1) one long audio file which will act as a background audio 2) some audio files which will be replaced at specific intervals like at 10 sec of the first one So ...
0
votes
2answers
949 views

How to set output of FFmpeg to output of a video card instead of a file? Is this possible?

I have an UltraStudio-SDI video card and I can capture with this command: ffmpeg -f dshow -video_size 720x576 -framerate 60 -i video="Decklink Video Capture":audio="Decklink Audio Capture" -r 30 -...
0
votes
1answer
55 views

how can I using code in Android ffmpeg library

My Code is: private void startTransformVideo() { String cmd = new String("-y -i {filepath}{filenameRaw}.mp4 -vf crop={width}:{height}:0:0 -acodec copy -threads 5 {filepath}{filenameCropped}.mp4")...
2
votes
2answers
612 views

Crossfading Video AND Audio with ffmpeg

This Super User answer crossfade between 2 videos using ffmpeg has got me so far, but now that I have tried many solutions and seen every SO link out there, it's time to ask you all for help. I am ...
0
votes
1answer
32 views

FFMPEG Crop video and insert gif same time

$command = 'ffmpeg -ss 6 -i input.mp4 -ignore_loop 0 -i logo.gif -filter_complex \ "crop=in_w-2*28:in_h-2*25;[0:v][1:v]overlay=15:H-h-25:shortest=1" -codec:v libx264 out.mp4'; i can't manage both ...
0
votes
1answer
28 views

Filter Boxblur has unconnected output

I am trying to blur specific part of video depending on specific interval,like in 2-10 second blur this part and in 12-20 blur another but I am not able to get this working. Here is the command I can ...