Questions tagged [ffmpeg]

FFmpeg is a complete, cross-platform solution to record, convert and stream audio and video.

FFmpeg is a suite of media encoders and decoders with support of multiple codecs and containers. It is typically used in library form by a graphical tool, or via the command-line interface which offers scriptability and portability. FFmpeg includes the libavcodec and libavformat libraries.

See also: FFmpeg: The ultimate Video and Audio Manipulation Tool - Super User Blog

Installation

FFmpeg can be downloaded from the official homepage.

How to write a question for FFmpeg

  • Always install the latest version if possible
  • Include the full command line input and output, not truncating anything
  • Provide a sample video if possible

The ffmpeg-user mailing list and #ffmpeg IRC channel are also good places to ask for help.

Related Tags

896 questions
434
votes
8 answers

How to download an MP3 track from a YouTube video

There are several Q&A threads that explain how to download youtube videos using the terminal. However, I would also like to learn how to extract the video's soundtracks as MP3 files--also using only the terminal. Answers briefly explaining how to…
siraj
  • 5,407
305
votes
10 answers

Is FFmpeg missing from the official repositories in 14.04?

I tried to install ffmpeg in trusty/Ubuntu 14.04 and got the following message: $sudo apt-get install ffmpeg Reading package lists... Done Building dependency tree Reading state information... Done Package ffmpeg is not available, but is…
user254877
  • 3,061
241
votes
2 answers

How to simply convert video files (i.e.: MKV to MP4)?

I simply want to convert files, any format to any format (at the moment, I need to convert MKV to MP4-h264), without losing quality. I don't want to resize (scale) the video, I don't want to change its aspect ratio and I don't want it to lose…
user229552
  • 2,511
210
votes
7 answers

How to convert .mkv file into .mp4 file losslessly?

I need to convert a video file from Matroska container into mp4 container. Matroska file contains one h.264 video track and one AC3 sound track. It should be possible to do this losslessly, but how to do it with native Ubuntu tools? Transcoding is…
106
votes
11 answers

Converting mp4 to mp3

I have a video I need to convert to mp3 (from the command line - not GUI): video.mp4 I tried: ffmpeg -i -b 192 video.mp4 video.mp3 with no success. I get the following error: WARNING: library configuration mismatch Seems stream 0 codec frame rate…
aki
  • 2,164
97
votes
11 answers

How to merge multiple (more than two) videos on Ubuntu?

I want to merge videos in batch size of twenty (20) each. I'm running a Linux machine. The videos are in mp4 format and moderate quality. Some even have the audio stream missing. So far I've tried ffmpeg, mencoder, cvlc/vlc and MP4Box. I want to…
Dhruv Singal
  • 1,221
66
votes
3 answers

How to do I convert an webm (video) to a (animated) gif on the command line?

I suppose ffmpeg is the weapon of choice but I didn't find out how to reach my goal.
brubaker
  • 819
65
votes
3 answers

How can I convert an ogv file to mp4?

I created a screencast using recordmydesktop which produced an .ogv file. I believe this is an OGG file encoded using the Theora codec. I'm wondering how can I convert this to MPEG4/H.264? I've tried to use FFmpeg in a naive way, as follows: ffmpeg…
jbeard4
  • 1,101
50
votes
3 answers

How to convert .ts file into a mainstream format losslessly?

I have a file that ends in .ts (e.g., here are the first 10 MB). I would like to convert it to a more main stream format (e.g., mp4, MPEG2-PS...), in a lossless way if possible (i.e., remuxing). I have read the How do I convert .ts files into…
lacton
  • 613
49
votes
3 answers

use ffmpeg to transform mp4 to same high-quality avi file?

I would like to use ffmpeg to transform an mp4 video file into avi but with the same quality, even if it takes up more space. If I simply do: ffmpeg -i file.mp4 file.mp4.avi The resulting avi file is very low-quality and pixelated. How can I do…
719016
  • 6,467
38
votes
3 answers

Batch convert H.265 mkv to H.264 with ffmpeg to make files compatible for re-encoding

I have H.265 encoded files that are so resource intensive they don't play well and my conversion software (mencoder) doesn't (currently) support the H.265 format. Can I convert them to H.264 in a command line batch file to rapidly convert the files…
38
votes
5 answers

How do I add and/or keep subtitles when converting video?

I have a MKV video I want to convert to MP4, but every which way I try and convert it (Handbrake, WinFF, FFmpeg, MEncoder,...) I lose the video's subtitles. How can I convert the video, keeping the subtitles, or add a subtitles .srt? I also would…
34
votes
4 answers

Clementine won't play .wma, with "Your GStreamer installation is missing a plugin" error

Here's a screenshot: It displays messages like: "Clementine stopped." or displays songs that are not playing, and indicator icon is disappearing and reappearing. Does this happens only to me, or is it common bug in 14.04. I clean installed 14.04,…
34
votes
2 answers

Fastest way to convert videos (batch or single)?

I know there are a lot of questions about video encoders around here, but my question is more about workflow/efficiency. For my day job, I need to convert videos, frequently, from many random formats (usually large AVI, M4V, and what not) and…
Garrett
  • 393
33
votes
6 answers

How to split an mp3 file by detecting silent parts?

I have a big mp3 file including more songs. Is there any way to split the file by detecting silent parts? I would prefer a command line tool (e.g. ffmpeg). Tried: youtube-dl --ignore-errors --format bestaudio --extract-audio --audio-format mp3…
Drimades Boy
  • 577
  • 1
  • 6
  • 13
1
2 3
59 60