`ffmpeg` is a free software project aimed at producing tools (libraries and programs) for handling multimedia data.

learn more… | top users | synonyms

1
vote
0answers
121 views

unable to segment theora vorbis video file with ffmpeg

i am trying to split ogg video into 10 sec ogg video segments with ffmpeg segmenter. ffmpeg -i www/VideoPlayer/Videos/wr3libvorbis.ogg -map 0 -f segment -segment_time 10 -segment_list ...
7
votes
3answers
1k views

How to get near-perfect screen recording quality?

Someone suggested I direct a copy of the unmodified X display to a file and afterwards convert that file to a general purpose video file. What commands would I use to do this on a Kubuntu system? ...
1
vote
0answers
204 views

avconv/ffmpeg output through /dev/ttyAMA0

I tried to pipe streaming video from video4linux2 webcam connected to a Raspberry Pi through /dev/ttyAMA0 to a computer using an Arduino as a intermediary. First of all, is it possible? Because I was ...
5
votes
2answers
562 views

Converting PNG frames to video a 1 FPS

I have video frames in PNG format at 1 FPS and I'm trying to convert them into a video using ffmpeg. If I do something like this: ffmpeg -i data/input-%4d.png data/output.mp4 I get a video at 25FPS ...
2
votes
1answer
399 views

Can't install 32 bit gstreamer-ffmpeg normally, library can't find other 32 bit libs

I'm on Ubuntu 12.04 64 bits and I'm trying to get a game (GTA SA) working in wine, but it keeps crashing. After reading error logs it seems I needed some 32 bit versions of gstreamer, probably to play ...
2
votes
0answers
638 views

Determining media format/encoding for DLNA system

How do you determine what parameters are needed by a DLNA renderer and server? I have a Samsung TV that is a DLNA renderer. I also have a Western Digital NAS running Debian and have Twonky and ...
1
vote
1answer
730 views

How can I compile and install the latest FFmpeg on Linux?

I want to install the latest version of ffmpeg on Linux (Ubuntu/Debian). It should meet requirements to stream via rtmp, convert streams with x264, create segment files to stream to IOS devices. How ...
1
vote
1answer
229 views

Compress online videos directly with ffmpeg

Can we compress an online video with an http url using ffmpeg directly? If possible please give me a command that can compress online video directly & save on my PC. I am using Ubuntu.
0
votes
1answer
1k views

Trying to compress avi file using ffmpeg

I used the command below to compress an avi file(using ubuntu) ffmpeg -i input.avi -vcodec msmpeg4v2 output.avi but I am getting these errors Incompatible sample format 's16' for codec 'ac3', ...
1
vote
1answer
6k views

How to stream video from webcam to network with ffmpeg?

I'm trying to stream h264 video from my Logitech C920 webcam. I'm using such ffserver.conf: Port 8099 NoDaemon BindAddress 0.0.0.0 RTSPPort 5004 RTSPBindAddress 0.0.0.0 MaxClients 10 ...
5
votes
2answers
5k views

Downsampling a video with avconv / ffmpeg

I know really little about encoding and using avconv / ffmpeg. I am trying to downsample a video as follows: avconv -i blah_in.avi -s 640x360 -pass 1 blah.avi avconv -i blah_in.avi -s 640x360 -pass 2 ...
3
votes
1answer
192 views

Batch conversion of Module files with XMP

I have the following script to convert a big bunch of .MOD and .XM files into Wave format: #!/bin/bash for f in ./XM.* ./MOD.* do xmp $f -d wav -o - | ffmpeg -i - -acodec libmp3lame -ab 320k ...
2
votes
0answers
655 views

No way to record a live stream to WebM using ffmpeg?

I'm streaming from an mp4 source and so far I've managed to save clips as ogg (video: libtheora, audio: flac), but I'd like to save them in the WebM format. Unfortunately, WebM demands libvorbis for ...
2
votes
2answers
2k views

Mass deinterlacing with FFmpeg on Debian

I have about 300 videos, on a Debian server, stored in the following manner: /mediaroot/1/m32.mp4 /mediaroot/2/m421.mp4 /mediaroot/n/mx.mp4 They all need to be deinterlaced, and I want to do it ...
1
vote
2answers
641 views

ffmpeg and libvpx: error while loading shared libraries

When I run ffmpeg I get the following error: /usr/local/bin/ffmpeg: error while loading shared libraries: libvpx.so.1: cannot open shared object file: No such file or directory Output of ls -l ...
4
votes
1answer
4k views

How to splice sections of a video with avconv?

I have figured out so far that you can cut a section from a video with avconv with a command like this (cuts from 1:00-3:00): avconv -ss 00:01:00 -i "input.avi" -t 00:02:00 -c:v libx264 -crf 23 ...
1
vote
1answer
141 views

Autotools does not detect my architecture correctly. How to handle?

I am trying to build the latest ffmpeg from the git repo. However, as you can see below, autotools does not detect correctly that my box has 64-bit architecture (Ubuntu 12.04). Consequently, during ...
6
votes
1answer
658 views

Is it possible the get the original (best) audio quality when using avconv?

In Feb 2011 I had a similar question: ffmpeg and libmp3lame produces bad audio quality? Now I'd like to know if it is possible to the get the original audio quality from a (flash) video? Every time I ...
3
votes
3answers
247 views

New source install over existing one

I have Slackware installed on my computer, and I install a lot of software from source. Now I want to install ffmpeg from source just to recompile it with some more options. But I already have ffmpeg ...
2
votes
2answers
3k views

error while compiling ffmpeg: gcc is unable to create an executable file

When I run the ./configure command in ffmpeg source directory I get this error: gcc is unable to create an executable file. If gcc is a cross-compiler, use the --enable-cross-compile option. Only do ...
2
votes
1answer
668 views

How to convert a group of video files using FFMPEG?

I have several video files in a directory and I want to convert all of them into other video formats. Is there any way that I can convert all of them in just one go using FFMPEG. I mean without having ...
1
vote
1answer
1k views

ffmpeg with mp3 support: How to install (use) in user mode?

I want to use ffmpeg and libmp3lame on a stable Debian box. Alas, Debian does not support the libmp3lame package. So, I downloaded the sources for ffmpeg and the lame encoder, configured and installed ...
2
votes
4answers
3k views

mp3 extraction with avconv or ffmpeg doesn't work properly anymore

Before upgrade to the latest Ubuntu I used the following command to extract mp3 from an avi file: $ for x in *.avi; do ffmpeg -vol 100 -ab 160k -ar 44100 -i "$x" "`basename "$x" .avi`.mp3"; done ...
1
vote
0answers
134 views

To which audio format can I convert aac lost-free with ffmpeg?

Since I did not manage to get the audio work with ffmpeg -i video.mp4 -acodec copy -vcodec copy out.avi I'm searching for an audio format to which I can convert aac lost-free. Does such an ...
0
votes
0answers
365 views

ffmpeg: problems when copying the audio

When I run this ffmpeg -i video.mp4 -codec copy video.avi I get a broken audio: a crackling like a stuck LP. The input-audio is aac When I re-encode the audio like this ffmpeg -i video.mp4 -codec:v:0 ...
7
votes
2answers
9k views

How get the best quality when converting from mp4 to avi with ffmpeg?

When I use this, the quality doesn't look bad. ffmpeg -same_quant -i video.mp4 video.avi In the ffmpeg documentation is written: "Note that this is NOT SAME QUALITY. Do not use this option unless ...
4
votes
2answers
2k views

Strange errors when using ffmpeg in a loop

I have a bash script looping through the results of a find and performing an ffmpeg encoding of some FLV files. Whilst the script is running the ffmpeg output seems to be interupted and is outputting ...
1
vote
1answer
973 views

Ffmpeg problems on centOS 5.8 64 bit

I did install ffmpeg with winff, unsuccessfully when I try converting avi to x264, it says I don't have it. When I try to convert mp4 to Xvid I get unknown encoder 'libxvid'. It's like nothing really ...
5
votes
1answer
5k views

Encode with ffmpeg using avi to mp4

What command lines to use to convert from avi to mp4, but without destroying the framesize and making the file small as the original size or a little bit bigger, and same thing with mp4 to avi? ...
1
vote
0answers
251 views

ffmpeg: error while running with libx264

Main code: ffmpeg -i 2269801.avi -threads 0 -vcodec libx264 -b 900k -acodec libfaac -ar 44100 -ab 96k -ac 2 earthgirlsareeasy1.mp4 [libx264 @ 0x16cdde10]broken ffmpeg default settings detected ...
3
votes
2answers
3k views

How do I convert a MKV file to H.264/AVC with a resolution of 640x360 using FFMPEG?

I have a MKV video which I want to put in my mobile (a Nokia XM 5800) and based on this I can play H.264/AVC format videos on it. Based on what I have read, the container should be MP4 and I can ...
2
votes
2answers
2k views

Using a named pipe as ffmpeg/avconv's input for streaming

So I'm in a situation in which I want to feed a .wav (or other kind of sound) file to a named pipe/FIFO, and use the pipe as ffmpeg's input source (with a ffserver feed as an output). This is as far ...
3
votes
1answer
813 views

ffmpeg: error while loading shared libraries: libtheoraenc.so.1

When I want to run ffmpeg I get the following error: ffmpeg: error while loading shared libraries: libtheoraenc.so.1: cannot open shared object file: No such file or directory This is output of ls ...
3
votes
0answers
686 views

Generating a slideshow under linux

Under Windows, one is able to generate a nice slideshow (crossfading between images, applying the Ken Burns effect on each image) on Windows using (Windows) Movie Maker. When I create a slideshow ...
3
votes
1answer
1k views

What settings can I use to maximize FFMpeg performance?

I'm trying to do some screencasting, but since my computer is much too old and slow the video being produced is laggy and the application I'm trying to record becomes unresponsive due to the CPU ...
6
votes
4answers
268 views

extracting certain info from output

I'm trying to extract certain info from ffmpeg output. Sample ffmpeg output: configuration: --enable-memalign-hack --enable-mp3lame --enable-gpl --disable-vhook --disable-ffplay --disable-ffserver ...
8
votes
2answers
22k views

How can I reduce a video's size with ffmpeg?

How can I use ffmpeg to reduce the size of a video by lowering the quality (as minimally as possible, naturally, but I need it to run on a mobile device that doesn't have much available space)? I ...
2
votes
1answer
1k views

Is there a way to demux a h264 video stream from an flv (h264, aac)?

Using ffmpeg to demux an h264 stream from a .flv video always gives me a stream which I cannot remux into a .mp4 container (using either MP4Box from package *gpac), or ffmpeg). Here is the demuxing ...
2
votes
1answer
934 views

Fix error in mp3 file

I have an mp3 file that plays OK on computer but there is a problem to play it on mp3 player. ffmpeg shows this: $ ffmpeg -i file.mp3 [mp3 @ 0x8de72a0] Invalid size in frame , skipping the rest of ...
1
vote
1answer
3k views

Install FFMPEG on RHEL/CentOS

I've been searching for hours now and trying various methods of installing FFMPEG on my CentOS server. This is what I have currently installed on my Ubuntu desktop: FFmpeg version ...
2
votes
2answers
6k views

Mencoder with same quality output

I like mencoder for converting video files because it shows me how much time is remaining to the end of the conversion (in opposite to ffmpeg). mencoder file.wmv -ofps 23.976 -ovc lavc -oac copy -o ...
4
votes
3answers
16k views

How can I embed subtitles into videos with ffmpeg?

I'm told it's possible to embed subtitles (.srt) into video files (.avi) using ffmpeg, but I can't find any mention of it in the man page. Is this possible? What command do I use?
2
votes
1answer
2k views

Split video file into pieces with ffmpeg

When you want to extract two minutes of a video file from minute 2 to minute 4, you will use command ffmpeg -i input.mpg -sameq -ss 00:02:00 -t 00:02:00 output.mpg I'd like to split the video into ...
7
votes
3answers
929 views

Who is doing the job: ffmpeg or the shell?

First part of my question: I read on the ffmpeg documentation (section 3.2 How do I encode single pictures into movies?) the following: To encode single pictures into movies, run the command: ...
1
vote
3answers
1k views

Install ffmpeg 0.7.1-5 from debian package

I downloaded this package for ffmpeg. When I try to install it with command sudo dpkg -i ffmpeg_0.7.1-5_i386.deb it writes this error message: Unpacking ffmpeg (from ffmpeg_0.7.1-5_i386.deb) ... ...
6
votes
3answers
3k views

How can you trim mp3 files using `ffmpeg`?

Here is a Linux audio MP3 puzzle that has been bugging me for awhile: How to trim the beginning few seconds off an MP3 audio file? (I can't get ffmpeg -ss to work with either 00:01 or 1.000 format) ...
1
vote
1answer
363 views

ffmpeg could not open file.mpg

When I want to convert a video with the following command: ffmpeg -i file.wmv -sameq file.mpg it ends with this error message: FFmpeg version SVN-r0.5.1-4:0.5.1-1ubuntu1.1, Copyright (c) 2000-2009 ...
11
votes
2answers
4k views

How to record my full screen with audio?

If I want to record my desktop, I use: ffmpeg -f x11grab -s `xdpyinfo | grep -i dimensions: | sed 's/[^0-9]*pixels.*(.*).*//' | sed 's/[^0-9x]*//'` -r 25 -i :0.0 -sameq valami.avi But it doesn't ...
3
votes
1answer
873 views

FFMPEG video to FLV conversion optimization

Would anyone have any tips on optimizing video to FLV conversion using ffmpeg so I would get a medium quality video which is not very large? I have a video site where users can upload videos which ...
2
votes
1answer
3k views

ffmpeg and libmp3lame produces bad audio quality?

when I get a flash video from YouTube, why is the quality of the audio much worse than the origin video on YouTube? When I downloaded the flash movie, I convert it to avi like this: ffmpeg -i ...