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

learn more… | top users | synonyms

76
votes
7answers
88k 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 ...
34
votes
6answers
59k 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 ...
31
votes
10answers
27k 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: ...
22
votes
3answers
39k 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 ...
22
votes
3answers
38k 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 ...
20
votes
3answers
32k 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 ...
13
votes
2answers
10k views

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

Anyone know how to install the real, current ffmpeg (not the older version by avconv that comes w/ Ubuntu) without having the problems mentioned here? Reasons: Everything works (or so many have ...
13
votes
2answers
37k 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 ...
10
votes
2answers
963 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
1answer
10k 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 ...
9
votes
3answers
12k 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
2answers
12k 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
2answers
18k 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 ...
8
votes
2answers
13k 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 ...
7
votes
7answers
59k 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 ...
7
votes
1answer
10k 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 ...
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 ...
6
votes
1answer
150 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
1answer
2k 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
1answer
7k 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
3k 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
3answers
8k 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 ...
5
votes
3answers
2k 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
3answers
17k 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?
5
votes
2answers
5k 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 ...
4
votes
2answers
5k 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 ...
4
votes
2answers
1k 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 ...
4
votes
2answers
13k 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 ...
4
votes
1answer
11k views

Install latest ffmpeg for all users in Debina/Ubuntu

I installed ffmpeg on my Ubuntu using the guide: https://ffmpeg.org/trac/ffmpeg/wiki/UbuntuCompilationGuide It is good and working. I know that guide is for installing ffmpeg for current user. Can ...
4
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 ...
4
votes
3answers
2k views

ffmpeg unmet dependencies

I faced an issue recently when tried to install ffmpeg on my Ubuntu computer. I am running Ubuntu 11.10 64 bit, all latest updates are installed and system runs perfectly, however i feel need in ...
4
votes
2answers
6k 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 ...
3
votes
5answers
24k 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
3
votes
1answer
90 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 ...
3
votes
1answer
188 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.
3
votes
2answers
1k views

why ffmpeg command producing error in Ubuntu terminal?

I installed ffmpeg using this command sudo apt-get install ffmpeg After the installation i tried this command in terminal ffmpeg but i got error message like this root@client85-desktop:~# ...
3
votes
2answers
10k 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 ...
3
votes
2answers
3k 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 ...
3
votes
2answers
2k views

How do I install the latest development libraries of FFmpeg in my ubuntu?

I am about to install FFmpeg 2.0.1 (the latest version) in my Ubuntu. I already have the older dev libraries installed in my system. In the previous installation, I didn't build them from source. I ...
3
votes
1answer
2k views

How do I record audio and video to a file from my webcam using ffmpeg?

This says to use /dev/dsp as the audio input. But I don't have a /dev/dsp I can find my webcam's mic in /dev/snd as /dev/snd/by-id/usb-Dynex_Dynex_1.3MP_Webcam-02
3
votes
1answer
948 views

FFmpeg or GStreamer for command line conversion of audio files?

I think I'm mixing up and I need some one to clarify things for me! What is the differences between GStreamer and FFmpeg. What I need is a command line to convert file(s) from one format to another. ...
3
votes
1answer
914 views

Ffmpeg output screenshot gallery

Does any one knows if ffmpeg can create video thumbnails something like I know totem can do this but totem does not support the video format that I am using THank you in advanced You can see this ...
3
votes
3answers
4k views

How to use ffmpeg to convert ape file to mp3 file?

I am trying to use ffmpeg on ubuntu 13.10 to convert a ap3 file to mp3 file? I install ffmpeg, but I get this error when I use it. Please tell me how can I fix it? Thank you. $ ffmpeg -i ...
3
votes
1answer
381 views

Difference between Medibuntu end Multiverse repository?

What are the differences of the Packages: libavcodec-extra-52, libavformat-extra-52, libavdevice-extra-52, libswscale-extra-0 in the Medibuntu and Multiverse repository?
3
votes
1answer
515 views

How to automatically graph the output of a shell function

I do a lot of video editing and processing, and spend a lot of time looking at the output of command line programs like ffmpeg. Ffmpeg produces a regular output of the form frame=1234 fps=80 q=-1.0 ...
3
votes
1answer
896 views

ProRes encoding and decoding?

Is there a way to encode/decode prores mov files (mostly decode)? I've been playing around with ffmpeg and mencoder/mplayer from the ubuntu repos, but they both report that it's an unknown codec. ...
3
votes
1answer
739 views

Extracting images from video in 1 minute intervals

I would like to extract images from a video Exp01.avi, the video is 25 minutes long. I want the images to be extracted from the video after every 1 minute interval. Please someone tell me how to do ...
3
votes
2answers
4k views

How to add microphone audio into avconv's video in x11grab mode?

I want to create some screencast, I am using avconv (recent ffmpeg counterpart) for doing so. This is the reference for command I used. I also referred the avconv manual pages. Due to some reason I ...
3
votes
0answers
2k views

How to stream a local video file over Internet using avconv/avserver?

As FFmpeg is going to be dropped from Ubuntu, it will be important to know how to broadcast videos over Intrnet using avconv. An official guide is available, but it doesn't give much information how ...
3
votes
0answers
245 views

5 seconds image intro with ffmpeg [closed]

I have one mp3 song song.mp3 and 2 jpg files 1.jpg 2.jpg Now, I want to make video from mp3 with jpgs as a background, but in a way so that 1.jpg streams for first 5 seconds then 2.jpg till the rest ...