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

learn more… | top users | synonyms

245
votes
10answers
360k views

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......
71
votes
2answers
155k views

How to download an MP3 track from a YouTube video [duplicate]

Possible Duplicate: How to download a youtube video via terminal There are several Q&A threads that explain how to download youtube videos using the terminal. However, I would also like ...
64
votes
6answers
127k views

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 ...
39
votes
10answers
51k views

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: ...
30
votes
3answers
42k views

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 ...
30
votes
3answers
52k views

How can I convert an ogv file to mp4?

I created a screencast using recordmydesktop which produed a .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 ...
25
votes
2answers
25k views

How to replace avconv with (the real) ffmpeg and have it work right?

UPDATE (original text preserved below) With the real ffmpeg about to return (in 15.04), Jon Severinsson's PPA no longer working (for ffmpeg), and both avconv-ffmpeg (now called "libav") and the real ...
23
votes
2answers
140k views

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

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 ...
23
votes
3answers
47k views

What packages do I install for ffmpeg and libmp3lame?

On my desktop Ubuntu 10.4 I use ffmpeg to convert videos to a format my dvd-player understands. On my laptop running 10.10 I can't get the same command to work, what package(s) are missing? ffmpeg -i ...
19
votes
2answers
58k views

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 ...
13
votes
2answers
57k views

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 ...
10
votes
2answers
20k views

how can I batch extract audio from mp4 files with ffmpeg without decompression (automatic audio codec detection)?

I have 228 mp4 files (2.6GB) and would like to extract audio from them (mp3 or ogg). I want to batch extract them - preferably with bash. I'm not sure if all files use the same audio codec as they ...
10
votes
2answers
1k views

Can a server handle simultaneous shell commands?

I'm writing a very simple browser based MP3 player in PHP. Part of this project requires that every MP3 file is converted to a WAV file. There's a function in PHP called shell_exec that allows you to ...
10
votes
2answers
35k views

How to fast convert mp4 to webm using ffmpeg?

Sorry to disturb you but I'm in a kind of a trouble. I have to convert 76 mp4 files to webm for the purpose of a website that uses HTML5 videos. I'm talking about 10 Gb of mp4 files... I know I can ...
10
votes
1answer
19k views

How do I uninstall ffmpeg?

I am using ubuntu 12.04. I had installed ffmpeg a while ago (so don't clearly remember whether it was from source or repo). Now, I am unable to uninstall it. I have tried the followin: $ sudo apt-get ...
10
votes
2answers
23k views

How do I use ffmpeg to take pictures with my web camera?

I want to use ffmpeg to store images taken by my USB web camera on my Ubuntu 11.10. lsusb outputs: Bus 002 Device 003: ID 0c45:6028 Microdia Typhoon Easycam USB 330K (older) The camera works fine ...
9
votes
5answers
48k views

how to convert avi (xvid) to mkv or mp4 (h264)

Very noob when it comes to video. I'm trying to make sense of what I"m finding via Google... but its mostly Greek to me. I have a bunch of Avi files that won't play in my WD TV Play box. Mediainfo ...
9
votes
4answers
15k views

avconv version and youtube-dl

I have youtube-dl version 2015.07.04. While downloading a video, I see this message: Your copy of avconv is outdated and unable to properly mux separate video and audio files, youtube-dl will ...
9
votes
3answers
14k views

How do I use ffmpeg's “-vf” / “-vfilters” option without recompiling ffmpeg myself?

I have ffmpeg install from apt (version 4:0.5.1-1ubuntu1). I have a video that is up-side-down, so I want to flip it vertically. The ffmpeg documentation says to use the -vf option (which I see was ...
8
votes
6answers
66k views

“Unknown option ”--enable-libfaad“ ERROR: libfaac not found” while configuring ffmpeg

I trying to install this following these instructions: sudo apt-get remove ffmpeg x264 libx264-dev sudo apt-get update sudo apt-get install build-essential subversion git-core checkinstall yasm ...
8
votes
2answers
19k views

How to minimize usage of CPU/memory by ffmpeg when recording video

I use FFmpeg for making video screen capture from Xvfb display. Currently I invoke it with: ffmpeg -y -r 15 -g 600 -s 1280x1024x24 -f x11grab -i :100 -vcodec libx264 /tmp/video.mov As I record ...
8
votes
5answers
9k views

How to use ffmpeg to convert ape to mp3?

I am trying to use ffmpeg on ubuntu 13.10 to convert AP3 to MP3? I installed ffmpeg, but I get this error when I use it. Please tell me how can I fix it? $ ffmpeg -i CD1_Age_0-3_Baby.ape CD1_Age_0-...
8
votes
2answers
16k views

Why does ubuntu-restricted-extras want to remove some libav packages?

When I try to install "ubuntu restricted extras" in "ubuntu software center", it displays a warning dialog that says the following items must be removed: libavcodec53 libavutil51 Why? And if I ...
8
votes
3answers
29k views

How can I convert a 1080p wmv video to a 720p video?

I have a 1080p wmv video that I'd like to convert to a lower quality (preferably 720p) video. I would like to keep the audio intact. How can I accomplish this in Ubuntu?
7
votes
3answers
11k views

Add an audio file to and mkv video

I'm quite new to multimedia things, I'm trying to find a way to make nice screencasts, I've already been able to capture my desktop with ffmpeg: $ ffmpeg -f alsa -ac 2 -i hw:0,0 -f x11grab -r 30 -s $(...
7
votes
3answers
29k views

Ubuntu 14.04 64bit - 'GStreamer ffmpeg video plugin' problem

I can't install gstreamer0.10-ffmpeg on Ubuntu 14.04
7
votes
2answers
10k views

How to do screencasting (desktop recording) with high quality audio and video?

I have googled around and found all the usual solutions. None of them work for me. First of all, I want to make high quality recordings. Second, I use JACK audio (PulseAudio is completely uninstalled.)...
7
votes
2answers
2k views

What are the implications of the ffmpeg / libav fork for users?

The ffmpeg project got forked: http://libav.org/ http://ffmpeg.org/ libav has already been added to the ubuntu repositories: https://launchpad.net/ubuntu/+source/libav What are the implications ...
7
votes
1answer
5k views

How to set duration for avconv?

I'm trying to cut a portion from an mp4 video with avconv, but it doesn't seem to care about the -t param. My command line is avconv -t 10 -i GOPR0001.MP4 cut.MP4 This will process the whole ...
6
votes
5answers
59k views

How to convert a video from mp4/flv to mpeg/mpg [duplicate]

I download videos in mp4 or flv format but I need to convert them to mpeg 1/2/3 so that I can watch them on my special gadget. I think I need a program. any suggestion thanks
6
votes
3answers
810 views

Is there a build of Audacity for Ubuntu that can use a local version of FFMpeg?

Audacity builds on Ubuntu no longer support FFMpeg because of the libav foolishness. Is there maybe a PPA or something with a build of Audacity that supports using a local build of FFMpeg? I could ...
6
votes
1answer
4k views

Convert .mp4 to .ogg keeping only the audio, with Ubuntu 14.04 and avconv

How to convert a .mp4 file (downloaded from YouTube) to .ogg? (keeping only the audio) When Ubuntu had ffmpeg I could just do ffmpeg -i file.mp4 -acodec vorbis file.ogg Now we have to do without ...
6
votes
2answers
2k views

Why can't I watch video after installing the original ffmpeg fork from Jon Severinson's PPA?

I just installed the Jon Severinsson ffmpeg PPA, and I cant watch any video and get audio only, I get a need extra plugins needed install? and then packaged dependencies could no be resolved . Here ...
6
votes
1answer
182 views

How to know current status of recording device?

I have a device that records the audio and video using ffmpeg. And I am using Ubuntu 12.04 for that device, but I want to find out if the device is currently recording or if it is in idle state from ...
6
votes
2answers
9k views

ffmpeg resize “could not find codec parameters”

I'm a newbee to ubuntu and need your help: (32bit ubuntu 12.10) my command: ffmpeg -i ../output_images/particles%04d.png -r 30 -b 30000k final_movie.avi works for my 800x800 *.png pictures properly,...
6
votes
3answers
5k views

What to do with “recompile with -fPIC” message

I'm trying to configure the ffmpeg source package to build .so files rather than .a files. I run make after doing ./configure --enable-shared This gives me the following message: /usr/bin/ld: ...
6
votes
1answer
9k views

How can I get ffserver to work?

I have a mp4 file which I wish to compress, resize and stream via RTSP. My ffserver.conf file looks like this: Port 9091 RTSPPort 5454 BindAddress 0.0.0.0 MaxHTTPConnections 2000 MaxClients 1000 ...
5
votes
4answers
4k views

Good PPA for ffmpeg

Its annoying that the default ffmpeg in ubuntu's repositories is outdated and hobbled for legal reasons, however, there's a great page on the forums that walks you through building it from scratch: ...
5
votes
5answers
16k views

How can I convert .mp4 files to .3gp using ffmpeg?

I would like to download a few videos from youtube and convert them to 3gp so that I can play them on my phone. I would like to know how this can be done using ffmpeg. I tried the various results on ...
5
votes
1answer
1k views

FFMPEG | How to encode a video to make it faster

Good day people, I was wondering how to encode a video from a speed of 1 x to a one of 5 x, using ffmpeg. Thanks in advance for any suggestion.
5
votes
4answers
24k views

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 ...
5
votes
1answer
7k views

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 ...
5
votes
1answer
10k views

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.
5
votes
4answers
3k views

ffmpeg/avconv - the -psp option no longer works on Sony Walkman

Since the changeover from ffmpeg to avconv, the -psp option does not seem to render video correctly for Sony Walkman - "file format not supported", it was perfect before. ffmpeg -i video.avi -f psp -...
5
votes
1answer
789 views

Is it possible to have both libav and ffmpeg installed and running on ubuntu 14.04?

I want to use Clementine but it needs ffmpeg to be installed if I want to play .ape files from it. On the other way, I still want to have VLC up and running, and I understand that VLC does no longer ...
5
votes
1answer
14k views

Install latest ffmpeg for all users in Debina/Ubuntu

I installed ffmpeg on my Ubuntu using this guide This is working just fine and I know that guide is for installing ffmpeg for the current user. Can anybody help me to install ffmpeg for all users? ...
5
votes
3answers
2k views

ffmpeg options: -acodec libfaac -ab 192k produce 150kbit files?

When I use ffmpeg to convert an audiofile with the option -acodec libfaac -ab 192k and use ffmpeg -i on that file afterwards to get the audio file information, it tells me bitrate: 152 kb/...
5
votes
2answers
8k views

How to convert an mpeg2 to a streamable or fragmented mp4?

I am trying to convert mythtv recorded mpg (mpeg2) files into streamable mp4 files. Converting to an mp4 is simple, however, the entire file must be converted first before it is usable. Even using ...
5
votes
0answers
935 views

Error Message in Arista Transcoder, how to install ffdeinterlace plugin?

I keep getting this error message when I want to transcode a dvd into say an avi file format. This is the error message I get: Required plugin could not be found Python (v2.7) requires to install ...
4
votes
2answers
18k views

How to install avconv with libfdk_aac on Ubuntu 14.04?

How to install or compile avconv with libfdk_aac on Ubuntu 14.04 ? I am also ok with comparable aac codecs e.g. http://wiki.hydrogenaud.io/index.php?title=Fraunhofer_FDK_AAC Currently I am trying ...