Media tool with support for multiple codecs, filters, and containers. Include your actual command and the complete console output when asking questions involving FFmpeg tools. An easy way to do this is by adding `-report` to your command and pasting the contents of the logfile generated.

learn more… | top users | synonyms

3
votes
1answer
4k views

ffmpeg - concatenating two MP4 files results in bad output file

I generated two MP4 files - a five-second intro file, which is created by the script below, and the main video (about one minute long) is created by screen-cast-omatic, both in MP4 format. When I ...
1
vote
1answer
7k views

How to extract all key frames from a video clip?

I'm trying to extract key frames from a video clip. I tried the following command, but it extracts all frames. ffmpeg -vf select="eq(pict_type\,PICT_TYPE_I)" -i 2.flv -vsync 2 -s 73x41 -r 30 -f ...
0
votes
1answer
3k views

ffmpeg fastest way to convert videos avi to mp4

I have server which has: 8x3,4 (sandy bridge cpu) 10gb ram i tried different combinations to convert vvideos i mean avi to mp4 but it takes so long: - ~20mins=~200mb maybe there is some ffmpeg ...
0
votes
1answer
278 views

ffmpeg output mkv displays duration of 00:00 in vlc

I am using the -ss and -t flags on a video to break it into chunks, but I can't seem to get it to split and include clip duration for mkv. How do I get ffmpeg to write the correct timestamp on the ...
1
vote
1answer
490 views

Cropping video to different parts with same bitrate in ffmpeg

I am trying to crop a video clip (originally 960 by 540) in two 4 parts (top-left, top-right, etc..) and I use this command below (with of course corrext x/y positions): ffmpeg -i mov_a.m4v -vf "crop=...
2
votes
1answer
467 views

ffmpeg not using all cores

I just got my new server with two intel e5-2695 but I was shocked to see that ffmpeg or ubuntu doesn't utilize all cores. top while ffmpeg was running top - 23:35:25 up 2:41, 2 users, load ...
2
votes
1answer
4k views

How to create video from images and audio file?

To make the story short, I just want to create a video from a X number of images and a mp3 file, AND get the same audio quality. I've checked the ffmpeg website, but ... here is what I've got: ...
1
vote
2answers
374 views

Automating video generation by adding an intro and a trailing video to the main video

I have a video project I am trying to compile. Here is the overview: I have many videos which are 5 minute training sessions - Main video. The Intro Video will be a standard 5 second video that will ...
0
votes
1answer
682 views

How to keep source frame rate with mencoder/ffmpeg?

I would like to crop and rotate a video, and then encode it to mp4 or mkv. mencoder video.mp4 -vf rotate=1,crop=720:1280:0:0 -oac pcm -ovc x264 -x264encopts preset=veryslow:tune=film:crf=15:frameref=...
2
votes
1answer
2k views

FFmpeg - can't use -pattern_type option

I'm trying to use FFmpeg to create a video from a series of images, named snapshot-00001.jpg, snapshot-00002.jpg, and so on, by using the command ffmpeg -f image2 -r 10 -pattern_type glob -i '*.jpg' ...
0
votes
2answers
3k views

Completely uninstalling ffmpeg

I need help uninstall ffmpeg. The problem is, I can't remember what method I used to install it. But I've already done uninstalling through apt using sudo apt-get remove ffmpeg libav. Thing is, even ...
1
vote
0answers
579 views

FFmpeg drawtext width

It seems that ffmpeg is great for single line scrolling, but I have not been able to find anyone or any examples that set a multi-line based on a width. I have been looking at DrawText instead of ...
1
vote
1answer
877 views

How to use avconv or ffmpeg to convert any video to an exact size and shape

We have a system that supports streaming video, but we support multiple players. I have multiple systems that I COULD use for this. Currently, I've been using the media server that we use to stream ...
2
votes
1answer
819 views

DrawText FFmpeg expression on fontcolor

I am trying to get a faded in text. I was hoping to be able to do it via the fontcolor and an expression - like this fontcolor='if(gt(n,44), white@.2, white)' obviously this doesn't "fade in", but ...
0
votes
1answer
2k views

ffmpeg XDCAM HD vtag profiles

Hey guys sorry for disturbing you again, but these days I have a lot of work to do with ffmpeg. I found on http://code.google.com/p/ffmbc/wiki/XDCAMHD422Encoding vtag settings for XDCAM HD 422 and ...
11
votes
3answers
11k views

Clarification for ffmpeg input option with image files as input

I have some images and I'd like to make an animated gif with ffmpeg. The images have names as: 837_1.png 838_1.png ... I'm trying to unserstand the -i command line option of ffmpeg but I am ...
15
votes
3answers
44k views

How to generate an MP4 with H.265 codec using FFmpeg?

I want to encode a video file to H.265. The last version of ffmpeg should be support H.265 (Source). However, I could not find any information about the exact command. I do not know, which library I ...
0
votes
0answers
1k views

How to extract jpegs from a video file using ffmpeg

I am using C# and ffmpeg. In this scenario I have 279 individual jpegs and i have used ffmpeg to create a AVI file from these images on my client. CMD Line: -f image2 -r 10 -i "C:\000EC902F17F\img%...
1
vote
0answers
155 views

FFmpeg audio dont work in converted videos

NOTICE: When I convert videos via terminal and download them from ftp into my PC, the audio works fine. I use: if($ext == "avi" && $convert_avi == true) { $convert_source = ...
0
votes
1answer
614 views

avconv gets killed if mkv has subtitles

What I'm trying to do is to take a movie (in an Matroska container), convert all audio tracks to AC3 and don't touch anything else. I'm using this line: avconv -i infile.mkv -map 0 -vcodec copy -...
1
vote
0answers
972 views

Echo cancel and noise reduction - how to use WebRTC echo cancel engine with VLC, Gstreamer, Mplayer, FFmpeg?

How to use WebRTC echo cancel with VLC, Gstreamer, Mplayer, FFmpeg? e.g: vlc alsa://plughw:0,0 gst-launch-0.10 alsasrc device=hw:0 ! autoaudiosink arecord -D hw:0 -r 44100 -c 2 -f S16_LE | aplay -...
0
votes
2answers
4k views

HTML5 video player stutters even after video is loaded

I am using jwplayer to display videos on my websites but cannot manage to make them running smoothly. They stutter, especially in full screen, although I wait for the video to fully load. I tried ...
0
votes
0answers
190 views

How does one take an MPEG4/MP3 AVI and re-encapsulate it in MP4?

I've been trying to take an old AVI file I have that has an MPEG4 video with MP3 audio and re-encapsulate it in an MP4 container. The audio was easy enough to figure out (-acodec libfaac), but I don't ...
1
vote
0answers
305 views

FFMPEG converted file for jwplayer shows black

im new to ffmpeg, and I'm trying to convert it to mp4 to play on jwplayer, the video converts, the sound is good, but all i can see is black color, maybie anyone knows the answer to this problem? ...
0
votes
1answer
2k views

no output from shell_exec when running ffmpeg

I'm trying to run ffmpeg via shell_exec on windows. My function isn't working (it doesn't execute, doesn't output a file, and doesn't output any results from shell_exec) function convertFile($audio, $...
0
votes
1answer
593 views

Normalise levels, contrast, brightness of an image sequence

When making animated gifs or short stop-motion videos from an image sequence, I want them to have all similar levels so that the output looks smooth. It does not have to be a professional quality ...
2
votes
0answers
4k views

live stream with ffmpeg and IP camera

I'm reading a live stream from a DKSEG IP camera, but the results are not good at all ... Here is the command line used for this : ./ffmpeg -i "http://192.168.0.29/videostream.asf?user=admin&pwd=...
1
vote
1answer
282 views

How to resolve conflicts when two binaries have the same name

Running OS X (10.9), I have a program called 'HEAD' in /Applications/XAMPP/xamppfiles/bin/, which is related to libwww-perl. The OS also has an unrelated program called 'head' in /usr/bin/ Since the ...
2
votes
1answer
1k views

reaching constant video bitrate by using ffmpeg

We use ffmpeg and a transcoding script for transcoding and want to make some batch files which we can use for transcoding. For example I use a parameter called video_kbit and if I am writing in ...
0
votes
1answer
149 views

ideal settings for mp3 + jpeg to video output? [closed]

I want to take mp3's and jpg's and output them to a video file, with the intention they'll be uploaded to youtube. I'm wondering what the ideal settings would be. One stipulation, however, is that I ...
4
votes
3answers
21k views

ffmpeg to capture stills from H.264 stream

I'm trying to capture still images from an H.264 wireless IP camera using ffmpeg. I found a similar question here: How can I extract a good quality JPEG image from an H264 video file with ffmpeg? ...
0
votes
1answer
2k views

FFMpeg FTP output issue, can't output to MP4 format

I have a problem with FFMpeg when I want to convert video to MP4, and output to FTP. Simply try to do this (and it will not work): ffmpeg.exe -i test.avi ftp://127.0.0.1/dumped.mp4 But it works ...
2
votes
1answer
561 views

Find video file position using an image match

What would be the best tool / method to automatically find a position from an video file, where the frame approximately matches* a given image? Basically, a command to: "Find the position where [...
0
votes
1answer
509 views

Can FFmpeg concat and drawtext at the same time?

I can successfully use FFmpeg's concat filter and the drawtext filter in separate commands. But this requires two encoding runs. Is it possible to get both of these filters to work in a chain, so ...
0
votes
1answer
847 views

FFMPEG: NOT adding watermark to video

I diligently followed FFMPEG: how to add watermark to video? FFmpeg watermark but under linux (ubuntu 13.04 64bit) the command to WATERMARK video file stream a png watermark seems NOT to work ...
1
vote
1answer
745 views

ffmpeg - join / merge on top of each other

I'm trying to join together two videos on top of each other. I already did these two ffmpeg commands: ffmpeg -i 2_Out_of_Control.VOB -aspect 16:9 \ -vf "yadif=0:-1:0,crop=w=714:h=476:x=6:y=0,scale=...
1
vote
0answers
241 views

Cut part of video with ffmpeg with both sync and quality?

How to cut part of video with ffmpeg without any problems? The following command ffmpeg -i <infile> -ss <starttime> -to <endtime> -vcodec copy -acodec copy <outfile> will ...
0
votes
0answers
340 views

ffmpeg- using ffmpeg to take screen shot of every nth second in C#.Some image are not created properly show blank

Below command is used in loop to take snapshot in my program ffmpeg.exe -ss 720 -i WIn_0_0.wmv -vframes 1 -vf "[in]drawtext=fontsize=18:fontcolor=Red:fontfile='/Windows/Fonts/arial.ttf':text='0\:12\:0'...
1
vote
0answers
740 views

Find out rotation metadata from video in ffmpeg

If I use: ffmpeg -i in.mov -vf "transpose=1" out.mov all .mov files are getting rotated, but what I need is to automatically detect just the rotated videos and change orientation for just those ...
0
votes
2answers
409 views

FFMpeg metadata issue

whenever I run ffmpeg -i filename it returns something like this: Metadata: major_brand : mp42 minor_version : 0 compatible_brands: isommp42 creation_time : 2010-07-16 18:33:45 Duration: 00:...
0
votes
1answer
138 views

Running `tail -F $file` then removing outputted lines

Long story short; I'm running this command to stream a forever growing audio file audio.mpg into ffmpeg tail -F audio.mp3 | ffmpeg -i - http://127.0.0.1:8090/feed1.ffm audio.mp3 is being SSH'd from ...
2
votes
1answer
549 views

ffmpeg video to image conversion. on specifying image size , filter text are not clear

If I extract video file resolution of 320x240 , text on it is looking good and readable. In case if I give input video of resolution 1280x720 or any greater values the text on it isn't readable. It ...
2
votes
1answer
215 views

List of media files with its duration

I wanted to get a list of mp4 files and its corresponding duration from all the folders matching the pattern below e.g: LO1/LO1.MP4,LO3/LO3.MP4 I tried following but I get multiple entries as well ...
2
votes
1answer
403 views

Streaming Video From Server Using VLC CLI

Currently, I have a server with a bunch of home movies on it. These home movies are anywhere from 720p to 1080p. The bit rate of these videos is too high for me to stream via a simple "open the http ...
1
vote
0answers
740 views

ffmpeg to remote ffserver

I'm trying to set up a live audio feed from my camera to a webserver. I'm currently using a D-SRL to capture Video/Audio via Firewire then using dvgrab on Ubuntu running ffmpeg. My Machine (Example ...
3
votes
1answer
1k views

Why doesn't this video play on iOS?

I'm having trouble getting my mp4 video to play on any iOS device. I'm testing on an iPhone with iOS 6 and an iPad running iOS 7. When I upload the video to my server and enter the URL directly on the ...
5
votes
1answer
2k views

Cut last 30 seconds off ends of videos using ffmpeg in a batch file in Windows

This is what I have so far: for i in *.mp4; do ffprobe -show_format -i "%i" // get duration, then need to somehow subtract 30 seconds, and marry these two commands ffmpeg -ss 0 -i "$i" -t %...
0
votes
0answers
89 views

Ffmpeg segmenting syntax

I'm trying to use ffmpeg to break long video files (circa 60mins) with the following requirements: 30sec chunks (fairly exact chunks, no frame loss between chunks) Transcoded to html 5 compatible ...
1
vote
0answers
130 views

error while merging videos with ffmpeg

I am trying to concat videos with different resolutions using ffmpeg and I am encountering this error shown below while that the video resizes when playing the videos I merge them using ffmpeg with ...
3
votes
2answers
1k views

Downmix from 5.1 Surround to two channel stereo using avconv

I have a .wmv with the audio codec of wmapro, which my target video player chokes on. I am generally in the process to "standardise" my collection to x264/aac (as this works fine on all my devices), ...