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

learn more… | top users | synonyms

0
votes
0answers
17 views

ffmpeg - generate video with more then 2 images and 2 audio

I have n images (2 < images < n) and 2 audio files I generate a video like below and it works: $ffmpeg -f image2 -pattern_type glob -framerate 1/10 \ -i '*.jpg' -i "concat:Q.mp3|R.mp3" ...
0
votes
0answers
18 views

How to re-encode file A.mp4 with the same settings as B.mp4?

I have a MP4 file with AAC audio and H264 video, let's call it B.mp4. I also have file A.mp4 with the same picture resolution, but: different FPS possibly different audio/video bitrate different ...
0
votes
1answer
24 views

Convert jpeg sequence to movie stream, in realtime, using ffmpeg

I have a process that is creating a jpeg every X seconds. I know it's possible to use ffmpeg to convert a set of jpgs to a movie, but I want to do it in real-time because I am trying to stream it to a ...
4
votes
1answer
166 views

Copy file creation date to metadata in ffmpeg

I would like to copy the file creation date of an mp4 file into the file's metadata. I'm pretty sure this can be done with ffmpeg and some nifty Linux commands.
0
votes
2answers
153 views

ffmpeg: nvenc mit crf option - very low bitrate

I bought a new computer some time ago.. I installed nvenc for ffmpeg to encode my videos with the h264 codec. To optimize i used the -crf option but something went wrong.. I want to encode a full ...
0
votes
1answer
89 views

Re-encoding video with ffmpeg including all subtitles but not all audio

I'm trying to re-encode video streams from a Matroska file to save space, while keeping all the subtitles as-is, using ffmpeg. I want to write a generic command that works without me having to specify ...
0
votes
1answer
46 views

ffmpeg output.mp4 with size 0

I have a video upload script in php where i exec the following command exec("/usr/bin/ffmpeg -i ".$folder."/".$filenameIn.".mp4 ".$folder."/".$filenameOut.".flv 2>&1", $output); and the ...
2
votes
1answer
138 views

Why was ffmpeg removed from Debian?

Currently, ffmpeg is missing from APT packages when using the stable versions of Debian and Ubuntu. There are numerous resources (example from SuperUser, another one from Debian's documentation and ...
2
votes
0answers
74 views

Record high quality video and audio during Skype calls - Bash scripts [closed]

Background Recording live video and audio during a call (or during any X11 desktop activity) is not very difficult thanks to ffmpeg and the amount of help articles available (including this site). ...
1
vote
1answer
68 views

Problem with ffmpeg in bash loop

When running the following command line to convert multiple .mkv files into .mp4 files, things go awry. It's as if the script tries to run all the commands at once or they get entangled in each other ...
0
votes
1answer
233 views

Compiling FFMPEG from source: cannot find shared library

I'm compiling FFMPEG from source using the guide for Ubuntu which I've used before with success. I'm compiling on a Vagrant virtual machine in VirtualBox on Ubuntu server 14.04. You can clone the ...
1
vote
0answers
24 views

What's the canonical way to get individual stream size in a video file?

I have a video file. It contains a video stream, and a couple of audio and subtitle streams. I want to get the size of each of these streams. I've already looked at ffprobe/avprobe and mediainfo, ...
1
vote
0answers
49 views

Help with MKV to MP4 Remux script [closed]

Overview: I'm trying to remux my mostly MKV library to MP4. I have a script that has gone through and extracted subtitles from the video files. I have another script that will remux any .mkv files ...
1
vote
1answer
126 views

Split a video to multiple chunks according to multiple starting and ending frame indices

Are there any tools (like FFmpeg or OpenCV) can split a video into multiple chunks according to some specific starting and ending frame indices? For example, given (0,20),(21,33),(40,60)..., each ...
1
vote
2answers
552 views

Merge two video clips into one, placing them next to each other

I have two video clips. Both are 640x480 and last 10 minutes. One contains background audio, the other one a singing actor. I would like to create a single 10 minute video clip measuring 1280x480 (in ...
0
votes
0answers
26 views

gcc on debian - Matlab interferes with ffmpeg?

This is a quite confusing problem. I wanted to use youtube-dl and it stops with the following error message from ffprobe (ffmpeg): ffprobe: ...
1
vote
0answers
49 views

How to set default subtitle with ffmpeg

I created a mp4 file from video, audio and .srt file. ffmpeg -i video.mp4 -i audio.m4a -i sub.srt -map 0:0 -metadata:s:v:0:0 language=eng -map 1:0 -metadata:s:a:0:0 language=eng -map 2:0 ...
2
votes
1answer
2k views

Re-encoding video library in x265 (HEVC) with no quality loss

I am trying to convert my video library to HEVC format to gain space. I ran the following command on all of the video files in my library: #!/bin/bash for i in *.mp4; do #Output new files by ...
0
votes
2answers
68 views

bash: ffmpeg libx265 prevent output

I'd like to use the new codec x265 (libx265) to encode my video collection. For this I created a lovely bash script under linux which works in general very well! But something is strange: I prohibit ...
1
vote
2answers
105 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, ...
2
votes
2answers
101 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
151 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
0answers
75 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 ...
1
vote
0answers
23 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 ...
0
votes
0answers
80 views

ffmpeg libass CentOS 5.11

I just got a vps server and it has CentOS 5.11 and kernel 2.6.18. I need to install ffmpeg on it with --enable-libass. I have tried to compile but I'm having problems with libass because I have an old ...
3
votes
2answers
368 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
133 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 ...
1
vote
0answers
76 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
1answer
981 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
24 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
700 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 ...
5
votes
1answer
221 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 ...
-1
votes
1answer
267 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, ...
4
votes
2answers
421 views

gnu parallel: quoted arguments and spaces in file names. 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 \( ...
0
votes
0answers
101 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 ...
0
votes
1answer
248 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
579 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
151 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
66 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 ...
0
votes
0answers
64 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 ...
2
votes
1answer
2k 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
2answers
337 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 ...
0
votes
0answers
527 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 ...
0
votes
1answer
150 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
2answers
3k 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
194 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 ...
1
vote
0answers
248 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 ...
0
votes
1answer
363 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 ...
2
votes
2answers
2k 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 ...
1
vote
0answers
192 views

Playback and simultaneous recording through external USB sound card

I've an external USB sound card (in my case it's a TerraTec Aureon 7.1 USB). I've looped the earphone-out to the line-in using a 3.5mm jack cable. I'm interested in starting the playback of a MP2 ...