`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
20 views

possible for mpv to find subtitle files by itself, something in config files?

Subtitle files come in a variety of formats, from .srt to .sub to .ass and so on and so forth. Is there a way to tell mpv to search for subtitle files alongwith the media files and if it does to start ...
1
vote
1answer
2k 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: ...
6
votes
2answers
7k 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 ...
2
votes
1answer
21 views

FFMpeg : Converting a video file to a gif with multiple images from video

I am working on a project in which the user can upload videos. Is there any way with FFmpeg I can take some images from the video and create a GIF out of it? As the project is in Java, I have a way ...
0
votes
2answers
1k 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 ...
1
vote
2answers
61 views

How to use a greped url provided by tshark inside a bash script?

I'm trying to use a url piped from tshark into a while loop. while read line ; do echo "$line" ffmpeg -i "$line" -c copy "filename" done < <(tshark -i tun0 -B 50 -P -V -q -l -Y 'http matches ...
8
votes
1answer
920 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 \ ...
1
vote
1answer
328 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
1answer
1k 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
vote
1answer
1k 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.
0
votes
1answer
31 views

use ffplay to play a list of audio files

There are many audio and video players but I would like to use one tool for many propose. So I would like to use ffplay as audio and video player. To play a one file the command is like this. ffplay ...
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
75 views

FFMpeg : GIF to MP4 conversion throws code error.

I am trying to convert a GIF to a MP4. I am getting an error while doing that with specific parameters. What am I doing wrong? Any help would be nice. I would like a mp4 video with high quality, size ...
3
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', ...
1
vote
2answers
27 views

How best to reencode video for lower-performance playback?

I have various video files as MKV, including some high-def (1080p) with FLAC audio. These can be played fine on a several-years-old PC with a mid-range graphics card (using mpv/ffmpeg), but when I ...
21
votes
6answers
26k 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
40 views

How to check if a video is completely downloaded?

I have a bunch of videos which I want to check if they are complete or not. Some of them may be downloaded partially, but they are not faulty. How can I efficiently check if these video are completely ...
0
votes
0answers
16 views

How to create a gamma cross-fade of two pictures using ImageMagick?

I want to make a gamma composite image, as is common with making cross-fades between two video tracks. The composite frames of the cross-fade are made by cross-fading the gamma values of one picture ...
0
votes
0answers
36 views

How to restart script or reboot if FFMPEG / AVCONV get stuck?

I am using AVCONV to stream my webcam on Dailymotion, here is the command : avconv -f video4linux2 -s 853x480 -i /dev/video0 -f flv -b 800k -r 14 rtmp://publish.dailymotion.com/publish-dm/xxx I run ...
40
votes
1answer
74k 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 ...
9
votes
3answers
13k 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 ...
2
votes
3answers
4k 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
1answer
80 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 ...
0
votes
0answers
28 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
100 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
41 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 ...
0
votes
2answers
109 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 ...
2
votes
1answer
829 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 ...
8
votes
7answers
21k 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
2answers
421 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 ...
4
votes
1answer
379 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.
2
votes
1answer
9k views

FFmpeg - Split video multiple parts

I read the following thread, and the solution works if I want to split a video into pieces every two minutes: Split video file into pieces with ffmpeg The problem is that I want to split a video into ...
5
votes
1answer
5k 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
1answer
182 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 ...
1
vote
0answers
687 views

How to record v4l webcam with ffmpeg? Cannot find a proper format for codec 'none'

Goal is to capture video from my old usb webcam (device 0733:0430). Trying to save video gives this error. (I've tried both ffmpeg and avconv.) Command ffmpeg -f v4l2 -i /dev/video2 -s 160x120 ...
2
votes
1answer
267 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 ...
1
vote
0answers
25 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
116 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
122 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
2k 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: ...
4
votes
2answers
522 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
1answer
442 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 ...
0
votes
0answers
107 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
1k 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 ...
1
vote
0answers
63 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 ...
3
votes
1answer
862 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 ...
3
votes
1answer
330 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 ...
1
vote
1answer
244 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 ...
0
votes
0answers
28 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
67 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 ...