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

learn more… | top users | synonyms

1
vote
2answers
50 views

Job control over a Bash script

I have a Bash script of a thousand lines each containing an ffmpeg command. I start this with source script and it runs just fine. However, when I try to take control of this script in various ways, ...
1
vote
1answer
3k 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 ...
8
votes
1answer
761 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 \ ...
3
votes
6answers
11k 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 ...
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 ...
0
votes
1answer
4k 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 ...
2
votes
1answer
3k 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', ...
2
votes
2answers
18 views

How to stream with ffmpeg in a separate process

I need to stream with ffmpeg on Ubuntu. The streaming should be started from a bash script. Currently, I call ffmpeg like this, as a part of subroutine in a bash script: function startFFMpegEncoder ...
0
votes
0answers
28 views

allow non-root user to run programs compiled by root in /root/bin

I just finished and installed ffmpeg installation on a centOS box via the guide made by ffmpeg themselves https://trac.ffmpeg.org/wiki/CompilationGuide/Centos As it turns out, ffmpeg was installed at ...
0
votes
1answer
13 views

Cropping a yuv444_8bit and yuv_420_10bit input using ffmpeg

I have 3 input files to crop: 1. yuv_420 10 bit 2. yuv_444 8 bit 3. yuv_444 10 bit I am unsure about which pix_fmt option to use for these. This is the command line I am using: ffmpeg -s:v 3840x2160 ...
-1
votes
0answers
19 views

Extract mp4 audio to mp3 with cover artwork

I have found a way to batch extract the audio of my files: for vid in *.mp4; do ffmpeg -i "$vid" -vn -acodec copy "${vid%.mp4}.mp3"; done Now, I would like to use as a cover art of the file, the ...
2
votes
1answer
620 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
0answers
31 views

ffmpeg configuration error

I downloaded ffmpeg and followed the README. First thing, ffmpeg needs to be configured. But executing configure (./configure) says ~/Downloads/ffmpeg-2.7.2 $ ./configure gcc is unable to create an ...
4
votes
3answers
7k 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 ...
0
votes
2answers
203 views

ffmpeg batch convert .avi to .mp4 - in ash

I'm looking to batch-convert a directory (or several) of video files from .avi to .mp4 containers, just copying the video and audio streams across. I know the ffmpeg command to do this, and have no ...
1
vote
0answers
14 views

Miro player doesn't recognize subtitle from video encoded by ffmpeg

It was the first time I encoded a video on Ubuntu. I used ffmpeg to extract the video/audio, encode them and join with a subtitle to a new file. All these steps were fine. I used the following ...
2
votes
0answers
452 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 ...
0
votes
0answers
36 views

ffmpeg libass centOS 5.11

Hi i just got a vps server and it has CentOs 5.11 and kernel 2.6.18 and I need to install ffmpeg on it with --enable-libass. So I have tried to compile but I'm having problems with libass because of ...
3
votes
2answers
89 views

Create thumbnail from video at random time frame

I'm using this bash script to generate thumbnails from videos: #!/bin/bash source_dir="." output_dir="/output" input_file_types=(avi wmv flv mkv mpg mp4) output_file_type="jpg" r1=$(( ( RANDOM % 10 ) ...
1
vote
1answer
527 views

mplayer not sending the correct user-agent

I am trying to play a stream through mplayer. Here is the command I execute: mplayer -user-agent "PS4 libhttp/1.60" -cache 8192 -v ffmpeg://http://the_stream_url.m3u8 The stream does not play due ...
4
votes
1answer
793 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 ...
1
vote
1answer
32 views

Fix flv file with small errors

I have a couple of flv files downloaded with youtube-dl. When they are played they fail after a few minutes with: Unsupported video codec (X) where X is e, 9, or b. My guess is that one block is ...
5
votes
1answer
133 views

Bash Script — ffmpeg not being invoked as expected

I'm working on a bash script to convert my music library to ogg* but executing the right command is somehow eluding me. This is the line that should accomplish it: ffmpeg -i "${file}" -f flac pipe:1 ...
18
votes
5answers
21k 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 ...
5
votes
2answers
1k views

Is there any equivalent to the atempo ffmpeg audio filter but for avconv to speed up video(and audio)?

As noted here, we could speedup audio with ffmpeg using ffmpeg -i input.mkv -filter:a "atempo=2.0" -vn output.mkv But on Ubuntu, ffmpeg is replaced by avconv, and the atempo filter is not available ...
1
vote
0answers
32 views

compile ffmpeg centos

I used this Guide http://trac.ffmpeg.org/wiki/CompilationGuide/Centos To install ffmpeg in my VPS with CentOS 6 64. But it was installed in /root/bin/ and I need to install it in usr/bin/ to run ...
0
votes
0answers
329 views

ffprobe or avprobe not found. Please install one

I want to add tags to mp3 converted with youtube-dl & ffmpeg in CentOS 6: command line : youtube-dl -o '/Output/qpgTC9MDx1o.mp3' qpgTC9MDx1o -f bestaudio --extract-audio --metadata-from-title ...
0
votes
0answers
15 views

VLC exporting video frames uncontrollably, can't figure out how to stop it (possibly related to ffmpeg)

I have a very peculiar problem. Every time I open a video in VLC, in any format, it immediately begins exporting frames to my Pictures folder I tried deleting VLC and reinstalled a newer version but ...
0
votes
1answer
131 views

ffmpeg -acodec copy does not copy all audio stream to the new container

I wish i can find ffmpeg help here at stackexchange. I'd been re-encoding old videos to libx264 to save up some storage space, as I thought it should be working based on documentation seems failing to ...
-1
votes
1answer
134 views

how to convert video into webm format using ffmpeg in centos

how to convert video into webm format using ffmpeg and libvpx in centos I have install ffmpeg and libvpx in centos.but it's doesn't convert mp4 format into webm format. but in windows i have check, ...
0
votes
1answer
70 views

Avconv creates 0 byte outputfile after applying frame rate reduction

I installed avconv because I am too stupid to install ffmpeg, now I realized I am even more stupid. I tried to reduce the framrate from 30 fps to 24 fps following a very straigtforward tutorial: # ...
1
vote
1answer
4k 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 ...
4
votes
2answers
166 views

ffmpeg transcoding with find, “{}” and spaces in filename: I get “No such file or directory”. How to solve?

This is driving me crazy. I have a bunch of mp3 that I want to transcode using ffmpeg. I'm trying to use this oneliner (the script is bigger, this is the problematic section): find . -type f \( ...
2
votes
2answers
1k 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 ...
0
votes
0answers
51 views

Running FFmpeg in While Loop

Here is my problem. I want to run many different multiple ffmpeg instances all in background and all in while true loop. I tried the following command but does not even work: (while true; do ...
9
votes
2answers
10k views

How to convert a VOB file to avi?

I am trying to convert a VOB file copied from a DVD into an avi in Ubuntu 13.10. I tried dvdrip, which failed due to a frame count error or something. I tried acidrip as well, but it always choose an ...
0
votes
1answer
118 views

FFMPEG batch convert quits before processing all files

I have an audiobook which consists of over 700 ra files (RealAudio) which I'm trying to batch convert to mp3 using ffmpeg. RA files are named as chapter-verse.ra (e.g. 13-01.ra) I run a script and it ...
0
votes
1answer
161 views

how to convert MOD video file without loosing quality to modern popular format for TV

I have MOD video file. My LG TV doesn't support MOD. How can I convert MOD video file without loosing quality to modern video format to watch it on different modern TVs?
2
votes
2answers
132 views

replace `while` with more suitable function so looping would wait for each process to end

I have a bash script that look out for files recursively under multi-sub folders, then use ffmpeg to each file. at debug, it works great if i use echo ffmpeg but the thing is, at real work where it ...
2
votes
0answers
46 views

Encoding a video from Unix Timestamps + ms

I have a sequence of images that were taken from a camera that have been saved in a naming convention that contains the unix timestamp as well as milliseconds. For instance, 1333351808430.jpg (I typed ...
2
votes
1answer
653 views

Command line for converting .SWF to animated GIF

I'm running Kubuntu. I don't want to install any Windows applications in wine. I would like a (relatively simple) command to convert a flash animation (.SWF file) to an animated GIF. The input .SWF ...
0
votes
0answers
33 views

check media resolution if resolution is big ffmpeg it, if output is smaller than original delete the original else delete the output

I have my storage VPS filled with videos, and hoping I can free up some space, their resolution is pretty big so I decided to re encode them with ffmpeg to a smaller resolution, I am doing every thing ...
3
votes
2answers
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" ...
3
votes
2answers
4k 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 ...
0
votes
0answers
319 views

Cygwin compilation error in ffmpeg: gcc is unable to create an executable file

While i am executing the below command in cygwin in ffmpeg source directory ./build_android.sh Here is the for ffmpeg in android I am getting this error message ...
1
vote
2answers
634 views

How to check if a shared library is installed?

My question origins from my problem getting ffmpeg started. I have installed ffmpeg and it is displayed as installed: whereis ffmpeg ffmpeg: /usr/bin/ffmpeg /usr/bin/X11/ffmpeg /usr/share/ffmpeg ...
0
votes
1answer
104 views

How to reduce the size of an mpeg file using the command line ?

I have a file, the output of the file command displays: jeff_western2.mp4: ISO Media, MPEG v4 system, version 1 I do not know how to lookup the resolution but it looks quiet high, the file itself ...
0
votes
1answer
176 views

Alternative to ffplay for Raw Video Playback without X Windows

I am successfully capturing frames from a small USB IR camera on the small Raspberry Pi Linux board. I am using the 'libseek' code to do this: https://github.com/zougloub/libseek I can see alot of ...
1
vote
0answers
161 views

How to use sox or ffmpeg to detect silence intervals in a long audio file and replace them by zeros (aka suppress background noise)?

I have a long audio file that was created by concatenating many short files. I would like to detect silence between the speech segments (just a threshold is enough for my purposes) and replace them by ...
1
vote
2answers
480 views

Convert a video to a fixed screen size by cropping and resizing

I've tried to figure this out myself, but the myriad of options just baffles me. I want to use ideally either ffmpeg or mencoder (or something else, but those two I know I have working) to convert ...