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

1
vote
0answers
196 views

Low Latency Audio Streaming

I'm trying to stream audio from a microphone using FFmpeg over a network to VLC, but I haven't been able to get the latency below about half a second, which is unacceptable for my purpose. I've been ...
0
votes
1answer
75 views

How can I convert an animation in PowerPoint into an animated GIF?

In Microsoft PowerPoint 2013, I have a single slide containing a fairly complex animation. I would like to convert this animation to an animated GIF file. I have tried saving the animation directly ...
0
votes
1answer
46 views

How to deal with ffmpeg streaming glitches

I'm currently recording a live audio stream with ffmpeg and I'm wondering how ffmpeg deals with glitches in the broadcast. To illustrate an example, ffmpeg is recording a live stream and for some ...
0
votes
0answers
39 views

FFMPEG stop working with no error

I am using FFMPEG to create a video using pictures as input. I never had a problem with it, but now for some jobs I can't get correct outputs, some of them are broken. Using FFPROBE to check the ...
0
votes
0answers
108 views

ffmpeg to YouTube on Raspberry Pi Zero

I'm attempting to use a Raspberry Pi Zero to live stream video from a Logitech C270 to YouTube. After a bit of Googling I came up with this: ffmpeg -thread_queue_size 512 -f v4l2 -i /dev/video0 -f ...
0
votes
0answers
13 views

How do I permamently, and *accurately* synchronize audio

I have a Japanese film with Japanese audio in mkv format, and English audio for the film in mka format, however the English audio is roughly 3.5 seconds too fast. I can drag both audio tracks into ...
0
votes
1answer
20 views

ffmpeg local expansion and running a command within

Big time n00b question.. I just can't quite figure out what I'm doing wrong. Here is my .bat file: @ECHO OFF SETLOCAL set /p Input= Drop file here, and click enter. set file=%Input% FOR %%i IN (%...
1
vote
1answer
19 views

FFMPEG Crossfade videos changes video resolution

I am currently using the command from this question to crossfade two videos: crossfade between 2 videos using ffmpeg My command: ffmpeg -i firstVideo.mp4 -i secondVideo.mp4 -f lavfi -i color=black -...
0
votes
0answers
25 views

Hardsubs with ffmpeg

I use this ffmpeg command for embedding my subs to videos: ffmpeg -i input.mp4 -strict -2 -vf subtitles=file.srt output.mp4. And it does a good job. But the thing is the output has a huge delay at the ...
0
votes
1answer
110 views

ffmpeg slow motion video with audio

I am able to do slow motion video using following command (found this at How to use slow motion effect in a specific time interval with ffmpeg): ffmpeg -i input.mkv -filter_complex \ "[0:v]trim=0:10,...
0
votes
1answer
34 views

ffmpeg audio duration increase using atrim

I have video of duration 10 secs and with the help of following command i can trim and then concatenate it using following command: Video ffmpeg -y -i test_video.mp4 -filter_complex \ "[0:v]split=3[...
0
votes
1answer
31 views

ffmpeg mp3 to mp4 with image compatible with iphone

I need to convert an mp3 to mp4 with image (1080x720) using ffmpeg from my OSX command line. I already installed last version of ffmpeg (3.0.2), and tried the following command as described here ./...
-2
votes
1answer
84 views

Best H.264 settings in Handbrake for lowest CPU drain

Actual file size is NOT an issue since I am deploying a standalone application or kiosk. But CPU drain is an issue. What are the optimum H.264 export settings to use in handbrake in this scenario?
0
votes
1answer
41 views

ffmpeg filter_complex chaining video streams (watermark then trim and join)

I am trying to add watermark and then trim specific part and at last join these by following command: ffmpeg -y -i test_video.mp4 -filter_complex \ "[0:v]drawtext=fontfile=Lato-light.ttf:text='test':...
0
votes
1answer
578 views

ffmpeg: packaging H264@MPEGTS into Smooth Streaming

I have a (quite large) set of files that is all H264 in an MPEG TS container. Due to time constraints I need to repackage this content into smooth streaming without transcoding it (transcoding would ...
1
vote
1answer
37 views

Choosing Audio Stream While Converting Via FFmpeg

I`ve got a .mkv file with two audio streams. But when I intent to convert it to a .mp4, the ffmpeg only chooses the first audio stream. How can I make ffmpeg to uses second one? Thanks a lot.
0
votes
1answer
94 views

Encode h264 with FFMPEG that works across all browsers and devices (windows/mac/iOs/Android)

I want to encode images with FFMPEG to a h264 video file that will work on Windows Browsers and Mac Browsers and iOS / Android devices to display in HTML5. Is there a way to do that using one encoded ...
0
votes
1answer
64 views

How to add web cam(video) recording as overlay using ffmpeg

I have created following command to overlay image in video (desktop recording ): C:\>ffmpeg -y -rtbufsize 100M -f gdigrab -framerate 20 -offset_x 0 -offset_y 0 -video_size 1250x750 -draw_mouse 1 -...
0
votes
0answers
15 views

Cutting a slice of a clip with external subtitle

I need to cut a slice of a movie including it`s subtitle which is in a separated .srt file. I`m familiar with ffmpeg -ss but it won`t copy the subtitle. I would appreciate any kind of solution.
0
votes
0answers
60 views

Audio - ffmpeg produces high-pitched voices

I have a big video file and I'm using ffmpeg to get a smaller one. I work with the 2-pass ratecontrol and I'm using this simple command line ffmpeg -y -i file.mkv -c:v lix264 -b:v 900k -ac 2 -c:a aac ...
0
votes
1answer
111 views

ffmpeg pause video every 10 seconds for 3 seconds

Is there a way to use ffmpeg to halt a video for 3 seconds every 10 seconds? For example, I use a 30 seconds video, the video should stop at 0:00, 0:10, 0:20 and 0:30 for 3 seconds. The length of ...
0
votes
1answer
513 views

ffmpeg cutting off most audio when adding metadata tags

I'm trying to add metadata id3v2.3 tags to some files I converted to mp3 using VLC media player. Here's the command I'm using: ffmpeg -i "100000A9.mp3" -id3v2_version 3 -write_id3v1 1 -metadata ...
0
votes
1answer
72 views

Making pair of two YUV videos (side by side) using FFmpeg

I am trying to make a pair of 2 videos (side by side) with a 10px white border seperator. I used the following FFmpeg command, ffmpeg -i left.yuv -i right.yuv -filter_complex "[0:v:0]pad=iw*2:ih:...
3
votes
1answer
115 views

ffmpeg filter_complex multiple filters mute and text

I have 2 ffmpeg commands working fine alone ffmpeg -i test_video.mp4 -vcodec libx264 -filter_complex "drawtext=fontfile=test.ttf:text=awesome:fontcolor=white:fontsize=20:x=0:y=10+th" test_video_text....
0
votes
0answers
39 views

ffmpeg DTS output issue creates double length files

I am attempting to concatenate mp4 files with the following command line. ffmpeg -fflags +genpts -y -f concat -copytb 1 -safe 0 -i .\list.txt -c:a copy -c copy $outputFileName I get a number of ...
-1
votes
1answer
67 views

How to use multiple filters for cropping videos and setting sound?

I want to crop video and set sound at the same time. How can I do this? ffmpeg -i input.mp4 -vf "scale=2*iw:-1, crop=iw/2:ih/2" -map 0 -c:v -af aecho=0.9:0.3:1000:0.5 output.mp4
0
votes
0answers
24 views

zoompan filter creates shaky image?

I try to perform a basic zoompan with FFmpeg. I have an input list image (.jpg 400x300) and i create slice image video (.mp4 400*300) from it, with a zoom each image. This is my command: ffmpeg -y -...
0
votes
0answers
18 views

GnuTLS: undefined reference to 'CertEnumCRLsInStore'

This all started because I wanted to compile FFMPEG with specific options. One or more of these options requires that I have GnuTLS installed as well. So I went through the process of downloading and ...
4
votes
1answer
2k views

FFMpeg concat demuxer unsafe file name

I'm using ffmpeg inside my .net application to merge(concatenate) some short videos with the same encoding and width and height dimensions. I've created a txt file as the documentation says and this ...
0
votes
0answers
22 views

Using 3ga and 3gp with ffmpeg

I have sometimes converted .3gp files from my Android voice recorder into .mp3, easy as pie - sometimes I combine image(s) and create videos from these recordins for Youtube, but when I try to convert ...
0
votes
3answers
398 views

How do I install ffmpeg on Debian Jessie?

My installation of Debian Jessie is seemingly doing everything it can to prevent me from installing ffmpeg. I have read How to install FFmpeg on Debian?, but avconv is not an option and adding deb ...
0
votes
0answers
37 views

Crop video file using VLC

I found the following command for cropping a video file using VLC: vlc input.mp4 --crop=480x500+290+720 But after running the command, the VLC player opens and I can't see any change on the input....
0
votes
1answer
98 views

How to crop background image to be used in overlay?

ffmpeg -loop 1 -i hinh1.jpg -i 2.mp4 \ -filter_complex "[1]scale=iw/2.5:-1[ovrl]; \ [0][ovrl]overlay=(main_w-overlay_w)/2:(main_h-overlay_h)/2:shortest=1[v],\ pan=stereo|c0<...
0
votes
1answer
115 views

FFMPEG: Overlaying scaled video over image

I am trying to produce video containing static image and smaller video which would be overlaid on top of it. Dimensions and position of overlay video are dynamically sent to the server script which ...
0
votes
1answer
155 views

Convert MKV with DTS audio to MKV with AAC, AC3 or MP3 audio

I have an MKV with multi-channel DTS audio. Using ffmpeg from the command line I want to convert to MKV with either multi-channel AAC, AC3 or MP3 audio. Can someone please tell me command-line for all ...
0
votes
2answers
71 views

Copying audio from a quicktime with ffmpeg

I am trying to copy just the audio from a quicktime. >"C:\Program Files\ffmpeg\bin\ffmpeg.exe" -y -i a.mov -vn -acodec pcm_s16le a.wav Here is my output. Sorry for the formatting. ffmpeg ...
3
votes
0answers
125 views

Youtube-DL: How to strip video information/description when converting audiofile to MP3?

This might be picky, but when I use Youtube-DL to convert audio from a video to MP3, I let it also tag the title and embed the thumbnail from the video. Somehow it adds the video description and some ...
0
votes
1answer
102 views

FFmpeg audio phase reversal

I'm writing a script which performs a series of operations on several .wav files. One of the operations is phase reversal (from what I gather, a 180 degrees phase shift). Is this possible with FFmpeg ...
1
vote
1answer
55 views

FFmpeg - Fade in watermark only

I am trying to place a watermark.png image on a video with a fade-in effect. This is my command: ffmpeg -i input_vid.mp4 -c:v libx264 -pix_fmt yuv420p -vf movie=watermark_3.png, scale=144:31 [...
0
votes
0answers
24 views

FFmpeg - Add number to output

Is there any way to automatically add a number to the output file with FFmpeg? I don't want to override previous outputs, and I don't want to set the output number manually. I am looking for something ...
1
vote
1answer
41 views

ffmpeg increases video segments length when used with -segment_time - how to fix?

I am trying to record rtmp stream to file, splitting every 10 seconds. My ffmpeg command is: ffmpeg -i rtmp://192.168.16.82:1935 -f segment -strftime 1 -segment_time 10 -segment_format avi E:\record\...
0
votes
1answer
96 views

ffmpeg convert image to mpeg/mp4 gets mp4 file with 0 bytes

I'm trying to convert a png file to mp4 file but I get 0bytes mp4 files. Here is my code structure: ffmpeg -r [framerate] -i [images] -s [resolution] -vcodec libx264 [videofilename].mp4
0
votes
1answer
108 views

FFmpeg concatenate - Error while opening encoder

I have an Android application that uses ffmpeg to concatenates 2 mp4 video files (360x640) together and outputs it as one .mp4. This is my command: ffmpeg -y -i vid_1.mp4 -i vid_2.mp4 -strict ...
0
votes
0answers
63 views

Seeking accurately in ffmpeg

I'm trying to trim a video from a given initial point in time and a duration. However, after researching, it seems that ffmpeg's seek accuracy is not sufficient most of the times, unless the video ...
0
votes
1answer
54 views

Video player high CPU usage

I need to play a video file with ffplay in fullscreen mode. The original file has 720x576 resolution, my display is at 1920x1080. When I launch ffplay as ffplay "filename.avi" and upscale it by ...
0
votes
1answer
59 views

How do I combine videos and include blank space with ffmpeg?

Suppose I have a series of video files to combine with non-overlapping times: 1.mp4 [0:00-0:45] 2.mp4 [1:00-2:00] 3.mp4 [2:10-3:00] This example has three segments, but in general, there may be ...
0
votes
1answer
64 views

Apply Gamma correction in avconv or ffmpeg

I cannot adjust a video using avconv or ffmpeg with Gamma correction. I use Debian Jessie, so I first suspected that avconv was incomplete, so following this question, I built ffmpeg myself. Using ...
0
votes
1answer
78 views

Trimming and joining media files using ffmpeg

I am trying to remove a segment (00:26:00 - 00:32:30) from a video file input.mp4. Since there is no way to do that directly using ffmpeg (as far as I know), I am instead cutting the segments which I ...
0
votes
0answers
95 views

How to remove silence at the beginning and end of a file with ffmpeg?

Some earlier threads said that the silenceremove filter doesn't support trimming silence from the end? is this still the case? My audio is lossless so I don't need to streamcopy or anything fancy ...
0
votes
1answer
52 views

Splitting up mp4 files with ffmpeg results in black videos

I'm trying to split a long video in mp4 format into 60 second sections: ffmpeg -i YDXJ0028.mp4 -c copy -segment_time 60 -f segment YDXJ0028_%03d.mp4 This kind produces the segmented video files, ...