Questions tagged [ffmpeg]

FFmpeg is a free software project that produces libraries and programs for handling multimedia data. The most notable parts of FFmpeg are libavcodec, an audio/video codec library used by several other projects, libavformat, an audio/video container mux and demux library, and the ffmpeg command line program for transcoding multimedia files.

Filter by
Sorted by
Tagged with
3 votes
1 answer
4k views

Lossy output with FFMPEG JPEG 2000

I'm trying to achieve a lossy JPEG 2000 output with FFMPEG, but no success so far. Using this command line: ffmpeg -i input.dpx -pix_fmt yuv420p -vcodec libopenjpeg output.jp2 As a result I get ...
  • 31
7 votes
3 answers
6k views

drop similar frames

I'd like to record a very long video from webcam which will be mostly the same. I'd like to drop intermediate frames that are very similar to each other to save on filesize and also make it easier to ...
  • 183
2 votes
2 answers
9k views

Lossless conversion of yuv420p10le to yuv420p

I have an mp4 movie, containing an h264 video stream (pixel format yuv420p10le), and an AAC audio stream. My favorite player cannot read the yuv420p10le pixel format. I was wondering if it is ...
  • 145
2 votes
1 answer
2k views

Video for Windows Codec x264 and VP80

I'm looking for VfW codec to encode H264 and VP80. I already found: x264vfw And VP80vfw The 1st is bugged and lost the start and the end. The 2nd do not install on Windows 8. Why VfW ? to use ...
20 votes
4 answers
47k views

How can I convert .MTS file (AVCHD) to .mp4 by ffmpeg without re-encoding H264 video stream?

Note: I posted same question to stackoverflow a short time before, when I have not found this comunity yet. I repost this since the question is more suitable to this community. 1. What I tried I ...
  • 343
2 votes
3 answers
3k views

FFmpeg MP4 to FLV too slow

I am converting .mp4 files to .flv using ffmpeg in centos. But the conversion time is extremely too slow! It takes about 1.5 hours to convert 500MB .mp4 file into .flv. I am using a linux vps with 2 ...
10 votes
1 answer
3k views

Is it possible in FFMPEG to change scale over time?

Ok, so using the overlay filter, one can change the x/y location of a video over time by using the "t" variable. For example, overlay=x='if(gte(t,2), -w+(t-2)*20, NAN)':y=0 can be used to ...
69 votes
2 answers
153k views

Add an image overlay in front of video using ffmpeg

I have many videos and I need to put an image in front of them for about 5 seconds, but adding it manually and rendering it each time would take really long, so I am asking if it is possible to do so ...
  • 693
4 votes
2 answers
23k views

FFMPEG convert video with multiple audio streams?

Ok so I have a video made from dxtory. The video is using dxtory video codec and unknown audio codec. When I pop the file into avimux, I can clearly see two audio tracks/sources. I have successfully ...
  • 153
1 vote
2 answers
724 views

FFmpeg encod set of time stamped images as Iframes

I have a set of images that are in time stamped order ( the unit is seconds ) but not in a set interval 012.png 017.png 024.png etc. How can I encode them so that each image is an Iframe at that ...
2 votes
1 answer
1k views

FFmpeg clarification "position of frame"

Sample output [Parsed_showinfo_0 @ 0x7f9a3b600000] n:0 pts:0 pts_time:0 pos:194408 fmt:yuvj420p sar:0/1 s:1920x1080 i:P iskey:1 type:I checksum:072007CF plane_checksum:[AAFB805D 153EE2B8 65C9A49C] [...
6 votes
2 answers
8k views

Why does quality degrade so much if just cutting video with ffmpeg?

I have tried to cut video with the following command ffmpeg -i "Вспомнить все (Total Recall, 1990).avi" -ss 01:07:29 -to 01:08:05 fight.avi Output: Input #0, avi, from '╨Т╤Б╨┐╨╛╨╝╨╜╨╕╤В╤М ╨▓╤Б╨╡ (...
  • 371
2 votes
1 answer
579 views

ffmpeg framemd5 format explanation

Does a frame consist of audio and video or just video? I am trying to verify if this can be used for confirming both audio and video data were successfully sent or if I need to handle the audio ...
2 votes
2 answers
2k views

ffprobe - why total bitrate is greater than sum of video and audio bitrates?

I have been working on video conversion. So, to find out video parameters I used ffprobe. However, when I run the command on an mp4 video file, I observe this: Total bitrate: 3547 Kb/s Video ...
1 vote
1 answer
974 views

How can I convert large jpgs (15000 x 10840px) to video?

Whenever I try the command ffmpeg -y -r 1 -i File01.jpg -c:v libx264 -tune stillimage -pix_fmt yuv420p out.mp4 I get the failing result: [swcaler @ 000000000347fe0] deprecated pixel format used, ...
  • 113
2 votes
1 answer
2k views

Output file longer than source with ffmpeg

I'm producing several versions of a clip (320x180 24 fps and aprox 2Mbps) compressed with h.264 with ffmpeg using Avanti. Each version has different framerate. The video output has a slightly ...
  • 151
4 votes
4 answers
5k views

ffmpeg: Normalize audio in an avi file

Ι have an avi file that has different levels of audio. Is there a way to decrease and increase appropriately where needed the audio of my file using ffmpeg?
  • 151
11 votes
3 answers
16k views

How to hold the last frame when using ffmpeg

I'm cutting/converting some videos with ffmpeg. What I'd really like is to be able to have the output hold the last frame for a few seconds (with silence for audio). Is such a thing possible? Or ...
  • 213
1 vote
0 answers
1k views

ffmpeg-php with fixed width and height and without stretch or squish

Hi there I googled for hours but no success to solve... This code works for me exec("ffmpeg -i $SourcePath -ar 22050 -ab 32 -f wemp -vf scale=500x400,setdar=16:9 $uploadpath1 2>&1"); but ...
2 votes
2 answers
2k views

Why does FFMPEG fail when converting Intervalometer photos into a time lapse movie?

I loaded CHDK firmware on my old Canon IXUS 980IS and took 796 images, each weighing in at: JPEG 4416x3312 4416x3312+0+0 8-bit sRGB 9.182MB 0.050u 0:00.049 So I want to convert 796 images into a ...
  • 181
4 votes
2 answers
10k views

How to do a video live stream through a VPS?

I've been looking at a million resources and I can't find a definitive answer to this. I'm looking to do a small scale (max 50 viewers possibly), low quality live video stream, with nothing but my ...
  • 173
4 votes
1 answer
14k views

FFmpeg overlaying and blending videos

I am trying to use FFmpeg to overlay one video on top of the other using an additive blend. One video is the actual video I want to transcode, the other is a ~10 second long video I want to put into ...
  • 211
2 votes
1 answer
870 views

Reduce quality percentage wise

I have several movie files in a mkv container. ffmpeg -i filename gives me the following output: Stream #0.0(eng): Video: h264 (High), yuv420p, 1280x720, PAR 1:1 DAR 16:9, 23.98 fps, 23.98 tbr, 1k ...
1 vote
2 answers
369 views

Putting a Lower bitrate of my video stream in my current mp4 container

Sorry if my question is too noobish, this is my first question. What I have is: An mp4 movie with a video stream and an audio stream. What I want in the output: Is an mp4 file containing: the same ...
  • 113
2 votes
1 answer
1k views

Unable to concatenate videos due to identical MOOV atoms

I am cutting out segments from a long mp4 file and then rejoining parts of them. However, since FFMPEG apparently keeps the same MOOV atom for the trimmed files as the original, it looks to FFMPEG ...
4 votes
3 answers
3k views

h264 settings for large flat areas of slowly changing colour

I'm doing an animation for a projection mapping that simulates the sun casting shadows on a structure as it moves through the sky. Basically it's just big flat areas of colour that change over about ...
  • 13.6k
1 vote
1 answer
2k views

ffmpeg capture audio in raw format

I would like to capture audio with ffmpeg in .raw format. Here is what I do to capture in .mp3 format : ffmpeg -f dshow -t 10 -i audio="virtual-audio-capturer" -y "sound.mp3" note that I don't want ...
  • 11
2 votes
1 answer
2k views

How to get a crisp, exact color match for lossless screen-cast?

Background Recording a screen-cast (no audio) in Xubuntu Linux. The following image shows a side-by-side comparison of the video (left) versus the desktop (right): The screen-cast is recorded using: ...
18 votes
2 answers
28k views

How to concatenate clips from the same video with ffmpeg

I have a long video with different scenes in it. I want to extract and concatenate 2 scenes from the video (that do not start on an I-frame) using ffmpeg 2.1.4. For argument, say I want 5 seconds ...
  • 183
3 votes
2 answers
4k views

remove black frames from vob files with ffmpeg

I have a few .vob files with "black frames" (it seems that an issue during the acquisition from VHS did that). I can get where these black frames occur with the command ffmpeg -i source.vob -vf ...
4 votes
1 answer
8k views

Video Capture using ffmpeg (V4L2 indev) Results in Bad A/V Sync

I actually contributed to a bug report on this issue a year and a half ago ( https://trac.ffmpeg.org/ticket/692#comment:15 ). Basically, the problem is that using ffmpeg to record from a USB video ...
  • 147
1 vote
1 answer
246 views

Converting container or transcode movies to iPhone from command line (os x)

Over the years I collected many movies in different container formats (avi, mp4, mkv) and encoded with different codecs too. Now want convert containers (or transcode them if absolutely necessary) to ...
  • 111
4 votes
1 answer
18k views

restart encoding with ffmpeg when bad source

I have an ffmpeg process which saves a stream from wowza server, but when the stream in wowza is interrupted for a second or so sometimes ffmpeg cycles in: [segment @ 0x671a10] st:0 PTS: 9600015 DTS: ...
  • 41
2 votes
0 answers
112 views

Set ipad compatible thumbs for mp4 videos based on a frame of the video with command line

I have a directory of 100 mp4 files. All are working well on my ipad but most of them do not have a working thumb. I want to generate these thumbs with a command line command (on macosx) based on a ...
  • 121
2 votes
1 answer
503 views

disabling streams in quicktime movies with ffmpeg

In Quicktime pro you can turn off streams in movies, without deleting the stream. Is it possible to do this with a command line application like ffmpeg? I have a bunch of video files that were ...
  • 13.6k
4 votes
1 answer
4k views

How to concatenate two mxf files with ffmpeg, preserving both audio channels?

I have mxf files which went over the 2G limit, so were split up in the camera to produce two mxf files. They have two audio streams, one from each mic, like this: Duration: 00:10:01.60, start: 0....
1 vote
1 answer
2k views

How to keep audio and video in sync?

I have a few videos I have to convert for a website. They are PowerPoint slides with a narration track over top. The originals I have to work with are in m4v format. I have converted them to mp4 and ...
  • 423
31 votes
1 answer
90k views

How do I change frame size, preserving width (using ffmpeg)?

I'm new to this StackExchange site, and to using the FFmpeg encoder. I have a video that is 720x480 (3:2) that I would like to change to 720x406 (16:9) to match the other videos I have for a site. I ...
  • 423
0 votes
1 answer
3k views

Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height

ffmpeg -i test.mp4 -acodec libvorbis -vcodec libvpx out.webm ffmpeg version N-57647-g1880294 Copyright (c) 2000-2013 the FFmpeg developers built on Oct 30 2013 19:25:44 with gcc 4.4.7 (GCC) 20120313 ...
  • 103
1 vote
2 answers
5k views

How to re-encode a video file's audio, but leave the video stream with ffmpeg?

Does anyone know how to take a video and re-encode the audio, but just copy the video data using FFMPEG?
  • 149
7 votes
4 answers
5k views

Why isn't ffmpeg used in movie production or broadcasting tool chains?

Is the assumption in the title true? What is preventing the use of ffmpeg when producing a movie or broadcast quality material? Are there any prominent or well known users of ffmpeg? What is used ...
  • 233
0 votes
1 answer
1k views

Using a parameter file for filter option of libav (or ffmpeg)

Good time of the day, I have heard that such a feature exists, but i've lost the reference and have been unable to find it now. I am looking for a way to use the file as the input for all the fileter ...
  • 840
1 vote
3 answers
2k views

Constant streaming to a web server

I have developed a desktop application that records motion from any video source - ie ip Camera, web cam (etc). These motion 'clips' timestamps are uploaded to my server. The Web user can log in and ...
2 votes
1 answer
756 views

Adding image to a video file using ffmpeg

I have created a OGG file from a stream of jpegs using fmpeg within a c# application. I would like to know if it is possible to add an image (of same size and resolution) at a later date to this ogg ...
1 vote
0 answers
2k views

Lossless Editing by Combining Clips with FFmpeg x264

My new Canon Vixia HF G30 video camera has an option to encode directly to 35 Mbit/sec Mp4 at 1080p60 and it does a nice job. I primarily use it to record my daughter's high school basketball games. ...
0 votes
2 answers
5k views

Error FFMPEG when convert video to MP4 with baseline presset

I have this command in ffmpeg: ffmpeg -i '/var/www/sites/default/files/private/videos/original/reel para web en loop_2_2.mp4' -vf 'scale=640:480' -strict experimental -vco dec 'h264' -vpre 'libx264-...
  • 3
4 votes
1 answer
2k views

Creating stereoscopic video from two video files

I've got two video files, each created with ffmpeg from a series of JPEG images, which I've obtained from rendering with a stereo camera in Maya. I would like to somehow merge together these videos ...
3 votes
2 answers
100k views

Typical size of one hour long mp4 video

What is the typical size of a mp4 video, size 1280x720 encoded by ffmpeg libx264, and lasts for one hour? Currently my file is around 700Mb, is it too much?
5 votes
1 answer
10k views

FFMPEG output is blocky

I'm attempting to extract the individual frames from a raw AVC video stream. I'm doing this via the following ffmpeg command: ffmpeg -q 1 -i video_test.avc -f image2 frames/frames_%04d.jpg The ...
1 vote
0 answers
944 views

High bitrate in AVCONV converted MPG file causes DVD reading problem

I convert AVI to MPEG with folowing command: avconv -i file.avi -c:v mpeg2video -b:v 6000k -c:a mp2 -b:a 384k file.mpg When the MPG file has been burned to DVD it is hard to read afterthat. The DVD ...
  • 13