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

learn more… | top users | synonyms

2
votes
1answer
2k 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', ...
0
votes
1answer
22 views

Why convert .GIF to .MP4 file using by ffmpeg on Mac OSX got .MPEG4?

ffmpeg -i original.gif -r 10 outfile.mp4 According to command above, I've got outfile.mp4 but when clicked to see the information of file, i see it's actually a .MPEG4 file and the icon of file is ...
7
votes
1answer
629 views

Merge two audio sources with x11grab, possible?

Currently I'm running with the following setup. ffmpeg \ -i http://pub1.di.fm:80/di_vocaltrance \ -f x11grab -s 1920x1080 -r 25 -i :0.0 \ -c:v libx264 -preset fast -pix_fmt yuv420p -s 1280x800 \ ...
18
votes
2answers
38k 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 ...
1
vote
1answer
545 views

FFServer streaming H.264 from Logitech C920

I'm having some trouble trying to implement a web live stream from my Logitech C920 webcam w/ H.264 encoding using ffmpeg/ffserver. Here is the configuration file I'm using for the ffserver: # Port ...
0
votes
0answers
22 views

timout command is not timing out

I have a timeout command that is not timing out. user@db:~$ ps aux | grep 'timeout' user 4979 0.0 0.0 4440 628 pts/144 S+ 18:52 0:00 sh -c timeout 16 mycommand user 4980 0.0 ...
1
vote
1answer
2k views

Error: File contains parsing errors: file://///etc/yum.repos.d/dag.repo

I read you have to be careful with repo files for security with third party ones added. Anyway I have simply been trying to install ffmpeg and I am stuck because yum doesn't like what it is reading ...
2
votes
1answer
429 views

Trying to record a screencast using ffmpeg but my mouse pointer is invisible

I'm trying to record a screencast using ffmpeg but my mouse pointer is invisible. What am I doing wrong? This is the command: ffmpeg -f alsa -ac 2 -i pulse -f x11grab -r 30 -s 1024x768 -i :0.0 ...
1
vote
1answer
1k 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 ...
4
votes
1answer
93 views

Trim audio file using start and stop times

I have an FFmpeg command to trim audio: ffmpeg -ss 01:43:46 -t 00:00:44.30 -i input.mp3 output.mp3 The problem I have with this command is that option -t requires a duration (in seconds) from ...
0
votes
0answers
52 views

How to record video from an old webcam using ffmpeg on Linux?

After couple of hours I'm finally ready to accept my absolute lack of knowledge in that topic and decided to post this question here. I've been trying to record video from an old external USB webcam ...
1
vote
2answers
55 views

Change of voice via ffmpeg or other application [closed]

I have a set of audio files containing voice recordings, I need to alter the voice signal so the speaker cannot be recognised in an automated way... Do you know some application?
0
votes
1answer
3k views

No rule to make target `install'

I am following these instructions https://trac.ffmpeg.org/wiki/CentosCompilationGuide But when I try the code: cd ~/ffmpeg_sources curl -O ...
0
votes
1answer
65 views

ffmpeg is killed

So I have a problem here. I have a session of ffmpeg -f x11grab running, and suddenly kill -9 or Ctrl+Alt+Backspace comes and GUI dies of course. So far everything seems to be OK. When I try to play ...
3
votes
1answer
680 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 ...
5
votes
2answers
376 views

How to input a network file to ffmpeg

My problem is this. I have access to a server that hosts many video files, most of them are very large and not well compressed. I intend to make a reduced quality smaller size copy of these on my ...
0
votes
0answers
20 views

error with Transcoding with ffmpeg activated by inotify

I’m trying to automatically transcode videos, that are begin uploaded constantly to a server. That is why I have came up with the idea of using inotify, by checking every moment for new files on the ...
1
vote
0answers
13 views

How to define ffmpeg's path during compilation of another software?

I'm trying to compile an opensource software that needs bleeding-edge ffmpeg, so I successfully compiled ffmpeg, but I don't want to run make install as it's not easy to be removed after my tests. ...
2
votes
0answers
117 views

FFMPEG - Interpolate frames or add motion blur

I just watched the trailer for the hobbit, and a trailer for the avengers which both feature an increased framerate. A lot of the comments state that this isn't "true" 60fps since it was not shot at ...
2
votes
2answers
2k views

How to enable libass on Linux?

I tried to enable libass for ffmpeg with this --enable-libass in command but it didn't recognise the command. Does anyone know how to enable libass on Linux?
0
votes
0answers
4 views

Any m2ts trimmer under Linux?

My goal is to trim out m2ts generated by ffmpeg for HLS because the generated m2ts has some overhead. The below is an example of the result analyzed by Apple Media Stream Validator: Average segment ...
0
votes
0answers
26 views

FFmpeg Way to check the pid if it is hanged or not

I'm using FFmpeg to do restreaming in some streams via HLS. I use many different type of streams rtmp,rtsp,http,mmsh. The problem is that sometimes (actually all the time) the ffmpeg hangs in some ...
1
vote
0answers
405 views

Distributed video encoding with ffmpeg

I'm in a process of giving form to a very old dream of mine - to create an efficient and cheap video encoding platform. And following the great examples such as SETI@home, BitTorrent and BitCoin, ...
1
vote
3answers
73 views

Convert to WAV using FFMPEG for pipe into LAME?

I'm trying to convert an AAC file into WAV in order to pipe the output into LAME. I'm looking to do this, specifically: find . -maxdepth 1 -type f -iname "*.m4a" | sort | while read file; do ...
2
votes
4answers
5k views

Bash script to convert all *flac to *.mp3 with FFmpeg?

I want to convert all *.flac to *.mp3 in the specific folder. This is what I've tried, but not works: # change to the home directory cd ~/music # convert all *.flac files ffmpeg -i *.flac -acodec ...
0
votes
0answers
68 views

How to use a wildcard in FFMPEG?

Lets say I want every .mp4 file in a folder as an input file. How does one do that? It only reads it literal.
4
votes
1answer
98 views

Burning a video file with non-standard aspect ratio to DVD

A standard Unixy command line approach to burning a video file to DVD is as follows (assuming) # 1. First use ffmpeg to convert to an mpg file. ffmpeg -i input.m4v -target ntsc-dvd output.mpg # 2. ...
16
votes
4answers
19k views

How can I use ffmpeg to split MPEG video into 10 minute chunks?

There is often a need in the open source or active developer community to publish large video segments online. (Meet-up videos, campouts, tech talks...) Being that I am a developer and not a ...
1
vote
1answer
43 views

Application specific DNS problem?

I'm working on a live stream transcoder application using nginx + ffmpeg. Everything works fine when I use avconv to transcode, but if I use ffmpeg, I get this error: [tcp @ 0xb4e9da0] Failed to ...
3
votes
0answers
233 views

Anyone gotten the switch '-segment_times' working with ffmpeg?

While searching through U&L I noticed a fair amount of questions asking how to script the generation of ffmpeg command lines like these: ffmpeg -i video.mp4 -ss 00:00:00 -t 00:10:00 -c copy ...
2
votes
1answer
144 views

ffmpeg hardcode subs on flv

Giving up on trying to use videosub.js, I am now trying to hard code subtitles to the video file using ffmpeg. Have run into trouble with configuration files not found, when trying to hard code the ...
2
votes
2answers
37 views

Convert video to exactly the same format as another video

Suppose I have two video files A and B. Now I want to convert A to the same format (i.e. same container, same audio and video codec), same bitrate, size etc. as B. Is there a way to do this ...
6
votes
4answers
20k 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?
-1
votes
1answer
1k views

Ffmpeg-php will not compile

FFMPEG: ffmpeg version N-54768-g8d9c1b3-syslint Copyright (c) 2000-2013 the FFmpeg developers built on Jul 16 2013 14:40:49 with gcc 4.4.7 (GCC) 20120313 (Red Hat 4.4.7-3) configuration: ...
1
vote
0answers
48 views

Centos web camera, fast application for snapshot?

I'm using ffmpeg for taking snapshots / still images with web cameras. I'm going to use several web cameras to take photos at the same time or one after the other (timelapse). It's important for me ...
1
vote
1answer
54 views

x11grab flickers in OpenGL draw areas

I'm using ffmpeg's x11grab to do some screencasting. It works pretty well except on 3D stuff. In particular it seems like 3D draw areas flicker in and out. You can see an example of it here. The ...
2
votes
2answers
267 views

Desktop audio falls behind when recording microphone + desktop audio + screen using ffmpeg

I have put together this script for recording the microphone, the desktop audio and the screen using ffmpeg: DATE=`which date` RESO=2560x1440 FPS=30 PRESET=ultrafast DIRECTORY=$HOME/Video/ ...
3
votes
1answer
75 views

How to tape a video running on the screen? (screen capture)

I am trying to capture video and audio from the screen, loudspeakers and microphone. I would like to do that with a command-line command. So far, ffmpeg -f x11grab -r 25 -s 800x600 -i :0.0 ...
0
votes
0answers
146 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 ...
2
votes
2answers
411 views

Remove nth frames of a gif (remove a frame every n frames)

I've recorded a .gif of the screen with ffmpeg. I've used gifsicle and imagemagick to compress it a bit, but it's still to big. My intent is making it small by removing, say, a frame every 2 frames, ...
1
vote
1answer
68 views

Convert video changing only bitrate

I have a mediaplayer program which lags playing one specific file. My assumption is that it is because of too high video bitrate (41.3 Mbps) and too slow CPU (it is embedded system). So, I want to be ...
1
vote
1answer
82 views

How to create a timed video from still images with specific time between each image?

I want to create a video from still images. My images are: 1.jpg 2.jpg 3.jpg 4.jpg 5.jpg 6.jpg 7.jpg 8.jpg 9.jpg Each of them I want to show for a specific duration, between 1-10 seconds: 1.jpg: ...
1
vote
0answers
185 views

Convert images and animated gifs to video

I use the following FFMpeg command to convert images to video. for file in %N; do ffmpeg -framerate 15 -pattern_type glob -i '*.jpg' -vf ...
0
votes
0answers
103 views

How to stream MPEG video using RTP using VLC command line

I'm attempting to convert the following vlc command line which is streaming an MPEG video over UDP ( no RTP ): cvlc -vvv /vlc/attract.mpg :norm=ntsc :v4l2-width=320 :v4l2-height=240 ...
0
votes
1answer
2k views

prores 444 output using ffmpeg

Instead of prores_ks ( as in image ), I need to get prores444. How is it possible? I tried the following and felt that I am limited to this. Is prores_ks an alternative to prores444? Can you explain ...
5
votes
2answers
3k 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 ...
5
votes
1answer
6k 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 ...
5
votes
1answer
328 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 ...
0
votes
0answers
25 views

Black screen when splitting media files

When I run for i in $(ls *mp4); do ffmpeg -i $i -ss 0 -t 720.0 -vcodec copy -acodec copy $i-part1.mp4; ffmpeg -i $i -ss 720.0 -vcodec copy -acodec copy $i-part2.mp4; done; in a directory of ...
2
votes
3answers
2k views

installing ffmpeg-php on centos

With the help of this guide, I am trying to install ffmpeg using these commands: # cd ffmpeg-php/branches/ffmpeg-php/ffmpeg-php-0.6.1/ # replace 'PIX_FMT_RGBA32' 'PIX_FMT_RGB32' -- * # phpize # ...