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

870 questions
47
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,217
28
votes
1 answer

Is there any way ffmpeg send video to /dev/video0 on Ubuntu?

I want to send video to webcam device on Ubuntu which is loaded on /dev/video0 I've already seen this command that send desktop to it but is there any way to send video to it? ffmpeg -f x11grab -r 15 -s 1280x720 -i :0.0+0,0 -vcodec rawvideo …
dsddd
  • 383
21
votes
2 answers

image + audio = mp4: how to make video smaller?

I'm using ffmpeg to add a JPG to an MP4 to make an MP4. As there is only one image to make the video I'm wondering if there is a way to reduce the video size? Command: $ ffmpeg -loop 1 -i image.jpg -i audio.mp3 -shortest -c:a copy…
SIDU
  • 313
20
votes
3 answers

How to remove a few seconds from .mp4 file using ffmpeg?

How to remove a few seconds from .mp4 file using ffmpeg? I have test.mp4 file and I want to remove 10s from 11:00 to 11:10
14
votes
2 answers

ffmpeg: command not found

I have ffmpeg installed in my Ubuntu 14.04 (and also no ffmpeg for 16.04) but when I tried to use it in terminal I got the following error, $ ffmpeg -i input.avs -an -vcodec rawvideo -y output.avi ffmpeg: command not found I check it in my…
sugab
  • 4,367
13
votes
2 answers

How to change default audio track using FFmpeg?

I want to change the default audio track from Portuguese to English in the file input.mkv. The video contains 4 Audio Tracks: Portuguese (Default), Spanish, English and Japanese. I would also like to keep the subtitles. The information about the…
11
votes
5 answers

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-3_Baby.mp3 ffmpeg version…
michael
  • 6,059
9
votes
2 answers

How do I use ffmpeg's -filter_complex

I am using FFmpeg version SVN-r0.5.9-4:0.5.9-0ubuntu0.10.04.3 and it doesn't allow me to use -filter_complex. It shows: ffmpeg: unrecognized option '-filter_complex' I want to overlay 2 videos, how can I get that option?
8
votes
3 answers

Run command for every file in directory

I'm converting all of my video files to WebM, to greatly reduce the amount of hard disk space being used. To do this I use the program "ffmpeg" which requires an input and output file specified. Since the converting process takes a long time, I wish…
7
votes
2 answers

Upgrade already installed ffmpeg software on ubuntu server

I have ffmpeg version 2.2.5 installed on my server which is running on ubuntu. I want to update it to latest version and codecs/libraries. I have tried the following commands but they are not working. sudo apt-get update sudo apt-get install ffmpeg…
7
votes
2 answers

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 of the ffmpeg / libav fork for a ubuntu user?
augustin
  • 511
6
votes
3 answers

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/s Why ist this? Do I miss something here? If I want…
piedro
  • 1,602
6
votes
1 answer

How to save the audio from webm to ogg without transcoding using ffmpeg?

I understand (maybe incorrectly) that webm audio files downloaded from youtube are basically vorbis streams inside an opus file structure. Is there a way to extract that stream and save it as an ogg file without transcoding? So far, all of my…
6
votes
1 answer

how to use ffmpeg to crop a video in a terminal

How can i use ffmpeg to crop a video ffmpeg -i in.mp4 -filter:v "crop=500:500:20:20" Vid-out.mp4 ffmpeg -i in.mp4 -filter:v "crop=W_:H_:W_:H_" Vid-out.mp4 what I'm trying to figure out is, how does anyone know where 500:500 is or where 20:20 is…
user610658
5
votes
1 answer

How to convert AVI to MP4 using FFMPEG?

I am using this script to convert an avi file into a mp4 file ffmpeg -i video.avi video.mp4 The resulting file I got is encoded using H264 but the video is flawed. What am I doing wrong? I would like the resulting video to be encoded a good codec…
Joe Jobs
  • 169
1
2 3 4 5 6