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

learn more… | top users | synonyms

2
votes
0answers
128 views

Libav: Find out the exact time that the first frame coming from an RTSP stream was dumped into a file

I am dumping an RSTP stream from a web camera into a file using avconv: avconv -f rtsp -rtsp_transport tcp -i rtsp://user@password/ 192.168.1.4/stream.cgi -t 100 -c:v libx264 -s 1024x768 -an ...
2
votes
1answer
347 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 ...
0
votes
1answer
360 views

FFMPEG Conversion Fails

Bad file? I'm very new to FFMPEG so how can I better debug and trace these issues? ffmpeg -i /home/videospace/public_html/labo/lion.3gp new_video.flv ffmpeg version N-57647-g1880294 Copyright (c) ...
1
vote
1answer
2k views

Batch Convert .mp4 to .avi with ffmpeg

Running Ubuntu 13.10 with a fully compiled ffmpeg. I know the code for the actual conversion is ffmpeg -i video.mp4 -codec copy video.avi I just need a plain and simple Bash script to do that for, ...
2
votes
1answer
408 views

Piping Sox and FFMPEG together

I'm processing a variety of audio files in a bunch of different formats and I'd like to unify their format and configuration using FFMPEG and SoX. There are two steps to my process: Convert the ...
3
votes
0answers
214 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
2answers
191 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/ ...
2
votes
4answers
814 views

how to convert number to time format in shell script?

I want to cut a video into about 10 minute parts like this. ffmpeg -i video.mp4 -ss 00:00:00 -t 00:10:00 -c copy 01.mp4 ffmpeg -i video.mp4 -ss 00:10:00 -t 00:10:00 -c copy 02.mp4 ffmpeg -i video.mp4 ...
1
vote
1answer
636 views

2pass encoding by ffmpeg at once

I encode a video file by using ffmpeg like this. $ ffmpeg -i input.avi -pass 1 -an output.mp4 $ ffmpeg -i input.avi -pass 2 -ab 128k -y output.mp4 So I typing always 2 times, is there way to encode ...
2
votes
2answers
354 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
1k views

ZoneMinder compiling error: “missing binary operator before token ”(“”

When installing ZoneMinder 1.25.0 in CentOS 6.4 (64-bit) the following error pops up when executing make: zm_ffmpeg_camera.cpp:105:44: error: missing binary operator before token "(" Full log: ...
2
votes
1answer
2k views

Using FFMPEG to stream to Twitch.tv with desktop audio?

I've been trying for the last hour or so to stream to Twitch.tv with desktop audio in the stream. Currently, I'm able to use this to get a video to display on Twitch: #! /bin/bash INRES="1280x800" ...
2
votes
1answer
664 views

ffmpeg webcam to device driver , output 8 bit grayscale

With the following command i'm trying to capture 10fps and send them the device driver. Now i want 8 bit gray raw frames (640x480= 307200 bytes per frame) to be send to the device driver. I can't ...
1
vote
0answers
418 views

FFmpeg-php installation error on CentOS 6 x64 bit

I'm trying to install ffmpeg and ffmpeg-php. FFMpeg installed perfectly. When I try to install ffmpeg-php, I'm running ./configure and it's configured fine. However, when I run make it gives me the ...
1
vote
0answers
413 views

Compiling PHP-FFMPEG Extension

cd ffmpeg-php* phpize ./configure --with-ffmpeg=/usr/local/cpffmpeg make Then I end up with the following issues on my make: ... ... ... /usr/src/ffmpeg-php-0.6.0/ffmpeg-php.c:86: warning: ...
-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: ...
2
votes
0answers
97 views

Is there any remote GUI for ffmpeg?

I'm looking for some software with both Linux and Windows versions that can remotely run FFMPEG commands on my Linux server. Just like what transmisson-remote-gui does for Transmission. In summary, I ...
6
votes
1answer
564 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 \ ...
2
votes
0answers
866 views

Rotating a video (ubuntu 12.04)

I have a video, shot on my android phone, which I want to rotate 90 degrees clockwise for computer viewing. Here's what I expect should work: ffmpeg -i infile.mp4 -vf "transpose=1" -an -vcodec mpeg4 ...
1
vote
1answer
140 views

Tell ffserver which track to use

I want to stream videos via ffserver. My videos are in container formats like mkv and avi and sometimes have multiple audio/video tracks. How can I tell ffserver which track to use? It seems to always ...
3
votes
1answer
223 views

Need script: latest JPEGs to video, then delete old JPEGs

I have an IP cam which uploads JPEG pictures to an FTP folder on my Arch Linux box whenever it detects movement in the room it is looking in. It uploads a JPEG every second until all motion activity ...
4
votes
0answers
507 views

How can I prevent ffmpeg intermmittent faulure with `AVC: nal size` error?

I am trying to open the NASA HDTV video stream from ustream.tv directly in vlc. The problem that I have is that it only works sometimes. The command I am using is below: ffmpeg -i ...
2
votes
3answers
2k views

ffmpeg -pattern_type glob — not loading files in correct order

I have a dilemma.. I've had a script for a while now that downloads pictures from a webcam every few minutes. The naming convention just does new_image((len(files(dir))+1) + '.jpg') and that's all ...
1
vote
1answer
793 views

Recording a webcam using ffmpeg

I'm struggling with ffmpeg. My webcam can do 720p at 30fps, but only when using the MJPEG codec: ~> v4l2-ctl --list-formats-ext ioctl: VIDIOC_ENUM_FMT Index : 0 Type : ...
1
vote
0answers
183 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 ...
11
votes
3answers
4k 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
312 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 ...
6
votes
2answers
2k views

Converting PNG frames to video at 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 ...
3
votes
1answer
641 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
899 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
892 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
320 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.
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', ...
1
vote
2answers
9k 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 ...
6
votes
2answers
8k 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 ...
4
votes
1answer
297 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
880 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
959 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 ...
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 ...
1
vote
1answer
190 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
789 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
346 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 ...
4
votes
2answers
5k 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
866 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 ...
0
votes
0answers
144 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
519 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
13k 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 ...