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
2 views

Replace parts of video with another video with ffmpeg

I have a few hours long MP4 video (h264+AAC) and I need to replace small parts of it with another video (or audio only). The reason is that the file is a recording of a live session and I need to ...
3
votes
1answer
5k views

ffmpeg - Output file does not contain any stream

When I try to take Screenshots from an AVI file I get the above message with an empty jpg/png file. But Screenshots from MP4 files works with any problems. My OS is Debian. MP4 Command: ffmpeg -...
1
vote
2answers
1k views

how to join ts files together into mp4 with ffmpeg?

I download a lot of streams since the internet speed is too slow to watch high definition. When I download a stream I find the .m3u8 file which points to the TS files. Then I use the following command:...
0
votes
3answers
40 views
+50

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 ...
1
vote
0answers
14 views

Crop and reduce frame rate without loosing quality in ffmpeg

I would like to take my input file (ProRes highest quality 60 fps) and crop it and convert the frame rate to 15 fps. The following did not work (the cropping alone did work, but the frame rate ...
0
votes
1answer
24 views

Why did the size of my video file increase after being cropped by FFmpeg?

I use FFmpeg library to crop a video in an Android project. User captured video with device camera. 10-sec video original 640x480 = 200 KB After crop by FFmpeg; why did the cropped file size is ...
0
votes
1answer
9 views

Specifying icecast protocol options in ffmpeg/avconv on Raspbian Lite

I'm very new at this Raspberry Pi 3 thing, but not afraid to delve into docs and examples. I've cobbled together commands and fixes to record audio from USB device - ultimately trying to stream ...
2
votes
1answer
26 views

How can I compress video by taking advantage of its static content?

I have an HD video that is a presentation, so it consists mostly of still images. It's a 50 minute, 200MB MP4 file, downloaded from YouTube. Is there a way to take advantage of the static nature of ...
0
votes
1answer
14 views

FFmpeg sidechaincompress give more importance to the sidechain

Have two audio tracks—one to be used as background and other as main audio—and I want to compress and mix the background audio to the main. I tried using the sidechaincompress filter but in the ...
1
vote
1answer
26 views

Loop 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 ...
0
votes
1answer
57 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 ...
0
votes
1answer
16 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
58 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
36 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 ...
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
35 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,...
113
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
25 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
44 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
19 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
71 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
176 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
42 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
20 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
36 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
37 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
9 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
68 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
26 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
56 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? [closed]

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
523 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?
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
19 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
83 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')...
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
51 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
32 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 ...