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

How can I get byte-accurate ffmpeg segments?

Is there any way to use ffmpeg to accurately break audio files into smaller files of a specific file size, or pull a specific number of samples from a file? I'm working with a speech-to-text API that ...
0
votes
1answer
18 views

ffmpeg: select (-map) audio track by codec id

How can I use ffmpeg -map switch to select the audio track by its codec? Say there is a video.mkv with one video stream (0) and three audio tracks (1, 2, 3). The audio tracks have different codecs, ...
0
votes
2answers
15 views

Transcode HLS m3u8 to MP4 and include text track

Is it possible with FFMPEG to convert a m3u8 to a MP4 and keep the captions (text) track? When looking at the Apple stream, ...
0
votes
0answers
13 views

Batch ffmpeg to convert all audio to have AAC and AC3

I currently use the following command to convert files to MP4 with AC3: ffmpeg.exe -fix_sub_duration -i `"$oldfile`" -vcodec libx264 -map 0:0 -vb 1095k -c:a:0 ac3 -map 0:1 -ac:a:0 6 -b:a:0 1536k ...
0
votes
0answers
14 views

Application that automatically removes identical frames from a GIF [on hold]

I've been banging my head against the wall all day with no luck. I have a GIF animation that runs about 4mb. There are 900~ frames in the animation, each cycling through at about .04 seconds. 90% of ...
0
votes
0answers
30 views

Normalize varying audio levels in a single video

I have a script to process/encode videos. Some of the videos have varying audio levels (like 2 videos were merged and one had loud audio and other quiet audio). I want to normalize the audio in a way ...
0
votes
0answers
23 views

FFmpeg crashes for large “-filter_complex_script” inputs

We're experiencing an issue where ffmpeg seg faults for very large "-filter_complex_script" input files (roughly 3MB). The input file consists of a very large number of drawbox filters. The same ...
0
votes
1answer
15 views

How to merge images and a music into a 30FPS video?

I have around 9000 images, which are named: X0.png, X1.png, ..., X9000.png The music is 5minutes long. And I would like to generate a 30FPS video. I know, there is a command-line tool, called ...
0
votes
1answer
17 views

Detect color bars ffmpeg

Is there a way to use ffmpeg (or even a linux command) to detect if the video being processed has actual content or just color bars? This is my scenario: I have a system that uses BMD to perform RTMP ...
0
votes
1answer
16 views

-ss and -itsoffset negative doesn' work FFMPEG

This is my command line: ffmpeg -r 30 -framerate 30 -f gdigrab -draw_mouse 0 -i title="Output" -f dshow -i audio="CABLE Output (VB-Audio Virtual Cable)" -ss 1 -vcodec h264 -preset superfast -pix_fmt ...
0
votes
0answers
21 views

ffmpeg - Concatenating multiple mp4 files

I am using an external script (http://trac.ffmpeg.org/wiki/Concatenate#extscript) to concatenate multiple mp4 files. This script lets you do a command like this: "./mmcat input1 input2 input3 ... ...
1
vote
0answers
28 views

Streaming audio and video to VLC with ffmpeg and ffserver

I'm trying to set up a webcam with a raspberry pi 2 that I can view from VLC media player on another computer. I followed the tutorial here to get video only working, but his other tutorial that ...
0
votes
0answers
16 views

FFmpeg - Trimmed video length doesn't match the specified duration in the code

ffmpeg -ss 00:24:50.0 -i "input.mp4" -vframes 600 -map 0:0 -map 0:1 -vcodec libx264 -preset veryslow -crf 51 -c:a:0 copy "output.mp4" Alright, I just testing out some crf values and I found out that ...
0
votes
1answer
15 views

How do I transcode the audio to aac in this ffmpeg command

I usually use this command to convert my mkv to mp4 while hardcoding the subtitles (for playing on my tv) ffmpeg -i old_video.mkv -vf subtitles=old_video.mkv -acodec copy new_video.mp4 There is one ...
0
votes
0answers
9 views

FFAStrans walkthrough to transcode webm to gif

I would like to use the watch folder features to detect when a webm file is downloaded, and convert it to gif. I'm a bit lost with the UI though. Thanks for reading and help mucho grande appreciated.
0
votes
0answers
10 views

ffmpeg on Intel Edison cannot find pkg-config

I've had a surprisingly difficult time finding documentation for what I'm seeing. I'm cross-compiling ffmpeg for the Intel Edison using the poky linux sdk. I've set up an upper level makefile to do ...
0
votes
0answers
27 views

Need to blur an entire image except for certain boxes [duplicate]

I'm currently working on a project where I'll need to blur out boxes on a series of images, then put them back together to form a new video. I'm aware of the boxblur filter for ffmpeg, which is what ...
0
votes
0answers
25 views

FFmpeg script to convert all WebM files in a folder to Gif, and then delete the WebM files

I'm using FFmpeg with DirectoryMonitor, a folder watching program. When a webm is added to the folder i want to execute a script to convert all webm files in that folder to gif, and then delete those ...
3
votes
0answers
30 views

FFMPEG / x264: Single pass: how do you raise start time bitrates?

When using single-pass mode with a VBV size specified, libx264 will initially "sandbag" the bitrate, presumably due to lack of evidence (or perhaps even a bug). (This is an ironic followup to this ...
3
votes
2answers
51 views

How to recover 1.4GB video file that can't be read (Canon) [duplicate]

I was shooting video with a Canon EOS 7D, and it was telling me the battery (I thought) was getting hot, so I opened the battery cover and it promptly shut off. It was a battery pack, and the ...
0
votes
1answer
25 views

FFMpeg image sequence to video using VP9 encoder

I'm trying to transcode mp4 to webm format in a lossless way. I tried two ways to do that. For that purpose, I extracted mp4 video to image sequences (png). Then, I converted image sequence(without ...
0
votes
2answers
48 views

H.264 multi-pass encoding with FFmpeg

I would like to encode a video in H.264 with multi-pass. I tried : ffmpeg -y -ss 00:00:12.0 -i "c:\vid\example.mkv" -vframes 420 -vcodec libx264 -preset veryslow -refs 8 -b:v 1200k -an -pass 1 -f ...
0
votes
1answer
18 views

Use ffmpeg to add audio in the middle of the video

I have a 9s no-audio mp4 video and a 5s mp3 audio. And now I want to add the mp3 in the middle in the video. I totally have no idea how I can do that. I tried ffmpeg -i input.mp4 -i input.mp3 -f ...
0
votes
1answer
32 views

Extract Y-channel of every I-frame from MPEG4 movie as loslessly as possible

I'm working on a video tracking experiment and got stuck with videos that are quite badly compressed with the MPEG4 DivX 5x/6x codec. I'm fairly new to image formats, codecs and compression, but I ...
0
votes
1answer
15 views

Wrap ffmpeg for extracting audio from video in a python function

I'd like to wrap ffmpeg in a python function for extracting audio from video. I can successfully extract audio from mp4 videos on the command line. ffmpeg -i sourcevideo.mp4 -vn -acodec copy ...
0
votes
0answers
14 views

How can I tell VLC that a source video stream has non-continuous frame rate?

I'm streaming my Android device screen to my PC on which VLC should display it. The android device pushes screens as they are generated. So the framerate that VLC gets is dynamic. Sometimes there's ...
0
votes
1answer
27 views

ffmpeg extract lossless image from video

I have a 5s fps25 mp4 video and I use the following command to extract jpg images from the video ffmpeg -i input.mp4 -r 1 -q:v 1 output_%01d.jpg The images are extracted successfully, but jpg files ...
1
vote
1answer
31 views

What is the correct command line to convert a MKV 10b to MKV 8b with identical quality?

I want to convert a MKV 10b to MKV 8b, with identical quality of sound and video. I uses the following command line: ffmpeg -i -c my_file.mkv: libx264 v -profile -crf 18 -PRESET medium high -level ...
0
votes
0answers
20 views

Script in for ffmpeg import-export macro that changes text lines

Was pointed here from video network for the question. I was thinking setting up list of files from folder in excel, all with .mp4. Around 4000 lines in total. Column A - original file name Column ...
1
vote
1answer
39 views

Size of GIF way too high?

I'm trying to extract a GIF from a MP4 video file. Now i have two modi with which i do this: 1) the regular one: ffmpeg -t 7.7 -ss 00:22:53 -i video.mp4 -i palette.png -s 320x174 -filter_complex ...
-1
votes
1answer
48 views

how to install latest ffmpeg on Centos

I want to install the latest ffmpeg 2.8.5 on the Centos server. Followed this website http://www.mysql-apache-php.com/ffmpeg-install.htm and completed the installation. But the installed ffmpeg is an ...
0
votes
1answer
30 views

How to use ffmpeg to add jpeg image before and after the video

I am using the latest version 2.8.5 ffmpeg on Windows and I want to add 5s intro jpeg frame at the beginning of the video starts, and a 5s jpeg end frame at the end of the video. I found a lot of ...
0
votes
0answers
29 views

ffmpeg keeps crashing while playing with ffserver. Can anyone fix this?

So here's the deal. I'm running into multiple errors between ffmpeg and ffserver. The videos are in great shape, far as I can tell, and they stream fine, individually. But when I use a list, well, ...
0
votes
1answer
32 views

Rotate AVI video by 90 degree

I used to apply this command to transcode videos of my mobile phone to AVI: ffmpeg -i Input.mov -s 640x360 -sameq -vcodec msmpeg4v2 -acodec libmp3lame Output.avi Now I'd like to rotate some videos ...
0
votes
0answers
19 views

Ffmpeg, error adding mp3 audio track to mp4

I have an mp4 which I created by stitching together 4 images and I need to add audio to it from an mp3. Per this question: How to apply audio track to a mute h264/mp4-video losslessly? I used: " -i ...
0
votes
1answer
40 views

Scaling a video fails

I am using avconv to scale a video to a lower size. I just want to make video width smaller, and allow height to adjust automatically with the width to keep proportions same. After the command, a file ...
0
votes
1answer
30 views

FFMPEG under Windows 7(64 bit) - creating timelaps video from jpg

My goal is to create a video from a bunch of jpg files. I have chosen FFMPEG (Windows 64) to solve this task The task I have more than 4k jpg files in a directory, all following the naming ...
0
votes
1answer
16 views

ffmpeg, mpg, mp4, dv-rms and wtv

my query has been bugging me for several years. I use Windows MCE to record TV and Watch movies through Networked PC's. On the odd occasion I miss an episode and manage to download it in mpg or mp4 ...
0
votes
1answer
26 views

ffmpeg concat mp4 loosing the audio synch

i have multiple mp4 file (i already converted it into .ts) and while concat i am missing the audio synch. I mean it just push the audio track together. say i have four .mp4 file where 2 of them ...
0
votes
0answers
24 views

Batch render .mp4 to .webM keeping folder structure

I'm not a native mac user but I've managed to put together a code for batch converting .mp4 to .webm which is: for i in *mp4; do ffmpeg -i $i -c:v libvpx -qmin 0 -qmax 20 -crf 10 -b:v 1M $i.webm; ...
0
votes
1answer
48 views

What happens when you change video resolution on a player (netflix, youtube, vimeo)?

Of course the overall quality goes down and the bitrate is lowered, but is the actual pixel count lowered? If so, how? When you upload a video it is usually transcoded into various bitrates, but is ...
0
votes
1answer
49 views

How to mix two audio files with ffmpeg amerge filter

I have two audio files and I want merge them into one with volume and delay filter. I need insert delay in one audio stream, also change volumes. I have problem with understanding map option... ...
0
votes
1answer
38 views

Errors with FFMPEG on Ubuntu 16.04 While Using AMERGE: Segmentation Fault, et al

[ffmpeg version info below, as well as OS version info.] I am trying to use the sidechaincompression filter along with the amerge filter in ffmpeg for ducking voiceover audio over an audio bed. ...
1
vote
1answer
21 views

Convert mp4 file to tta audio through ffmpeg

I am using the following command: C:/ffmpeg/bin\ffmpeg.EXE "-i" "F:\laragon\www\sample\uploads\video\ba4ca90a71e0a05f67b9274827cc4f020c6ba95d.mp4" "-q" "4" "-strict" "experimental" "-threads" "1" ...
0
votes
1answer
22 views

Correcting for wildly incorrect time of .webm with FFMPEG

I have a file that when I run ffpmeg -i on it will display a time of 351909:41:29.64. I know I didn't record for 40 + years. Any suggestions on what would be the best way to fix this? I ...
0
votes
0answers
40 views

FFmpeg generate thumbnail from transport stream

I am trying to generate a thumbnail image from a .ts file (transport stream) with FFmpeg. I am able to generate this if I convert the ts file to mp4 using the following: ffmpeg -i 1.ts -c:a copy -c:v ...
0
votes
1answer
51 views

Scrolling from RIGHT to LEFT in ffmpeg / drawtext

I have succesfully used the answer from this question: Loop text that wipes left to right using FFMPEG drawtext filter But I need to change the scroll direction from RIGHT to LEFT.. I just get stuck ...
0
votes
0answers
24 views

How to set double fps for tbc option of video

I need to set tbc option for output video. For example, input video has 25 fps with 50 tbc and my encoded video has 25fps with 25 tbc. I used settb and video_track_timescale but these options did not ...
0
votes
1answer
92 views

FFMPEG extract audio from video with an annoying sound at the end

I'm using FFMPEG to Extract audio from an *.avi video file This is the avi file format printed with ffprobe ffprobe 0.avi ffprobe version 2.8.4 Copyright (c) 2007-2015 the FFmpeg developers ...
1
vote
1answer
46 views

Merge two videos with transparency in ffmpeg

I have two videos merged into one file using below command. Unfortunately second video covers first video and it is not visible. How to make second video transparent (eg. 50%)? ffmpeg -i in1.mp4 ...